{
  "source_table": "ae",
  "transformation_type": "count",
  "grouping_column": "id",
  "absent_default_value": 0,
  "output_feature_name": "total_neurology_ae_attendances",
  "filter": {
    "type": "and",
    "subfilter": {
      "date": {
        "type": "and",
        "subfilter": {
          "date1": {
            "column": "date",
            "type": "date_gt_eq",
            "value": "2017-01-01"
          },
          "date2": {
            "column": "date",
            "type": "date_lt_eq",
            "value": "2017-12-31"
          }
        }
      },
      "diag": {
        "type": "or",
        "subfilter": {
          "diag1": {
            "column": "diagnosis_1",
            "type": "in",
            "value": [
              13
            ]
          },
          "diag2": {
            "column": "diagnosis_2",
            "type": "in",
            "value": [
              13
            ]
          },
          "diag3": {
            "column": "diagnosis_3",
            "type": "in",
            "value": [
              13
            ]
          }
        }
      }
    }
  }
}
