Skip to content

RepAggregationPeriod

The rep processor will only work onĀ categorical signals. The rep processor assumes that the input signal has no time range - it only considers the first time channel. It is a logical repĀ processor to run beforeĀ RepBasicRangeCleaner. rp_type - "aggregation_period". (required) input_name - the name of the (categorical) signal to process. (required) TheĀ obvious choice for this is one of the drug signals, ie "DRUG_PRESCRIBED".Ā  output_name - the name of the resulting virtual signal.(required) sets - the set of values that will be considered as a signal. (required) ieĀ "ATC_C03C_" orĀ "ATCC03C,ATC_N02A_" note: [Ā "ATCC03C","ATC_N02A____"]Ā (cross product) is not supported. period - the length of the window to be considered a treatment period - defaults to 0. time_unit_sig - the signal time unit - defaults to theĀ global_default_windows_time_unit. time_unit_winĀ - the period time unit - defaults to theĀ global_default_windows_time_unit.

1
2
3
4
5
6
7
8
    {
      "action_type": "rep_processor",
      "rp_type":"aggregation_period",
      "input_name":"DRUG_PRESCRIBED",
      "output_name":"drugs_sets_period",
      "sets": ["ATC_C03C____"],
      "period":"43200"
      },
Ā  Ā  (Code that tests this rep processor:Ā U:\ReutF\MR\Projects\Shared\check_medication_period_rep_processor)