{
  "abx": {
    "class": "lgl_cncpt",
    "description": "antibiotics",
    "omopid": 4085730,
    "category": "medications",
    "sources": {
      "aumc": [
        {
          "ids": [2, 13, 19, 24, 28, 29, 57, 59, 82, 103, 240, 247, 333, 1133, 1199, 1300, 1371, 1795, 2284, 2834, 3237, 3741, 5576, 6834, 6847, 6871, 6919, 6948, 6953, 6958, 7044, 7064, 7185, 7187, 7208, 7227, 7235, 8064, 8394, 8942, 9029, 9030, 9052, 9070, 9117, 9128, 9133, 9142, 9151, 9152, 12262, 12389, 12398, 12956, 12997, 13057, 13094, 13102, 15591, 18860, 19137, 19773, 20563, 23166, 24241, 25776, 27617, 29321],
          "table": "drugitems",
          "sub_var": "itemid",
          "callback": "transform_fun(set_val(TRUE))"
        }
      ],
      "eicu": [
        {
          "regex": "bactrim|cipro|flagyl|metronidazole|zithromax|zosyn|(((amika|cleo|ofloxa)|(azithro|clinda|tobra|vanco)my)c|(ampi|oxa|peni|pipera)cill|cefazol|levaqu|rifamp)in",
          "table": "infusiondrug",
          "sub_var": "drugname",
          "callback": "transform_fun(set_val(TRUE))",
          "class": "rgx_itm"
        },
        {
          "regex": "cipro|flagyl|maxipime|metronidazole|tazobactam|zosyn|cef(azolin|epime)|(((azithro|clinda|vanco)my|ofloxa|vanco)c|levaqu|piperacill|roceph)in",
          "table": "medication",
          "sub_var": "drugname",
          "callback": "transform_fun(set_val(TRUE))",
          "class": "rgx_itm"
        }
      ],
      "eicu_demo": [
        {
          "regex": "bactrim|cipro|flagyl|metronidazole|zithromax|zosyn|(((amika|cleo|ofloxa)|(azithro|clinda|tobra|vanco)my)c|(ampi|oxa|peni|pipera)cill|cefazol|levaqu|rifamp)in",
          "table": "infusiondrug",
          "sub_var": "drugname",
          "callback": "transform_fun(set_val(TRUE))",
          "class": "rgx_itm"
        },
        {
          "regex": "cipro|flagyl|maxipime|metronidazole|tazobactam|zosyn|cef(azolin|epime)|(((azithro|clinda|vanco)my|ofloxa|vanco)c|levaqu|piperacill|roceph)in",
          "table": "medication",
          "sub_var": "drugname",
          "callback": "transform_fun(set_val(TRUE))",
          "class": "rgx_itm"
        }
      ],
      "hirid": [
        {
          "ids": [163, 176, 181, 186, 189, 300, 326, 331, 351, 405, 1000234, 1000272, 1000273, 1000274, 1000284, 1000299, 1000300, 1000302, 1000304, 1000305, 1000306, 1000315, 1000317, 1000318, 1000320, 1000321, 1000322, 1000335, 1000348, 1000352, 1000363, 1000365, 1000390, 1000407, 1000408, 1000424, 1000425, 1000426, 1000437, 1000483, 1000507, 1000508, 1000518, 1000519, 1000549, 1000601, 1000648, 1000666, 1000670, 1000671, 1000760, 1000781, 1000791, 1000797, 1000812, 1000825, 1000829, 1000830, 1000837, 1000838, 1000854, 1000855, 1000893, 1000894, 1001005, 1001068, 1001075, 1001079, 1001084, 1001086, 1001095, 1001096, 1001097, 1001098, 1001168, 1001169, 1001170, 1001171, 1001173, 1001193, 1001198],
          "table": "pharma",
          "sub_var": "pharmaid",
          "callback": "transform_fun(set_val(TRUE))"
        }
      ],
      "miiv": [
        {
          "regex": "aztreonam|bactrim|cephalexin|chloramphenicol|cipro|flagyl|metronidazole|nitrofurantoin|tazobactam|rifampin|sulfadiazine|timentin|trimethoprim|(amika|gentami|vanco)cin|(amoxi|ampi|dicloxa|naf|oxa|peni|pipera)cillin|(azithro|clarithro|erythro|clinda|strepto|tobra|vanco)mycin|cef(azolin|tazidime|adroxil|epime|otetan|otaxime|podoxime|uroxime)|(doxy|mino|tetra)cycline|(levofl|moxifl|ofl)oxacin|macro(bid|dantin)|(una|zo)syn",
          "table": "prescriptions",
          "sub_var": "drug",
          "callback": "transform_fun(set_val(TRUE))",
          "class": "rgx_itm"
        },
        {
          "ids": [225798, 225837, 225838, 225840, 225842, 225843, 225844, 225845, 225847, 225848, 225850, 225851, 225853, 225855, 225857, 225859, 225860, 225862, 225863, 225865, 225866, 225868, 225869, 225871, 225873, 225875, 225876, 225877, 225879, 225881, 225882, 225883, 225884, 225885, 225886, 225888, 225889, 225890, 225892, 225893, 225895, 225896, 225897, 225898, 225899, 225900, 225902, 225903, 225905, 227691, 228003],
          "table": "inputevents",
          "sub_var": "itemid",
          "callback": "transform_fun(set_val(TRUE))"
        }
      ],
      "mimic": [
        {
          "regex": "aztreonam|bactrim|cephalexin|chloramphenicol|cipro|flagyl|metronidazole|nitrofurantoin|tazobactam|rifampin|sulfadiazine|timentin|trimethoprim|(amika|gentami|vanco)cin|(amoxi|ampi|dicloxa|naf|oxa|peni|pipera)cillin|(azithro|clarithro|erythro|clinda|strepto|tobra|vanco)mycin|cef(azolin|tazidime|adroxil|epime|otetan|otaxime|podoxime|uroxime)|(doxy|mino|tetra)cycline|(levofl|moxifl|ofl)oxacin|macro(bid|dantin)|(una|zo)syn",
          "table": "prescriptions",
          "sub_var": "drug",
          "interval": "00:01:00",
          "callback": "mimic_abx_presc",
          "class": "rgx_itm"
        },
        {
          "ids": [225798, 225837, 225838, 225840, 225842, 225843, 225844, 225845, 225847, 225848, 225850, 225851, 225853, 225855, 225857, 225859, 225860, 225862, 225863, 225865, 225866, 225868, 225869, 225871, 225873, 225875, 225876, 225877, 225879, 225881, 225882, 225883, 225884, 225885, 225886, 225888, 225889, 225890, 225892, 225893, 225895, 225896, 225897, 225898, 225899, 225900, 225902, 225903, 225905, 227691, 228003],
          "table": "inputevents_mv",
          "sub_var": "itemid",
          "callback": "transform_fun(set_val(TRUE))"
        }
      ],
      "mimic_demo": [
        {
          "regex": "aztreonam|bactrim|cephalexin|chloramphenicol|cipro|flagyl|metronidazole|nitrofurantoin|tazobactam|rifampin|sulfadiazine|timentin|trimethoprim|(amika|gentami|vanco)cin|(amoxi|ampi|dicloxa|naf|oxa|peni|pipera)cillin|(azithro|clarithro|erythro|clinda|strepto|tobra|vanco)mycin|cef(azolin|tazidime|adroxil|epime|otetan|otaxime|podoxime|uroxime)|(doxy|mino|tetra)cycline|(levofl|moxifl|ofl)oxacin|macro(bid|dantin)|(una|zo)syn",
          "table": "prescriptions",
          "sub_var": "drug",
          "interval": "00:01:00",
          "callback": "mimic_abx_presc",
          "class": "rgx_itm"
        },
        {
          "ids": [225798, 225837, 225838, 225840, 225842, 225843, 225844, 225845, 225847, 225848, 225850, 225851, 225853, 225855, 225857, 225859, 225860, 225862, 225863, 225865, 225866, 225868, 225869, 225871, 225873, 225875, 225876, 225877, 225879, 225881, 225882, 225883, 225884, 225885, 225886, 225888, 225889, 225890, 225892, 225893, 225895, 225896, 225897, 225898, 225899, 225900, 225902, 225903, 225905, 227691, 228003],
          "table": "inputevents_mv",
          "sub_var": "itemid",
          "callback": "transform_fun(set_val(TRUE))"
        }
      ],
      "sic": [
        {
          "ids": [1406, 1408, 1410, 1418, 1421, 1422, 1423, 1428, 1431, 1433, 1436, 1449, 1454, 1457, 1458, 1459, 1460, 1461, 1603, 1795, 1913, 1927],
          "table": "medication",
          "sub_var": "DrugID",
          "callback": "transform_fun(set_val(TRUE))"
        }
      ]
    }
  },
  "adh_rate": {
    "unit": ["units/min", "U/min"],
    "description": "vasopressin rate",
    "omopid": 1507835,
    "category": "medications",
    "sources": {
      "aumc": [
        {
          "ids": 12467,
          "table": "drugitems",
          "sub_var": "itemid",
          "rate_uom": "doserateunit",
          "stop_var": "stop",
          "callback": "aumc_rate_units(0.53)"
        }
      ],
      "eicu": [
        {
          "regex": "^vasopressin.*\\(.+/.+\\)$",
          "table": "infusiondrug",
          "sub_var": "drugname",
          "callback": "eicu_rate_units(2.65, 0.53)",
          "class": "rgx_itm"
        }
      ],
      "eicu_demo": [
        {
          "regex": "^vasopressin.*\\(.+/.+\\)$",
          "table": "infusiondrug",
          "sub_var": "drugname",
          "callback": "eicu_rate_units(2.65, 0.53)",
          "class": "rgx_itm"
        }
      ],
      "hirid": [
        {
          "ids": [112, 113],
          "table": "pharma",
          "sub_var": "pharmaid",
          "grp_var": "infusionid",
          "callback": "hirid_rate"
        }
      ],
      "miiv": [
        {
          "ids": 222315,
          "table": "inputevents",
          "sub_var": "itemid",
          "stop_var": "endtime",
          "callback": "combine_callbacks(\n               convert_unit(binary_op(`/`, 60), 'units/min', 'units/hour'),\n               mimic_rate_mv\n             )"
        }
      ],
      "mimic": [
        {
          "ids": 30051,
          "table": "inputevents_cv",
          "sub_var": "itemid",
          "grp_var": "linkorderid",
          "callback": "combine_callbacks(\n               convert_unit(binary_op(`/`, 60), 'units/min', 'Uhr'),\n               mimic_rate_cv\n             )"
        },
        {
          "ids": 222315,
          "table": "inputevents_mv",
          "sub_var": "itemid",
          "stop_var": "endtime",
          "callback": "combine_callbacks(\n               convert_unit(binary_op(`/`, 60), 'units/min', 'units/hour'),\n               mimic_rate_mv\n             )"
        }
      ],
      "mimic_demo": [
        {
          "ids": 30051,
          "table": "inputevents_cv",
          "sub_var": "itemid",
          "grp_var": "linkorderid",
          "callback": "combine_callbacks(\n               convert_unit(binary_op(`/`, 60), 'units/min', 'Uhr'),\n               mimic_rate_cv\n             )"
        },
        {
          "ids": 222315,
          "table": "inputevents_mv",
          "sub_var": "itemid",
          "stop_var": "endtime",
          "callback": "combine_callbacks(\n               convert_unit(binary_op(`/`, 60), 'units/min', 'units/hour'),\n               mimic_rate_mv\n             )"
        }
      ]
    }
  },
  "adm": {
    "target": "id_tbl",
    "levels": ["med", "surg", "other"],
    "class": "fct_cncpt",
    "description": "patient admission type",
    "category": "demographics",
    "sources": {
      "aumc": [
        {
          "val_var": "specialty",
          "table": "admissions",
          "callback": "apply_map( c(Cardiochirurgie = 'surg', Cardiologie = 'med', ders = 'other', Gynaecologie = 'other', `Heelkunde Gastro-enterologie` = 'surg', `Heelkunde Longen/Oncologie` = 'surg', `Heelkunde Oncologie` = 'surg', Hematologie = 'med', `Intensive Care Volwassenen` = 'other', Inwendig = 'med', `Keel, Neus & Oorarts` = 'surg', Longziekte = 'med', `Maag-,Darm-,Leverziekten` = 'med', Mondheelkunde = 'surg', Nefrologie = 'med', Neurochirurgie = 'surg', Neurologie = 'med', Obstetrie = 'other', `Oncologie Inwendig` = 'med', Oogheelkunde = 'surg', Orthopedie = 'surg', `Plastische chirurgie` = 'surg', Reumatologie = 'med', Traumatologie = 'surg', Urologie = 'surg', Vaatchirurgie = 'surg', Verloskunde = 'other'))",
          "class": "col_itm"
        }
      ],
      "eicu": [
        {
          "table": "admissiondx",
          "val_var": "admitdxpath",
          "callback": "eicu_adx",
          "class": "col_itm"
        }
      ],
      "eicu_demo": [
        {
          "table": "admissiondx",
          "val_var": "admitdxpath",
          "callback": "eicu_adx",
          "class": "col_itm"
        }
      ],
      "miiv": [
        {
          "table": "services",
          "val_var": "curr_service",
          "callback": "apply_map(\n            c(MED   = 'med',   SURG  = 'surg', CMED = 'med',  CSURG  = 'surg',\n              VSURG = 'surg',  NSURG = 'surg', NB   = 'other', NMED  = 'med',\n              ORTHO = 'surg',  TRAUM = 'surg', OMED = 'med',   GU    = 'other',\n              NBB   = 'other', TSURG = 'surg', GYN  = 'other', PSURG = 'surg',\n              OBS   = 'other', ENT   = 'surg', DENT = 'surg',  PSYCH = 'other')\n          )",
          "class": "col_itm"
        }
      ],
      "mimic": [
        {
          "table": "services",
          "val_var": "curr_service",
          "callback": "apply_map(\n            c(MED   = 'med',   SURG  = 'surg', CMED = 'med',  CSURG  = 'surg',\n              VSURG = 'surg',  NSURG = 'surg', NB   = 'other', NMED  = 'med',\n              ORTHO = 'surg',  TRAUM = 'surg', OMED = 'med',   GU    = 'other',\n              NBB   = 'other', TSURG = 'surg', GYN  = 'other', PSURG = 'surg',\n              OBS   = 'other', ENT   = 'surg', DENT = 'surg',  PSYCH = 'other')\n          )",
          "class": "col_itm"
        }
      ],
      "mimic_demo": [
        {
          "table": "services",
          "val_var": "curr_service",
          "callback": "apply_map(\n            c(MED   = 'med',   SURG  = 'surg', CMED = 'med',  CSURG  = 'surg',\n              VSURG = 'surg',  NSURG = 'surg', NB   = 'other', NMED  = 'med',\n              ORTHO = 'surg',  TRAUM = 'surg', OMED = 'med',   GU    = 'other',\n              NBB   = 'other', TSURG = 'surg', GYN  = 'other', PSURG = 'surg',\n              OBS   = 'other', ENT   = 'surg', DENT = 'surg',  PSYCH = 'other')\n          )",
          "class": "col_itm"
        }
      ]
    }
  },
  "age": {
    "unit": "years",
    "min": 0,
    "max": 100,
    "target": "id_tbl",
    "description": "patient age",
    "omopid": 4314456,
    "category": "demographics",
    "sources": {
      "aumc": [
        {
          "val_var": "agegroup",
          "table": "admissions",
          "callback": "apply_map(c(`18-39` = 30, `40-49` = 45, `50-59` = 55, `60-69` = 65, `70-79` = 75, `80+` = 90))",
          "class": "col_itm"
        }
      ],
      "eicu": [
        {
          "table": "patient",
          "val_var": "age",
          "callback": "transform_fun(eicu_age)",
          "class": "col_itm"
        }
      ],
      "eicu_demo": [
        {
          "table": "patient",
          "val_var": "age",
          "callback": "transform_fun(eicu_age)",
          "class": "col_itm"
        }
      ],
      "hirid": [
        {
          "table": "general",
          "val_var": "age",
          "class": "col_itm"
        }
      ],
      "miiv": [
        {
          "table": "patients",
          "val_var": "anchor_age",
          "class": "col_itm"
        }
      ],
      "mimic": [
        {
          "table": "patients",
          "val_var": "dob",
          "callback": "transform_fun(mimic_age)",
          "class": "col_itm"
        }
      ],
      "mimic_demo": [
        {
          "table": "patients",
          "val_var": "dob",
          "callback": "transform_fun(mimic_age)",
          "class": "col_itm"
        }
      ],
      "sic": [
        {
          "table": "cases",
          "val_var": "AgeOnAdmission",
          "class": "col_itm"
        }
      ]
    }
  },
  "alb": {
    "unit": "g/dL",
    "min": 0,
    "max": 6,
    "description": "albumin",
    "omopid": 4017497,
    "category": "chemistry",
    "sources": {
      "aumc": [
        {
          "ids": [6801, 9937],
          "table": "numericitems",
          "sub_var": "itemid",
          "callback": "convert_unit(binary_op(`*`, 0.1), 'g/dL')"
        }
      ],
      "eicu": [
        {
          "ids": "albumin",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "eicu_demo": [
        {
          "ids": "albumin",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "hirid": [
        {
          "ids": 24000605,
          "table": "observations",
          "sub_var": "variableid",
          "callback": "convert_unit(binary_op(`*`, 0.1), 'g/dL')",
          "class": "hrd_itm"
        }
      ],
      "miiv": [
        {
          "ids": 50862,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": 50862,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": 50862,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "sic": [
        {
          "ids": 287,
          "table": "laboratory",
          "sub_var": "LaboratoryID"
        }
      ]
    }
  },
  "alp": {
    "unit": ["IU/L", "U/l"],
    "min": 0,
    "description": "alkaline phosphatase",
    "omopid": 4275206,
    "category": "chemistry",
    "sources": {
      "aumc": [
        {
          "ids": [6803, 11984],
          "table": "numericitems",
          "sub_var": "itemid"
        }
      ],
      "eicu": [
        {
          "ids": "alkaline phos.",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "eicu_demo": [
        {
          "ids": "alkaline phos.",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "hirid": [
        {
          "ids": 20002700,
          "table": "observations",
          "sub_var": "variableid",
          "class": "hrd_itm"
        }
      ],
      "miiv": [
        {
          "ids": 50863,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": 50863,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": 50863,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "sic": [
        {
          "ids": 609,
          "table": "laboratory",
          "sub_var": "LaboratoryID"
        }
      ]
    }
  },
  "alt": {
    "unit": ["IU/L", "U/l"],
    "min": 0,
    "description": "alanine aminotransferase",
    "omopid": 4146380,
    "category": "chemistry",
    "sources": {
      "aumc": [
        {
          "ids": [6800, 11978],
          "table": "numericitems",
          "sub_var": "itemid"
        }
      ],
      "eicu": [
        {
          "ids": "ALT (SGPT)",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "eicu_demo": [
        {
          "ids": "ALT (SGPT)",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "hirid": [
        {
          "ids": 20002600,
          "table": "observations",
          "sub_var": "variableid",
          "class": "hrd_itm"
        }
      ],
      "miiv": [
        {
          "ids": 50861,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": 50861,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": 50861,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "sic": [
        {
          "ids": 617,
          "table": "laboratory",
          "sub_var": "LaboratoryID"
        }
      ]
    }
  },
  "ast": {
    "unit": ["IU/L", "U/l"],
    "min": 0,
    "description": "aspartate aminotransferase",
    "omopid": 4263457,
    "category": "chemistry",
    "sources": {
      "aumc": [
        {
          "ids": [6806, 11990],
          "table": "numericitems",
          "sub_var": "itemid"
        }
      ],
      "eicu": [
        {
          "ids": "AST (SGOT)",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "eicu_demo": [
        {
          "ids": "AST (SGOT)",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "hirid": [
        {
          "ids": 24000330,
          "table": "observations",
          "sub_var": "variableid",
          "class": "hrd_itm"
        }
      ],
      "miiv": [
        {
          "ids": 50878,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": 50878,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": 50878,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "sic": [
        {
          "ids": 616,
          "table": "laboratory",
          "sub_var": "LaboratoryID"
        }
      ]
    }
  },
  "avpu": {
    "concepts": "gcs",
    "description": "AVPU scale",
    "omopid": 40493498,
    "category": "neurological",
    "callback": "avpu",
    "class": "rec_cncpt"
  },
  "basos": {
    "unit": "%",
    "min": 0,
    "max": 50,
    "description": "basophils",
    "omopid": 4172647,
    "category": "hematology",
    "sources": {
      "aumc": [
        {
          "ids": 11710,
          "table": "numericitems",
          "sub_var": "itemid"
        },
        {
          "ids": 14256,
          "table": "numericitems",
          "sub_var": "itemid",
          "callback": "blood_cell_ratio"
        }
      ],
      "eicu": [
        {
          "ids": "-basos",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "eicu_demo": [
        {
          "ids": "-basos",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "miiv": [
        {
          "ids": 51146,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": 51146,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": 51146,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "sic": [
        {
          "ids": 174,
          "table": "laboratory",
          "sub_var": "LaboratoryID"
        }
      ]
    }
  },
  "be": {
    "unit": ["mEq/L", "mmol/l"],
    "min": -25,
    "max": 25,
    "description": "base excess",
    "omopid": 4284393,
    "category": "blood gas",
    "sources": {
      "aumc": [
        {
          "ids": [6807, 9994],
          "table": "numericitems",
          "sub_var": "itemid",
          "dir_var": "tag",
          "callback": "aumc_bxs"
        }
      ],
      "eicu": [
        {
          "ids": "Base Excess",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "eicu_demo": [
        {
          "ids": "Base Excess",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "hirid": [
        {
          "ids": 20001300,
          "table": "observations",
          "sub_var": "variableid",
          "class": "hrd_itm"
        }
      ],
      "miiv": [
        {
          "ids": 50802,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": 50802,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": 50802,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "sic": [
        {
          "ids": 668,
          "table": "laboratory",
          "sub_var": "LaboratoryID"
        }
      ]
    }
  },
  "bicar": {
    "unit": ["mEq/L", "mmol/l"],
    "min": 5,
    "max": 50,
    "description": "bicarbonate",
    "omopid": 4194291,
    "category": "chemistry",
    "sources": {
      "aumc": [
        {
          "ids": [6810, 9992],
          "table": "numericitems",
          "sub_var": "itemid"
        }
      ],
      "eicu": [
        {
          "ids": "bicarbonate",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "eicu_demo": [
        {
          "ids": "bicarbonate",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "hirid": [
        {
          "ids": 20004200,
          "table": "observations",
          "sub_var": "variableid",
          "class": "hrd_itm"
        }
      ],
      "miiv": [
        {
          "ids": 50882,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": 50882,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": 50882,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "sic": [
        {
          "ids": [451, 456, 666, 667],
          "table": "laboratory",
          "sub_var": "LaboratoryID"
        }
      ]
    }
  },
  "bili": {
    "unit": "mg/dL",
    "min": 0,
    "max": 100,
    "description": "total bilirubin",
    "omopid": 4118986,
    "category": "chemistry",
    "sources": {
      "aumc": [
        {
          "ids": [6813, 9945],
          "table": "numericitems",
          "sub_var": "itemid",
          "callback": "convert_unit(binary_op(`*`, 0.058467), 'mg/dL')"
        }
      ],
      "eicu": [
        {
          "ids": "total bilirubin",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "eicu_demo": [
        {
          "ids": "total bilirubin",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "hirid": [
        {
          "ids": 20004300,
          "table": "observations",
          "sub_var": "variableid",
          "callback": "convert_unit(binary_op(`*`, 0.058467), 'mg/dL')",
          "class": "hrd_itm"
        }
      ],
      "miiv": [
        {
          "ids": 50885,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": 50885,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": 50885,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "sic": [
        {
          "ids": 333,
          "table": "laboratory",
          "sub_var": "LaboratoryID"
        }
      ]
    }
  },
  "bili_dir": {
    "unit": "mg/dL",
    "min": 0,
    "max": 50,
    "description": "bilirubin direct",
    "omopid": 4216632,
    "category": "chemistry",
    "sources": {
      "aumc": [
        {
          "ids": 6812,
          "table": "numericitems",
          "sub_var": "itemid",
          "callback": "convert_unit(binary_op(`*`, 0.058467), 'mg/dL')"
        }
      ],
      "eicu": [
        {
          "ids": "direct bilirubin",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "eicu_demo": [
        {
          "ids": "direct bilirubin",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "hirid": [
        {
          "ids": 24000560,
          "table": "observations",
          "sub_var": "variableid",
          "callback": "convert_unit(binary_op(`*`, 0.058467), 'mg/dL')",
          "class": "hrd_itm"
        }
      ],
      "miiv": [
        {
          "ids": 50883,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": 50883,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": 50883,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "sic": [
        {
          "ids": 332,
          "table": "laboratory",
          "sub_var": "LaboratoryID"
        }
      ]
    }
  },
  "bmi": {
    "concepts": ["weight", "height"],
    "description": "patient body mass index",
    "omopid": 4245997,
    "category": "demographics",
    "callback": "bmi",
    "target": "id_tbl",
    "class": "rec_cncpt"
  },
  "bnd": {
    "unit": "%",
    "description": "band form neutrophils",
    "omopid": 4100147,
    "category": "hematology",
    "sources": {
      "aumc": [
        {
          "ids": [6796, 11586],
          "table": "numericitems",
          "sub_var": "itemid"
        }
      ],
      "eicu": [
        {
          "ids": "-bands",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "eicu_demo": [
        {
          "ids": "-bands",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "hirid": [
        {
          "ids": 24000557,
          "table": "observations",
          "sub_var": "variableid",
          "class": "hrd_itm"
        }
      ],
      "miiv": [
        {
          "ids": 51144,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": 51144,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": 51144,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ]
    }
  },
  "bun": {
    "unit": "mg/dL",
    "min": 0,
    "max": 200,
    "description": "blood urea nitrogen",
    "omopid": 4017361,
    "category": "chemistry",
    "sources": {
      "aumc": [
        {
          "ids": [6850, 9943],
          "table": "numericitems",
          "sub_var": "itemid",
          "callback": "convert_unit(binary_op(`*`, 2.8), 'mg/dL')"
        }
      ],
      "eicu": [
        {
          "ids": "BUN",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "eicu_demo": [
        {
          "ids": "BUN",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "hirid": [
        {
          "ids": 20004100,
          "table": "observations",
          "sub_var": "variableid",
          "callback": "convert_unit(binary_op(`*`, 2.8), 'mg/dL')",
          "class": "hrd_itm"
        }
      ],
      "miiv": [
        {
          "ids": 51006,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": 51006,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": 51006,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "sic": [
        {
          "ids": 355,
          "table": "laboratory",
          "sub_var": "LaboratoryID",
          "callback": "transform_fun(binary_op(`*`, 0.467))"
        }
      ]
    }
  },
  "ca": {
    "unit": "mg/dL",
    "min": 4,
    "max": 20,
    "description": "calcium",
    "omopid": 4216722,
    "category": "chemistry",
    "sources": {
      "aumc": [
        {
          "ids": [6817, 9933],
          "table": "numericitems",
          "sub_var": "itemid",
          "callback": "convert_unit(binary_op(`*`, 4.008), 'mg/dL')"
        }
      ],
      "eicu": [
        {
          "ids": "calcium",
          "table": "lab",
          "sub_var": "labname",
          "callback": "convert_unit(binary_op(`*`, 4), 'mg/dL', 'mmol/l')"
        }
      ],
      "eicu_demo": [
        {
          "ids": "calcium",
          "table": "lab",
          "sub_var": "labname",
          "callback": "convert_unit(binary_op(`*`, 4), 'mg/dL', 'mmol/l')"
        }
      ],
      "hirid": [
        {
          "ids": 20005100,
          "table": "observations",
          "sub_var": "variableid",
          "callback": "convert_unit(binary_op(`*`, 4.008), 'mg/dL')",
          "class": "hrd_itm"
        }
      ],
      "miiv": [
        {
          "ids": 50893,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": 50893,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": 50893,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "sic": [
        {
          "ids": 457,
          "table": "laboratory",
          "sub_var": "LaboratoryID",
          "callback": "transform_fun(binary_op(`*`, 4.008))"
        }
      ]
    }
  },
  "cai": {
    "unit": "mmol/L",
    "min": 0.5,
    "max": 2,
    "description": "calcium ionized",
    "omopid": 46272910,
    "category": "blood gas",
    "sources": {
      "aumc": [
        {
          "ids": [6815, 8915, 9560, 9561, 10267],
          "table": "numericitems",
          "sub_var": "itemid"
        }
      ],
      "eicu": [
        {
          "ids": "ionized calcium",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "eicu_demo": [
        {
          "ids": "ionized calcium",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "hirid": [
        {
          "ids": 24000522,
          "table": "observations",
          "sub_var": "variableid",
          "class": "hrd_itm"
        }
      ],
      "miiv": [
        {
          "ids": 50808,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": 50808,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": 50808,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "sic": [
        {
          "ids": 655,
          "table": "laboratory",
          "sub_var": "LaboratoryID"
        }
      ]
    }
  },
  "ck": {
    "unit": ["IU/L", "U/l"],
    "min": 0,
    "description": "creatine kinase",
    "omopid": 4265595,
    "category": "chemistry",
    "sources": {
      "aumc": [
        {
          "ids": [6822, 11998],
          "table": "numericitems",
          "sub_var": "itemid"
        }
      ],
      "eicu": [
        {
          "ids": "CPK",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "eicu_demo": [
        {
          "ids": "CPK",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "hirid": [
        {
          "ids": 24000210,
          "table": "observations",
          "sub_var": "variableid",
          "class": "hrd_itm"
        }
      ],
      "miiv": [
        {
          "ids": 50910,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": 50910,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": 50910,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "sic": [
        {
          "ids": 611,
          "table": "laboratory",
          "sub_var": "LaboratoryID"
        }
      ]
    }
  },
  "ckmb": {
    "unit": "ng/mL",
    "min": 0,
    "description": "creatine kinase MB",
    "omopid": 4017058,
    "category": "chemistry",
    "sources": {
      "aumc": [
        {
          "ids": 6824,
          "table": "numericitems",
          "sub_var": "itemid"
        }
      ],
      "eicu": [
        {
          "ids": "CPK-MB",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "eicu_demo": [
        {
          "ids": "CPK-MB",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "hirid": [
        {
          "ids": 24000220,
          "table": "observations",
          "sub_var": "variableid",
          "class": "hrd_itm"
        }
      ],
      "miiv": [
        {
          "ids": 50911,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": 50911,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": 50911,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "sic": [
        {
          "ids": 253,
          "table": "laboratory",
          "sub_var": "LaboratoryID"
        }
      ]
    }
  },
  "cl": {
    "unit": ["mEq/L", "mmol/l"],
    "min": 80,
    "max": 130,
    "description": "chloride",
    "omopid": 4188066,
    "category": "chemistry",
    "sources": {
      "aumc": [
        {
          "ids": 9930,
          "table": "numericitems",
          "sub_var": "itemid"
        }
      ],
      "eicu": [
        {
          "ids": "chloride",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "eicu_demo": [
        {
          "ids": "chloride",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "hirid": [
        {
          "ids": [24000439, 24000521],
          "table": "observations",
          "sub_var": "variableid",
          "class": "hrd_itm"
        }
      ],
      "miiv": [
        {
          "ids": 50902,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": 50902,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": 50902,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "sic": [
        {
          "ids": [683, 450],
          "table": "laboratory",
          "sub_var": "LaboratoryID"
        }
      ]
    }
  },
  "cort": {
    "class": "lgl_cncpt",
    "description": "corticosteroids",
    "omopid": 304275008,
    "category": "medications",
    "sources": {
      "aumc": [
        {
          "ids": [6922, 6995, 7106, 8132, 9042, 9130, 10628],
          "table": "drugitems",
          "sub_var": "itemid",
          "callback": "transform_fun(set_val(TRUE))"
        }
      ],
      "hirid": [
        {
          "ids": [146, 151, 1000325, 1000383, 1000431, 1000432, 1000433, 1000434, 1000435, 1000486, 1000487, 1000488, 1000769, 1000770, 1000929],
          "table": "pharma",
          "sub_var": "pharmaid",
          "callback": "transform_fun(set_val(TRUE))"
        }
      ]
    }
  },
  "crea": {
    "unit": "mg/dL",
    "min": 0,
    "max": 15,
    "description": "creatinine",
    "omopid": 4013964,
    "category": "chemistry",
    "sources": {
      "aumc": [
        {
          "ids": [6836, 9941, 14216],
          "table": "numericitems",
          "sub_var": "itemid",
          "callback": "convert_unit(binary_op(`*`, 0.011309), 'mg/dL')"
        }
      ],
      "eicu": [
        {
          "ids": "creatinine",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "eicu_demo": [
        {
          "ids": "creatinine",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "hirid": [
        {
          "ids": 20000600,
          "table": "observations",
          "sub_var": "variableid",
          "callback": "convert_unit(binary_op(`*`, 0.011312), 'mg/dL')",
          "class": "hrd_itm"
        }
      ],
      "miiv": [
        {
          "ids": 50912,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": 50912,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": 50912,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "sic": [
        {
          "ids": 367,
          "table": "laboratory",
          "sub_var": "LaboratoryID"
        }
      ]
    }
  },
  "crp": {
    "unit": "mg/L",
    "min": 0,
    "description": "C-reactive protein",
    "omopid": 4208414,
    "category": "chemistry",
    "sources": {
      "aumc": [
        {
          "ids": [6825, 10079],
          "table": "numericitems",
          "sub_var": "itemid"
        }
      ],
      "eicu": [
        {
          "ids": "CRP",
          "table": "lab",
          "sub_var": "labname",
          "callback": "convert_unit(binary_op(`*`, 10), 'mg/L', 'mg/dl')"
        }
      ],
      "eicu_demo": [
        {
          "ids": "CRP",
          "table": "lab",
          "sub_var": "labname",
          "callback": "convert_unit(binary_op(`*`, 10), 'mg/L', 'mg/dl')"
        }
      ],
      "hirid": [
        {
          "ids": 20002200,
          "table": "observations",
          "sub_var": "variableid",
          "class": "hrd_itm"
        }
      ],
      "miiv": [
        {
          "ids": 50889,
          "table": "labevents",
          "sub_var": "itemid",
          "callback": "convert_unit(binary_op(`*`, 10), 'mg/L', 'mg/dl')"
        }
      ],
      "mimic": [
        {
          "ids": 50889,
          "table": "labevents",
          "sub_var": "itemid",
          "callback": "convert_unit(binary_op(`*`, 10), 'mg/L', 'mg/dl')"
        }
      ],
      "mimic_demo": [
        {
          "ids": 50889,
          "table": "labevents",
          "sub_var": "itemid",
          "callback": "convert_unit(binary_op(`*`, 10), 'mg/L', 'mg/dl')"
        }
      ]
    }
  },
  "dbp": {
    "unit": ["mmHg", "mm Hg"],
    "min": 0,
    "max": 200,
    "description": "diastolic blood pressure",
    "omopid": 4154790,
    "category": "vitals",
    "sources": {
      "aumc": [
        {
          "ids": 6643,
          "table": "numericitems",
          "sub_var": "itemid"
        }
      ],
      "eicu": [
        {
          "table": "vitalperiodic",
          "val_var": "systemicdiastolic",
          "class": "col_itm"
        }
      ],
      "eicu_demo": [
        {
          "table": "vitalperiodic",
          "val_var": "systemicdiastolic",
          "class": "col_itm"
        }
      ],
      "hirid": [
        {
          "ids": 120,
          "table": "observations",
          "sub_var": "variableid",
          "class": "hrd_itm"
        }
      ],
      "miiv": [
        {
          "ids": [220051, 220180],
          "table": "chartevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": [8368, 8441, 8555, 220051, 220180],
          "table": "chartevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": [8368, 8441, 8555, 220051, 220180],
          "table": "chartevents",
          "sub_var": "itemid"
        }
      ],
      "sic": [
        {
          "ids": [702, 705],
          "table": "data_float_h",
          "sub_var": "DataID"
        }
      ]
    }
  },
  "death": {
    "class": "lgl_cncpt",
    "description": "in hospital mortality",
    "omopid": 4306655,
    "category": "outcome",
    "sources": {
      "aumc": [
        {
          "table": "admissions",
          "index_var": "dateofdeath",
          "val_var": "dischargedat",
          "callback": "aumc_death",
          "class": "col_itm"
        }
      ],
      "eicu": [
        {
          "table": "patient",
          "index_var": "unitdischargeoffset",
          "val_var": "hospitaldischargestatus",
          "callback": "transform_fun(comp_na(`==`, 'Expired'))",
          "class": "col_itm"
        }
      ],
      "eicu_demo": [
        {
          "table": "patient",
          "index_var": "unitdischargeoffset",
          "val_var": "hospitaldischargestatus",
          "callback": "transform_fun(comp_na(`==`, 'Expired'))",
          "class": "col_itm"
        }
      ],
      "hirid": [
        {
          "ids": [110, 200],
          "table": "observations",
          "sub_var": "variableid",
          "callback": "hirid_death",
          "class": "hrd_itm"
        }
      ],
      "miiv": [
        {
          "table": "admissions",
          "index_var": "deathtime",
          "val_var": "hospital_expire_flag",
          "callback": "transform_fun(comp_na(`==`, 1L))",
          "class": "col_itm"
        }
      ],
      "mimic": [
        {
          "table": "admissions",
          "index_var": "deathtime",
          "val_var": "hospital_expire_flag",
          "callback": "transform_fun(comp_na(`==`, 1L))",
          "class": "col_itm"
        }
      ],
      "mimic_demo": [
        {
          "table": "admissions",
          "index_var": "deathtime",
          "val_var": "hospital_expire_flag",
          "callback": "transform_fun(comp_na(`==`, 1L))",
          "class": "col_itm"
        }
      ]
    }
  },
  "dex": {
    "min": 0,
    "unit": "ml/hr",
    "description": "dextrose (as D10)",
    "omopid": 4197597,
    "category": "medications",
    "target": "win_tbl",
    "sources": {
      "aumc": [
        {
          "ids": [7254, 7255, 7256, 8940, 9571],
          "table": "drugitems",
          "sub_var": "itemid",
          "dur_var": "stop",
          "rate_var": "doserateunit",
          "callback": "combine_callbacks(\n                           aumc_rate,\n                           dex_to_10(list(7255L, 7256L, c(8940L, 9571L)),\n                                     c(2, 3, 4))\n                         )"
        }
      ],
      "eicu": [
        {
          "regex": "(d50|dextrose.+50 ?%)",
          "table": "medication",
          "sub_var": "drugname",
          "dur_var": "drugstopoffset",
          "callback": "eicu_dex_med",
          "class": "rgx_itm"
        },
        {
          "regex": "(d10|dextrose.+10 ?%).+ml/hr",
          "table": "infusiondrug",
          "sub_var": "drugname",
          "callback": "eicu_dex_inf",
          "target": "ts_tbl",
          "class": "rgx_itm"
        }
      ],
      "eicu_demo": [
        {
          "regex": "(d50|dextrose.+50 ?%)",
          "table": "medication",
          "sub_var": "drugname",
          "dur_var": "drugstopoffset",
          "callback": "eicu_dex_med",
          "class": "rgx_itm"
        },
        {
          "regex": "(d10|dextrose.+10 ?%).+ml/hr",
          "table": "infusiondrug",
          "sub_var": "drugname",
          "callback": "eicu_dex_inf",
          "target": "ts_tbl",
          "class": "rgx_itm"
        }
      ],
      "hirid": [
        {
          "ids": [1000022, 1000690, 1000689, 1000544, 1000746, 1000835, 1000060, 1000545, 1000567],
          "table": "pharma",
          "sub_var": "pharmaid",
          "grp_var": "infusionid",
          "target": "ts_tbl",
          "interval": "00:01:00",
          "callback": "combine_callbacks(\n               grp_mount_to_rate(mins(1L), hours(1L)),\n               dex_to_10(list(c(1000689L, 1000544L, 1000746L, 1000835L),\n                                1000060L, 1000545L, 1000567L), c(2, 3, 4, 5))\n             )"
        }
      ],
      "miiv": [
        {
          "ids": [220950, 228140, 220952],
          "table": "inputevents",
          "sub_var": "itemid",
          "dur_var": "endtime",
          "amount_var": "amount",
          "auom_var": "amountuom",
          "callback": "combine_callbacks(\n               mimv_rate,\n               dex_to_10(c(228140L, 220952L), c(2, 5))\n             )"
        }
      ],
      "mimic": [
        {
          "ids": [220950, 228140, 220952],
          "table": "inputevents_mv",
          "sub_var": "itemid",
          "dur_var": "endtime",
          "amount_var": "amount",
          "auom_var": "amountuom",
          "callback": "combine_callbacks(\n               mimv_rate,\n               dex_to_10(c(228140L, 220952L), c(2, 5))\n             )"
        },
        {
          "ids": [30016, 30017],
          "table": "inputevents_cv",
          "sub_var": "itemid",
          "grp_var": "linkorderid",
          "val_var": "amount",
          "unit_var": "amountuom",
          "target": "ts_tbl",
          "interval": "00:01:00",
          "callback": "combine_callbacks(\n               grp_mount_to_rate(mins(1L), hours(1L)),\n               dex_to_10(30017L, 2)\n             )"
        }
      ],
      "mimic_demo": [
        {
          "ids": [220950, 228140, 220952],
          "table": "inputevents_mv",
          "sub_var": "itemid",
          "dur_var": "endtime",
          "amount_var": "amount",
          "auom_var": "amountuom",
          "callback": "combine_callbacks(\n               mimv_rate,\n               dex_to_10(c(228140L, 220952L), c(2, 5))\n             )"
        },
        {
          "ids": [30016, 30017],
          "table": "inputevents_cv",
          "sub_var": "itemid",
          "grp_var": "linkorderid",
          "val_var": "amount",
          "unit_var": "amountuom",
          "target": "ts_tbl",
          "interval": "00:01:00",
          "callback": "combine_callbacks(\n               grp_mount_to_rate(mins(1L), hours(1L)),\n               dex_to_10(30017L, 2)\n             )"
        }
      ]
    },
    "class": ["unt_cncpt", "num_cncpt"]
  },
  "dobu_dur": {
    "description": "dobutamine duration",
    "category": "medications",
    "aggregate": "max",
    "sources": {
      "aumc": [
        {
          "ids": 7178,
          "table": "drugitems",
          "sub_var": "itemid",
          "stop_var": "stop",
          "grp_var": "orderid",
          "callback": "aumc_dur"
        }
      ],
      "eicu": [
        {
          "regex": "^dobu",
          "table": "infusiondrug",
          "sub_var": "drugname",
          "callback": "eicu_duration(gap_length = hours(5L))",
          "class": "rgx_itm"
        }
      ],
      "eicu_demo": [
        {
          "regex": "^dobu",
          "table": "infusiondrug",
          "sub_var": "drugname",
          "callback": "eicu_duration(gap_length = hours(5L))",
          "class": "rgx_itm"
        }
      ],
      "hirid": [
        {
          "ids": 426,
          "table": "pharma",
          "sub_var": "pharmaid",
          "grp_var": "infusionid",
          "callback": "hirid_duration"
        }
      ],
      "miiv": [
        {
          "ids": 221653,
          "table": "inputevents",
          "sub_var": "itemid",
          "stop_var": "endtime",
          "grp_var": "linkorderid",
          "callback": "mimic_dur_inmv"
        }
      ],
      "mimic": [
        {
          "ids": [30042, 30306],
          "table": "inputevents_cv",
          "sub_var": "itemid",
          "grp_var": "linkorderid",
          "callback": "mimic_dur_incv"
        },
        {
          "ids": 221653,
          "table": "inputevents_mv",
          "sub_var": "itemid",
          "stop_var": "endtime",
          "grp_var": "linkorderid",
          "callback": "mimic_dur_inmv"
        }
      ],
      "mimic_demo": [
        {
          "ids": [30042, 30306],
          "table": "inputevents_cv",
          "sub_var": "itemid",
          "grp_var": "linkorderid",
          "callback": "mimic_dur_incv"
        },
        {
          "ids": 221653,
          "table": "inputevents_mv",
          "sub_var": "itemid",
          "stop_var": "endtime",
          "grp_var": "linkorderid",
          "callback": "mimic_dur_inmv"
        }
      ],
      "sic": [
        {
          "ids": [
            1559
          ],
          "table": "medication",
          "sub_var": "DrugID",
          "stop_var": "OffsetDrugEnd",
          "callback": "sic_dur"
        }
      ]
    }
  },
  "dobu_rate": {
    "unit": ["mcg/kg/min", "mcgkgmin"],
    "min": 0,
    "max": 50,
    "description": "dobutamine rate",
    "omopid": 1337720,
    "category": "medications",
    "sources": {
      "aumc": [
        {
          "ids": 7178,
          "table": "drugitems",
          "sub_var": "itemid",
          "rel_weight": "doserateperkg",
          "rate_uom": "doserateunit",
          "stop_var": "stop",
          "callback": "aumc_rate_kg"
        }
      ],
      "eicu": [
        {
          "regex": "^dobu.*\\(.+\\)$",
          "table": "infusiondrug",
          "sub_var": "drugname",
          "weight_var": "patientweight",
          "callback": "eicu_rate_kg(ml_to_mcg = 2000)",
          "class": "rgx_itm"
        }
      ],
      "eicu_demo": [
        {
          "regex": "^dobu.*\\(.+\\)$",
          "table": "infusiondrug",
          "sub_var": "drugname",
          "weight_var": "patientweight",
          "callback": "eicu_rate_kg(ml_to_mcg = 2000)",
          "class": "rgx_itm"
        }
      ],
      "hirid": [
        {
          "ids": 426,
          "table": "pharma",
          "sub_var": "pharmaid",
          "grp_var": "infusionid",
          "callback": "hirid_rate_kg"
        }
      ],
      "miiv": [
        {
          "ids": 221653,
          "table": "inputevents",
          "sub_var": "itemid",
          "stop_var": "endtime",
          "callback": "mimic_rate_mv"
        }
      ],
      "mimic": [
        {
          "ids": [30042, 30306],
          "table": "inputevents_cv",
          "sub_var": "itemid",
          "grp_var": "linkorderid",
          "callback": "mimic_rate_cv"
        },
        {
          "ids": 221653,
          "table": "inputevents_mv",
          "sub_var": "itemid",
          "stop_var": "endtime",
          "callback": "mimic_rate_mv"
        }
      ],
      "mimic_demo": [
        {
          "ids": [30042, 30306],
          "table": "inputevents_cv",
          "sub_var": "itemid",
          "grp_var": "linkorderid",
          "callback": "mimic_rate_cv"
        },
        {
          "ids": 221653,
          "table": "inputevents_mv",
          "sub_var": "itemid",
          "stop_var": "endtime",
          "callback": "mimic_rate_mv"
        }
      ],
      "sic": [
        {
          "ids": 1559,
          "table": "medication",
          "sub_var": "DrugID",
          "val_var": "AmountPerMinute",
          "stop_var": "OffsetDrugEnd",
          "callback": "sic_rate_kg"
        }
      ]
    }
  },
  "dobu60": {
    "concepts": ["dobu_rate", "dobu_dur"],
    "description": "dobutamine administration for min 1h",
    "category": "medications",
    "interval": "00:01:00",
    "callback": "vaso60",
    "class": "rec_cncpt"
  },
  "dopa_dur": {
    "description": "dopamine duration",
    "category": "medications",
    "aggregate": "max",
    "sources": {
      "aumc": [
        {
          "ids": 7179,
          "table": "drugitems",
          "sub_var": "itemid",
          "stop_var": "stop",
          "grp_var": "orderid",
          "callback": "aumc_dur"
        }
      ],
      "eicu": [
        {
          "regex": "^dopa",
          "table": "infusiondrug",
          "sub_var": "drugname",
          "callback": "eicu_duration(gap_length = hours(5L))",
          "class": "rgx_itm"
        }
      ],
      "eicu_demo": [
        {
          "regex": "^dopa",
          "table": "infusiondrug",
          "sub_var": "drugname",
          "callback": "eicu_duration(gap_length = hours(5L))",
          "class": "rgx_itm"
        }
      ],
      "miiv": [
        {
          "ids": 221662,
          "table": "inputevents",
          "sub_var": "itemid",
          "stop_var": "endtime",
          "grp_var": "linkorderid",
          "callback": "mimic_dur_inmv"
        }
      ],
      "mimic": [
        {
          "ids": [30043, 30125, 30307],
          "table": "inputevents_cv",
          "sub_var": "itemid",
          "grp_var": "linkorderid",
          "callback": "mimic_dur_incv"
        },
        {
          "ids": 221662,
          "table": "inputevents_mv",
          "sub_var": "itemid",
          "stop_var": "endtime",
          "grp_var": "linkorderid",
          "callback": "mimic_dur_inmv"
        }
      ],
      "mimic_demo": [
        {
          "ids": [30043, 30125, 30307],
          "table": "inputevents_cv",
          "sub_var": "itemid",
          "grp_var": "linkorderid",
          "callback": "mimic_dur_incv"
        },
        {
          "ids": 221662,
          "table": "inputevents_mv",
          "sub_var": "itemid",
          "stop_var": "endtime",
          "grp_var": "linkorderid",
          "callback": "mimic_dur_inmv"
        }
      ],
      "sic": [
        {
          "ids": 1618,
          "table": "medication",
          "sub_var": "DrugID",
          "stop_var": "OffsetDrugEnd",
          "callback": "sic_dur"
        }
      ]
    }
  },
  "dopa_rate": {
    "unit": ["mcg/kg/min", "mcgkgmin"],
    "min": 0,
    "max": 50,
    "description": "dopamine rate",
    "omopid": 1337860,
    "category": "medications",
    "sources": {
      "aumc": [
        {
          "ids": 7179,
          "table": "drugitems",
          "sub_var": "itemid",
          "rel_weight": "doserateperkg",
          "rate_uom": "doserateunit",
          "stop_var": "stop",
          "callback": "aumc_rate_kg"
        }
      ],
      "eicu": [
        {
          "regex": "^dopa.*\\(.+\\)$",
          "table": "infusiondrug",
          "sub_var": "drugname",
          "weight_var": "patientweight",
          "callback": "eicu_rate_kg(ml_to_mcg = 1600)",
          "class": "rgx_itm"
        }
      ],
      "eicu_demo": [
        {
          "regex": "^dopa.*\\(.+\\)$",
          "table": "infusiondrug",
          "sub_var": "drugname",
          "weight_var": "patientweight",
          "callback": "eicu_rate_kg(ml_to_mcg = 1600)",
          "class": "rgx_itm"
        }
      ],
      "miiv": [
        {
          "ids": 221662,
          "table": "inputevents",
          "sub_var": "itemid",
          "stop_var": "endtime",
          "callback": "mimic_rate_mv"
        }
      ],
      "mimic": [
        {
          "ids": [30043, 30125, 30307],
          "table": "inputevents_cv",
          "sub_var": "itemid",
          "grp_var": "linkorderid",
          "callback": "mimic_rate_cv"
        },
        {
          "ids": 221662,
          "table": "inputevents_mv",
          "sub_var": "itemid",
          "stop_var": "endtime",
          "callback": "mimic_rate_mv"
        }
      ],
      "mimic_demo": [
        {
          "ids": [30043, 30125, 30307],
          "table": "inputevents_cv",
          "sub_var": "itemid",
          "grp_var": "linkorderid",
          "callback": "mimic_rate_cv"
        },
        {
          "ids": 221662,
          "table": "inputevents_mv",
          "sub_var": "itemid",
          "stop_var": "endtime",
          "callback": "mimic_rate_mv"
        }
      ],
      "sic": [
        {
          "ids": 1618,
          "table": "medication",
          "sub_var": "DrugID",
          "val_var": "AmountPerMinute",
          "stop_var": "OffsetDrugEnd",
          "callback": "sic_rate_kg"
        }
      ]
    }
  },
  "dopa60": {
    "concepts": ["dopa_rate", "dopa_dur"],
    "description": "dopamine administration for min 1h",
    "category": "outcome",
    "interval": "00:01:00",
    "callback": "vaso60",
    "class": "rec_cncpt"
  },
  "egcs": {
    "min": 1,
    "max": 4,
    "description": "GCS eye",
    "omopid": 4084277,
    "category": "neurological",
    "sources": {
      "aumc": [
        {
          "ids": 6732,
          "table": "listitems",
          "sub_var": "itemid",
          "callback": "apply_map( c(`Geen reactie` = 1, `Reactie op pijnprikkel` = 2, `Reactie op verbale prikkel` = 3, `Spontane reactie` = 4) )"
        },
        {
          "ids": 13077,
          "table": "listitems",
          "sub_var": "itemid",
          "callback": "apply_map( c(`Niet` = 1, `Op pijn` = 2, `Op aanspreken` = 3, `Spontaan` = 4) )"
        }
      ],
      "eicu": [
        {
          "ids": "Eyes",
          "table": "nursecharting",
          "sub_var": "nursingchartcelltypevalname"
        }
      ],
      "eicu_demo": [
        {
          "ids": "Eyes",
          "table": "nursecharting",
          "sub_var": "nursingchartcelltypevalname"
        }
      ],
      "hirid": [
        {
          "ids": 10000300,
          "table": "observations",
          "sub_var": "variableid",
          "class": "hrd_itm"
        }
      ],
      "miiv": [
        {
          "ids": 220739,
          "table": "chartevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": [184, 220739],
          "table": "chartevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": [184, 220739],
          "table": "chartevents",
          "sub_var": "itemid"
        }
      ]
    }
  },
  "eos": {
    "unit": "%",
    "min": 0,
    "max": 50,
    "description": "eosinophils",
    "omopid": 4216098,
    "category": "hematology",
    "sources": {
      "aumc": [
        {
          "ids": 6773,
          "table": "numericitems",
          "sub_var": "itemid"
        },
        {
          "ids": 9967,
          "table": "numericitems",
          "sub_var": "itemid",
          "callback": "blood_cell_ratio"
        }
      ],
      "eicu": [
        {
          "ids": "-eos",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "eicu_demo": [
        {
          "ids": "-eos",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "miiv": [
        {
          "ids": 51200,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": 51200,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": 51200,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "sic": [
        {
          "ids": 197,
          "table": "laboratory",
          "sub_var": "LaboratoryID"
        }
      ]
    }
  },
  "epi_dur": {
    "description": "epinephrine duration",
    "category": "medications",
    "aggregate": "max",
    "sources": {
      "aumc": [
        {
          "ids": 6818,
          "table": "drugitems",
          "sub_var": "itemid",
          "stop_var": "stop",
          "grp_var": "orderid",
          "callback": "aumc_dur"
        }
      ],
      "eicu": [
        {
          "regex": "^epi( |n)",
          "table": "infusiondrug",
          "sub_var": "drugname",
          "callback": "eicu_duration(gap_length = hours(5L))",
          "class": "rgx_itm"
        }
      ],
      "eicu_demo": [
        {
          "regex": "^epi( |n)",
          "table": "infusiondrug",
          "sub_var": "drugname",
          "callback": "eicu_duration(gap_length = hours(5L))",
          "class": "rgx_itm"
        }
      ],
      "hirid": [
        {
          "ids": [71, 1000649, 1000650, 1000655, 1000750],
          "table": "pharma",
          "sub_var": "pharmaid",
          "grp_var": "infusionid",
          "callback": "hirid_duration"
        }
      ],
      "miiv": [
        {
          "ids": 221289,
          "table": "inputevents",
          "sub_var": "itemid",
          "stop_var": "endtime",
          "grp_var": "linkorderid",
          "callback": "mimic_dur_inmv"
        }
      ],
      "mimic": [
        {
          "ids": [30044, 30119, 30309],
          "table": "inputevents_cv",
          "sub_var": "itemid",
          "grp_var": "linkorderid",
          "callback": "mimic_dur_incv"
        },
        {
          "ids": 221289,
          "table": "inputevents_mv",
          "sub_var": "itemid",
          "stop_var": "endtime",
          "grp_var": "linkorderid",
          "callback": "mimic_dur_inmv"
        }
      ],
      "mimic_demo": [
        {
          "ids": [30044, 30119, 30309],
          "table": "inputevents_cv",
          "sub_var": "itemid",
          "grp_var": "linkorderid",
          "callback": "mimic_dur_incv"
        },
        {
          "ids": 221289,
          "table": "inputevents_mv",
          "sub_var": "itemid",
          "stop_var": "endtime",
          "grp_var": "linkorderid",
          "callback": "mimic_dur_inmv"
        }
      ],
      "sic": [
        {
          "ids": [
            1502
          ],
          "table": "medication",
          "sub_var": "DrugID",
          "stop_var": "OffsetDrugEnd",
          "callback": "sic_dur"
        }
      ]
    }
  },
  "epi_rate": {
    "unit": ["mcg/kg/min", "mcgkgmin"],
    "min": 0,
    "max": 1.5,
    "description": "epinephrine rate",
    "omopid": 1343916,
    "category": "medications",
    "sources": {
      "aumc": [
        {
          "ids": 6818,
          "table": "drugitems",
          "sub_var": "itemid",
          "rel_weight": "doserateperkg",
          "rate_uom": "doserateunit",
          "stop_var": "stop",
          "callback": "aumc_rate_kg"
        }
      ],
      "eicu": [
        {
          "regex": "^epi( |n).*\\(.+\\)$",
          "table": "infusiondrug",
          "sub_var": "drugname",
          "weight_var": "patientweight",
          "callback": "eicu_rate_kg(ml_to_mcg = 40)",
          "class": "rgx_itm"
        }
      ],
      "eicu_demo": [
        {
          "regex": "^epi( |n).*\\(.+\\)$",
          "table": "infusiondrug",
          "sub_var": "drugname",
          "weight_var": "patientweight",
          "callback": "eicu_rate_kg(ml_to_mcg = 40)",
          "class": "rgx_itm"
        }
      ],
      "hirid": [
        {
          "ids": [71, 1000649, 1000650, 1000655, 1000750],
          "table": "pharma",
          "sub_var": "pharmaid",
          "grp_var": "infusionid",
          "callback": "hirid_rate_kg"
        }
      ],
      "miiv": [
        {
          "ids": 221289,
          "table": "inputevents",
          "sub_var": "itemid",
          "stop_var": "endtime",
          "callback": "mimic_rate_mv"
        }
      ],
      "mimic": [
        {
          "ids": [30044, 30119, 30309],
          "table": "inputevents_cv",
          "sub_var": "itemid",
          "grp_var": "linkorderid",
          "callback": "mimic_rate_cv"
        },
        {
          "ids": 221289,
          "table": "inputevents_mv",
          "sub_var": "itemid",
          "stop_var": "endtime",
          "callback": "mimic_rate_mv"
        }
      ],
      "mimic_demo": [
        {
          "ids": [30044, 30119, 30309],
          "table": "inputevents_cv",
          "sub_var": "itemid",
          "grp_var": "linkorderid",
          "callback": "mimic_rate_cv"
        },
        {
          "ids": 221289,
          "table": "inputevents_mv",
          "sub_var": "itemid",
          "stop_var": "endtime",
          "callback": "mimic_rate_mv"
        }
      ],
      "sic": [
        {
          "ids": 1502,
          "table": "medication",
          "sub_var": "DrugID",
          "val_var": "AmountPerMinute",
          "stop_var": "OffsetDrugEnd",
          "callback": "sic_rate_kg"
        }
      ]
    }
  },
  "epi60": {
    "concepts": ["epi_rate", "epi_dur"],
    "description": "epinephrine administration for min 1h",
    "category": "outcome",
    "interval": "00:01:00",
    "callback": "vaso60",
    "class": "rec_cncpt"
  },
  "esr": {
    "unit": ["mm/hr", "mm/1h"],
    "min": 0,
    "max": 200,
    "description": "erythrocyte sedimentation rate",
    "omopid": 4212065,
    "category": "hematology",
    "sources": {
      "aumc": [
        {
          "ids": [6808, 11902],
          "table": "numericitems",
          "sub_var": "itemid"
        }
      ],
      "hirid": [
        {
          "ids": 24000668,
          "table": "observations",
          "sub_var": "variableid",
          "class": "hrd_itm"
        }
      ],
      "miiv": [
        {
          "ids": 51288,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": 51288,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": 51288,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ]
    }
  },
  "etco2": {
    "unit": ["mmHg", "mm Hg"],
    "min": 10,
    "max": 60,
    "description": "endtidal CO2",
    "omopid": 4353940,
    "category": "vitals",
    "sources": {
      "aumc": [
        {
          "ids": [6707, 8884, 8885, 9658, 12805, 12356],
          "table": "numericitems",
          "sub_var": "itemid",
          "callback": "convert_unit(binary_op(`*`, 7.6), 'mmHg', 'None|Geen')"
        }
      ],
      "hirid": [
        {
          "ids": [2200, 8290, 30010009],
          "table": "observations",
          "sub_var": "variableid",
          "class": "hrd_itm"
        }
      ],
      "miiv": [
        {
          "ids": 228640,
          "table": "chartevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": [1817, 228640],
          "table": "chartevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": [1817, 228640],
          "table": "chartevents",
          "sub_var": "itemid"
        }
      ]
    }
  },
  "ett_gcs": {
    "class": "lgl_cncpt",
    "description": "tracheostomy",
    "omopid": 4097216,
    "category": "respiratory",
    "target": "win_tbl",
    "sources": {
      "aumc": [
        {
          "ids": 6735,
          "table": "listitems",
          "sub_var": "itemid",
          "target": "ts_tbl",
          "callback": "combine_callbacks(\n               transform_fun(comp_na(`==`, 'Geïntubeerd')),\n               ts_to_win_tbl(mins(1L))\n             )"
        }
      ],
      "eicu": [
        {
          "class": "fun_itm",
          "callback": "combine_callbacks(\n               fwd_concept('rass'),\n               transform_fun(comp_na(`<=`, -3)),\n               ts_to_win_tbl(mins(360L))\n             )"
        }
      ],
      "eicu_demo": [
        {
          "class": "fun_itm",
          "callback": "combine_callbacks(\n               fwd_concept('rass'),\n               transform_fun(comp_na(`<=`, -3)),\n               ts_to_win_tbl(mins(360L))\n             )"
        }
      ],
      "hirid": [
        {
          "class": "fun_itm",
          "callback": "combine_callbacks(\n               fwd_concept('mech_vent'),\n               transform_fun(comp_na(`==`, 'invasive'))\n             )"
        }
      ],
      "miiv": [
        {
          "ids": "No Response-ETT",
          "table": "chartevents",
          "sub_var": "value",
          "target": "ts_tbl",
          "callback": "combine_callbacks(\n               transform_fun(set_val(TRUE)),\n               ts_to_win_tbl(mins(1L))\n             )"
        }
      ],
      "mimic": [
        {
          "ids": ["1.0 ET/Trach", "No Response-ETT"],
          "table": "chartevents",
          "sub_var": "value",
          "target": "ts_tbl",
          "callback": "combine_callbacks(\n               transform_fun(set_val(TRUE)),\n               ts_to_win_tbl(mins(1L))\n             )"
        }
      ],
      "mimic_demo": [
        {
          "ids": ["1.0 ET/Trach", "No Response-ETT"],
          "table": "chartevents",
          "sub_var": "value",
          "target": "ts_tbl",
          "callback": "combine_callbacks(\n               transform_fun(set_val(TRUE)),\n               ts_to_win_tbl(mins(1L))\n             )"
        }
      ]
    }
  },
  "fgn": {
    "unit": "mg/dL",
    "min": 0,
    "max": 1500,
    "description": "fibrinogen",
    "omopid": 4094436,
    "category": "hematology",
    "sources": {
      "aumc": [
        {
          "ids": [6776, 9989, 10175],
          "table": "numericitems",
          "sub_var": "itemid",
          "callback": "convert_unit(binary_op(`*`, 100), 'mg/dL')"
        }
      ],
      "eicu": [
        {
          "ids": "fibrinogen",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "eicu_demo": [
        {
          "ids": "fibrinogen",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "hirid": [
        {
          "ids": 24000536,
          "table": "observations",
          "sub_var": "variableid",
          "callback": "convert_unit(binary_op(`*`, 100), 'mg/dL')",
          "class": "hrd_itm"
        }
      ],
      "miiv": [
        {
          "ids": 51214,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": 51214,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": 51214,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "sic": [
        {
          "ids": 344,
          "table": "laboratory",
          "sub_var": "LaboratoryID"
        }
      ]
    }
  },
  "fio2": {
    "unit": "%",
    "min": 21,
    "max": 100,
    "description": "fraction of inspired oxygen",
    "omopid": 4353936,
    "category": "blood gas",
    "sources": {
      "aumc": [
        {
          "ids": 12279,
          "table": "numericitems",
          "sub_var": "itemid"
        }
      ],
      "eicu": [
        {
          "ids": "FiO2",
          "table": "respiratorycharting",
          "sub_var": "respchartvaluelabel",
          "callback": "transform_fun(percent_as_numeric)"
        },
        {
          "ids": "FiO2",
          "table": "lab",
          "sub_var": "labname",
          "callback": "convert_unit(set_val(NA), '%', 'mm\\\\(hg\\\\)')"
        }
      ],
      "eicu_demo": [
        {
          "ids": "FiO2",
          "table": "respiratorycharting",
          "sub_var": "respchartvaluelabel",
          "callback": "transform_fun(percent_as_numeric)"
        },
        {
          "ids": "FiO2",
          "table": "lab",
          "sub_var": "labname",
          "callback": "convert_unit(set_val(NA), '%', 'mm\\\\(hg\\\\)')"
        }
      ],
      "hirid": [
        {
          "ids": 2010,
          "table": "observations",
          "sub_var": "variableid",
          "class": "hrd_itm"
        }
      ],
      "miiv": [
        {
          "ids": 223835,
          "table": "chartevents",
          "sub_var": "itemid"
        },
        {
          "ids": 50816,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": [3420, 223835],
          "table": "chartevents",
          "sub_var": "itemid"
        },
        {
          "ids": 50816,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": [3420, 223835],
          "table": "chartevents",
          "sub_var": "itemid"
        },
        {
          "ids": 50816,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "sic": [
        {
          "ids": 2283,
          "table": "data_float_h",
          "sub_var": "DataID"
        }
      ]
    }
  },
  "gcs": {
    "concepts": ["egcs", "mgcs", "vgcs", "tgcs", "ett_gcs"],
    "description": "Glasgow coma scale (non-sedated)",
    "omopid": 4093836,
    "category": "neurological",
    "aggregate": ["min", "min", "min", "min", "any"],
    "callback": "gcs",
    "class": "rec_cncpt"
  },
  "glu": {
    "unit": "mg/dL",
    "min": 0,
    "max": 1000,
    "description": "glucose",
    "omopid": 4144235,
    "category": "chemistry",
    "sources": {
      "aumc": [
        {
          "ids": [6833, 9557, 9947],
          "table": "numericitems",
          "sub_var": "itemid",
          "callback": "convert_unit(binary_op(`*`, 18.016), 'mg/dL')"
        }
      ],
      "eicu": [
        {
          "ids": "glucose",
          "table": "lab",
          "sub_var": "labname"
        },
        {
          "ids": "bedside glucose",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "eicu_demo": [
        {
          "ids": "glucose",
          "table": "lab",
          "sub_var": "labname"
        },
        {
          "ids": "bedside glucose",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "hirid": [
        {
          "ids": [20005110, 24000523, 24000585],
          "table": "observations",
          "sub_var": "variableid",
          "callback": "convert_unit(binary_op(`*`, 18.016), 'mg/dL')",
          "class": "hrd_itm"
        }
      ],
      "miiv": [
        {
          "ids": [50809, 50931],
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": [50809, 50931],
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": [50809, 50931],
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "sic": [
        {
          "ids": [348, 656],
          "table": "laboratory",
          "sub_var": "LaboratoryID"
        }
      ]
    }
  },
  "hba1c": {
    "unit": "%",
    "description": "Hemoglobin A1C",
    "omopid": 4184637,
    "category": "hematology",
    "sources": {
      "aumc": [
        {
          "ids": [11812, 16166],
          "table": "numericitems",
          "sub_var": "itemid"
        }
      ],
      "miiv": [
        {
          "ids": 50852,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": 50852,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": 50852,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ]
    }
  },
  "hbco": {
    "description": "carboxyhemoglobin",
    "omopid": 4056787,
    "category": "blood gas",
    "sources": {
      "aumc": [
        {
          "ids": 11690,
          "table": "numericitems",
          "sub_var": "itemid"
        }
      ],
      "eicu": [
        {
          "ids": "Carboxyhemoglobin",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "eicu_demo": [
        {
          "ids": "Carboxyhemoglobin",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "hirid": [
        {
          "ids": 24000526,
          "table": "observations",
          "sub_var": "variableid",
          "class": "hrd_itm"
        }
      ]
    }
  },
  "hct": {
    "unit": "%",
    "min": 15,
    "max": 60,
    "description": "hematocrit",
    "omopid": 4151358,
    "category": "hematology",
    "sources": {
      "aumc": [
        {
          "ids": [6777, 11423, 11545],
          "table": "numericitems",
          "sub_var": "itemid",
          "callback": "transform_fun(binary_op(`*`, 100))"
        }
      ],
      "eicu": [
        {
          "ids": "Hct",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "eicu_demo": [
        {
          "ids": "Hct",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "miiv": [
        {
          "ids": 51221,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": 51221,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": 51221,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "sic": [
        {
          "ids": [217, 682],
          "table": "laboratory",
          "sub_var": "LaboratoryID"
        }
      ]
    }
  },
  "height": {
    "unit": "cm",
    "min": 10,
    "max": 230,
    "target": "id_tbl",
    "description": "patient height",
    "omopid": 607590,
    "category": "demographics",
    "sources": {
      "aumc": [
        {
          "val_var": "heightgroup",
          "table": "admissions",
          "callback": "apply_map(c(`159-` = 150, `160-169` = 165, `170-179` = 175, `180-189` = 185, `190+` = 200))",
          "class": "col_itm"
        }
      ],
      "eicu": [
        {
          "table": "patient",
          "val_var": "admissionheight",
          "class": "col_itm"
        }
      ],
      "eicu_demo": [
        {
          "table": "patient",
          "val_var": "admissionheight",
          "class": "col_itm"
        }
      ],
      "hirid": [
        {
          "ids": 10000450,
          "table": "observations",
          "sub_var": "variableid",
          "class": "hrd_itm"
        }
      ],
      "miiv": [
        {
          "ids": 226707,
          "table": "chartevents",
          "sub_var": "itemid",
          "callback": "convert_unit(binary_op(`*`, 2.54), 'cm', '^in')"
        }
      ],
      "mimic": [
        {
          "ids": [920, 1394, 3485, 4187, 4188, 3486, 226707],
          "table": "chartevents",
          "sub_var": "itemid",
          "callback": "convert_unit(binary_op(`*`, 2.54), 'cm', '^in')"
        }
      ],
      "mimic_demo": [
        {
          "ids": [920, 1394, 3485, 4187, 4188, 3486, 226707],
          "table": "chartevents",
          "sub_var": "itemid",
          "callback": "convert_unit(binary_op(`*`, 2.54), 'cm', '^in')"
        }
      ],
      "sic": [
        {
          "table": "cases",
          "val_var": "HeightOnAdmission",
          "class": "col_itm"
        }
      ]
    }
  },
  "hgb": {
    "unit": "g/dL",
    "min": 4,
    "max": 18,
    "description": "hemoglobin",
    "omopid": 4118981,
    "category": "hematology",
    "sources": {
      "aumc": [
        {
          "ids": [6778, 9553, 9960, 10286, 19703],
          "table": "numericitems",
          "sub_var": "itemid",
          "callback": "convert_unit(binary_op(`*`, 1.611344), 'g/dL')"
        }
      ],
      "eicu": [
        {
          "ids": "Hgb",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "eicu_demo": [
        {
          "ids": "Hgb",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "hirid": [
        {
          "ids": [24000548, 24000836, 20000900],
          "table": "observations",
          "sub_var": "variableid",
          "callback": "convert_unit(binary_op(`*`, 0.1), 'g/dL', 'g/l')",
          "class": "hrd_itm"
        }
      ],
      "miiv": [
        {
          "ids": 51222,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": 51222,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": 51222,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "sic": [
        {
          "ids": [658, 289],
          "table": "laboratory",
          "sub_var": "LaboratoryID"
        }
      ]
    }
  },
  "hr": {
    "unit": ["bpm", "/min"],
    "min": 0,
    "max": 300,
    "description": "heart rate",
    "omopid": 4239408,
    "category": "vitals",
    "sources": {
      "aumc": [
        {
          "ids": 6640,
          "table": "numericitems",
          "sub_var": "itemid"
        }
      ],
      "eicu": [
        {
          "table": "vitalperiodic",
          "val_var": "heartrate",
          "class": "col_itm"
        }
      ],
      "eicu_demo": [
        {
          "table": "vitalperiodic",
          "val_var": "heartrate",
          "class": "col_itm"
        }
      ],
      "hirid": [
        {
          "ids": 200,
          "table": "observations",
          "sub_var": "variableid",
          "class": "hrd_itm"
        }
      ],
      "miiv": [
        {
          "ids": 220045,
          "table": "chartevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": [211, 220045],
          "table": "chartevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": [211, 220045],
          "table": "chartevents",
          "sub_var": "itemid"
        }
      ],
      "sic": [
        {
          "ids": 708,
          "table": "data_float_h",
          "sub_var": "DataID"
        }
      ]
    }
  },
  "inr_pt": {
    "description": "prothrombin time/international normalized ratio",
    "omopid": 4306239,
    "category": "hematology",
    "sources": {
      "aumc": [
        {
          "ids": 11893,
          "table": "numericitems",
          "sub_var": "itemid"
        }
      ],
      "eicu": [
        {
          "ids": "PT - INR",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "eicu_demo": [
        {
          "ids": "PT - INR",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "hirid": [
        {
          "ids": 24000567,
          "table": "observations",
          "sub_var": "variableid",
          "class": "hrd_itm"
        }
      ],
      "miiv": [
        {
          "ids": 51237,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": 51237,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": 51237,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ]
    }
  },
  "ins": {
    "unit": "units/hr",
    "min": 0,
    "description": "insulin",
    "omopid": 42537007,
    "category": "medications",
    "sources": {
      "aumc": [
        {
          "ids": [7624, 9014, 19129],
          "sub_var": "itemid",
          "table": "drugitems"
        }
      ],
      "eicu": [
        {
          "regex": "^insulin (250.+)?\\(((ml|units)/hr)?\\)$",
          "table": "infusiondrug",
          "sub_var": "drugname",
          "class": "rgx_itm"
        }
      ],
      "eicu_demo": [
        {
          "regex": "^insulin (250.+)?\\(((ml|units)/hr)?\\)$",
          "table": "infusiondrug",
          "sub_var": "drugname",
          "class": "rgx_itm"
        }
      ],
      "hirid": [
        {
          "ids": [15, 1000724],
          "table": "pharma",
          "sub_var": "pharmaid",
          "callback": "aggregate_fun('sum', 'units')"
        }
      ],
      "miiv": [
        {
          "ids": [223258, 223260],
          "table": "inputevents",
          "sub_var": "itemid",
          "val_var": "amount",
          "end_var": "endtime",
          "callback": "distribute_amount"
        }
      ],
      "mimic": [
        {
          "ids": [30045, 30100],
          "table": "inputevents_cv",
          "sub_var": "itemid"
        },
        {
          "ids": [223258, 223260],
          "table": "inputevents_mv",
          "sub_var": "itemid",
          "val_var": "amount",
          "end_var": "endtime",
          "callback": "distribute_amount"
        }
      ],
      "mimic_demo": [
        {
          "ids": [30045, 30100],
          "table": "inputevents_cv",
          "sub_var": "itemid"
        },
        {
          "ids": [223258, 223260],
          "table": "inputevents_mv",
          "sub_var": "itemid",
          "val_var": "amount",
          "end_var": "endtime",
          "callback": "distribute_amount"
        }
      ]
    }
  },
  "k": {
    "unit": ["mEq/L", "mmol/l"],
    "min": 0,
    "max": 10,
    "description": "potassium",
    "omopid": 4207483,
    "category": "chemistry",
    "sources": {
      "aumc": [
        {
          "ids": [6835, 9556, 9927, 10285],
          "table": "numericitems",
          "sub_var": "itemid"
        }
      ],
      "eicu": [
        {
          "ids": "potassium",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "eicu_demo": [
        {
          "ids": "potassium",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "hirid": [
        {
          "ids": [20000500, 24000520, 24000833, 24000867],
          "table": "observations",
          "sub_var": "variableid",
          "class": "hrd_itm"
        }
      ],
      "miiv": [
        {
          "ids": 50971,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": 50971,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": 50971,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "sic": [
        {
          "ids": [463, 685],
          "table": "laboratory",
          "sub_var": "LaboratoryID"
        }
      ]
    }
  },
  "lact": {
    "unit": "mmol/L",
    "min": 0,
    "max": 50,
    "description": "lactate",
    "omopid": 4191725,
    "category": "blood gas",
    "sources": {
      "aumc": [
        {
          "ids": [6837, 9580, 10053],
          "table": "numericitems",
          "sub_var": "itemid"
        }
      ],
      "eicu": [
        {
          "ids": "lactate",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "eicu_demo": [
        {
          "ids": "lactate",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "hirid": [
        {
          "ids": 24000524,
          "table": "observations",
          "sub_var": "variableid",
          "class": "hrd_itm"
        }
      ],
      "miiv": [
        {
          "ids": 50813,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": 50813,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": 50813,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "sic": [
        {
          "ids": [657, 454],
          "table": "laboratory",
          "sub_var": "LaboratoryID"
        }
      ]
    }
  },
  "los_hosp": {
    "unit": "days",
    "min": 0,
    "target": "id_tbl",
    "description": "hospital length of stay",
    "omopid": 462369952,
    "category": "outcome",
    "sources": {
      "eicu": [
        {
          "callback": "los_callback",
          "win_type": "hadm",
          "class": "fun_itm"
        }
      ],
      "eicu_demo": [
        {
          "callback": "los_callback",
          "win_type": "hadm",
          "class": "fun_itm"
        }
      ],
      "miiv": [
        {
          "callback": "los_callback",
          "win_type": "hadm",
          "class": "fun_itm"
        }
      ],
      "mimic": [
        {
          "callback": "los_callback",
          "win_type": "hadm",
          "class": "fun_itm"
        }
      ],
      "mimic_demo": [
        {
          "callback": "los_callback",
          "win_type": "hadm",
          "class": "fun_itm"
        }
      ]
    }
  },
  "los_icu": {
    "unit": "days",
    "min": 0,
    "target": "id_tbl",
    "description": "ICU length of stay",
    "category": "outcome",
    "sources": {
      "aumc": [
        {
          "callback": "los_callback",
          "win_type": "icustay",
          "class": "fun_itm"
        }
      ],
      "eicu": [
        {
          "callback": "los_callback",
          "win_type": "icustay",
          "class": "fun_itm"
        }
      ],
      "eicu_demo": [
        {
          "callback": "los_callback",
          "win_type": "icustay",
          "class": "fun_itm"
        }
      ],
      "hirid": [
        {
          "callback": "los_callback",
          "win_type": "icustay",
          "class": "fun_itm"
        }
      ],
      "miiv": [
        {
          "callback": "los_callback",
          "win_type": "icustay",
          "class": "fun_itm"
        }
      ],
      "mimic": [
        {
          "callback": "los_callback",
          "win_type": "icustay",
          "class": "fun_itm"
        }
      ],
      "mimic_demo": [
        {
          "callback": "los_callback",
          "win_type": "icustay",
          "class": "fun_itm"
        }
      ]
    }
  },
  "lymph": {
    "unit": "%",
    "min": 0,
    "max": 100,
    "description": "lymphocytes",
    "omopid": 4254663,
    "category": "hematology",
    "sources": {
      "aumc": [
        {
          "ids": 11846,
          "table": "numericitems",
          "sub_var": "itemid"
        },
        {
          "ids": 14258,
          "table": "numericitems",
          "sub_var": "itemid",
          "callback": "blood_cell_ratio"
        }
      ],
      "eicu": [
        {
          "ids": "-lymphs",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "eicu_demo": [
        {
          "ids": "-lymphs",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "hirid": [
        {
          "ids": 24000480,
          "table": "observations",
          "sub_var": "variableid",
          "callback": "blood_cell_ratio",
          "class": "hrd_itm"
        }
      ],
      "miiv": [
        {
          "ids": 51244,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": 51244,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": 51244,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "sic": [
        {
          "ids": 223,
          "table": "laboratory",
          "sub_var": "LaboratoryID"
        }
      ]
    }
  },
  "map": {
    "unit": ["mmHg", "mm Hg"],
    "min": 0,
    "max": 250,
    "description": "mean arterial pressure",
    "omopid": 4239021,
    "category": "vitals",
    "sources": {
      "aumc": [
        {
          "ids": 6642,
          "table": "numericitems",
          "sub_var": "itemid"
        }
      ],
      "eicu": [
        {
          "table": "vitalperiodic",
          "val_var": "systemicmean",
          "class": "col_itm"
        },
        {
          "table": "vitalaperiodic",
          "val_var": "noninvasivemean",
          "class": "col_itm"
        }
      ],
      "eicu_demo": [
        {
          "table": "vitalperiodic",
          "val_var": "systemicmean",
          "class": "col_itm"
        },
        {
          "table": "vitalaperiodic",
          "val_var": "noninvasivemean",
          "class": "col_itm"
        }
      ],
      "hirid": [
        {
          "ids": [110, 610],
          "table": "observations",
          "sub_var": "variableid",
          "class": "hrd_itm"
        }
      ],
      "miiv": [
        {
          "ids": [220052, 220181, 225312],
          "table": "chartevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": [52, 443, 456, 6072, 220052, 220181, 225312],
          "table": "chartevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": [52, 443, 456, 6072, 220052, 220181, 225312],
          "table": "chartevents",
          "sub_var": "itemid"
        }
      ],
      "sic": [
        {
          "ids": [703, 706],
          "table": "data_float_h",
          "sub_var": "DataID"
        }
      ]
    }
  },
  "mch": {
    "unit": "pg",
    "min": 0,
    "description": "mean corpuscular hemoglobin",
    "omopid": 4182871,
    "category": "hematology",
    "sources": {
      "aumc": [
        {
          "ids": 11679,
          "table": "numericitems",
          "sub_var": "itemid",
          "callback": "convert_unit(binary_op(`*`, 0.016113), 'pg')"
        }
      ],
      "eicu": [
        {
          "ids": "MCH",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "eicu_demo": [
        {
          "ids": "MCH",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "hirid": [
        {
          "ids": 24000160,
          "table": "observations",
          "sub_var": "variableid",
          "class": "hrd_itm"
        }
      ],
      "miiv": [
        {
          "ids": 51248,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": 51248,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": 51248,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "sic": [
        {
          "ids": 566,
          "table": "laboratory",
          "sub_var": "LaboratoryID"
        }
      ]
    }
  },
  "mchc": {
    "unit": "%",
    "min": 20,
    "max": 50,
    "description": "mean corpuscular hemoglobin concentration",
    "omopid": 4290193,
    "category": "hematology",
    "sources": {
      "aumc": [
        {
          "ids": 18666,
          "table": "numericitems",
          "sub_var": "itemid",
          "callback": "convert_unit(binary_op(`*`, 1.611), '%')"
        }
      ],
      "eicu": [
        {
          "ids": "MCHC",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "eicu_demo": [
        {
          "ids": "MCHC",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "hirid": [
        {
          "ids": 24000170,
          "table": "observations",
          "sub_var": "variableid",
          "callback": "convert_unit(binary_op(`*`, 0.16114), '%')",
          "class": "hrd_itm"
        }
      ],
      "miiv": [
        {
          "ids": 51249,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": 51249,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": 51249,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "sic": [
        {
          "ids": 290,
          "table": "laboratory",
          "sub_var": "LaboratoryID"
        }
      ]
    }
  },
  "mcv": {
    "unit": "fL",
    "min": 50,
    "max": 150,
    "description": "mean corpuscular volume",
    "omopid": 4016239,
    "category": "hematology",
    "sources": {
      "aumc": [
        {
          "ids": 9968,
          "table": "numericitems",
          "sub_var": "itemid"
        }
      ],
      "eicu": [
        {
          "ids": "MCV",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "eicu_demo": [
        {
          "ids": "MCV",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "hirid": [
        {
          "ids": 24000150,
          "table": "observations",
          "sub_var": "variableid",
          "class": "hrd_itm"
        }
      ],
      "miiv": [
        {
          "ids": 51250,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": 51250,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": 51250,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "sic": [
        {
          "ids": 286,
          "table": "laboratory",
          "sub_var": "LaboratoryID"
        }
      ]
    }
  },
  "mech_vent": {
    "class": "fct_cncpt",
    "target": "win_tbl",
    "levels": ["invasive", "noninvasive"],
    "description": "mechanical ventilation windows",
    "omopid": 4230167,
    "category": "respiratory",
    "sources": {
      "aumc": [
        {
          "ids": [9328, 10740, 12635],
          "table": "processitems",
          "sub_var": "itemid",
          "dur_var": "stop",
          "callback": "apply_map(c(`Beademen`              = 'invasive',\n                                     `Beademen non-invasief` = 'noninvasive',\n                                     `Tracheostoma`          = 'invasive'))"
        }
      ],
      "hirid": [
        {
          "ids": 15001552,
          "table": "observations",
          "sub_var": "variableid",
          "target": "ts_tbl",
          "interval": "00:01:00",
          "class": "hrd_itm",
          "callback": "combine_callbacks(hirid_vent,\n                                           apply_map(c(`1` = 'invasive',\n                                                       `2` = 'invasive',\n                                                       `3` = 'noninvasive',\n                                                       `4` = 'noninvasive',\n                                                       `5` = 'noninvasive',\n                                                       `6` = 'noninvasive')))"
        }
      ],
      "miiv": [
        {
          "ids": [225792, 225794],
          "table": "procedureevents",
          "sub_var": "itemid",
          "dur_var": "endtime",
          "callback": "apply_map(c(`225792` = 'invasive',\n                                     `225794` = 'noninvasive'),\n                                   var = 'sub_var')"
        }
      ]
    }
  },
  "methb": {
    "unit": "%",
    "min": 0,
    "max": 100,
    "description": "methemoglobin",
    "omopid": 4204561,
    "category": "blood gas",
    "sources": {
      "aumc": [
        {
          "ids": 11692,
          "table": "numericitems",
          "sub_var": "itemid"
        }
      ],
      "eicu": [
        {
          "ids": "Methemoglobin",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "eicu_demo": [
        {
          "ids": "Methemoglobin",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "hirid": [
        {
          "ids": 24000549,
          "table": "observations",
          "sub_var": "variableid",
          "class": "hrd_itm"
        }
      ],
      "miiv": [
        {
          "ids": 50814,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": 50814,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": 50814,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ]
    }
  },
  "mews": {
    "concepts": ["sbp", "hr", "resp", "temp", "avpu"],
    "description": "modified early warning score",
    "omopid": 40484211,
    "category": "outcome",
    "callback": "mews_score",
    "class": "rec_cncpt"
  },
  "mg": {
    "unit": "mg/dL",
    "min": 0.5,
    "max": 5,
    "description": "magnesium",
    "omopid": 4243005,
    "category": "chemistry",
    "sources": {
      "aumc": [
        {
          "ids": [6839, 9952],
          "table": "numericitems",
          "sub_var": "itemid",
          "callback": "convert_unit(binary_op(`*`, 2.431), 'mg/dL')"
        }
      ],
      "eicu": [
        {
          "ids": "magnesium",
          "table": "lab",
          "sub_var": "labname",
          "callback": "convert_unit(binary_op(`/`, 1.215), 'mg/dL', 'mEq/L')"
        }
      ],
      "eicu_demo": [
        {
          "ids": "magnesium",
          "table": "lab",
          "sub_var": "labname",
          "callback": "convert_unit(binary_op(`/`, 1.215), 'mg/dL', 'mEq/L')"
        }
      ],
      "hirid": [
        {
          "ids": 24000230,
          "table": "observations",
          "sub_var": "variableid",
          "callback": "convert_unit(binary_op(`*`, 2.431), 'mg/dL')",
          "class": "hrd_itm"
        }
      ],
      "miiv": [
        {
          "ids": 50960,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": 50960,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": 50960,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "sic": [
        {
          "ids": 468,
          "table": "laboratory",
          "sub_var": "LaboratoryID",
          "callback": "transform_fun(binary_op(`*`, 2.431))"
        }
      ]
    }
  },
  "mgcs": {
    "min": 1,
    "max": 6,
    "description": "GCS motor",
    "omopid": 4083352,
    "category": "neurological",
    "sources": {
      "aumc": [
        {
          "ids": 6734,
          "table": "listitems",
          "sub_var": "itemid",
          "callback": "apply_map( c(`Geen reactie` = 1, `Strekken` = 2, `Decortatie reflex (abnormaal buigen)` = 3, `Spastische reactie (terugtrekken)` = 4, `Localiseert pijn` = 5, `Volgt verbale commando's op` = 6) )"
        },
        {
          "ids": 13072,
          "table": "listitems",
          "sub_var": "itemid",
          "callback": "apply_map( c(`Geen reactie` = 1, `Strekken op pijn` = 2, `Abnormaal buigen bij pijn` = 3, `Terugtrekken bij pijn` = 4, `Localiseren pijn` = 5, `Voert opdrachten uit` = 6) )"
        }
      ],
      "eicu": [
        {
          "ids": "Motor",
          "table": "nursecharting",
          "sub_var": "nursingchartcelltypevalname"
        }
      ],
      "eicu_demo": [
        {
          "ids": "Motor",
          "table": "nursecharting",
          "sub_var": "nursingchartcelltypevalname"
        }
      ],
      "hirid": [
        {
          "ids": 10000200,
          "table": "observations",
          "sub_var": "variableid",
          "class": "hrd_itm"
        }
      ],
      "miiv": [
        {
          "ids": 223901,
          "table": "chartevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": [454, 223901],
          "table": "chartevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": [454, 223901],
          "table": "chartevents",
          "sub_var": "itemid"
        }
      ]
    }
  },
  "na": {
    "unit": ["mEq/L", "mmol/l"],
    "min": 110,
    "max": 165,
    "description": "sodium",
    "omopid": 4208938,
    "category": "chemistry",
    "sources": {
      "aumc": [
        {
          "ids": [6840, 9555, 9924, 10284],
          "table": "numericitems",
          "sub_var": "itemid"
        }
      ],
      "eicu": [
        {
          "ids": "sodium",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "eicu_demo": [
        {
          "ids": "sodium",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "hirid": [
        {
          "ids": [20000400, 24000519, 24000658, 24000835, 24000866],
          "table": "observations",
          "sub_var": "variableid",
          "class": "hrd_itm"
        }
      ],
      "miiv": [
        {
          "ids": 50983,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": 50983,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": 50983,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "sic": [
        {
          "ids": [469, 686],
          "table": "laboratory",
          "sub_var": "LaboratoryID"
        }
      ]
    }
  },
  "neut": {
    "unit": "%",
    "min": 0,
    "max": 100,
    "description": "neutrophils",
    "omopid": 4148615,
    "category": "hematology",
    "sources": {
      "aumc": [
        {
          "ids": [6786, 11856],
          "table": "numericitems",
          "sub_var": "itemid"
        },
        {
          "ids": 14254,
          "table": "numericitems",
          "sub_var": "itemid",
          "callback": "blood_cell_ratio"
        }
      ],
      "eicu": [
        {
          "ids": "-polys",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "eicu_demo": [
        {
          "ids": "-polys",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "hirid": [
        {
          "ids": 24000550,
          "table": "observations",
          "sub_var": "variableid",
          "class": "hrd_itm"
        }
      ],
      "miiv": [
        {
          "ids": 51256,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": 51256,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": 51256,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "sic": [
        {
          "ids": 230,
          "table": "laboratory",
          "sub_var": "LaboratoryID"
        }
      ]
    }
  },
  "news": {
    "concepts": ["resp", "o2sat", "supp_o2", "temp", "sbp", "hr", "avpu"],
    "description": "national early warning score",
    "omopid": 44808550,
    "category": "outcome",
    "callback": "news_score",
    "class": "rec_cncpt"
  },
  "norepi_dur": {
    "description": "norepinephrine duration",
    "category": "medications",
    "aggregate": "max",
    "sources": {
      "aumc": [
        {
          "ids": 7229,
          "table": "drugitems",
          "sub_var": "itemid",
          "stop_var": "stop",
          "grp_var": "orderid",
          "callback": "aumc_dur"
        }
      ],
      "eicu": [
        {
          "regex": "^norepi",
          "table": "infusiondrug",
          "sub_var": "drugname",
          "callback": "eicu_duration(gap_length = hours(5L))",
          "class": "rgx_itm"
        }
      ],
      "eicu_demo": [
        {
          "regex": "^norepi",
          "table": "infusiondrug",
          "sub_var": "drugname",
          "callback": "eicu_duration(gap_length = hours(5L))",
          "class": "rgx_itm"
        }
      ],
      "hirid": [
        {
          "ids": [1000462, 1000656, 1000657, 1000658],
          "table": "pharma",
          "sub_var": "pharmaid",
          "grp_var": "infusionid",
          "callback": "hirid_duration"
        }
      ],
      "miiv": [
        {
          "ids": 221906,
          "table": "inputevents",
          "sub_var": "itemid",
          "stop_var": "endtime",
          "grp_var": "linkorderid",
          "callback": "mimic_dur_inmv"
        }
      ],
      "mimic": [
        {
          "ids": [30047, 30120],
          "table": "inputevents_cv",
          "sub_var": "itemid",
          "grp_var": "linkorderid",
          "callback": "mimic_dur_incv"
        },
        {
          "ids": 221906,
          "table": "inputevents_mv",
          "sub_var": "itemid",
          "stop_var": "endtime",
          "grp_var": "linkorderid",
          "callback": "mimic_dur_inmv"
        }
      ],
      "mimic_demo": [
        {
          "ids": [30047, 30120],
          "table": "inputevents_cv",
          "sub_var": "itemid",
          "grp_var": "linkorderid",
          "callback": "mimic_dur_incv"
        },
        {
          "ids": 221906,
          "table": "inputevents_mv",
          "sub_var": "itemid",
          "stop_var": "endtime",
          "grp_var": "linkorderid",
          "callback": "mimic_dur_inmv"
        }
      ],
      "sic": [
        {
          "ids": [
            1562
          ],
          "table": "medication",
          "sub_var": "DrugID",
          "stop_var": "OffsetDrugEnd",
          "callback": "sic_dur"
        }
      ]
    }
  },
  "norepi_equiv": {
    "description": "norepinephrine equivalents",
    "category": "medications",
    "concepts": ["epi_rate", "norepi_rate", "dopa_rate", "adh_rate", "phn_rate"],
    "callback": "norepi_equiv",
    "class": "rec_cncpt"
  },
  "norepi_rate": {
    "unit": ["mcg/kg/min", "mcgkgmin"],
    "min": 0,
    "max": 3,
    "description": "norepinephrine rate",
    "omopid": 1321341,
    "category": "medications",
    "sources": {
      "aumc": [
        {
          "ids": 7229,
          "table": "drugitems",
          "sub_var": "itemid",
          "rel_weight": "doserateperkg",
          "rate_uom": "doserateunit",
          "stop_var": "stop",
          "callback": "aumc_rate_kg"
        }
      ],
      "eicu": [
        {
          "regex": "^norepi.*\\(.+\\)$",
          "table": "infusiondrug",
          "sub_var": "drugname",
          "weight_var": "patientweight",
          "callback": "eicu_rate_kg(ml_to_mcg = 32)",
          "class": "rgx_itm"
        }
      ],
      "eicu_demo": [
        {
          "regex": "^norepi.*\\(.+\\)$",
          "table": "infusiondrug",
          "sub_var": "drugname",
          "weight_var": "patientweight",
          "callback": "eicu_rate_kg(ml_to_mcg = 32)",
          "class": "rgx_itm"
        }
      ],
      "hirid": [
        {
          "ids": [1000462, 1000656, 1000657, 1000658],
          "table": "pharma",
          "sub_var": "pharmaid",
          "grp_var": "infusionid",
          "callback": "hirid_rate_kg"
        }
      ],
      "miiv": [
        {
          "ids": 221906,
          "table": "inputevents",
          "sub_var": "itemid",
          "stop_var": "endtime",
          "callback": "mimic_rate_mv"
        }
      ],
      "mimic": [
        {
          "ids": [30047, 30120],
          "table": "inputevents_cv",
          "sub_var": "itemid",
          "grp_var": "linkorderid",
          "callback": "mimic_rate_cv"
        },
        {
          "ids": 221906,
          "table": "inputevents_mv",
          "sub_var": "itemid",
          "stop_var": "endtime",
          "callback": "mimic_rate_mv"
        }
      ],
      "mimic_demo": [
        {
          "ids": [30047, 30120],
          "table": "inputevents_cv",
          "sub_var": "itemid",
          "grp_var": "linkorderid",
          "callback": "mimic_rate_cv"
        },
        {
          "ids": 221906,
          "table": "inputevents_mv",
          "sub_var": "itemid",
          "stop_var": "endtime",
          "callback": "mimic_rate_mv"
        }
      ],
      "sic": [
        {
          "ids": 1562,
          "table": "medication",
          "sub_var": "DrugID",
          "val_var": "AmountPerMinute",
          "stop_var": "OffsetDrugEnd",
          "callback": "sic_rate_kg"
        }
      ]
    }
  },
  "norepi60": {
    "concepts": ["norepi_rate", "norepi_dur"],
    "description": "norepinephrine administration for min 1h",
    "category": "outcome",
    "interval": "00:01:00",
    "callback": "vaso60",
    "class": "rec_cncpt"
  },
  "o2sat": {
    "unit": ["%", "% Sat."],
    "min": 50,
    "max": 100,
    "description": "oxygen saturation",
    "omopid": 4011919,
    "category": "respiratory",
    "sources": {
      "aumc": [
        {
          "ids": [6709, 8903],
          "table": "numericitems",
          "sub_var": "itemid"
        },
        {
          "ids": 12311,
          "table": "numericitems",
          "sub_var": "itemid",
          "callback": "transform_fun(binary_op(`*`, 100))"
        }
      ],
      "eicu": [
        {
          "table": "vitalperiodic",
          "val_var": "sao2",
          "unit_val": "%",
          "class": "col_itm"
        },
        {
          "ids": "O2 Sat (%)",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "eicu_demo": [
        {
          "table": "vitalperiodic",
          "val_var": "sao2",
          "unit_val": "%",
          "class": "col_itm"
        },
        {
          "ids": "O2 Sat (%)",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "hirid": [
        {
          "ids": [4000, 8280, 20000800],
          "table": "observations",
          "sub_var": "variableid",
          "class": "hrd_itm"
        }
      ],
      "miiv": [
        {
          "ids": [220277, 226253, 220227],
          "table": "chartevents",
          "sub_var": "itemid"
        },
        {
          "ids": 50817,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": [646, 834, 220277, 226253, 50817],
          "table": "chartevents",
          "sub_var": "itemid"
        },
        {
          "ids": 50817,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": [646, 834, 220277, 226253, 50817],
          "table": "chartevents",
          "sub_var": "itemid"
        },
        {
          "ids": 50817,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "sic": [
        {
          "ids": 710,
          "table": "data_float_h",
          "sub_var": "DataID"
        },
        {
          "ids": [184, 673, 690],
          "table": "laboratory",
          "sub_var": "LaboratoryID"
        }
      ]
    }
  },
  "pafi": {
    "concepts": ["po2", "fio2"],
    "description": "Horowitz index",
    "omopid": 4233883,
    "category": "respiratory",
    "aggregate": ["min", "max"],
    "callback": "pafi",
    "class": "rec_cncpt"
  },
  "pco2": {
    "unit": ["mmHg", "mm Hg"],
    "min": 10,
    "max": 150,
    "description": "CO2 partial pressure",
    "omopid": 4097882,
    "category": "blood gas",
    "sources": {
      "aumc": [
        {
          "ids": [6846, 9990, 21213],
          "table": "numericitems",
          "sub_var": "itemid"
        }
      ],
      "eicu": [
        {
          "ids": "paCO2",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "eicu_demo": [
        {
          "ids": "paCO2",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "hirid": [
        {
          "ids": 20001200,
          "table": "observations",
          "sub_var": "variableid",
          "class": "hrd_itm"
        }
      ],
      "miiv": [
        {
          "ids": 50818,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": 50818,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": 50818,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "sic": [
        {
          "ids": 687,
          "table": "laboratory",
          "sub_var": "LaboratoryID"
        }
      ]
    }
  },
  "ph": {
    "min": 6.8,
    "max": 8,
    "description": "pH of blood",
    "omopid": 4097822,
    "category": "blood gas",
    "sources": {
      "aumc": [
        {
          "ids": [6848, 12310],
          "table": "numericitems",
          "sub_var": "itemid"
        }
      ],
      "eicu": [
        {
          "ids": "pH",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "eicu_demo": [
        {
          "ids": "pH",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "hirid": [
        {
          "ids": 20000300,
          "table": "observations",
          "sub_var": "variableid",
          "class": "hrd_itm"
        }
      ],
      "miiv": [
        {
          "ids": 50820,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": 50820,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": 50820,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "sic": [
        {
          "ids": 688,
          "table": "laboratory",
          "sub_var": "LaboratoryID"
        }
      ]
    }
  },
  "phn_rate": {
    "unit": "mcg/kg/min",
    "description": "phenylephrine rate",
    "omopid": 1135766,
    "category": "medications",
    "sources": {
      "eicu": [
        {
          "regex": "^phenylephrine.*\\(.+\\)$",
          "table": "infusiondrug",
          "sub_var": "drugname",
          "weight_var": "patientweight",
          "callback": "eicu_rate_kg(ml_to_mcg = 200)",
          "class": "rgx_itm"
        }
      ],
      "eicu_demo": [
        {
          "regex": "^phenylephrine.*\\(.+\\)$",
          "table": "infusiondrug",
          "sub_var": "drugname",
          "weight_var": "patientweight",
          "callback": "eicu_rate_kg(ml_to_mcg = 200)",
          "class": "rgx_itm"
        }
      ],
      "miiv": [
        {
          "ids": 221749,
          "table": "inputevents",
          "sub_var": "itemid",
          "stop_var": "endtime",
          "callback": "mimic_rate_mv"
        }
      ],
      "mimic": [
        {
          "ids": 30127,
          "table": "inputevents_cv",
          "sub_var": "itemid",
          "grp_var": "linkorderid",
          "callback": "combine_callbacks(\n               mimic_kg_rate, mimic_rate_cv)\n             "
        },
        {
          "ids": 30128,
          "table": "inputevents_cv",
          "sub_var": "itemid",
          "grp_var": "linkorderid",
          "callback": "mimic_rate_cv"
        },
        {
          "ids": 221749,
          "table": "inputevents_mv",
          "sub_var": "itemid",
          "stop_var": "endtime",
          "callback": "mimic_rate_mv"
        }
      ],
      "mimic_demo": [
        {
          "ids": 30127,
          "table": "inputevents_cv",
          "sub_var": "itemid",
          "grp_var": "linkorderid",
          "callback": "combine_callbacks(\n               mimic_kg_rate, mimic_rate_cv)\n             "
        },
        {
          "ids": 30128,
          "table": "inputevents_cv",
          "sub_var": "itemid",
          "grp_var": "linkorderid",
          "callback": "mimic_rate_cv"
        },
        {
          "ids": 221749,
          "table": "inputevents_mv",
          "sub_var": "itemid",
          "stop_var": "endtime",
          "callback": "mimic_rate_mv"
        }
      ]
    }
  },
  "phos": {
    "unit": "mg/dL",
    "min": 0,
    "max": 40,
    "description": "phosphate",
    "omopid": 4017907,
    "category": "chemistry",
    "sources": {
      "aumc": [
        {
          "ids": [6828, 9935],
          "table": "numericitems",
          "sub_var": "itemid",
          "callback": "convert_unit(binary_op(`*`, 3.097521), 'mg/dL')"
        }
      ],
      "eicu": [
        {
          "ids": "phosphate",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "eicu_demo": [
        {
          "ids": "phosphate",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "hirid": [
        {
          "ids": 20002500,
          "table": "observations",
          "sub_var": "variableid",
          "callback": "convert_unit(binary_op(`*`, 3.097521), 'mg/dL')",
          "class": "hrd_itm"
        }
      ],
      "miiv": [
        {
          "ids": 50970,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": 50970,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": 50970,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "sic": [
        {
          "ids": 471,
          "table": "laboratory",
          "sub_var": "LaboratoryID",
          "callback": "transform_fun(binary_op(`*`, 3.097521))"
        }
      ]
    }
  },
  "plt": {
    "unit": ["K/uL", "G/l"],
    "min": 5,
    "max": 1200,
    "description": "platelet count",
    "omopid": 4267147,
    "category": "hematology",
    "sources": {
      "aumc": [
        {
          "ids": [6797, 9964, 10409, 14252],
          "table": "numericitems",
          "sub_var": "itemid"
        }
      ],
      "eicu": [
        {
          "ids": "platelets x 1000",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "eicu_demo": [
        {
          "ids": "platelets x 1000",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "hirid": [
        {
          "ids": 20000110,
          "table": "observations",
          "sub_var": "variableid",
          "class": "hrd_itm"
        }
      ],
      "miiv": [
        {
          "ids": 51265,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": 51265,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": 51265,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "sic": [
        {
          "ids": 314,
          "table": "laboratory",
          "sub_var": "LaboratoryID"
        }
      ]
    }
  },
  "po2": {
    "unit": ["mmHg", "mm Hg"],
    "min": 40,
    "max": 600,
    "description": "O2 partial pressure",
    "omopid": 4094581,
    "category": "blood gas",
    "sources": {
      "aumc": [
        {
          "ids": [7433, 9996, 21214],
          "table": "numericitems",
          "sub_var": "itemid"
        }
      ],
      "eicu": [
        {
          "ids": "paO2",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "eicu_demo": [
        {
          "ids": "paO2",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "hirid": [
        {
          "ids": 20000200,
          "table": "observations",
          "sub_var": "variableid",
          "class": "hrd_itm"
        }
      ],
      "miiv": [
        {
          "ids": 50821,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": 50821,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": 50821,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "sic": [
        {
          "ids": [664, 689],
          "table": "laboratory",
          "sub_var": "LaboratoryID"
        }
      ]
    }
  },
  "pt": {
    "unit": "sec",
    "min": 0,
    "description": "prothrombine time",
    "omopid": 4245261,
    "category": "hematology",
    "sources": {
      "aumc": [
        {
          "ids": 6789,
          "table": "numericitems",
          "sub_var": "itemid"
        }
      ],
      "eicu": [
        {
          "ids": "PT",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "eicu_demo": [
        {
          "ids": "PT",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "miiv": [
        {
          "ids": 51274,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": 51274,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": 51274,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "sic": [
        {
          "ids": 598,
          "table": "laboratory",
          "sub_var": "LaboratoryID"
        }
      ]
    }
  },
  "ptt": {
    "unit": "sec",
    "min": 0,
    "description": "partial thromboplastin time",
    "omopid": 4175016,
    "category": "hematology",
    "sources": {
      "aumc": [
        {
          "ids": 17982,
          "table": "numericitems",
          "sub_var": "itemid"
        }
      ],
      "eicu": [
        {
          "ids": "PTT",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "eicu_demo": [
        {
          "ids": "PTT",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "hirid": [
        {
          "ids": 20004410,
          "table": "observations",
          "sub_var": "variableid",
          "class": "hrd_itm"
        }
      ],
      "miiv": [
        {
          "ids": 51275,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": 51275,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": 51275,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "sic": [
        {
          "ids": 597,
          "table": "laboratory",
          "sub_var": "LaboratoryID"
        }
      ]
    }
  },
  "qsofa": {
    "concepts": ["gcs", "sbp", "resp"],
    "description": "quick SOFA score",
    "omopid": 1616732,
    "category": "outcome",
    "callback": "qsofa_score",
    "class": "rec_cncpt"
  },
  "rass": {
    "min": -5,
    "max": 4,
    "description": "Richmond agitation sedation scale",
    "omopid": 36684829,
    "category": "neurological",
    "sources": {
      "aumc": [
        {
          "ids": 14444,
          "sub_var": "itemid",
          "table": "listitems",
          "callback": "transform_fun(aumc_rass)"
        }
      ],
      "eicu": [
        {
          "ids": "Sedation Score",
          "table": "nursecharting",
          "sub_var": "nursingchartcelltypevalname"
        }
      ],
      "eicu_demo": [
        {
          "ids": "Sedation Score",
          "table": "nursecharting",
          "sub_var": "nursingchartcelltypevalname"
        }
      ],
      "hirid": [
        {
          "ids": 15001565,
          "table": "observations",
          "sub_var": "variableid",
          "callback": "transform_fun(floor)",
          "class": "hrd_itm"
        }
      ],
      "miiv": [
        {
          "ids": 228096,
          "table": "chartevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": 228096,
          "table": "chartevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": 228096,
          "table": "chartevents",
          "sub_var": "itemid"
        }
      ]
    }
  },
  "rbc": {
    "unit": "m/uL",
    "min": 0,
    "max": 20,
    "description": "red blood cell count",
    "omopid": 4030871,
    "category": "hematology",
    "sources": {
      "aumc": [
        {
          "ids": [6774, 9962],
          "table": "numericitems",
          "sub_var": "itemid"
        }
      ],
      "eicu": [
        {
          "ids": "RBC",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "eicu_demo": [
        {
          "ids": "RBC",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "miiv": [
        {
          "ids": 51279,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": 51279,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": 51279,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "sic": [
        {
          "ids": 599,
          "table": "laboratory",
          "sub_var": "LaboratoryID"
        }
      ]
    }
  },
  "rdw": {
    "unit": "%",
    "min": 0,
    "max": 100,
    "description": "erythrocyte distribution width",
    "omopid": 4281085,
    "category": "hematology",
    "sources": {
      "aumc": [
        {
          "ids": 18952,
          "table": "numericitems",
          "sub_var": "itemid"
        }
      ],
      "eicu": [
        {
          "ids": "RDW",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "eicu_demo": [
        {
          "ids": "RDW",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "miiv": [
        {
          "ids": 51277,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": 51277,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": 51277,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "sic": [
        {
          "ids": 3319,
          "table": "laboratory",
          "sub_var": "LaboratoryID"
        }
      ]
    }
  },
  "resp": {
    "unit": ["insp/min", "/min"],
    "min": 0,
    "max": 120,
    "description": "respiratory rate",
    "omopid": 4313591,
    "category": "respiratory",
    "sources": {
      "aumc": [
        {
          "ids": [8874, 12266],
          "table": "numericitems",
          "sub_var": "itemid"
        }
      ],
      "eicu": [
        {
          "table": "vitalperiodic",
          "val_var": "respiration",
          "class": "col_itm"
        }
      ],
      "eicu_demo": [
        {
          "table": "vitalperiodic",
          "val_var": "respiration",
          "class": "col_itm"
        }
      ],
      "hirid": [
        {
          "ids": [300, 310],
          "table": "observations",
          "sub_var": "variableid",
          "class": "hrd_itm"
        }
      ],
      "miiv": [
        {
          "ids": [220210, 224688, 224689, 224690],
          "table": "chartevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": [618, 619, 220210, 224688, 224689, 224690],
          "table": "chartevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": [618, 619, 220210, 224688, 224689, 224690],
          "table": "chartevents",
          "sub_var": "itemid"
        }
      ],
      "sic": [
        {
          "ids": 719,
          "table": "data_float_h",
          "sub_var": "DataID"
        }
      ]
    }
  },
  "safi": {
    "concepts": ["o2sat", "fio2"],
    "description": "SaO2/FiO2",
    "category": "respiratory",
    "aggregate": ["min", "max"],
    "callback": "safi",
    "class": "rec_cncpt"
  },
  "samp": {
    "class": "lgl_cncpt",
    "category": "microbiology",
    "description": "body fluid sampling",
    "omopid": 4133843,
    "sources": {
      "aumc": [
        {
          "ids": [8097, 8418, 8588, 9189, 9190, 9191, 9192, 9193, 9194, 9195, 9197, 9198, 9200, 9202, 9203, 9204, 9205, 13024, 19663, 19664],
          "table": "procedureorderitems",
          "sub_var": "itemid",
          "callback": "transform_fun(set_val(TRUE))"
        }
      ],
      "eicu": [
        {
          "table": "microlab",
          "val_var": "organism",
          "callback": "transform_fun(comp_na(`!=`, 'no growth'))",
          "class": "col_itm"
        }
      ],
      "eicu_demo": [
        {
          "table": "microlab",
          "val_var": "organism",
          "callback": "transform_fun(comp_na(`!=`, 'no growth'))",
          "class": "col_itm"
        }
      ],
      "miiv": [
        {
          "table": "microbiologyevents",
          "val_var": "org_itemid",
          "callback": "mimic_sampling",
          "aux_time": "charttime",
          "class": "col_itm"
        }
      ],
      "mimic": [
        {
          "table": "microbiologyevents",
          "val_var": "org_itemid",
          "callback": "mimic_sampling",
          "aux_time": "charttime",
          "class": "col_itm"
        }
      ],
      "mimic_demo": [
        {
          "table": "microbiologyevents",
          "val_var": "org_itemid",
          "callback": "mimic_sampling",
          "aux_time": "charttime",
          "class": "col_itm"
        }
      ]
    }
  },
  "sao2": {
    "unit": ["%", "% Sat."],
    "min": 50,
    "max": 100,
    "description": "arterial oxygen saturation",
    "omopid": 40483579,
    "category": "respiratory",
    "sources": {
      "aumc": [
        {
          "ids": 12311,
          "table": "numericitems",
          "sub_var": "itemid",
          "callback": "transform_fun(binary_op(`*`, 100))"
        }
      ],
      "eicu": [
        {
          "ids": "O2 Sat (%)",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "eicu_demo": [
        {
          "ids": "O2 Sat (%)",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "hirid": [
        {
          "ids": 20000800,
          "table": "observations",
          "sub_var": "variableid",
          "class": "hrd_itm"
        }
      ],
      "miiv": [
        {
          "ids": 220227,
          "table": "chartevents",
          "sub_var": "itemid"
        },
        {
          "ids": 50817,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": [834, 220227],
          "table": "chartevents",
          "sub_var": "itemid"
        },
        {
          "ids": 50817,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": [834, 220227],
          "table": "chartevents",
          "sub_var": "itemid"
        },
        {
          "ids": 50817,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "sic": [
        {
          "ids": [184, 673, 690],
          "table": "laboratory",
          "sub_var": "LaboratoryID"
        }
      ]
    }
  },
  "sbp": {
    "unit": ["mmHg", "mm Hg"],
    "min": 0,
    "max": 300,
    "description": "systolic blood pressure",
    "omopid": 4152194,
    "category": "vitals",
    "sources": {
      "aumc": [
        {
          "ids": 6641,
          "table": "numericitems",
          "sub_var": "itemid"
        }
      ],
      "eicu": [
        {
          "table": "vitalperiodic",
          "val_var": "systemicsystolic",
          "class": "col_itm"
        }
      ],
      "eicu_demo": [
        {
          "table": "vitalperiodic",
          "val_var": "systemicsystolic",
          "class": "col_itm"
        }
      ],
      "hirid": [
        {
          "ids": 100,
          "table": "observations",
          "sub_var": "variableid",
          "class": "hrd_itm"
        }
      ],
      "miiv": [
        {
          "ids": [220050, 220179],
          "table": "chartevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": [51, 455, 6701, 220050, 220179],
          "table": "chartevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": [51, 455, 6701, 220050, 220179],
          "table": "chartevents",
          "sub_var": "itemid"
        }
      ],
      "sic": [
        {
          "ids": [701, 704],
          "table": "data_float_h",
          "sub_var": "DataID"
        }
      ]
    }
  },
  "sep3": {
    "concepts": ["sofa", "susp_inf"],
    "description": "sepsis-3 criterion",
    "omopid": 132797,
    "category": "outcome",
    "callback": "sep3",
    "keep_components": [false, true],
    "class": "rec_cncpt"
  },
  "sex": {
    "target": "id_tbl",
    "levels": ["Female", "Male"],
    "class": "fct_cncpt",
    "description": "patient sex",
    "omopid": 37116947,
    "category": "demographics",
    "sources": {
      "aumc": [
        {
          "val_var": "gender",
          "table": "admissions",
          "callback": "apply_map(c(Vrouw = 'Female', Man = 'Male'))",
          "class": "col_itm"
        }
      ],
      "eicu": [
        {
          "table": "patient",
          "val_var": "gender",
          "class": "col_itm"
        }
      ],
      "eicu_demo": [
        {
          "table": "patient",
          "val_var": "gender",
          "class": "col_itm"
        }
      ],
      "hirid": [
        {
          "table": "general",
          "val_var": "sex",
          "callback": "apply_map(c(M = 'Male', F = 'Female'))",
          "class": "col_itm"
        }
      ],
      "miiv": [
        {
          "table": "patients",
          "val_var": "gender",
          "callback": "apply_map(c(M = 'Male', F = 'Female'))",
          "class": "col_itm"
        }
      ],
      "mimic": [
        {
          "table": "patients",
          "val_var": "gender",
          "callback": "apply_map(c(M = 'Male', F = 'Female'))",
          "class": "col_itm"
        }
      ],
      "mimic_demo": [
        {
          "table": "patients",
          "val_var": "gender",
          "callback": "apply_map(c(M = 'Male', F = 'Female'))",
          "class": "col_itm"
        }
      ],
      "sic": [
        {
          "table": "cases",
          "val_var": "Sex",
          "callback": "apply_map(c(`735` = 'Male', `736` = 'Female'))",
          "class": "col_itm"
        }
      ]
    }
  },
  "sirs": {
    "concepts": ["temp", "hr", "resp", "pco2", "wbc", "bnd"],
    "description": "systemic inflammatory response syndrome score",
    "omopid": 4140444,
    "category": "outcome",
    "callback": "sirs_score",
    "class": "rec_cncpt"
  },
  "sofa": {
    "concepts": ["sofa_resp", "sofa_coag", "sofa_liver", "sofa_cardio", "sofa_cns", "sofa_renal"],
    "description": "sequential organ failure assessment score",
    "omopid": 1616852,
    "category": "outcome",
    "callback": "sofa_score",
    "class": "rec_cncpt"
  },
  "sofa_cardio": {
    "concepts": ["map", "dopa60", "norepi60", "dobu60", "epi60"],
    "description": "SOFA cardiovascular component",
    "omopid": 1617534,
    "category": "outcome",
    "aggregate": ["min", "max", "max", "max", "max"],
    "callback": "sofa_cardio",
    "class": "rec_cncpt"
  },
  "sofa_cns": {
    "concepts": "gcs",
    "description": "SOFA central nervous system component",
    "omopid": 1616439,
    "category": "outcome",
    "callback": "sofa_cns",
    "class": "rec_cncpt"
  },
  "sofa_coag": {
    "concepts": "plt",
    "description": "SOFA coagulation component",
    "omopid": 1616896,
    "category": "outcome",
    "aggregate": "min",
    "callback": "sofa_coag",
    "class": "rec_cncpt"
  },
  "sofa_liver": {
    "concepts": "bili",
    "description": "SOFA liver component",
    "omopid": 1617043,
    "category": "outcome",
    "aggregate": "max",
    "callback": "sofa_liver",
    "class": "rec_cncpt"
  },
  "sofa_renal": {
    "concepts": ["crea", "urine24"],
    "description": "SOFA renal component",
    "omopid": 1616355,
    "category": "outcome",
    "aggregate": ["max", null],
    "callback": "sofa_renal",
    "class": "rec_cncpt"
  },
  "sofa_resp": {
    "concepts": ["pafi", "vent_ind"],
    "description": "SOFA respiratory component",
    "omopid": 1616907,
    "category": "outcome",
    "callback": "sofa_resp",
    "class": "rec_cncpt"
  },
  "spo2": {
    "unit": ["%", "% Sat."],
    "min": 50,
    "max": 100,
    "description": "oxygen saturation",
    "omopid": 4196147,
    "category": "respiratory",
    "sources": {
      "aumc": [
        {
          "ids": [6709, 8903],
          "table": "numericitems",
          "sub_var": "itemid"
        }
      ],
      "eicu": [
        {
          "table": "vitalperiodic",
          "val_var": "sao2",
          "unit_val": "%",
          "class": "col_itm"
        }
      ],
      "eicu_demo": [
        {
          "table": "vitalperiodic",
          "val_var": "sao2",
          "unit_val": "%",
          "class": "col_itm"
        }
      ],
      "hirid": [
        {
          "ids": [4000, 8280],
          "table": "observations",
          "sub_var": "variableid",
          "class": "hrd_itm"
        }
      ],
      "miiv": [
        {
          "ids": [220277, 226253],
          "table": "chartevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": [646, 220277, 226253],
          "table": "chartevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": [646, 220277, 226253],
          "table": "chartevents",
          "sub_var": "itemid"
        }
      ],
      "sic": [
        {
          "ids": 710,
          "table": "data_float_h",
          "sub_var": "DataID"
        }
      ]
    }
  },
  "supp_o2": {
    "concepts": ["vent_ind", "fio2"],
    "description": "supplemental oxygen",
    "omopid": 36304401,
    "category": "respiratory",
    "callback": "supp_o2",
    "class": "rec_cncpt"
  },
  "susp_inf": {
    "concepts": ["abx", "samp"],
    "description": "suspected infection",
    "omopid": 43021378,
    "category": "outcome",
    "aggregate": [
      [
        "sum"
      ],
      [
        false
      ]
    ],
    "callback": "susp_inf",
    "class": "rec_cncpt"
  },
  "tco2": {
    "unit": "mEq/L",
    "min": 5,
    "max": 60,
    "description": "totcal CO2",
    "omopid": 4193415,
    "category": "blood gas",
    "sources": {
      "eicu": [
        {
          "ids": "Total CO2",
          "table": "lab",
          "sub_var": "labname",
          "callback": "convert_unit(set_val(NA), 'mEq/L', 'lpm')"
        }
      ],
      "eicu_demo": [
        {
          "ids": "Total CO2",
          "table": "lab",
          "sub_var": "labname",
          "callback": "convert_unit(set_val(NA), 'mEq/L', 'lpm')"
        }
      ],
      "miiv": [
        {
          "ids": 50804,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": 50804,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": 50804,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ]
    }
  },
  "temp": {
    "unit": ["C", "°C"],
    "min": 32,
    "max": 42,
    "description": "temperature",
    "omopid": 4302666,
    "category": "vitals",
    "sources": {
      "aumc": [
        {
          "ids": [8658, 13952, 16110],
          "table": "numericitems",
          "sub_var": "itemid"
        }
      ],
      "eicu": [
        {
          "table": "vitalperiodic",
          "val_var": "temperature",
          "class": "col_itm"
        }
      ],
      "eicu_demo": [
        {
          "table": "vitalperiodic",
          "val_var": "temperature",
          "class": "col_itm"
        }
      ],
      "hirid": [
        {
          "ids": [410, 400, 7100],
          "table": "observations",
          "sub_var": "variableid",
          "class": "hrd_itm"
        }
      ],
      "miiv": [
        {
          "ids": 223762,
          "table": "chartevents",
          "sub_var": "itemid"
        },
        {
          "ids": [223761, 224027],
          "table": "chartevents",
          "sub_var": "itemid",
          "callback": "convert_unit(fahr_to_cels, 'C', 'f')"
        }
      ],
      "mimic": [
        {
          "ids": [676, 677, 223762],
          "table": "chartevents",
          "sub_var": "itemid"
        },
        {
          "ids": [678, 679, 223761, 224027],
          "table": "chartevents",
          "sub_var": "itemid",
          "callback": "convert_unit(fahr_to_cels, 'C', 'f')"
        }
      ],
      "mimic_demo": [
        {
          "ids": [676, 677, 223762],
          "table": "chartevents",
          "sub_var": "itemid"
        },
        {
          "ids": [678, 679, 223761, 224027],
          "table": "chartevents",
          "sub_var": "itemid",
          "callback": "convert_unit(fahr_to_cels, 'C', 'f')"
        }
      ],
      "sic": [
        {
          "ids": 709,
          "table": "data_float_h",
          "sub_var": "DataID"
        }
      ]
    }
  },
  "tgcs": {
    "min": 3,
    "max": 15,
    "description": "GCS total",
    "omopid": 4093836,
    "category": "neurological",
    "sources": {
      "eicu": [
        {
          "ids": "GCS Total",
          "table": "nursecharting",
          "sub_var": "nursingchartcelltypevalname"
        }
      ],
      "eicu_demo": [
        {
          "ids": "GCS Total",
          "table": "nursecharting",
          "sub_var": "nursingchartcelltypevalname"
        }
      ],
      "mimic": [
        {
          "ids": 198,
          "table": "chartevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": 198,
          "table": "chartevents",
          "sub_var": "itemid"
        }
      ]
    }
  },
  "tnt": {
    "unit": "ng/mL",
    "min": 0,
    "description": "troponin t",
    "omopid": 4005525,
    "category": "chemistry",
    "sources": {
      "aumc": [
        {
          "ids": 10407,
          "table": "numericitems",
          "sub_var": "itemid"
        }
      ],
      "eicu": [
        {
          "ids": "troponin - T",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "eicu_demo": [
        {
          "ids": "troponin - T",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "hirid": [
        {
          "ids": 24000806,
          "table": "observations",
          "sub_var": "variableid",
          "callback": "convert_unit(binary_op(`/`, 1000), 'ng/mL')",
          "class": "hrd_itm"
        }
      ],
      "miiv": [
        {
          "ids": 51003,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": 51003,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": 51003,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "sic": [
        {
          "ids": 481,
          "table": "laboratory",
          "sub_var": "LaboratoryID",
          "callback": "transform_fun(binary_op(`/`, 1000))"
        }
      ]
    }
  },
  "tri": {
    "unit": "ng/mL",
    "min": 0,
    "description": "troponin I",
    "omopid": 4007805,
    "category": "chemistry",
    "sources": {
      "eicu": [
        {
          "ids": "troponin - I",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "eicu_demo": [
        {
          "ids": "troponin - I",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "miiv": [
        {
          "ids": 51002,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": 51002,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": 51002,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "sic": [
        {
          "ids": 270,
          "table": "laboratory",
          "sub_var": "LaboratoryID"
        }
      ]
    }
  },
  "urine": {
    "unit": "mL",
    "min": 0,
    "max": 2000,
    "aggregate": "sum",
    "description": "urine output",
    "omopid": 4264378,
    "category": "output",
    "sources": {
      "aumc": [
        {
          "ids": 8794,
          "table": "numericitems",
          "sub_var": "itemid"
        }
      ],
      "eicu": [
        {
          "ids": ["Urine", "URINE CATHETER"],
          "table": "intakeoutput",
          "sub_var": "celllabel"
        },
        {
          "regex": "catheter.+output|output.+catheter",
          "table": "intakeoutput",
          "sub_var": "celllabel",
          "class": "rgx_itm"
        }
      ],
      "eicu_demo": [
        {
          "ids": ["Urine", "URINE CATHETER"],
          "table": "intakeoutput",
          "sub_var": "celllabel"
        },
        {
          "regex": "catheter.+output|output.+catheter",
          "table": "intakeoutput",
          "sub_var": "celllabel",
          "class": "rgx_itm"
        }
      ],
      "hirid": [
        {
          "ids": 30005110,
          "table": "observations",
          "sub_var": "variableid",
          "callback": "hirid_urine",
          "class": "hrd_itm"
        }
      ],
      "miiv": [
        {
          "ids": [226557, 226558, 226559, 226560, 226561, 226563, 226564, 226565, 226566, 226567, 226584, 227510],
          "table": "outputevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": [40055, 40056, 40057, 40065, 40069, 40085, 40086, 40094, 40096, 40405, 40428, 40473, 40715, 43175, 226557, 226558, 226559, 226560, 226561, 226563, 226564, 226565, 226566, 226567, 226584, 227510],
          "table": "outputevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": [40055, 40056, 40057, 40065, 40069, 40085, 40086, 40094, 40096, 40405, 40428, 40473, 40715, 43175, 226557, 226558, 226559, 226560, 226561, 226563, 226564, 226565, 226566, 226567, 226584, 227510],
          "table": "outputevents",
          "sub_var": "itemid"
        }
      ],
      "sic": [
        {
          "ids": 725,
          "table": "data_float_h",
          "sub_var": "DataID"
        }
      ]
    }
  },
  "urine24": {
    "concepts": "urine",
    "description": "urine output per 24h",
    "omopid": 4191836,
    "category": "output",
    "callback": "urine24",
    "class": "rec_cncpt"
  },
  "vaso_ind": {
    "concepts": ["dopa_dur", "norepi_dur", "dobu_dur", "epi_dur"],
    "description": "vasopressor indicator",
    "omopid": 3655896,
    "category": "medications",
    "callback": "vaso_ind",
    "class": "rec_cncpt"
  },
  "vent_end": {
    "class": "lgl_cncpt",
    "description": "ventilation end",
    "category": "respiratory",
    "sources": {
      "eicu": [
        {
          "table": "respiratorycare",
          "val_var": "ventendoffset",
          "callback": "vent_flag",
          "class": "col_itm"
        },
        {
          "table": "respiratorycare",
          "val_var": "priorventendoffset",
          "callback": "vent_flag",
          "class": "col_itm"
        },
        {
          "ids": ["off", "Off", "Suspended"],
          "table": "respiratorycharting",
          "sub_var": "respchartvalue",
          "val_var": "respchartvaluelabel",
          "callback": "transform_fun(set_val(TRUE))"
        }
      ],
      "eicu_demo": [
        {
          "table": "respiratorycare",
          "val_var": "ventendoffset",
          "callback": "vent_flag",
          "class": "col_itm"
        },
        {
          "table": "respiratorycare",
          "val_var": "priorventendoffset",
          "callback": "vent_flag",
          "class": "col_itm"
        },
        {
          "ids": ["off", "Off", "Suspended"],
          "table": "respiratorycharting",
          "sub_var": "respchartvalue",
          "val_var": "respchartvaluelabel",
          "callback": "transform_fun(set_val(TRUE))"
        }
      ],
      "mimic": [
        {
          "ids": [225468, 225477, 227194],
          "table": "procedureevents_mv",
          "sub_var": "itemid",
          "callback": "transform_fun(set_val(TRUE))"
        },
        {
          "ids": [467, 469, 226732],
          "table": "chartevents",
          "sub_var": "itemid",
          "callback": "transform_fun(set_val(TRUE))"
        }
      ],
      "mimic_demo": [
        {
          "ids": [225468, 225477, 227194],
          "table": "procedureevents_mv",
          "sub_var": "itemid",
          "callback": "transform_fun(set_val(TRUE))"
        },
        {
          "ids": [467, 469, 226732],
          "table": "chartevents",
          "sub_var": "itemid",
          "callback": "transform_fun(set_val(TRUE))"
        }
      ]
    }
  },
  "vent_ind": {
    "concepts": ["vent_start", "vent_end", "mech_vent"],
    "description": "ventilation durations",
    "omopid": 4230167,
    "category": "respiratory",
    "interval": "00:01:00",
    "callback": "vent_ind",
    "target": "win_tbl",
    "class": "rec_cncpt"
  },
  "vent_start": {
    "class": "lgl_cncpt",
    "description": "ventilation start",
    "category": "respiratory",
    "sources": {
      "eicu": [
        {
          "table": "respiratorycare",
          "val_var": "ventstartoffset",
          "callback": "vent_flag",
          "class": "col_itm"
        },
        {
          "table": "respiratorycare",
          "val_var": "priorventstartoffset",
          "callback": "vent_flag",
          "class": "col_itm"
        },
        {
          "ids": ["Start", "Continued", "respFlowPtVentData"],
          "table": "respiratorycharting",
          "sub_var": "respcharttypecat",
          "callback": "transform_fun(set_val(TRUE))"
        }
      ],
      "eicu_demo": [
        {
          "table": "respiratorycare",
          "val_var": "ventstartoffset",
          "callback": "vent_flag",
          "class": "col_itm"
        },
        {
          "table": "respiratorycare",
          "val_var": "priorventstartoffset",
          "callback": "vent_flag",
          "class": "col_itm"
        },
        {
          "ids": ["Start", "Continued", "respFlowPtVentData"],
          "table": "respiratorycharting",
          "sub_var": "respcharttypecat",
          "callback": "transform_fun(set_val(TRUE))"
        }
      ],
      "mimic": [
        {
          "ids": [1, 60, 218, 221, 223, 436, 437, 444, 445, 448, 449, 450, 459, 501, 502, 503, 505, 506, 535, 543, 639, 654, 667, 668, 669, 670, 671, 672, 681, 682, 683, 684, 686, 1211, 1340, 1486, 1600, 1655, 2000, 3459, 5865, 5866, 220339, 223848, 223849, 224419, 224684, 224685, 224686, 224687, 224695, 224696, 224697, 224700, 224701, 224702, 224703, 224704, 224705, 224706, 224707, 224709, 224738, 224746, 224747, 224750, 226873, 227187],
          "table": "chartevents",
          "sub_var": "itemid",
          "callback": "transform_fun(set_val(TRUE))"
        }
      ],
      "mimic_demo": [
        {
          "ids": [1, 60, 218, 221, 223, 436, 437, 444, 445, 448, 449, 450, 459, 501, 502, 503, 505, 506, 535, 543, 639, 654, 667, 668, 669, 670, 671, 672, 681, 682, 683, 684, 686, 1211, 1340, 1486, 1600, 1655, 2000, 3459, 5865, 5866, 220339, 223848, 223849, 224419, 224684, 224685, 224686, 224687, 224695, 224696, 224697, 224700, 224701, 224702, 224703, 224704, 224705, 224706, 224707, 224709, 224738, 224746, 224747, 224750, 226873, 227187],
          "table": "chartevents",
          "sub_var": "itemid",
          "callback": "transform_fun(set_val(TRUE))"
        }
      ]
    }
  },
  "vgcs": {
    "min": 1,
    "max": 5,
    "description": "GCS verbal",
    "omopid": 4084912,
    "category": "neurological",
    "sources": {
      "aumc": [
        {
          "ids": 6735,
          "table": "listitems",
          "sub_var": "itemid",
          "callback": "apply_map( c(`Geen reactie (geen zichtbare poging tot praten)` = 1, `Onbegrijpelijke geluiden` = 2, `Onduidelijke woorden (pogingen tot communicatie, maar onduidelijk)` = 3, `Verwarde conversatie` = 4, `Helder en adequaat (communicatie mogelijk)` = 5) )"
        },
        {
          "ids": 13066,
          "table": "listitems",
          "sub_var": "itemid",
          "callback": "apply_map( c(`Geen geluid` = 1, `Onverstaanbare woorden` = 2, `Onjuiste woorden` = 3, `Verwarde taal` = 4, `Georiënteerd` = 5) )"
        }
      ],
      "eicu": [
        {
          "ids": "Verbal",
          "table": "nursecharting",
          "sub_var": "nursingchartcelltypevalname"
        }
      ],
      "eicu_demo": [
        {
          "ids": "Verbal",
          "table": "nursecharting",
          "sub_var": "nursingchartcelltypevalname"
        }
      ],
      "hirid": [
        {
          "ids": 10000100,
          "table": "observations",
          "sub_var": "variableid",
          "class": "hrd_itm"
        }
      ],
      "miiv": [
        {
          "ids": 223900,
          "table": "chartevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": [723, 223900],
          "table": "chartevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": [723, 223900],
          "table": "chartevents",
          "sub_var": "itemid"
        }
      ]
    }
  },
  "wbc": {
    "unit": ["K/uL", "G/l"],
    "min": 0,
    "description": "white blood cell count",
    "omopid": 4298431,
    "category": "hematology",
    "sources": {
      "aumc": [
        {
          "ids": [6779, 9965],
          "table": "numericitems",
          "sub_var": "itemid"
        }
      ],
      "eicu": [
        {
          "ids": "WBC x 1000",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "eicu_demo": [
        {
          "ids": "WBC x 1000",
          "table": "lab",
          "sub_var": "labname"
        }
      ],
      "hirid": [
        {
          "ids": 20000700,
          "table": "observations",
          "sub_var": "variableid",
          "class": "hrd_itm"
        }
      ],
      "miiv": [
        {
          "ids": 51301,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": 51301,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": 51301,
          "table": "labevents",
          "sub_var": "itemid"
        }
      ],
      "sic": [
        {
          "ids": 301,
          "table": "laboratory",
          "sub_var": "LaboratoryID"
        }
      ]
    }
  },
  "weight": {
    "unit": "kg",
    "min": 1,
    "max": 500,
    "target": "id_tbl",
    "description": "patient weight",
    "omopid": 4099154,
    "category": "demographics",
    "sources": {
      "aumc": [
        {
          "val_var": "weightgroup",
          "table": "admissions",
          "callback": "apply_map(c(`59-` = 50, `60-69` = 65, `70-79` = 75, `80-89` = 85, `90-99` = 95, `100-109` = 105, `110+` = 120))",
          "class": "col_itm"
        }
      ],
      "eicu": [
        {
          "table": "patient",
          "val_var": "admissionweight",
          "class": "col_itm"
        }
      ],
      "eicu_demo": [
        {
          "table": "patient",
          "val_var": "admissionweight",
          "class": "col_itm"
        }
      ],
      "hirid": [
        {
          "ids": 10000400,
          "table": "observations",
          "sub_var": "variableid",
          "class": "hrd_itm"
        }
      ],
      "miiv": [
        {
          "ids": 226512,
          "table": "chartevents",
          "sub_var": "itemid"
        }
      ],
      "mimic": [
        {
          "ids": [762, 4183, 226512],
          "table": "chartevents",
          "sub_var": "itemid"
        }
      ],
      "mimic_demo": [
        {
          "ids": [762, 4183, 226512],
          "table": "chartevents",
          "sub_var": "itemid"
        }
      ],
      "sic": [
        {
          "table": "cases",
          "val_var": "WeightOnAdmission",
          "class": "col_itm",
          "callback": "transform_fun(binary_op(`/`, 1000))"
        }
      ]
    }
  }
}
