From f54afad4770f784aabb6fff4f5deba5e4eccc23c Mon Sep 17 00:00:00 2001 From: Manuel Burger Date: Tue, 26 Mar 2024 09:47:14 +0100 Subject: [PATCH] Config updates: - Fix sic bugs - Slack temp range --- inst/extdata/config/concept-dict/chemistry.json | 6 ++++-- inst/extdata/config/concept-dict/hematology.json | 8 +++++--- inst/extdata/config/concept-dict/vitals.json | 4 ++-- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/inst/extdata/config/concept-dict/chemistry.json b/inst/extdata/config/concept-dict/chemistry.json index 39fbd784..fab37aee 100644 --- a/inst/extdata/config/concept-dict/chemistry.json +++ b/inst/extdata/config/concept-dict/chemistry.json @@ -876,7 +876,8 @@ "ids": 253, "table": "laboratory", "sub_var": "laboratoryid", - "class": "sic_itm" + "class": "sic_itm", + "callback": "convert_unit(identity_callback, 'ng/mL', 'µg/l')" } ], "picdb": [ @@ -1133,7 +1134,8 @@ "ids": 341, "table": "laboratory", "sub_var": "laboratoryid", - "class": "sic_itm" + "class": "sic_itm", + "callback": "convert_unit(binary_op(`*`, 10), 'mg/L', 'mg/dl')" } ], "picdb": [ diff --git a/inst/extdata/config/concept-dict/hematology.json b/inst/extdata/config/concept-dict/hematology.json index 3d9b5ef5..8aac6cf7 100644 --- a/inst/extdata/config/concept-dict/hematology.json +++ b/inst/extdata/config/concept-dict/hematology.json @@ -699,7 +699,8 @@ { "ids": 223, "table": "laboratory", - "sub_var": "LaboratoryID" + "sub_var": "laboratoryid", + "class": "sic_itm" }, { "ids": 302, @@ -854,7 +855,7 @@ "ids": 290, "table": "laboratory", "sub_var": "laboratoryid", - "callback": "convert_unit(binary_op(`*`, 0.16114), '%')", + "callback": "convert_unit(binary_op(`*`, 1.6114), '%', 'g/dl')", "class": "sic_itm" } ], @@ -1327,7 +1328,8 @@ "ids": 599, "table": "laboratory", "sub_var": "laboratoryid", - "class": "sic_itm" + "class": "sic_itm", + "callback": "convert_unit(identity_callback, 'm/uL', 'T/L.')" } ], "picdb": [ diff --git a/inst/extdata/config/concept-dict/vitals.json b/inst/extdata/config/concept-dict/vitals.json index 395fa144..75967e5e 100644 --- a/inst/extdata/config/concept-dict/vitals.json +++ b/inst/extdata/config/concept-dict/vitals.json @@ -476,8 +476,8 @@ "C", "\u00b0C" ], - "min": 32, - "max": 42, + "min": 30, + "max": 44, "description": "temperature", "omopid": 4302666, "category": "vitals",