{"SOC":"Chemistries","TERM":"Acidosis","Grade_2":"pH >= 7.3 to < LLN","Grade_3":"pH < 7.3 without lifethreatening consequences","Grade_4":"pH < 7.3 with lifethreatening consequences","GRADE_CRITERIA_CODE":"case_when( is.na(AVAL) ~ NA_character_, signif(AVAL, signif_dig) < 7.3 ~ \"4\", is.na(ANRLO) ~ NA_character_, signif(AVAL, signif_dig) < signif(ANRLO, signif_dig) ~ \"2\", signif(AVAL, signif_dig) >= signif(ANRLO, signif_dig) ~ \"0\" )","VAR_CHECK":"AVAL, ANRLO","DIRECTION":"L","COMMENT":"Assume \"with lifethreatening consequences\""} {"SOC":"Chemistries","TERM":"Albumin, Low","Grade_1":"3.0 g/dL to < LLN 30 g/L to < LLN","Grade_2":"≥ 2.0 to < 3.0 g/dL ≥ 20 to < 30 g/L","Grade_3":"< 2.0 g/dL < 20 g/L","GRADE_CRITERIA_CODE":"case_when( is.na(AVAL) ~ NA_character_, signif(AVAL, signif_dig) < 20 ~ \"3\", signif(AVAL, signif_dig) < 30 ~ \"2\", is.na(ANRLO) ~ NA_character_, signif(AVAL, signif_dig) < signif(ANRLO, signif_dig) ~ \"1\", signif(AVAL, signif_dig) >= signif(ANRLO, signif_dig) ~ \"0\" )","SI_UNIT_CHECK":"g/L","VAR_CHECK":"AVAL, ANRLO","DIRECTION":"L"} {"SOC":"Chemistries","TERM":"Alkaline Phosphatase, High","Grade_1":"1.25 to <2.5 x ULN","Grade_2":"2.5 to <5.0 x ULN","Grade_3":"5.0 to <10.0 x ULN","Grade_4":">=10.0 x ULN","GRADE_CRITERIA_CODE":"case_when( is.na(AVAL) | is.na(ANRHI) ~ NA_character_, signif(AVAL, signif_dig) >= signif(10*ANRHI, signif_dig) ~ \"4\", signif(AVAL, signif_dig) >= signif(5*ANRHI, signif_dig) ~ \"3\", signif(AVAL, signif_dig) >= signif(2.5*ANRHI, signif_dig) ~ \"2\", signif(AVAL, signif_dig) >= signif(1.25*ANRHI, signif_dig) ~ \"1\", signif(AVAL, signif_dig) < signif(1.25*ANRHI, signif_dig) ~ \"0\" )","VAR_CHECK":"AVAL, ANRHI","DIRECTION":"H"} {"SOC":"Chemistries","TERM":"Alkalosis","Grade_2":"pH > ULN to ≤ 7.5","Grade_3":"pH > 7.5 without lifethreatening consequences","Grade_4":"pH > 7.5 with lifethreatening consequences","GRADE_CRITERIA_CODE":"case_when( is.na(AVAL) ~ NA_character_, signif(AVAL, signif_dig) > 7.5 ~ \"4\", is.na(ANRHI) ~ NA_character_, signif(AVAL, signif_dig) > signif(ANRHI, signif_dig) ~ \"2\", signif(AVAL, signif_dig) <= signif(ANRHI, signif_dig) ~ \"0\" )","VAR_CHECK":"AVAL, ANRHI","DIRECTION":"H","COMMENT":"Assume \"with lifethreatening consequences\""} {"SOC":"Chemistries","TERM":"ALT, High","Grade_1":"1.25 to <2.5 x ULN","Grade_2":"2.5 to <5.0 x ULN","Grade_3":"5.0 to <10.0 x ULN","Grade_4":">=10.0 x ULN","GRADE_CRITERIA_CODE":"case_when( is.na(AVAL) | is.na(ANRHI) ~ NA_character_, signif(AVAL, signif_dig) >= signif(10*ANRHI, signif_dig) ~ \"4\", signif(AVAL, signif_dig) >= signif(5*ANRHI, signif_dig) ~ \"3\", signif(AVAL, signif_dig) >= signif(2.5*ANRHI, signif_dig) ~ \"2\", signif(AVAL, signif_dig) >= signif(1.25*ANRHI, signif_dig) ~ \"1\", signif(AVAL, signif_dig) < signif(1.25*ANRHI, signif_dig) ~ \"0\" )","VAR_CHECK":"AVAL, ANRHI","DIRECTION":"H"} {"SOC":"Chemistries","TERM":"Amylase, High","Grade_1":"1.1 - <1.5 x ULN","Grade_2":"1.5 - <3.0 x ULN","Grade_3":"3.0 - <5.0 x ULN","Grade_4":">=5.0 x ULN","GRADE_CRITERIA_CODE":"case_when( is.na(AVAL) | is.na(ANRHI) ~ NA_character_, signif(AVAL, signif_dig) >= signif(5*ANRHI, signif_dig) ~ \"4\", signif(AVAL, signif_dig) >= signif(3*ANRHI, signif_dig) ~ \"3\", signif(AVAL, signif_dig) >= signif(1.5*ANRHI, signif_dig) ~ \"2\", signif(AVAL, signif_dig) >= signif(1.1*ANRHI, signif_dig) ~ \"1\", signif(AVAL, signif_dig) < signif(1.1*ANRHI, signif_dig) ~ \"0\" )","VAR_CHECK":"AVAL, ANRHI","DIRECTION":"H"} {"SOC":"Chemistries","TERM":"AST, High","Grade_1":"1.25 to <2.5 x ULN","Grade_2":"2.5 to <5.0 x ULN","Grade_3":"5.0 to <10.0 x ULN","Grade_4":">=10.0 x ULN","GRADE_CRITERIA_CODE":"case_when( is.na(AVAL) | is.na(ANRHI) ~ NA_character_, signif(AVAL, signif_dig) >= signif(10*ANRHI, signif_dig) ~ \"4\", signif(AVAL, signif_dig) >= signif(5*ANRHI, signif_dig) ~ \"3\", signif(AVAL, signif_dig) >= signif(2.5*ANRHI, signif_dig) ~ \"2\", signif(AVAL, signif_dig) >= signif(1.25*ANRHI, signif_dig) ~ \"1\", signif(AVAL, signif_dig) < signif(1.25*ANRHI, signif_dig) ~ \"0\" )","VAR_CHECK":"AVAL, ANRHI","DIRECTION":"H"} {"SOC":"Chemistries","TERM":"Bicarbonate, Low","Grade_1":"16.0 to = signif(ANRLO, signif_dig) ~ \"0\" )","SI_UNIT_CHECK":"mmol/L","VAR_CHECK":"AVAL, ANRLO","DIRECTION":"L"} {"SOC":"Chemistries","TERM":"Direct Bilirubin, High","SUBGROUP":"> 28 days of age","Grade_3":"> ULN with other signs and symptoms of hepatotoxicity","Grade_4":"> ULN with lifethreatening consequences (e.g., signs and symptoms of liver failure)","FILTER":"compute_duration(start_date = BRTHDT, end_date = LBDT, trunc_out = TRUE, out_unit = \"days\", add_one = FALSE) > 28 | is.na(BRTHDT) | is.na(LBDT)","GRADE_CRITERIA_CODE":"case_when( is.na(AVAL) | is.na(ANRHI) | is.na(BRTHDT) | is.na(LBDT) ~ NA_character_, signif(AVAL, signif_dig) > signif(ANRHI, signif_dig) ~ \"4\", signif(AVAL, signif_dig) <= signif(ANRHI, signif_dig) ~ \"0\" )","VAR_CHECK":"AVAL, ANRHI, LBDT, BRTHDT","DIRECTION":"H","COMMENT":"Assume worst case of \"lifethreatening consequences (e.g., signs and symptoms of liver failure)\""} {"SOC":"Chemistries","TERM":"Direct Bilirubin, High","SUBGROUP":"<= 28 days of age","Grade_1":"ULN - 1 mg/dL","Grade_2":">1 - 1.5 mg/dL","Grade_3":">1.5 - 2 mg/dL","Grade_4":"> 2 mg/dL","FILTER":"compute_duration(start_date = BRTHDT, end_date = LBDT, trunc_out = TRUE, out_unit = \"days\", add_one = FALSE) <= 28 | is.na(BRTHDT) | is.na(LBDT)","GRADE_CRITERIA_CODE":"case_when( is.na(AVAL) | is.na(BRTHDT) | is.na(LBDT) ~ NA_character_, signif(AVAL, signif_dig) > 2*17.1 ~ \"4\", signif(AVAL, signif_dig) > 1.5*17.1 ~ \"3\", signif(AVAL, signif_dig) > 17.1 ~ \"2\", is.na(ANRHI) ~ NA_character_, signif(AVAL, signif_dig) >= signif(ANRHI, signif_dig) ~ \"1\", signif(AVAL, signif_dig) < signif(ANRHI, signif_dig) ~ \"0\" )","SI_UNIT_CHECK":"umol/L","VAR_CHECK":"AVAL, ANRHI, LBDT, BRTHDT","DIRECTION":"H","COMMENT":"17.1 used as conversion from \"mg/dL\" to \"umol/L\""} {"SOC":"Chemistries","TERM":"Total Bilirubin, High","SUBGROUP":"> 28 days of age","Grade_1":"1.1 - <1.6 x ULN","Grade_2":"1.6 - <2.6 x ULN","Grade_3":"2.6 - <5.0 x ULN","Grade_4":">=5.0 x ULN","FILTER":"compute_duration(start_date = BRTHDT, end_date = LBDT, trunc_out = TRUE, out_unit = \"days\", add_one = FALSE) > 28 | is.na(BRTHDT) | is.na(LBDT)","GRADE_CRITERIA_CODE":"case_when( is.na(AVAL) | is.na(ANRHI) | is.na(BRTHDT) | is.na(LBDT) ~ NA_character_, signif(AVAL, signif_dig) >= 5*ANRHI ~ \"4\", signif(AVAL, signif_dig) >= 2.6*ANRHI ~ \"3\", signif(AVAL, signif_dig) >= 1.6*ANRHI ~ \"2\", signif(AVAL, signif_dig) >= 1.1*ANRHI ~ \"1\", signif(AVAL, signif_dig) < 1.1*ANRHI ~ \"0\" )","VAR_CHECK":"AVAL, ANRHI, LBDT, BRTHDT","DIRECTION":"H"} {"SOC":"Chemistries","TERM":"Total Bilirubin, High","SUBGROUP":"<= 28 days of age","FILTER":"compute_duration(start_date = BRTHDT, end_date = LBDT, trunc_out = TRUE, out_unit = \"days\", add_one = FALSE) <= 28 | is.na(BRTHDT) | is.na(LBDT)","GRADE_CRITERIA_CODE":"NA_character_","VAR_CHECK":"AVAL, ANRHI, LBDT, BRTHDT","DIRECTION":"H","COMMENT":"Did not grade"} {"SOC":"Chemistries","TERM":"Calcium, High","SUBGROUP":">= 7 days of age","Grade_1":"10.6 - <11.5 mg/dL; 2.65 - <2.88 mmol/L","Grade_2":"11.5 - <12.5 mg/dL; 2.88 - <3.13 mmol/L","Grade_3":"12.5 - <13.5 mg/dL; 3.13 - <3.38 mmol/L","Grade_4":">=13.5 mg/dL; >=3.38 mmol/L","FILTER":"compute_duration(start_date = BRTHDT, end_date = LBDT, trunc_out = TRUE, out_unit = \"days\", add_one = FALSE) >= 7 | is.na(BRTHDT) | is.na(LBDT)","GRADE_CRITERIA_CODE":"case_when( is.na(AVAL) | is.na(BRTHDT) | is.na(LBDT) ~ NA_character_, signif(AVAL, signif_dig) >= 3.38 ~ \"4\", signif(AVAL, signif_dig) >= 3.13 ~ \"3\", signif(AVAL, signif_dig) >= 2.88 ~ \"2\", signif(AVAL, signif_dig) >= 2.65 ~ \"1\", signif(AVAL, signif_dig) < 2.65 ~ \"0\" )","SI_UNIT_CHECK":"mmol/L","VAR_CHECK":"AVAL, LBDT, BRTHDT","DIRECTION":"H"} {"SOC":"Chemistries","TERM":"Calcium, High","SUBGROUP":"< 7 days of age","Grade_1":"11.5 - <12.4 mg/dL; 2.88 - <3.10 mmol/L","Grade_2":"12.4 - <12.9 mg/dL; 3.10 - <3.23 mmol/L","Grade_3":"12.9 - <13.5 mg/dL; 3.23 - <3.38 mmol/L","Grade_4":">=13.5 mg/dL; >=3.38 mmol/L","FILTER":"compute_duration(start_date = BRTHDT, end_date = LBDT, trunc_out = TRUE, out_unit = \"days\", add_one = FALSE) < 7 | is.na(BRTHDT) | is.na(LBDT)","GRADE_CRITERIA_CODE":"case_when( is.na(AVAL) | is.na(BRTHDT) | is.na(LBDT) ~ NA_character_, signif(AVAL, signif_dig) >= 3.38 ~ \"4\", signif(AVAL, signif_dig) >= 3.23 ~ \"3\", signif(AVAL, signif_dig) >= 3.1 ~ \"2\", signif(AVAL, signif_dig) >= 2.88 ~ \"1\", signif(AVAL, signif_dig) < 2.88 ~ \"0\" )","SI_UNIT_CHECK":"mmol/L","VAR_CHECK":"AVAL, LBDT, BRTHDT","DIRECTION":"H"} {"SOC":"Chemistries","TERM":"Calcium (Ionized), High","Grade_1":"> ULN to < 6.0 mg/dL; > ULN to < 1.5 mmol/L","Grade_2":"6.0 to < 6.4 mg/dL; 1.5 to < 1.6 mmol/L","Grade_3":"6.4 to < 7.2 mg/dL; 1.6 to < 1.8 mmol/L","Grade_4":">= 7.2 mg/dL; >= 1.8 mmol/L","GRADE_CRITERIA_CODE":"case_when( is.na(AVAL) ~ NA_character_, signif(AVAL, signif_dig) >= 1.8 ~ \"4\", signif(AVAL, signif_dig) >= 1.6 ~ \"3\", signif(AVAL, signif_dig) >= 1.5 ~ \"2\", is.na(ANRHI) ~ NA_character_, signif(AVAL, signif_dig) > signif(ANRHI, signif_dig) ~ \"1\", signif(AVAL, signif_dig) <= signif(ANRHI, signif_dig) ~ \"0\" )","SI_UNIT_CHECK":"mmol/L","VAR_CHECK":"AVAL, ANRHI","DIRECTION":"H"} {"SOC":"Chemistries","TERM":"Calcium, Low","SUBGROUP":">= 7 days of age","Grade_1":"7.8 to < 8.4 mg/dL; 1.95 to < 2.10 mmol/L","Grade_2":"7.0 to < 7.8 mg/dL; 1.75 to < 1.95 mmol/L","Grade_3":"6.1 to < 7.0 mg/dL; 1.53 to < 1.75 mmol/L","Grade_4":"< 6.1 mg/dL; < 1.53 mmol/L","FILTER":"compute_duration(start_date = BRTHDT, end_date = LBDT, trunc_out = TRUE, out_unit = \"days\", add_one = FALSE) >= 7 | is.na(BRTHDT) | is.na(LBDT)","GRADE_CRITERIA_CODE":"case_when( is.na(AVAL) | is.na(BRTHDT) | is.na(LBDT) ~ NA_character_, signif(AVAL, signif_dig) < 1.53 ~ \"4\", signif(AVAL, signif_dig) < 1.75 ~ \"3\", signif(AVAL, signif_dig) < 1.95 ~ \"2\", signif(AVAL, signif_dig) < 2.1 ~ \"1\", signif(AVAL, signif_dig) >= 2.1 ~ \"0\" )","SI_UNIT_CHECK":"mmol/L","VAR_CHECK":"AVAL, LBDT, BRTHDT","DIRECTION":"L"} {"SOC":"Chemistries","TERM":"Calcium, Low","SUBGROUP":"< 7 days of age","Grade_1":"6.5 to < 7.5 mg/dL; 1.63 to < 1.88 mmol/L","Grade_2":"6.0 to < 6.5 mg/dL; 1.50 to < 1.63 mmol/L","Grade_3":"5.50 to < 6.0 mg/dL; 1.38 to < 1.50 mmol/L","Grade_4":"< 5.50 mg/dL; < 1.38 mmol/L","FILTER":"compute_duration(start_date = BRTHDT, end_date = LBDT, trunc_out = TRUE, out_unit = \"days\", add_one = FALSE) < 7 | is.na(BRTHDT) | is.na(LBDT)","GRADE_CRITERIA_CODE":"case_when( is.na(AVAL) | is.na(BRTHDT) | is.na(LBDT) ~ NA_character_, signif(AVAL, signif_dig) < 1.38 ~ \"4\", signif(AVAL, signif_dig) < 1.5 ~ \"3\", signif(AVAL, signif_dig) < 1.63 ~ \"2\", signif(AVAL, signif_dig) < 1.88 ~ \"1\", signif(AVAL, signif_dig) >= 1.88 ~ \"0\" )","SI_UNIT_CHECK":"mmol/L","VAR_CHECK":"AVAL, LBDT, BRTHDT","DIRECTION":"L"} {"SOC":"Chemistries","TERM":"Calcium (Ionized), Low","Grade_1":"< LLN to 4.0 mg/dL; < LLN to 1.0 mmol/L","Grade_2":"3.6 to < 4.0 mg/dL; 0.9 to < 1.0 mmol/L","Grade_3":"3.2 to < 3.6 mg/dL; 0.8 to < 0.9 mmol/L","Grade_4":"< 3.2 mg/dL; < 0.8 mmol/L","GRADE_CRITERIA_CODE":"case_when( is.na(AVAL) ~ NA_character_, signif(AVAL, signif_dig) < 0.8 ~ \"4\", signif(AVAL, signif_dig) < 0.9 ~ \"3\", signif(AVAL, signif_dig) < 1 ~ \"2\", is.na(ANRLO) ~ NA_character_, signif(AVAL, signif_dig) < signif(ANRLO, signif_dig) ~ \"1\", signif(AVAL, signif_dig) >= signif(ANRLO, signif_dig) ~ \"0\" )","SI_UNIT_CHECK":"mmol/L","VAR_CHECK":"AVAL, ANRLO","DIRECTION":"L"} {"SOC":"Chemistries","TERM":"Creatine Kinase, High","Grade_1":"3 to <6 x ULN","Grade_2":"6 to <10 x ULN","Grade_3":"10 to <20 x ULN","Grade_4":">=20 x ULN","GRADE_CRITERIA_CODE":"case_when( is.na(AVAL) | is.na(ANRHI) ~ NA_character_, signif(AVAL, signif_dig) >= signif(20*ANRHI, signif_dig) ~ \"4\", signif(AVAL, signif_dig) >= signif(10*ANRHI, signif_dig) ~ \"3\", signif(AVAL, signif_dig) >= signif(6*ANRHI, signif_dig) ~ \"2\", signif(AVAL, signif_dig) >= signif(3*ANRHI, signif_dig) ~ \"1\", signif(AVAL, signif_dig) < signif(3*ANRHI, signif_dig) ~ \"0\" )","VAR_CHECK":"AVAL, ANRHI","DIRECTION":"H"} {"SOC":"Chemistries","TERM":"Creatinine, High","Grade_1":"1.1 - 1.3 x ULN","Grade_2":"> 1.3 to 1.8 x ULN OR Increase to 1.3 to < 1.5 x participant’s baseline","Grade_3":"> 1.8 to < 3.5 x ULN OR Increase to 1.5 to < 2.0 x participant’s baseline","Grade_4":">= 3.5 x ULN OR Increase of >= 2.0 x participant’s baseline","GRADE_CRITERIA_CODE":"case_when( is.na(AVAL) ~ NA_character_, !is.na(ANRHI) & signif(AVAL, signif_dig) >= signif(3.5*ANRHI, signif_dig) ~ \"4\", !is.na(BASE) & signif(AVAL, signif_dig) >= signif(2*BASE, signif_dig) ~ \"4\", !is.na(ANRHI) & signif(AVAL, signif_dig) > signif(1.8*ANRHI, signif_dig) ~ \"3\", !is.na(BASE) & signif(AVAL, signif_dig) >= signif(1.5*BASE, signif_dig) ~ \"3\", !is.na(ANRHI) & signif(AVAL, signif_dig) > signif(1.3*ANRHI, signif_dig) ~ \"2\", !is.na(BASE) & signif(AVAL, signif_dig) >= signif(1.3*BASE, signif_dig) ~ \"2\", is.na(ANRHI) ~ NA_character_, signif(AVAL, signif_dig) >= signif(1.1*ANRHI, signif_dig) ~ \"1\", signif(AVAL, signif_dig) < signif(1.1*ANRHI, signif_dig) ~ \"0\" )","VAR_CHECK":"AVAL, ANRHI, BASE","DIRECTION":"H"} {"SOC":"Chemistries","TERM":"Glucose Fasting, High","Grade_1":"110 to 125 mg/dL; 6.11 to < 6.95 mmol/L","Grade_2":"> 125 to 250 mg/dL; 6.95 to < 13.89 mmol/L","Grade_3":"> 250 to 500 mg/dL; 13.89 to < 27.75 mmol/L","Grade_4":">= 500 mg/dL >= 27.75 mmol/L","GRADE_CRITERIA_CODE":"case_when( is.na(AVAL) ~ NA_character_, signif(AVAL, signif_dig) >= 27.75 ~ \"4\", signif(AVAL, signif_dig) >= 13.89 ~ \"3\", signif(AVAL, signif_dig) >= 6.95 ~ \"2\", signif(AVAL, signif_dig) >= 6.11 ~ \"1\", signif(AVAL, signif_dig) < 6.11 ~ \"0\" )","SI_UNIT_CHECK":"mmol/L","VAR_CHECK":"AVAL","DIRECTION":"H"} {"SOC":"Chemistries","TERM":"Glucose Nonfasting, High","Grade_1":"116 to 160 mg/dL; 6.44 to < 8.89 mmol/L","Grade_2":"> 160 to 250 mg/dL; 8.89 to < 13.89 mmol/L","Grade_3":"> 250 to 500 mg/dL; 13.89 to < 27.75 mmol/L","Grade_4":">= 500 mg/dL >= 27.75 mmol/L","GRADE_CRITERIA_CODE":"case_when( is.na(AVAL) ~ NA_character_, signif(AVAL, signif_dig) >= 27.75 ~ \"4\", signif(AVAL, signif_dig) >= 13.89 ~ \"3\", signif(AVAL, signif_dig) >= 8.89 ~ \"2\", signif(AVAL, signif_dig) >= 6.44 ~ \"1\", signif(AVAL, signif_dig) < 6.44 ~ \"0\" )","SI_UNIT_CHECK":"mmol/L","VAR_CHECK":"AVAL","DIRECTION":"H"} {"SOC":"Chemistries","TERM":"Glucose, Low","SUBGROUP":">= 1 month of age","Grade_1":"55 to 64 mg/dL; 3.05 to <3.55 mmol/L","Grade_2":"40 to < 55 mg/dL; 2.22 to < 3.05 mmol/L","Grade_3":"30 to < 40 mg/dL; 1.67 to < 2.22 mmol/L","Grade_4":"< 30 mg/dL; < 1.67 mmol/L","FILTER":"compute_duration(start_date = BRTHDT, end_date = LBDT, trunc_out = TRUE, out_unit = \"months\", add_one = FALSE, type = \"interval\") >= 1 | is.na(BRTHDT) | is.na(LBDT)","GRADE_CRITERIA_CODE":"case_when( is.na(AVAL) | is.na(BRTHDT) | is.na(LBDT) ~ NA_character_, signif(AVAL, signif_dig) < 1.67 ~ \"4\", signif(AVAL, signif_dig) < 2.22 ~ \"3\", signif(AVAL, signif_dig) < 3.05 ~ \"2\", signif(AVAL, signif_dig) < 3.55 ~ \"1\", signif(AVAL, signif_dig) >= 3.55 ~ \"0\" )","SI_UNIT_CHECK":"mmol/L","VAR_CHECK":"AVAL, BRTHDT, LBDT","DIRECTION":"L"} {"SOC":"Chemistries","TERM":"Glucose, Low","SUBGROUP":"< 1 month of age","Grade_1":"50 to 54 mg/dL; 2.78 to <3.00 mmol/L","Grade_2":"40 to < 50 mg/dL; 2.22 to < 2.78 mmol/L","Grade_3":"30 to < 40 mg/dL; 1.67 to < 2.22 mmol/L","Grade_4":"< 30 mg/dL; < 1.67 mmol/L","FILTER":"compute_duration(start_date = BRTHDT, end_date = LBDT, trunc_out = TRUE, out_unit = \"months\", add_one = FALSE, type = \"interval\") < 1 | is.na(BRTHDT) | is.na(LBDT)","GRADE_CRITERIA_CODE":"case_when( is.na(AVAL) | is.na(BRTHDT) | is.na(LBDT) ~ NA_character_, signif(AVAL, signif_dig) < 1.67 ~ \"4\", signif(AVAL, signif_dig) < 2.22 ~ \"3\", signif(AVAL, signif_dig) < 2.78 ~ \"2\", signif(AVAL, signif_dig) < 3 ~ \"1\", signif(AVAL, signif_dig) >= 3 ~ \"0\" )","SI_UNIT_CHECK":"mmol/L","VAR_CHECK":"AVAL, BRTHDT, LBDT","DIRECTION":"L"} {"SOC":"Chemistries","TERM":"Lactate, High","Grade_1":"ULN to < 2.0 x ULN without acidosis","Grade_2":"≥ 2.0 x ULN without acidosis","Grade_3":"Increased lactate with\r\npH < 7.3 without lifethreatening\r\nconsequences","Grade_4":"Increased lactate with pH < 7.3 with lifethreatening consequences","GRADE_CRITERIA_CODE":"case_when( is.na(AVAL) | is.na(ANRHI) ~ NA_character_, signif(AVAL, signif_dig) >= signif(2*ANRHI, signif_dig) ~ \"2\", signif(AVAL, signif_dig) >= signif(ANRHI, signif_dig) ~ \"1\", signif(AVAL, signif_dig) < signif(ANRHI, signif_dig) ~ \"0\" )","VAR_CHECK":"AVAL, ANRHI","DIRECTION":"H","COMMENT":"Assume \"without acidosis\" (only grade 1 and 2)"} {"SOC":"Chemistries","TERM":"Lipase, High","Grade_1":"1.1 to < 1.5 x ULN","Grade_2":"1.5 to < 3.0 x ULN","Grade_3":"3.0 to < 5.0 x ULN","Grade_4":">=5.0 x ULN","GRADE_CRITERIA_CODE":"case_when( is.na(AVAL) | is.na(ANRHI) ~ NA_character_, signif(AVAL, signif_dig) >= signif(5*ANRHI, signif_dig) ~ \"4\", signif(AVAL, signif_dig) >= signif(3*ANRHI, signif_dig) ~ \"3\", signif(AVAL, signif_dig) >= signif(1.5*ANRHI, signif_dig) ~ \"2\", signif(AVAL, signif_dig) >= signif(1.1*ANRHI, signif_dig) ~ \"1\", signif(AVAL, signif_dig) < signif(1.1*ANRHI, signif_dig) ~ \"0\" )","VAR_CHECK":"AVAL, ANRHI","DIRECTION":"H"} {"SOC":"Chemistries","TERM":"Cholesterol, Fasting, High","SUBGROUP":">=18 years of age","Grade_1":"200 to < 240 mg/dL; 5.18 to < 6.19 mmol/L","Grade_2":"240 to < 300 mg/dL; 6.19 to < 7.77 mmol/L","Grade_3":"≥ 300 mg/dL; ≥ 7.77 mmol/L","FILTER":"compute_duration(start_date = BRTHDT, end_date = LBDT, trunc_out = TRUE, out_unit = \"years\", add_one = FALSE, type = \"interval\") >= 18 | is.na(BRTHDT) | is.na(LBDT)","GRADE_CRITERIA_CODE":"case_when( is.na(AVAL) | is.na(BRTHDT) | is.na(LBDT) ~ NA_character_, signif(AVAL, signif_dig) >= 7.77 ~ \"3\", signif(AVAL, signif_dig) >= 6.19 ~ \"2\", signif(AVAL, signif_dig) >= 5.18 ~ \"1\", signif(AVAL, signif_dig) < 5.18 ~ \"0\" )","SI_UNIT_CHECK":"mmol/L","VAR_CHECK":"AVAL, BRTHDT, LBDT","DIRECTION":"H"} {"SOC":"Chemistries","TERM":"Cholesterol, Fasting, High","SUBGROUP":"<18 years of age","Grade_1":"170 to < 200 mg/dL; 4.4 to < 5.15 mmol/L","Grade_2":"200 to < 300 mg/dL; 5.15 to < 7.77 mmol/L","Grade_3":"≥ 300 mg/dL; ≥ 7.77 mmol/L","FILTER":"compute_duration(start_date = BRTHDT, end_date = LBDT, trunc_out = TRUE, out_unit = \"years\", add_one = FALSE, type = \"interval\") < 18 | is.na(BRTHDT) | is.na(LBDT)","GRADE_CRITERIA_CODE":"case_when( is.na(AVAL) | is.na(BRTHDT) | is.na(LBDT) ~ NA_character_, signif(AVAL, signif_dig) >= 7.77 ~ \"3\", signif(AVAL, signif_dig) >= 5.15 ~ \"2\", signif(AVAL, signif_dig) >= 4.4 ~ \"1\", signif(AVAL, signif_dig) < 4.4 ~ \"0\" )","SI_UNIT_CHECK":"mmol/L","VAR_CHECK":"AVAL, BRTHDT, LBDT","DIRECTION":"H"} {"SOC":"Chemistries","TERM":"LDL, Fasting, High","SUBGROUP":">=18 years of age","Grade_1":"130 to < 160 mg/dL; 3.37 to < 4.12 mmol/L","Grade_2":"160 to < 190 mg/dL; 4.12 to < 4.90 mmol/L","Grade_3":"≥ 190 mg/dL; ≥ 4.90 mmol/L","FILTER":"compute_duration(start_date = BRTHDT, end_date = LBDT, trunc_out = TRUE, out_unit = \"years\", add_one = FALSE, type = \"interval\") >= 18 | is.na(BRTHDT) | is.na(LBDT)","GRADE_CRITERIA_CODE":"case_when( is.na(AVAL) | is.na(BRTHDT) | is.na(LBDT) ~ NA_character_, signif(AVAL, signif_dig) >= 4.9 ~ \"3\", signif(AVAL, signif_dig) >= 4.12 ~ \"2\", signif(AVAL, signif_dig) >= 3.37 ~ \"1\", signif(AVAL, signif_dig) < 3.37 ~ \"0\" )","SI_UNIT_CHECK":"mmol/L","VAR_CHECK":"AVAL, BRTHDT, LBDT","DIRECTION":"H"} {"SOC":"Chemistries","TERM":"LDL, Fasting, High","SUBGROUP":"> 2 to < 18 years of age","Grade_1":"110 to < 130 mg/dL; 2.85 to < 3.34 mmol/L","Grade_2":"130 to < 190 mg/dL; 3.34 to < 4.90 mmol/L","Grade_3":"≥ 190 mg/dL; ≥ 4.90 mmol/L","FILTER":"(compute_duration(start_date = BRTHDT, end_date = LBDT, trunc_out = TRUE, out_unit = \"years\", add_one = FALSE, type = \"interval\") > 2 & compute_duration(start_date = BRTHDT, end_date = LBDT, trunc_out = TRUE, out_unit = \"years\", add_one = FALSE, type = \"interval\") < 18) | is.na(BRTHDT) | is.na(LBDT)","GRADE_CRITERIA_CODE":"case_when( is.na(AVAL) | is.na(BRTHDT) | is.na(LBDT) ~ NA_character_, signif(AVAL, signif_dig) >= 4.9 ~ \"3\", signif(AVAL, signif_dig) >= 3.34 ~ \"2\", signif(AVAL, signif_dig) >= 2.85 ~ \"1\", signif(AVAL, signif_dig) < 2.85 ~ \"0\" )","SI_UNIT_CHECK":"mmol/L","VAR_CHECK":"AVAL, BRTHDT, LBDT","DIRECTION":"H"} {"SOC":"Chemistries","TERM":"LDL, Fasting, High","SUBGROUP":"<= 2 years of age","FILTER":"compute_duration(start_date = BRTHDT, end_date = LBDT, trunc_out = TRUE, out_unit = \"years\", add_one = FALSE, type = \"interval\") <= 2 | is.na(BRTHDT) | is.na(LBDT)","GRADE_CRITERIA_CODE":"NA_character_","SI_UNIT_CHECK":"mmol/L","VAR_CHECK":"AVAL, BRTHDT, LBDT","DIRECTION":"H","COMMENT":"No criteria given for this age range"} {"SOC":"Chemistries","TERM":"Triglycerides, Fasting, High","Grade_1":"150 to 300 mg/dL; 1.71 to 3.42 mmol/L","Grade_2":">300 to 500 mg/dL; >3.42 to 5.7 mmol/L","Grade_3":">500 to < 1,000 mg/dL; >5.7 to 11.4 mmol/L","Grade_4":"> 1,000 mg/dL; > 11.4 mmol/L","GRADE_CRITERIA_CODE":"case_when( is.na(AVAL) ~ NA_character_, signif(AVAL, signif_dig) > 11.4 ~ \"4\", signif(AVAL, signif_dig) > 5.7 ~ \"3\", signif(AVAL, signif_dig) > 3.42 ~ \"2\", signif(AVAL, signif_dig) >= 1.71 ~ \"1\", signif(AVAL, signif_dig) < 1.71 ~ \"0\" )","SI_UNIT_CHECK":"mmol/L","VAR_CHECK":"AVAL","DIRECTION":"H"} {"SOC":"Chemistries","TERM":"Magnesium, Low","Grade_1":"1.2 to < 1.4 mEq/L; 0.60 to < 0.70 mmol/L","Grade_2":"0.9 to < 1.2 mEq/L; 0.45 to < 0.60 mmol/L","Grade_3":"0.6 to < 0.9 mEq/L; 0.30 to < 0.45 mmol/L","Grade_4":"< 0.6 mEq/L; < 0.30 mmol/L","GRADE_CRITERIA_CODE":"case_when( is.na(AVAL) ~ NA_character_, signif(AVAL, signif_dig) < 0.3 ~ \"4\", signif(AVAL, signif_dig) < 0.45 ~ \"3\", signif(AVAL, signif_dig) < 0.6 ~ \"2\", signif(AVAL, signif_dig) < 0.7 ~ \"1\", signif(AVAL, signif_dig) >= 0.7 ~ \"0\" )","SI_UNIT_CHECK":"mmol/L","VAR_CHECK":"AVAL","DIRECTION":"L"} {"SOC":"Chemistries","TERM":"Phosphate, Low","SUBGROUP":"> 14 years of age","Grade_1":"2.0 mg/dL to < LLN; 0.65 mmol/L to < LLN","Grade_2":"1.4 to < 2.0 mg/dL; 0.45 to < 0.65 mmol/L","Grade_3":"1.0 to < 1.4 mg/dL; 0.32 to < 0.45 mmol/L","Grade_4":"< 1.0 mg/dL; < 0.32 mmol/L","FILTER":"compute_duration(start_date = BRTHDT, end_date = LBDT, trunc_out = TRUE, out_unit = \"years\", add_one = FALSE, type = \"interval\") > 14 | is.na(BRTHDT) | is.na(LBDT)","GRADE_CRITERIA_CODE":"case_when( is.na(AVAL) | is.na(BRTHDT) | is.na(LBDT) ~ NA_character_, signif(AVAL, signif_dig) < 0.32 ~ \"4\", signif(AVAL, signif_dig) < 0.45 ~ \"3\", signif(AVAL, signif_dig) < 0.65 ~ \"2\", is.na(ANRLO) ~ NA_character_, signif(AVAL, signif_dig) < signif(ANRLO, signif_dig) ~ \"1\", signif(AVAL, signif_dig) >= signif(ANRLO, signif_dig) ~ \"0\" )","SI_UNIT_CHECK":"mmol/L","VAR_CHECK":"AVAL, ANRLO, LBDT, BRTHDT","DIRECTION":"L"} {"SOC":"Chemistries","TERM":"Phosphate, Low","SUBGROUP":"1 to 14 years of age","Grade_1":"3.0 to < 3.5 mg/dL; 0.97 to < 1.13 mmol/L","Grade_2":"2.5 to < 3.0 mg/dL; 0.81 to < 0.97 mmol/L","Grade_3":"1.5 to < 2.5 mg/dL; 0.48 to < 0.81 mmol/L","Grade_4":"< 1.5 mg/dL; < 0.48 mmol/L","FILTER":"(compute_duration(start_date = BRTHDT, end_date = LBDT, trunc_out = TRUE, out_unit = \"years\", add_one = FALSE, type = \"interval\") >= 1 & compute_duration(start_date = BRTHDT, end_date = LBDT, trunc_out = TRUE, out_unit = \"years\", add_one = FALSE, type = \"interval\") < 14) | is.na(BRTHDT) | is.na(LBDT)","GRADE_CRITERIA_CODE":"case_when( is.na(AVAL) | is.na(BRTHDT) | is.na(LBDT) ~ NA_character_, signif(AVAL, signif_dig) < 0.48 ~ \"4\", signif(AVAL, signif_dig) < 0.81 ~ \"3\", signif(AVAL, signif_dig) < 0.97 ~ \"2\", signif(AVAL, signif_dig) < 1.13 ~ \"1\", signif(AVAL, signif_dig) >= 1.13 ~ \"0\" )","SI_UNIT_CHECK":"mmol/L","VAR_CHECK":"AVAL, ANRLO, LBDT, BRTHDT","DIRECTION":"L"} {"SOC":"Chemistries","TERM":"Phosphate, Low","SUBGROUP":"< 1 year of age","Grade_1":"3.5 to < 4.5 mg/dL; 1.13 to < 1.45 mmol/L","Grade_2":"2.5 to < 3.5 mg/dL; 0.81 to < 1.13 mmol/L","Grade_3":"1.5 to < 2.5 mg/dL; 0.48 to < 0.81 mmol/L","Grade_4":"< 1.5 mg/dL; < 0.48 mmol/L","FILTER":"compute_duration(start_date = BRTHDT, end_date = LBDT, trunc_out = TRUE, out_unit = \"years\", add_one = FALSE, type = \"interval\") < 1 | is.na(BRTHDT) | is.na(LBDT)","GRADE_CRITERIA_CODE":"case_when( is.na(AVAL) | is.na(BRTHDT) | is.na(LBDT) ~ NA_character_, signif(AVAL, signif_dig) < 0.48 ~ \"4\", signif(AVAL, signif_dig) < 0.81 ~ \"3\", signif(AVAL, signif_dig) < 1.13 ~ \"2\", signif(AVAL, signif_dig) < 1.45 ~ \"1\", signif(AVAL, signif_dig) >= 1.45 ~ \"0\" )","SI_UNIT_CHECK":"mmol/L","VAR_CHECK":"AVAL, ANRLO, LBDT, BRTHDT","DIRECTION":"L"} {"SOC":"Chemistries","TERM":"Potassium, High","Grade_1":"5.6 to < 6.0 mmol/L","Grade_2":"6.0 to < 6.5 mmol/L","Grade_3":"6.5 to < 7.0 mmol/L","Grade_4":">= 7.0 mmol/L","GRADE_CRITERIA_CODE":"case_when( is.na(AVAL) ~ NA_character_, signif(AVAL, signif_dig) >= 7 ~ \"4\", signif(AVAL, signif_dig) >= 6.5 ~ \"3\", signif(AVAL, signif_dig) >= 6 ~ \"2\", signif(AVAL, signif_dig) >= 5.6 ~ \"1\", signif(AVAL, signif_dig) < 5.6 ~ \"0\" )","SI_UNIT_CHECK":"mmol/L","VAR_CHECK":"AVAL","DIRECTION":"H"} {"SOC":"Chemistries","TERM":"Potassium, Low","Grade_1":"3.0 to < 3.4 mmol/L","Grade_2":"2.5 to < 3.0 mmol/L","Grade_3":"2.0 to < 2.5 mmol/L","Grade_4":"< 2.0 mmol/L","GRADE_CRITERIA_CODE":"case_when( is.na(AVAL) ~ NA_character_, signif(AVAL, signif_dig) < 2 ~ \"4\", signif(AVAL, signif_dig) < 2.5 ~ \"3\", signif(AVAL, signif_dig) < 3 ~ \"2\", signif(AVAL, signif_dig) < 3.4 ~ \"1\", signif(AVAL, signif_dig) >= 3.4 ~ \"0\" )","SI_UNIT_CHECK":"mmol/L","VAR_CHECK":"AVAL","DIRECTION":"L"} {"SOC":"Chemistries","TERM":"Sodium, High","Grade_1":"146 to < 150 mmol/L","Grade_2":"150 to < 154 mmol/L","Grade_3":"154 to < 160 mmol/L","Grade_4":">=160 mmol/L","GRADE_CRITERIA_CODE":"case_when( is.na(AVAL) ~ NA_character_, signif(AVAL, signif_dig) >= 160 ~ \"4\", signif(AVAL, signif_dig) >= 154 ~ \"3\", signif(AVAL, signif_dig) >= 150 ~ \"2\", signif(AVAL, signif_dig) >= 146 ~ \"1\", signif(AVAL, signif_dig) < 146 ~ \"0\" )","SI_UNIT_CHECK":"mmol/L","VAR_CHECK":"AVAL","DIRECTION":"H"} {"SOC":"Chemistries","TERM":"Sodium, Low","Grade_1":"130 to < 135 mmol/L","Grade_2":"125 to < 130 mmol/L","Grade_3":"121 to < 125 mmol/L","Grade_4":"<=120 mmol/L","GRADE_CRITERIA_CODE":"case_when( is.na(AVAL) ~ NA_character_, signif(AVAL, signif_dig) <= 120 ~ \"4\", signif(AVAL, signif_dig) < 125 ~ \"3\", signif(AVAL, signif_dig) < 130 ~ \"2\", signif(AVAL, signif_dig) < 135 ~ \"1\", signif(AVAL, signif_dig) >= 135 ~ \"0\" )","SI_UNIT_CHECK":"mmol/L","VAR_CHECK":"AVAL","DIRECTION":"L"} {"SOC":"Chemistries","TERM":"Uric Acid, High","Grade_1":"7.5 to < 10.0 mg/dL; 0.45 to < 0.59 mmol/L","Grade_2":"10.0 to < 12.0 mg/dL; 0.59 to < 0.71 mmol/L","Grade_3":"12.0 to < 15.0 mg/dL; 0.71 to < 0.89 mmol/L","Grade_4":"≥ 15.0 mg/dL; ≥ 0.89 mmol/L","GRADE_CRITERIA_CODE":"case_when( is.na(AVAL) ~ NA_character_, signif(AVAL, signif_dig) >= 890 ~ \"4\", signif(AVAL, signif_dig) >= 710 ~ \"3\", signif(AVAL, signif_dig) >= 590 ~ \"2\", signif(AVAL, signif_dig) >= 450 ~ \"1\", signif(AVAL, signif_dig) < 450 ~ \"0\" )","SI_UNIT_CHECK":"umol/L","VAR_CHECK":"AVAL","DIRECTION":"H","COMMENT":"To convert \"mmol/L\" to \"umol/L\" multiply by 1000"} {"SOC":"Hematology","TERM":"Absolute CD4+ Count, Low","SUBGROUP":"> 5 years of age","Grade_1":"300 to <400/mm3; 0.30 to <0.40 x 10^9 /L","Grade_2":"200 to <300/mm3; 0.20 to <0.30 x 10^9 /L","Grade_3":"100 to <200/mm3; 0.10 to <0.20 x 10^9 /L","Grade_4":"<100/mm3; <0.10 x 10^9 /L","FILTER":"compute_duration(start_date = BRTHDT, end_date = LBDT, trunc_out = TRUE, out_unit = \"years\", add_one = FALSE, type = \"interval\") > 5 | is.na(BRTHDT) | is.na(LBDT)","GRADE_CRITERIA_CODE":"case_when( is.na(AVAL) | is.na(BRTHDT) | is.na(LBDT) ~ NA_character_, signif(AVAL, signif_dig) < 0.1 ~ \"4\", signif(AVAL, signif_dig) < 0.2 ~ \"3\", signif(AVAL, signif_dig) < 0.3 ~ \"2\", signif(AVAL, signif_dig) < 0.4 ~ \"1\", signif(AVAL, signif_dig) >= 0.4 ~ \"0\" )","SI_UNIT_CHECK":"10^9/L","VAR_CHECK":"AVAL, LBDT, BRTHDT","DIRECTION":"L","COMMENT":"Assume \"not HIV infected\""} {"SOC":"Hematology","TERM":"Absolute CD4+ Count, Low","SUBGROUP":"<= 5 years of age","FILTER":"compute_duration(start_date = BRTHDT, end_date = LBDT, trunc_out = TRUE, out_unit = \"years\", add_one = FALSE, type = \"interval\") <= 5 | is.na(BRTHDT) | is.na(LBDT)","GRADE_CRITERIA_CODE":"NA_character_","SI_UNIT_CHECK":"10^9/L","VAR_CHECK":"AVAL, LBDT, BRTHDT","DIRECTION":"L","COMMENT":"No criteria given for this age range"} {"SOC":"Hematology","TERM":"Absolute Lymphocyte Count, Low","SUBGROUP":"> 5 years of age","Grade_1":"600 to <650/mm3; 0.600 to <0.650 x 10e9/L","Grade_2":"500 to <600/mm3; 0.500 to <0.600 x 10e9 /L","Grade_3":"350 to <500/mm3; 0.350 to <0.500 x 10e9 /L","Grade_4":"<350/mm3; <0.350 x 10e9 /L","FILTER":"compute_duration(start_date = BRTHDT, end_date = LBDT, trunc_out = TRUE, out_unit = \"years\", add_one = FALSE, type = \"interval\") > 5 | is.na(BRTHDT) | is.na(LBDT)","GRADE_CRITERIA_CODE":"case_when( is.na(AVAL) | is.na(BRTHDT) | is.na(LBDT) ~ NA_character_, signif(AVAL, signif_dig) < 0.35 ~ \"4\", signif(AVAL, signif_dig) < 0.5 ~ \"3\", signif(AVAL, signif_dig) < 0.6 ~ \"2\", signif(AVAL, signif_dig) < 0.65 ~ \"1\", signif(AVAL, signif_dig) >= 0.65 ~ \"0\" )","SI_UNIT_CHECK":"10^9/L","VAR_CHECK":"AVAL, LBDT, BRTHDT","DIRECTION":"L","COMMENT":"Assume \"not HIV infected\""} {"SOC":"Hematology","TERM":"Absolute Lymphocyte Count, Low","SUBGROUP":"<= 5 years of age","FILTER":"compute_duration(start_date = BRTHDT, end_date = LBDT, trunc_out = TRUE, out_unit = \"years\", add_one = FALSE, type = \"interval\") <= 5 | is.na(BRTHDT) | is.na(LBDT)","GRADE_CRITERIA_CODE":"NA_character_","SI_UNIT_CHECK":"10^9/L","VAR_CHECK":"AVAL, LBDT, BRTHDT","DIRECTION":"L","COMMENT":"No criteria given for this age range"} {"SOC":"Hematology","TERM":"Absolute Neutrophil Count (ANC), Low","SUBGROUP":"> 7 days of age","Grade_1":"800 to 1000/mm3; 0.800 to 1.000 x 10e9 /L","Grade_2":"600 to 799/mm3; 0.600 to 0.799 x 10e9 /L","Grade_3":"400 to 599/mm3; 0.400 to 0.599 x 10e9 /L","Grade_4":"<400/mm3; <0.4 x 10e9 /L","Grade_5":"-","FILTER":"compute_duration(start_date = BRTHDT, end_date = LBDT, trunc_out = TRUE, out_unit = \"days\", add_one = FALSE) > 7 | is.na(BRTHDT) | is.na(LBDT)","GRADE_CRITERIA_CODE":"case_when( is.na(AVAL) | is.na(BRTHDT) | is.na(LBDT) ~ NA_character_, signif(AVAL, signif_dig) < 0.4 ~ \"4\", signif(AVAL, signif_dig) < 0.6 ~ \"3\", signif(AVAL, signif_dig) < 0.8 ~ \"2\", signif(AVAL, signif_dig) <= 1 ~ \"1\", signif(AVAL, signif_dig) > 1 ~ \"0\" )","SI_UNIT_CHECK":"10^9/L","VAR_CHECK":"AVAL, LBDT, BRTHDT","DIRECTION":"L"} {"SOC":"Hematology","TERM":"Absolute Neutrophil Count (ANC), Low","SUBGROUP":"2 to 7 days of age","Grade_1":"1250 to 1500/mm3; 1.250 to 1.500 x 10e9 /L","Grade_2":"1000 to 1249/mm3; 1.000 to 1.249 x 10e9 /L","Grade_3":"750 to 999/mm3; 0.750 to 0.999 x 10e9 /L","Grade_4":"<750/mm3; <0.750 x 10e9 /L","Grade_5":"-","FILTER":"(compute_duration(start_date = BRTHDT, end_date = LBDT, trunc_out = TRUE, out_unit = \"days\", add_one = FALSE) >= 2 & compute_duration(start_date = BRTHDT, end_date = LBDT, trunc_out = TRUE, out_unit = \"days\", add_one = FALSE) <= 7) | is.na(BRTHDT) | is.na(LBDT)","GRADE_CRITERIA_CODE":"case_when( is.na(AVAL) | is.na(BRTHDT) | is.na(LBDT) ~ NA_character_, signif(AVAL, signif_dig) < 0.75 ~ \"4\", signif(AVAL, signif_dig) < 1 ~ \"3\", signif(AVAL, signif_dig) < 1.25 ~ \"2\", signif(AVAL, signif_dig) <= 1.5 ~ \"1\", signif(AVAL, signif_dig) > 1.5 ~ \"0\" )","SI_UNIT_CHECK":"10^9/L","VAR_CHECK":"AVAL, LBDT, BRTHDT","DIRECTION":"L"} {"SOC":"Hematology","TERM":"Absolute Neutrophil Count (ANC), Low","SUBGROUP":"<= 1 day of age","Grade_1":"4000 to 5000/mm3; 4.000 to 5.000 x 10e9 /L","Grade_2":"3000 to 3999/mm3; 3.000 to 3.999 x 10e9 /L","Grade_3":"1500 to 2999/mm3; 1.500 to 2.999 x 10e9 /L","Grade_4":"<1550/mm3; <1.500 x 10e9 /L","Grade_5":"-","FILTER":"compute_duration(start_date = BRTHDT, end_date = LBDT, trunc_out = TRUE, out_unit = \"days\", add_one = FALSE) <= 1 | is.na(BRTHDT) | is.na(LBDT)","GRADE_CRITERIA_CODE":"case_when( is.na(AVAL) | is.na(BRTHDT) | is.na(LBDT) ~ NA_character_, signif(AVAL, signif_dig) < 1.5 ~ \"4\", signif(AVAL, signif_dig) < 3 ~ \"3\", signif(AVAL, signif_dig) < 4 ~ \"2\", signif(AVAL, signif_dig) <= 5 ~ \"1\", signif(AVAL, signif_dig) > 5 ~ \"0\" )","SI_UNIT_CHECK":"10^9/L","VAR_CHECK":"AVAL, LBDT, BRTHDT","DIRECTION":"L"} {"SOC":"Hematology","TERM":"Fibrinogen Decreased","Grade_1":"100 to < 200 mg/dL, 1.00 to < 2.00 g/L OR 0.75 to < 1.00 x LLN","Grade_2":"75 to < 100 mg/dL, 0.75 to < 1.00 g/L OR ≥ 0.50 to < 0.75 x LLN","Grade_3":"50 to < 75 mg/dL, 0.50 to < 0.75 g/L OR 0.25 to < 0.50 x LLN","Grade_4":"< 50 mg/dL, < 0.50 g/L OR < 0.25 x LLN OR Associated with gross bleeding","Grade_5":"-","GRADE_CRITERIA_CODE":"case_when( is.na(AVAL) ~ NA_character_, signif(AVAL, signif_dig) < 0.5 ~ \"4\", is.na(ANRLO) ~ NA_character_, signif(AVAL, signif_dig) < signif(0.25*ANRLO, signif_dig) ~ \"4\", signif(AVAL, signif_dig) < 0.75 ~ \"3\", signif(AVAL, signif_dig) < signif(0.5*ANRLO, signif_dig) ~ \"3\", signif(AVAL, signif_dig) < 1 ~ \"2\", signif(AVAL, signif_dig) < signif(0.75*ANRLO, signif_dig) ~ \"2\", signif(AVAL, signif_dig) < 2 ~ \"1\", signif(AVAL, signif_dig) < signif(ANRLO, signif_dig) ~ \"1\", signif(AVAL, signif_dig) >= signif(ANRLO, signif_dig) ~ \"0\" )","SI_UNIT_CHECK":"g/L","VAR_CHECK":"AVAL, ANRLO","DIRECTION":"L"} {"SOC":"Hematology","TERM":"Hemoglobin, Low","SUBGROUP":">= 13 years of age (male only)","Grade_1":"10.0 to 10.9 g/dL, 6.19 to 6.76 mmol/L","Grade_2":"9.0 to < 10.0 g/dL, 5.57 to < 6.19 mmol/L","Grade_3":"7.0 to < 9.0 g/dL, 4.34 to < 5.57 mmol/L","Grade_4":"< 7.0 g/dL, < 4.34 mmol/L","FILTER":"(SEX == \"M\" | is.na(SEX)) & (compute_duration(start_date = BRTHDT, end_date = LBDT, trunc_out = TRUE, out_unit = \"years\", add_one = FALSE, type = \"interval\") >= 13 | is.na(BRTHDT) | is.na(LBDT))","GRADE_CRITERIA_CODE":"case_when( is.na(AVAL) | is.na(SEX) | is.na(BRTHDT) | is.na(LBDT) ~ NA_character_, signif(AVAL, signif_dig) < 70 ~ \"4\", signif(AVAL, signif_dig) < 90 ~ \"3\", signif(AVAL, signif_dig) < 100 ~ \"2\", signif(AVAL, signif_dig) <= 109 ~ \"1\", signif(AVAL, signif_dig) > 109 ~ \"0\" )","SI_UNIT_CHECK":"g/L","VAR_CHECK":"AVAL, SEX, LBDT, BRTHDT","DIRECTION":"L"} {"SOC":"Hematology","TERM":"Hemoglobin, Low","SUBGROUP":">= 13 years of age (female only)","Grade_1":"9.5 to 10.4 g/dL, 5.88 to 6.48 mmol/L","Grade_2":"8.5 to < 9.5 g/dL, 5.25 to < 5.88 mmol/L","Grade_3":"6.5 to < 8.5 g/dL, 4.03 to < 5.25 mmol/L","Grade_4":"< 6.5 g/dL, < 4.03 mmol/L","FILTER":"(SEX == \"F\" | is.na(SEX)) & (compute_duration(start_date = BRTHDT, end_date = LBDT, trunc_out = TRUE, out_unit = \"years\", add_one = FALSE, type = \"interval\") >= 13 | is.na(BRTHDT) | is.na(LBDT))","GRADE_CRITERIA_CODE":"case_when( is.na(AVAL) | is.na(SEX) | is.na(BRTHDT) | is.na(LBDT) ~ NA_character_, signif(AVAL, signif_dig) < 65 ~ \"4\", signif(AVAL, signif_dig) < 85 ~ \"3\", signif(AVAL, signif_dig) < 95 ~ \"2\", signif(AVAL, signif_dig) <= 104 ~ \"1\", signif(AVAL, signif_dig) > 104 ~ \"0\" )","SI_UNIT_CHECK":"g/L","VAR_CHECK":"AVAL, SEX, LBDT, BRTHDT","DIRECTION":"L"} {"SOC":"Hematology","TERM":"Hemoglobin, Low","SUBGROUP":"57 days of age to < 13 years of age (male and female)","Grade_1":"9.5 to 10.4 g/dL, 5.88 to 6.48 mmol/L","Grade_2":"8.5 to < 9.5 g/dL, 5.25 to < 5.88 mmol/L","Grade_3":"6.5 to < 8.5 g/dL, 4.03 to < 5.25 mmol/L","Grade_4":"< 6.5 g/dL, < 4.03 mmol/L","FILTER":"(compute_duration(start_date = BRTHDT, end_date = LBDT, trunc_out = TRUE, out_unit = \"years\", add_one = FALSE, type = \"interval\") < 13 & compute_duration(start_date = BRTHDT, end_date = LBDT, trunc_out = TRUE, out_unit = \"days\", add_one = FALSE) >= 57) | is.na(BRTHDT) | is.na(LBDT)","GRADE_CRITERIA_CODE":"case_when( is.na(AVAL) | is.na(BRTHDT) | is.na(LBDT) ~ NA_character_, signif(AVAL, signif_dig) < 65 ~ \"4\", signif(AVAL, signif_dig) < 85 ~ \"3\", signif(AVAL, signif_dig) < 95 ~ \"2\", signif(AVAL, signif_dig) <= 104 ~ \"1\", signif(AVAL, signif_dig) > 104 ~ \"0\" )","SI_UNIT_CHECK":"g/L","VAR_CHECK":"AVAL, LBDT, BRTHDT","DIRECTION":"L"} {"SOC":"Hematology","TERM":"Hemoglobin, Low","SUBGROUP":"36 to 56 days of age (male and female)","Grade_1":"8.5 to 9.6 g/dL, 5.26 to 5.99 mmol/L","Grade_2":"7.0 to < 8.5 g/dL, 4.32 to < 5.26 mmol/L","Grade_3":"6.0 to < 7.0 g/dL, 3.72 to < 4.32 mmol/L","Grade_4":"< 6.0 g/dL, < 3.72 mmol/L","FILTER":"(compute_duration(start_date = BRTHDT, end_date = LBDT, trunc_out = TRUE, out_unit = \"days\", add_one = FALSE) <= 56 & compute_duration(start_date = BRTHDT, end_date = LBDT, trunc_out = TRUE, out_unit = \"days\", add_one = FALSE) >= 36) | is.na(BRTHDT) | is.na(LBDT)","GRADE_CRITERIA_CODE":"case_when( is.na(AVAL) | is.na(BRTHDT) | is.na(LBDT) ~ NA_character_, signif(AVAL, signif_dig) < 60 ~ \"4\", signif(AVAL, signif_dig) < 70 ~ \"3\", signif(AVAL, signif_dig) < 85 ~ \"2\", signif(AVAL, signif_dig) <= 96 ~ \"1\", signif(AVAL, signif_dig) > 96 ~ \"0\" )","SI_UNIT_CHECK":"g/L","VAR_CHECK":"AVAL, LBDT, BRTHDT","DIRECTION":"L"} {"SOC":"Hematology","TERM":"Hemoglobin, Low","SUBGROUP":"22 to 35 days of age (male and female)","Grade_1":"9.5 to 11.0 g/dL, 5.88 to 6.86 mmol/L","Grade_2":"8.0 to < 9.5 g/dL, 4.94 to < 5.88 mmol/L","Grade_3":"6.7 to < 8.0 g/dL, 4.15 to < 4.94 mmol/L","Grade_4":"< 6.7 g/dL, < 4.15 mmol/L","FILTER":"(compute_duration(start_date = BRTHDT, end_date = LBDT, trunc_out = TRUE, out_unit = \"days\", add_one = FALSE) <= 35 & compute_duration(start_date = BRTHDT, end_date = LBDT, trunc_out = TRUE, out_unit = \"days\", add_one = FALSE) >= 22) | is.na(BRTHDT) | is.na(LBDT)","GRADE_CRITERIA_CODE":"case_when( is.na(AVAL) | is.na(BRTHDT) | is.na(LBDT) ~ NA_character_, signif(AVAL, signif_dig) < 67 ~ \"4\", signif(AVAL, signif_dig) < 80 ~ \"3\", signif(AVAL, signif_dig) < 95 ~ \"2\", signif(AVAL, signif_dig) <= 110 ~ \"1\", signif(AVAL, signif_dig) > 110 ~ \"0\" )","SI_UNIT_CHECK":"g/L","VAR_CHECK":"AVAL, LBDT, BRTHDT","DIRECTION":"L"} {"SOC":"Hematology","TERM":"Hemoglobin, Low","SUBGROUP":"8 to 21 days of age (male and female)","Grade_1":"11.0 to 13.0 g/dL, 6.81 to 8.10 mmol/L","Grade_2":"9.0 to < 11.0 g/dL, 5.57 to < 6.81 mmol/L","Grade_3":"8.0 to < 9.0 g/dL, 4.96 to < 5.57 mmol/L","Grade_4":"< 8.0 g/dL, < 4.96 mmol/L","FILTER":"(compute_duration(start_date = BRTHDT, end_date = LBDT, trunc_out = TRUE, out_unit = \"days\", add_one = FALSE) <= 21 & compute_duration(start_date = BRTHDT, end_date = LBDT, trunc_out = TRUE, out_unit = \"days\", add_one = FALSE) >= 8) | is.na(BRTHDT) | is.na(LBDT)","GRADE_CRITERIA_CODE":"case_when( is.na(AVAL) | is.na(BRTHDT) | is.na(LBDT) ~ NA_character_, signif(AVAL, signif_dig) < 80 ~ \"4\", signif(AVAL, signif_dig) < 90 ~ \"3\", signif(AVAL, signif_dig) < 110 ~ \"2\", signif(AVAL, signif_dig) <= 130 ~ \"1\", signif(AVAL, signif_dig) > 130 ~ \"0\" )","SI_UNIT_CHECK":"g/L","VAR_CHECK":"AVAL, LBDT, BRTHDT","DIRECTION":"L"} {"SOC":"Hematology","TERM":"Hemoglobin, Low","SUBGROUP":"<= 7 days of age (male and female)","Grade_1":"13.0 to 14.0 g/dL, 8.05 to 8.72 mmol/L","Grade_2":"10.0 to < 13.0 g/dL, 6.19 to < 8.05 mmol/L","Grade_3":"9.0 to < 10.0 g/dL, 5.59 to < 6.19 mmol/L","Grade_4":"< 9.0 g/dL, < 5.59 mmol/L","FILTER":"compute_duration(start_date = BRTHDT, end_date = LBDT, trunc_out = TRUE, out_unit = \"days\", add_one = FALSE) <= 7 | is.na(BRTHDT) | is.na(LBDT)","GRADE_CRITERIA_CODE":"case_when( is.na(AVAL) | is.na(BRTHDT) | is.na(LBDT) ~ NA_character_, signif(AVAL, signif_dig) < 90 ~ \"4\", signif(AVAL, signif_dig) < 100 ~ \"3\", signif(AVAL, signif_dig) < 130 ~ \"2\", signif(AVAL, signif_dig) <= 140 ~ \"1\", signif(AVAL, signif_dig) > 140 ~ \"0\" )","SI_UNIT_CHECK":"g/L","VAR_CHECK":"AVAL, LBDT, BRTHDT","DIRECTION":"L"} {"SOC":"Hematology","TERM":"INR, High","Grade_1":"1.1 - <1.5 x ULN","Grade_2":"1.5 - <2.0 x ULN","Grade_3":"2.0 - <3.0 x ULN","Grade_4":">=3.0 x ULN","GRADE_CRITERIA_CODE":"case_when( is.na(AVAL) | is.na(ANRHI) ~ NA_character_, signif(AVAL, signif_dig) >= signif(3*ANRHI, signif_dig) ~ \"4\", signif(AVAL, signif_dig) >= signif(2*ANRHI, signif_dig) ~ \"3\", signif(AVAL, signif_dig) >= signif(1.5*ANRHI, signif_dig) ~ \"2\", signif(AVAL, signif_dig) >= signif(1.1*ANRHI, signif_dig) ~ \"1\", signif(AVAL, signif_dig) < signif(1.1*ANRHI, signif_dig) ~ \"0\" )","VAR_CHECK":"AVAL, ANRHI","DIRECTION":"H","COMMENT":"Assume \"not on anticoagulation\""} {"SOC":"Hematology","TERM":"Methemoglobin","Grade_1":"5.0 to < 10.0%","Grade_2":"10.0 to < 15.0%","Grade_3":"15.0 to < 20.0%","Grade_4":">=20.0%","GRADE_CRITERIA_CODE":"case_when( is.na(AVAL) ~ NA_character_, signif(AVAL, signif_dig) >= 20 ~ \"4\", signif(AVAL, signif_dig) >= 15 ~ \"3\", signif(AVAL, signif_dig) >= 10 ~ \"2\", signif(AVAL, signif_dig) >= 5 ~ \"1\", signif(AVAL, signif_dig) < 5 ~ \"0\" )","SI_UNIT_CHECK":"%","VAR_CHECK":"AVAL","DIRECTION":"H","COMMENT":"% hemoglobin"} {"SOC":"Hematology","TERM":"PTT, High","Grade_1":"1.1 to < 1.66 x ULN","Grade_2":"1.66 to < 2.33 x ULN","Grade_3":"2.33 to < 3.00 x ULN","Grade_4":">=3.00 x ULN","GRADE_CRITERIA_CODE":"case_when( is.na(AVAL) | is.na(ANRHI) ~ NA_character_, signif(AVAL, signif_dig) >= signif(3*ANRHI, signif_dig) ~ \"4\", signif(AVAL, signif_dig) >= signif(2.33*ANRHI, signif_dig) ~ \"3\", signif(AVAL, signif_dig) >= signif(1.66*ANRHI, signif_dig) ~ \"2\", signif(AVAL, signif_dig) >= signif(1.1*ANRHI, signif_dig) ~ \"1\", signif(AVAL, signif_dig) < signif(1.1*ANRHI, signif_dig) ~ \"0\" )","VAR_CHECK":"AVAL, ANRHI","DIRECTION":"H","COMMENT":"Assume \"not on anticoagulation\""} {"SOC":"Hematology","TERM":"Platelets, Decreased","Grade_1":"100,000 to <125,000/mm3; 100.00 - <125.000 x 10e9 /L","Grade_2":"50,000 to <100,000 - /mm3; 50.0 to <100.000 - x 10e9 /L","Grade_3":"25,000 to <50,000 - /mm3; 25.000 to <50.000 x 10e9 /L","Grade_4":"<25,000/mm3; <25.000 x 10e9 /L","Grade_5":"-","GRADE_CRITERIA_CODE":"case_when( is.na(AVAL) ~ NA_character_, signif(AVAL, signif_dig) < 25 ~ \"4\", signif(AVAL, signif_dig) < 50 ~ \"3\", signif(AVAL, signif_dig) < 100 ~ \"2\", signif(AVAL, signif_dig) < 125 ~ \"1\", signif(AVAL, signif_dig) >= 125 ~ \"0\" )","SI_UNIT_CHECK":"10^9/L","VAR_CHECK":"AVAL","DIRECTION":"L"} {"SOC":"Hematology","TERM":"PT, High","Grade_1":"1.1 to < 1.25 x ULN","Grade_2":"1.25 to < 1.50 x ULN","Grade_3":"1.50 to < 3.00 x ULN","Grade_4":">=3.00 x ULN","GRADE_CRITERIA_CODE":"case_when( is.na(AVAL) | is.na(ANRHI) ~ NA_character_, signif(AVAL, signif_dig) >= signif(3*ANRHI, signif_dig) ~ \"4\", signif(AVAL, signif_dig) >= signif(1.5*ANRHI, signif_dig) ~ \"3\", signif(AVAL, signif_dig) >= signif(1.25*ANRHI, signif_dig) ~ \"2\", signif(AVAL, signif_dig) >= signif(1.1*ANRHI, signif_dig) ~ \"1\", signif(AVAL, signif_dig) < signif(1.1*ANRHI, signif_dig) ~ \"0\" )","VAR_CHECK":"AVAL, ANRHI","DIRECTION":"H","COMMENT":"Assume \"not on anticoagulation\""} {"SOC":"Hematology","TERM":"WBC, Decreased","SUBGROUP":"> 7 days of age","Grade_1":"2000 to 2499/mm3; 2.000 to 2.499 x 10e9/L","Grade_2":"1500 to 1999/mm3; 1.5 to 1.999 x 10e9/L","Grade_3":"1000 to 1499/mm3; 1.000 to 1.499 x 10e9/L","Grade_4":"<1000/mm3; <1.000 x 10e9/L","FILTER":"compute_duration(start_date = BRTHDT, end_date = LBDT, trunc_out = TRUE, out_unit = \"days\", add_one = FALSE) > 7 | is.na(BRTHDT) | is.na(LBDT)","GRADE_CRITERIA_CODE":"case_when( is.na(AVAL) | is.na(BRTHDT) | is.na(LBDT) ~ NA_character_, signif(AVAL, signif_dig) < 1 ~ \"4\", signif(AVAL, signif_dig) < 1.5 ~ \"3\", signif(AVAL, signif_dig) < 2 ~ \"2\", signif(AVAL, signif_dig) < 2.5 ~ \"1\", signif(AVAL, signif_dig) >= 2.5 ~ \"0\" )","SI_UNIT_CHECK":"10^9/L","VAR_CHECK":"AVAL, LBDT, BRTHDT","DIRECTION":"L"} {"SOC":"Hematology","TERM":"WBC, Decreased","SUBGROUP":"<= 7 days of age","Grade_1":"5500 to 6999/mm3; 5.500 to 6.999 x 10e9/L","Grade_2":"4000 to 5499/mm3; 4.000 to 5.499 x 10e9/L","Grade_3":"2500 to 3999/mm3; 2.500 to 3.999 x 10e9/L","Grade_4":"<2500/mm3; <2.500 x 10e9/L","FILTER":"compute_duration(start_date = BRTHDT, end_date = LBDT, trunc_out = TRUE, out_unit = \"days\", add_one = FALSE) <= 7 | is.na(BRTHDT) | is.na(LBDT)","GRADE_CRITERIA_CODE":"case_when( is.na(AVAL) | is.na(BRTHDT) | is.na(LBDT) ~ NA_character_, signif(AVAL, signif_dig) < 2.5 ~ \"4\", signif(AVAL, signif_dig) < 4 ~ \"3\", signif(AVAL, signif_dig) < 5.5 ~ \"2\", signif(AVAL, signif_dig) < 7 ~ \"1\", signif(AVAL, signif_dig) >= 7 ~ \"0\" )","SI_UNIT_CHECK":"10^9/L","VAR_CHECK":"AVAL, LBDT, BRTHDT","DIRECTION":"L"}