From 54be430f5a5e48ec7a7a42743177c686ed73995a Mon Sep 17 00:00:00 2001 From: prafful Date: Thu, 26 Sep 2024 07:27:19 +0530 Subject: [PATCH 01/11] updated populate fixing-investigation command --- .../commands/populate_investigations.py | 79 ++++++++++--------- data/investigations.json | 12 --- 2 files changed, 42 insertions(+), 49 deletions(-) diff --git a/care/users/management/commands/populate_investigations.py b/care/users/management/commands/populate_investigations.py index c64a46c1ae..30c12a5dff 100644 --- a/care/users/management/commands/populate_investigations.py +++ b/care/users/management/commands/populate_investigations.py @@ -17,66 +17,57 @@ class Command(BaseCommand): - """ - Populates Investigation seed data - """ - help = "Seed Data for Investigations" def handle(self, *args, **kwargs): investigation_group_dict = {} - investigation_groups_to_create = [ - PatientInvestigationGroup(name=group.get("name")) - for group in investigation_groups - if group.get("id") not in investigation_group_dict - ] - created_groups = PatientInvestigationGroup.objects.bulk_create( - investigation_groups_to_create - ) - investigation_group_dict.update({group.id: group for group in created_groups}) - - existing_objs = PatientInvestigation.objects.filter( - name__in=[investigation["name"] for investigation in investigations] - ) + for investigation_group in investigation_groups: + current_obj = PatientInvestigationGroup.objects.filter( + name=investigation_group["name"] + ).first() + if not current_obj: + current_obj = PatientInvestigationGroup( + name=investigation_group["name"] + ) + current_obj.save() + investigation_group_dict[str(investigation_group["id"])] = current_obj bulk_create_data = [] bulk_update_data = [] + investigations_to_update_groups = [] for investigation in investigations: data = { "name": investigation["name"], "unit": investigation.get("unit", ""), "ideal_value": investigation.get("ideal_value", ""), - "min_value": ( - None - if investigation.get("min_value") is None - else float(investigation.get("min_value")) - ), - "max_value": ( - None - if investigation.get("max_value") is None - else float(investigation.get("max_value")) - ), + "min_value": float(investigation["min"]) + if investigation.get("min") is not None + else None, + "max_value": float(investigation["max"]) + if investigation.get("max") is not None + else None, "investigation_type": investigation["type"], "choices": investigation.get("choices", ""), } - existing_obj = existing_objs.filter(name=data["name"]).first() + existing_obj = PatientInvestigation.objects.filter( + name=data["name"] + ).first() if existing_obj: + for field, value in data.items(): + setattr(existing_obj, field, value) bulk_update_data.append(existing_obj) + investigations_to_update_groups.append( + (existing_obj, investigation["category_id"]) + ) else: new_obj = PatientInvestigation(**data) bulk_create_data.append(new_obj) - - group_ids = investigation.get("category_ids", []) - groups_to_add = [ - investigation_group_dict[category_id] for category_id in group_ids - ] - if existing_obj: - existing_obj.groups.set(groups_to_add) - else: - data["groups"] = groups_to_add + investigations_to_update_groups.append( + (new_obj, investigation["category_id"]) + ) with transaction.atomic(): if bulk_create_data: @@ -94,3 +85,17 @@ def handle(self, *args, **kwargs): "choices", ], ) + + for investigation_obj, category_ids in investigations_to_update_groups: + groups_to_add = [ + investigation_group_dict.get(str(category_id)) + for category_id in category_ids + ] + investigation_obj.save() # Save the object if it's new + investigation_obj.groups.set( + groups_to_add + ) # Set many-to-many relationship for groups + + self.stdout.write( + self.style.SUCCESS("Successfully populated investigation data") + ) diff --git a/data/investigations.json b/data/investigations.json index a33a48c6d5..aa74f1077d 100644 --- a/data/investigations.json +++ b/data/investigations.json @@ -1814,17 +1814,5 @@ 3, 7 ] - }, - { - "name": "Serum Creatinine Clearance", - "type": "Float", - "choices": null, - "unit": "mL/min ", - "ideal": "110 to 150mL/min (males),100 to 130mL/min (females)", - "min": "Varies based on age, sex, and muscle mass", - "max": "55 - 105 mL/min (females)", - "category_id": [ - 7 - ] } ] From 515656556663a52fb436840970bb78cee7633ed6 Mon Sep 17 00:00:00 2001 From: prafful Date: Thu, 26 Sep 2024 07:34:47 +0530 Subject: [PATCH 02/11] removed comments --- care/users/management/commands/populate_investigations.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/care/users/management/commands/populate_investigations.py b/care/users/management/commands/populate_investigations.py index 30c12a5dff..a18bf3c36f 100644 --- a/care/users/management/commands/populate_investigations.py +++ b/care/users/management/commands/populate_investigations.py @@ -91,10 +91,8 @@ def handle(self, *args, **kwargs): investigation_group_dict.get(str(category_id)) for category_id in category_ids ] - investigation_obj.save() # Save the object if it's new - investigation_obj.groups.set( - groups_to_add - ) # Set many-to-many relationship for groups + investigation_obj.save() + investigation_obj.groups.set(groups_to_add) self.stdout.write( self.style.SUCCESS("Successfully populated investigation data") From d6c4d856cc949a82223b8a966251480b77837dda Mon Sep 17 00:00:00 2001 From: prafful Date: Mon, 7 Oct 2024 20:28:17 +0530 Subject: [PATCH 03/11] added error handling for uncleaned data --- .../commands/populate_investigations.py | 26 ++++++++++++++----- data/investigations.json | 12 +++++++++ 2 files changed, 32 insertions(+), 6 deletions(-) diff --git a/care/users/management/commands/populate_investigations.py b/care/users/management/commands/populate_investigations.py index a18bf3c36f..f25ad41bfd 100644 --- a/care/users/management/commands/populate_investigations.py +++ b/care/users/management/commands/populate_investigations.py @@ -42,16 +42,30 @@ def handle(self, *args, **kwargs): "name": investigation["name"], "unit": investigation.get("unit", ""), "ideal_value": investigation.get("ideal_value", ""), - "min_value": float(investigation["min"]) - if investigation.get("min") is not None - else None, - "max_value": float(investigation["max"]) - if investigation.get("max") is not None - else None, + "min_value": None, + "max_value": None, "investigation_type": investigation["type"], "choices": investigation.get("choices", ""), } + try: + data["min_value"] = ( + float(investigation["min"]) + if investigation.get("min") is not None + else None + ) + except (ValueError, TypeError): + data["min_value"] = None + + try: + data["max_value"] = ( + float(investigation["max"]) + if investigation.get("max") is not None + else None + ) + except (ValueError, TypeError): + data["max_value"] = None + existing_obj = PatientInvestigation.objects.filter( name=data["name"] ).first() diff --git a/data/investigations.json b/data/investigations.json index aa74f1077d..389e92eca5 100644 --- a/data/investigations.json +++ b/data/investigations.json @@ -1814,5 +1814,17 @@ 3, 7 ] + }, + { + "name": "Serum Creatinine Clearance", + "type": "Float", + "choices": null, + "unit": "mL/min ", + "ideal": "110 to 150mL/min (males),100 to 130mL/min (females)", + "min": "Varies based on age, sex, and muscle mass", + "max": "55 - 105 mL/min (females)", + "category_id": [ + 7 + ] } ] From 31cb31ed2a98ce8a9a1c8fe575cc06febe2e869a Mon Sep 17 00:00:00 2001 From: prafful Date: Mon, 7 Oct 2024 20:28:56 +0530 Subject: [PATCH 04/11] added error handling for uncleaned data --- data/investigations.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/investigations.json b/data/investigations.json index 389e92eca5..a33a48c6d5 100644 --- a/data/investigations.json +++ b/data/investigations.json @@ -1824,7 +1824,7 @@ "min": "Varies based on age, sex, and muscle mass", "max": "55 - 105 mL/min (females)", "category_id": [ - 7 + 7 ] } ] From abf76fd8a4c94c6b0813a04b372a435efc03e9c7 Mon Sep 17 00:00:00 2001 From: prafful Date: Tue, 8 Oct 2024 20:06:42 +0530 Subject: [PATCH 05/11] updated investigation json --- .../commands/populate_investigations.py | 2 +- data/investigation_groups.json | 108 +- data/investigations.json | 4616 ++++++++++------- 3 files changed, 2869 insertions(+), 1857 deletions(-) diff --git a/care/users/management/commands/populate_investigations.py b/care/users/management/commands/populate_investigations.py index f25ad41bfd..5114769349 100644 --- a/care/users/management/commands/populate_investigations.py +++ b/care/users/management/commands/populate_investigations.py @@ -44,7 +44,7 @@ def handle(self, *args, **kwargs): "ideal_value": investigation.get("ideal_value", ""), "min_value": None, "max_value": None, - "investigation_type": investigation["type"], + "investigation_type": investigation.get("type", None), "choices": investigation.get("choices", ""), } diff --git a/data/investigation_groups.json b/data/investigation_groups.json index 210fa3da3d..711a558f15 100644 --- a/data/investigation_groups.json +++ b/data/investigation_groups.json @@ -1,30 +1,82 @@ [ - { - "id": "1", - "name": "Haematology" - }, - { - "id": "2", - "name": "Biochemistry test" - }, - { - "id": "3", - "name": "Urine Test" - }, - { - "id": "4", - "name": "CBC" - }, - { - "id": "5", - "name": "Differential white blood cell count" - }, - { - "id": "6", - "name": "Liver Function Test" - }, - { - "id": "7", - "name": "Kidney Function test" - } + { + "id": "1", + "name": "Haematology" + }, + { + "id": "2", + "name": "Biochemistry test" + }, + { + "id": "3", + "name": "Urine Test" + }, + { + "id": "4", + "name": "CBC" + }, + { + "id": "5", + "name": "Differential white blood cell count" + }, + { + "id": "6", + "name": "Liver Function Test" + }, + { + "id": "7", + "name": "Kidney Function test" + }, + { + "id": "8", + "name": "Elecyrolytes" + }, + { + "id": "9", + "name": "Lipid Profile" + }, + { + "id": "10", + "name": "ABG" + }, + { + "id": "11", + "name": "Cardiac Enzyme" + }, + { + "id": "12", + "name": "RFT" + }, + { + "id": "13", + "name": "Blood Glucose Level" + }, + { + "id": "14", + "name": "Immunoglobulins" + }, + { + "id": "15", + "name": "Other Body Fluids" + }, + { + "id": "16", + "name": "Cerebro Spinal Fluid analysis" + }, + { + "id": "17", + "name": "Gastric Analysis" + }, + { + "id": "18", + "name": "Semen analysis" + }, + { + "id": "19", + "name": "Stool Examination" + }, + { + "id": "20", + "name": "Thyroid Function Test" + } ] diff --git a/data/investigations.json b/data/investigations.json index a33a48c6d5..d3196b7de7 100644 --- a/data/investigations.json +++ b/data/investigations.json @@ -1,1830 +1,2790 @@ [ - { - "name": "Blood Group", - "type": "Choice", - "choices": "A-,A+,B+,B-,O+,O-,AB-,AB+", - "unit": null, - "ideal": null, - "min": null, - "max": null, - "category_id": [ - 1 - ] - }, - { - "name": "Total Count", - "type": "Float", - "choices": null, - "unit": "cell/cumm", - "ideal": "4500-11000 cells/cumm", - "min": 4500, - "max": 11000, - "category_id": [ - 1 - ] - }, - { - "name": "Neutrophil count", - "type": "Float", - "choices": null, - "unit": "cell/cumm", - "ideal": "4500-11000 cells/cumm", - "min": 4500, - "max": 11000, - "category_id": [ - 1 - ] - }, - { - "name": "Lymphocyte count Eosinophil count", - "type": "Float", - "choices": null, - "unit": "cell/cumm", - "ideal": "4500-11000 cells/cumm", - "min": 4500, - "max": 11000, - "category_id": [ - 1 - ] - }, - { - "name": "Eosinophil count", - "type": "Float", - "choices": null, - "unit": "cell/cumm", - "ideal": "4500-11000 cells/cumm", - "min": 4500, - "max": 11000, - "category_id": [ - 1 - ] - }, - { - "name": "Basophil count", - "type": "Float", - "choices": null, - "unit": "cell/cumm", - "ideal": "4500-11000 cells/cumm", - "min": 4500, - "max": 11000, - "category_id": [ - 1 - ] - }, - { - "name": "Monocyte count", - "type": "Float", - "choices": null, - "unit": "cell/cumm", - "ideal": "4500-11000 cells/cumm", - "min": 4500, - "max": 11000, - "category_id": [ - 1 - ] - }, - { - "name": "neutrophil", - "type": "Float", - "choices": null, - "unit": "%", - "ideal": "40-60 %", - "min": 40, - "max": 60, - "category_id": [ - 1 - ] - }, - { - "name": "lymphocyte", - "type": "Float", - "choices": null, - "unit": "%", - "ideal": "20-4 %", - "min": 20, - "max": 4, - "category_id": [ - 1 - ] - }, - { - "name": "eosinophil", - "type": "Float", - "choices": null, - "unit": "%", - "ideal": "1-3 %", - "min": 1, - "max": 3, - "category_id": [ - 1 - ] - }, - { - "name": "basophile", - "type": "Float", - "choices": null, - "unit": "%", - "ideal": "0-1 %", - "min": 0, - "max": 1, - "category_id": [ - 1 - ] - }, - { - "name": "monocyte", - "type": "Float", - "choices": null, - "unit": "%", - "ideal": "4-8 %", - "min": 4, - "max": 8, - "category_id": [ - 1 - ] - }, - { - "name": "Hb", - "type": "Float", - "choices": null, - "unit": "gm%", - "ideal": "men 14-17 gm% , woman 12-16 gm% ,children 12-14 gm%", - "min": 12, - "max": 17, - "category_id": [ - 4 - ] - }, - { - "name": "PCV", - "type": "Float", - "choices": null, - "unit": "%", - "ideal": "Men 38-51 gm% , Woman 36-47%", - "min": 36, - "max": 51, - "category_id": [ - 1 - ] - }, - { - "name": "RBC count", - "type": "Float", - "choices": null, - "unit": "million/cumm", - "ideal": "4.5-6.0 million/cumm", - "min": 4.5, - "max": 6, - "category_id": [ - 4 - ] - }, - { - "name": "RDW", - "type": "Float", - "choices": null, - "unit": "%", - "ideal": "11.8 - 16.1%", - "min": 11.8, - "max": 16.1, - "category_id": [ - 1 - ] - }, - { - "name": "Platelets", - "type": "Float", - "choices": null, - "unit": "lakhs/cumm", - "ideal": "1.5-4.5 lakhs/cumm", - "min": 1.5, - "max": 4.5, - "category_id": [ - 4 - ] - }, - { - "name": "MCV", - "type": "Float", - "choices": null, - "unit": "Fl", - "ideal": "80-96 Fl", - "min": 80, - "max": 96, - "category_id": [ - 4 - ] - }, - { - "name": "MCH", - "type": "Float", - "choices": null, - "unit": "pg", - "ideal": "27-33 pg", - "min": 27, - "max": 33, - "category_id": [ - 4 - ] - }, - { - "name": "MCHC", - "type": "Float", - "choices": null, - "unit": "g/dl", - "ideal": "33.4-35.5 g/dl", - "min": 33.4, - "max": 35.5, - "category_id": [ - 4 - ] - }, - { - "name": "ESR", - "type": "Float", - "choices": null, - "unit": "mm/hr", - "ideal": "0-20 mm/hr", - "min": 0, - "max": 20, - "category_id": [ - 1 - ] - }, - { - "name": "Peripheral blood smear", - "type": "String", - "choices": null, - "unit": "", - "ideal": "", - "min": null, - "max": null, - "category_id": [ - 1 - ] - }, - { - "name": "Reticulocyte count", - "type": "Float", - "choices": null, - "unit": "%", - "ideal": "adults 0.5-1.5%, newborns 3-6%", - "min": 0.5, - "max": 6, - "category_id": [ - 1 - ] - }, - { - "name": "M P smear", - "type": "String", - "choices": null, - "unit": "", - "ideal": "", - "min": null, - "max": null, - "category_id": [ - 1 - ] - }, - { - "name": "FBS", - "type": "Float", - "choices": null, - "unit": "mg/dl", - "ideal": "70-110 mg/dl", - "min": 70, - "max": 110, - "category_id": [ - 2 - ] - }, - { - "name": "PPBS", - "type": "Float", - "choices": null, - "unit": "mg/dl", - "ideal": "< 140 mg/dl", - "min": 0, - "max": 140, - "category_id": [ - 2 - ] - }, - { - "name": "RBS", - "type": "Float", - "choices": null, - "unit": "mg/dl", - "ideal": "80-120 mg/dl", - "min": 80, - "max": 120, - "category_id": [ - 2 - ] - }, - { - "name": "T. Cholestrol", - "type": "Float", - "choices": null, - "unit": "mg/dl", - "ideal": "150-220 mg/dl", - "min": 150, - "max": 220, - "category_id": [ - 2 - ] - }, - { - "name": "LDL", - "type": "Float", - "choices": null, - "unit": "mg/dl", - "ideal": "< 130 mg/dl", - "min": 0, - "max": 130, - "category_id": [ - 2 - ] - }, - { - "name": "HDL", - "type": "Float", - "choices": null, - "unit": "mg/dl", - "ideal": "male 35-80 mg/dl, female 40-88 mg/dl", - "min": 35, - "max": 88, - "category_id": [ - 2 - ] - }, - { - "name": "Triglycerides", - "type": "Float", - "choices": null, - "unit": "mg/dl", - "ideal": "male 60-165 mg/dl, female 40-140 mg/dl", - "min": 40, - "max": 165, - "category_id": [ - 2 - ] - }, - { - "name": "VLDL", - "type": "Float", - "choices": null, - "unit": "mg/dl", - "ideal": "2-30 mg/dl", - "min": 2, - "max": 30, - "category_id": [ - 2 - ] - }, - { - "name": "Urea", - "type": "Float", - "choices": null, - "unit": "mg/dl", - "ideal": "10-50 mg/dl", - "min": 10, - "max": 50, - "category_id": [ - 2 - ] - }, - { - "name": "Uric Acid", - "type": "Float", - "choices": null, - "unit": "mg/dl", - "ideal": "male 3.5-7.2 mg/dl, female 2.6-6 mg/dl", - "min": 2.6, - "max": 7.2, - "category_id": [ - 2 - ] - }, - { - "name": "Creatinine", - "type": "Float", - "choices": null, - "unit": "mg/dl", - "ideal": "male 0.7-1.4 mg/dl, female 0.6-1.2 mg/dl", - "min": 0.6, - "max": 1.4, - "category_id": [ - 2 - ] - }, - { - "name": "CRP", - "type": "Float", - "choices": null, - "unit": "mg/l", - "ideal": "upto 6 mg/l", - "min": 0, - "max": 6, - "category_id": [ - 2 - ] - }, - { - "name": "Serum Sodium (Na+)", - "type": "Float", - "choices": null, - "unit": "mmol/l", - "ideal": "135-155 mmol/l", - "min": 135, - "max": 155, - "category_id": [ - 2 - ] - }, - { - "name": "Serum Potassium (K+)", - "type": "Float", - "choices": null, - "unit": "mmol/l", - "ideal": "3.5 - 5.5 mmol/l", - "min": 3.5, - "max": 5.5, - "category_id": [ - 2 - ] - }, - { - "name": "Serum Calcium", - "type": "Float", - "choices": null, - "unit": "mg/dl", - "ideal": "8.8-10.2 mg/dl", - "min": 8.8, - "max": 10.2, - "category_id": [ - 2 - ] - }, - { - "name": "Serum Phosphorus", - "type": "Float", - "choices": null, - "unit": "mg/dl", - "ideal": "children 4-7 mg/dl, adult 2.5-4.5 mg/dl", - "min": 2.5, - "max": 7, - "category_id": [ - 2 - ] - }, - { - "name": "Serum Chloride", - "type": "Float", - "choices": null, - "unit": "mmol/l", - "ideal": "96-109 mmol/l", - "min": 96, - "max": 109, - "category_id": [ - 2 - ] - }, - { - "name": "Serum Megnesium", - "type": "Float", - "choices": null, - "unit": "mg/dl", - "ideal": "1.6-2.6 mg/dl", - "min": 1.6, - "max": 2.6, - "category_id": [ - 2 - ] - }, - { - "name": "Total Bilirubin", - "type": "Float", - "choices": null, - "unit": "mg/dl", - "ideal": "adult upto 1.2 mg/dl, infant 0.2-8 mg/dl", - "min": 0.2, - "max": 8, - "category_id": [ - 6 - ] - }, - { - "name": "Direct Bilirubin", - "type": "Float", - "choices": null, - "unit": "mg/dl", - "ideal": "upto 0.4 mg/dl", - "min": 0, - "max": 0.4, - "category_id": [ - 6 - ] - }, - { - "name": "SGOT", - "type": "Float", - "choices": null, - "unit": "IU/L", - "ideal": "upto 46 IU/L", - "min": 0, - "max": 46, - "category_id": [ - 2 - ] - }, - { - "name": "SGPT", - "type": "Float", - "choices": null, - "unit": "IU/L", - "ideal": "upto 49 IU/L", - "min": 0, - "max": 49, - "category_id": [ - 2 - ] - }, - { - "name": "ALP", - "type": "Float", - "choices": null, - "unit": "IU/L", - "ideal": "male 80-306 IU/L, female 64-306 IU/L", - "min": 64, - "max": 306, - "category_id": [ - 2 - ] - }, - { - "name": "Total Protein", - "type": "Float", - "choices": null, - "unit": "g/dl", - "ideal": "6-8 g/dl", - "min": 6, - "max": 8, - "category_id": [ - 6 - ] - }, - { - "name": "Albumin", - "type": "Float", - "choices": null, - "unit": "g/dl", - "ideal": "3.5-5.2 g/dl", - "min": 3.5, - "max": 5.2, - "category_id": [ - 6 - ] - }, - { - "name": "Globulin", - "type": "Float", - "choices": null, - "unit": "g/dl", - "ideal": "1.5-2.5 g/dl", - "min": 1.5, - "max": 2.5, - "category_id": [ - 2 - ] - }, - { - "name": "PT", - "type": "Float", - "choices": null, - "unit": "sec", - "ideal": "9.1-12.1 seconds", - "min": 9.1, - "max": 12.1, - "category_id": [ - 2 - ] - }, - { - "name": "INR", - "type": "Float", - "choices": null, - "unit": "sec", - "ideal": "0.8-1.1 seconds", - "min": 0.8, - "max": 1.1, - "category_id": [ - 2 - ] - }, - { - "name": "APTT", - "type": "Float", - "choices": null, - "unit": "sec", - "ideal": "25.4-38.4 seconds", - "min": 25.4, - "max": 38.4, - "category_id": [ - 2 - ] - }, - { - "name": "D-Dimer", - "type": "Float", - "choices": null, - "unit": "ug/l", - "ideal": "< 0.5 ug/l", - "min": 0, - "max": 0.5, - "category_id": [ - 2 - ] - }, - { - "name": "Fibrinogen", - "type": "Float", - "choices": null, - "unit": "mg/dl", - "ideal": "200-400 mg/dl", - "min": 200, - "max": 400, - "category_id": [ - 2 - ] - }, - { - "name": "GCT", - "type": "Float", - "choices": null, - "unit": "mg/dl", - "ideal": "< 140 mg/dl", - "min": 0, - "max": 140, - "category_id": [ - 2 - ] - }, - { - "name": "GTT", - "type": "Float", - "choices": null, - "unit": "mg/dl", - "ideal": "140-200 mg/dl", - "min": 140, - "max": 200, - "category_id": [ - 2 - ] - }, - { - "name": "GGT", - "type": "Float", - "choices": null, - "unit": "U/L", - "ideal": "8 - 61 U/L (male),5 - 36 U/L (female)", - "min": 3, - "max": 300, - "category_id": [ - 6 - ] - }, - { - "name": "HbA1C", - "type": "Float", - "choices": null, - "unit": "%", - "ideal": "4-5.6 %", - "min": 4, - "max": 5.6, - "category_id": [ - 2 - ] - }, - { - "name": "Serum Copper", - "type": "Float", - "choices": null, - "unit": "mcg/dl", - "ideal": "85-180 mcg/dl", - "min": 85, - "max": 180, - "category_id": [ - 2 - ] - }, - { - "name": "Serum Lead", - "type": "Float", - "choices": null, - "unit": "mcg/dl", - "ideal": "upto 10 mcg/dl", - "min": 0, - "max": 10, - "category_id": [ - 2 - ] - }, - { - "name": "Iron", - "type": "Float", - "choices": null, - "unit": "mcg/dl", - "ideal": "60-170 mcg/dl", - "min": 60, - "max": 170, - "category_id": [ - 2 - ] - }, - { - "name": "TIBC", - "type": "Float", - "choices": null, - "unit": "mcg/dl", - "ideal": "250-450 mcg/dl", - "min": 250, - "max": 450, - "category_id": [ - 2 - ] - }, - { - "name": "Transferin Saturation", - "type": "Float", - "choices": null, - "unit": "%", - "ideal": "15-50 %", - "min": 15, - "max": 50, - "category_id": [ - 2 - ] - }, - { - "name": "IL6", - "type": "Float", - "choices": null, - "unit": "pg/ml", - "ideal": "0-16.4 pg/ml", - "min": 0, - "max": 16.4, - "category_id": [ - 2 - ] - }, - { - "name": "Lactate", - "type": "Float", - "choices": null, - "unit": "mmol/l", - "ideal": "0.5-1 mmol/l", - "min": 0.5, - "max": 1, - "category_id": [ - 2 - ] - }, - { - "name": "Ceruloplasmin", - "type": "Float", - "choices": null, - "unit": "mg/dl", - "ideal": "14-40 mg/dl", - "min": 14, - "max": 40, - "category_id": [ - 2 - ] - }, - { - "name": "ACP", - "type": "Float", - "choices": null, - "unit": "U/L", - "ideal": "0.13-0.63 U/L", - "min": 0.13, - "max": 0.63, - "category_id": [ - 2 - ] - }, - { - "name": "Protein C", - "type": "Float", - "choices": null, - "unit": "IU dl 1", - "ideal": "65-135 IU dl 1", - "min": 65, - "max": 135, - "category_id": [ - 2 - ] - }, - { - "name": "Protein S", - "type": "Float", - "choices": null, - "unit": "%", - "ideal": "70-140 %", - "min": 70, - "max": 140, - "category_id": [ - 2 - ] - }, - { - "name": "G6PD", - "type": "Float", - "choices": null, - "unit": "U/g Hb", - "ideal": "neonate 10.15-14.71 U/g Hb, adult 6.75-11.95 U/g Hb", - "min": null, - "max": null, - "category_id": [ - 2 - ] - }, - { - "name": "ACCP", - "type": "Float", - "choices": null, - "unit": "EU/ml", - "ideal": "< 20 EU/ml", - "min": 0, - "max": 20, - "category_id": [ - 2 - ] - }, - { - "name": "Ferritin", - "type": "Float", - "choices": null, - "unit": "ng/ml", - "ideal": "20-250 ng/ml", - "min": 20, - "max": 250, - "category_id": [ - 2 - ] - }, - { - "name": "LDH", - "type": "Float", - "choices": null, - "unit": "U/L", - "ideal": "140-280 U/L", - "min": 140, - "max": 280, - "category_id": [ - 2 - ] - }, - { - "name": "Amylase", - "type": "Float", - "choices": null, - "unit": "U/L", - "ideal": "60-180 U/L", - "min": 60, - "max": 180, - "category_id": [ - 2 - ] - }, - { - "name": "Lipase", - "type": "Float", - "choices": null, - "unit": "U/L", - "ideal": "0-160 U/L", - "min": 0, - "max": 160, - "category_id": [ - 2 - ] - }, - { - "name": "Ammonia", - "type": "Float", - "choices": null, - "unit": "ug/dL", - "ideal": "15-45 ug/dL", - "min": 15, - "max": 45, - "category_id": [ - 2 - ] - }, - { - "name": "CKMB", - "type": "Float", - "choices": null, - "unit": "IU/L", - "ideal": "5-25 IU/L", - "min": 5, - "max": 25, - "category_id": [ - 2 - ] - }, - { - "name": "CK NAC", - "type": "Float", - "choices": null, - "unit": "U/L", - "ideal": "male < 171 U/L, female < 145 U/L", - "min": null, - "max": null, - "category_id": [ - 2 - ] - }, - { - "name": "24hrs Urine Protein", - "type": "Float", - "choices": null, - "unit": "mg/dl", - "ideal": "<10 mg/dl", - "min": 0, - "max": 10, - "category_id": [ - 7 - ] - }, - { - "name": "24hrs Urine Uric Acid", - "type": "Float", - "choices": null, - "unit": "mg/24hr", - "ideal": "250-750 mg/24hr", - "min": 250, - "max": 750, - "category_id": [ - 2 - ] - }, - { - "name": "24 hrs Urine Oxalate", - "type": "Float", - "choices": null, - "unit": "mg/L", - "ideal": "<15 mg/L", - "min": 0, - "max": 15, - "category_id": [ - 2 - ] - }, - { - "name": "Urine Microalbumin", - "type": "Float", - "choices": null, - "unit": "mg", - "ideal": "< 30 mg", - "min": 0, - "max": 30, - "category_id": [ - 2 - ] - }, - { - "name": "Urine Sodium", - "type": "Float", - "choices": null, - "unit": "mEq/day", - "ideal": "40-220 mEq/day", - "min": 40, - "max": 220, - "category_id": [ - 2 - ] - }, - { - "name": "PCT", - "type": "Float", - "choices": null, - "unit": "ng/ml", - "ideal": "< 0.15 ng/ml", - "min": 0, - "max": 0.15, - "category_id": [ - 2 - ] - }, - { - "name": "T3", - "type": "Float", - "choices": null, - "unit": "ng/dl", - "ideal": "80-220 ng/dl", - "min": 80, - "max": 220, - "category_id": [ - 2 - ] - }, - { - "name": "T4", - "type": "Float", - "choices": null, - "unit": "ug/L", - "ideal": "5-12 ug/L", - "min": 5, - "max": 12, - "category_id": [ - 2 - ] - }, - { - "name": "TSH", - "type": "Float", - "choices": null, - "unit": "mIU/L", - "ideal": "0.5-5 mIU/L", - "min": 0.5, - "max": 5, - "category_id": [ - 2 - ] - }, - { - "name": "FT3", - "type": "Float", - "choices": null, - "unit": "ng/dl", - "ideal": "60-180 ng/dl", - "min": 60, - "max": 180, - "category_id": [ - 2 - ] - }, - { - "name": "FT4", - "type": "Float", - "choices": null, - "unit": "ng/dl", - "ideal": "0.7-1.9 ng/dl", - "min": 0.7, - "max": 1.9, - "category_id": [ - 2 - ] - }, - { - "name": "Estradiol", - "type": "Float", - "choices": null, - "unit": "pg/ml", - "ideal": "premenopausal women 30-400 pg/ml, post-menopausal women 0-30 pg/ml, men 10-50 pg/ml", - "min": null, - "max": null, - "category_id": [ - 2 - ] - }, - { - "name": "Growth Hormone", - "type": "Float", - "choices": null, - "unit": "ng/ml", - "ideal": "male 0.4-10 ng/ml, female 1-14 ng/ml", - "min": 0.4, - "max": 14, - "category_id": [ - 2 - ] - }, - { - "name": "Cortisol", - "type": "Float", - "choices": null, - "unit": "mcg/dl", - "ideal": "5-25 ng/ml", - "min": 5, - "max": 25, - "category_id": [ - 2 - ] - }, - { - "name": "PTH", - "type": "Float", - "choices": null, - "unit": "pg/ml", - "ideal": "14-65 pg/ml", - "min": 14, - "max": 65, - "category_id": [ - 2 - ] - }, - { - "name": "Prolactine", - "type": "Float", - "choices": null, - "unit": "ng/ml", - "ideal": "male <20 ng/ml, female <25 ng/ml, pregnant women <300 ng/ml", - "min": null, - "max": null, - "category_id": [ - 2 - ] - }, - { - "name": "Pro BNP", - "type": "Float", - "choices": null, - "unit": "pg/ml", - "ideal": "< 300 pg/ml", - "min": 0, - "max": 300, - "category_id": [ - 2 - ] - }, - { - "name": "Vitamine D3", - "type": "Float", - "choices": null, - "unit": "ng/ml", - "ideal": "20-40 ng/ml", - "min": 20, - "max": 40, - "category_id": [ - 2 - ] - }, - { - "name": "Vitamine B12", - "type": "Float", - "choices": null, - "unit": "pg/ml", - "ideal": "160-950 pg/ml", - "min": 160, - "max": 950, - "category_id": [ - 2 - ] - }, - { - "name": "FSH", - "type": "Float", - "choices": null, - "unit": "IU/L", - "ideal": "before puberty 0-4 IU/L, during puberty 0.36-10 IU/L, ", - "min": 0, - "max": 10, - "category_id": [ - 2 - ] - }, - { - "name": "LH", - "type": "Float", - "choices": null, - "unit": "IU/L", - "ideal": "before menopause 5-25 IU/L, after menopause 14.2-52.3 IU/L", - "min": 5, - "max": 52.3, - "category_id": [ - 2 - ] - }, - { - "name": "PSA", - "type": "Float", - "choices": null, - "unit": "ng/ml", - "ideal": "<4 ng/ml", - "min": 0, - "max": 4, - "category_id": [ - 2 - ] - }, - { - "name": "ACTH", - "type": "Float", - "choices": null, - "unit": "pg/ml", - "ideal": "10-60 pg/ml", - "min": 10, - "max": 60, - "category_id": [ - 2 - ] - }, - { - "name": "CEA", - "type": "Float", - "choices": null, - "unit": "ng/ml", - "ideal": "0-2.5 ng/ml", - "min": 0, - "max": 2.5, - "category_id": [ - 2 - ] - }, - { - "name": "AFP", - "type": "Float", - "choices": null, - "unit": "ng/ml", - "ideal": "10-20 ng/ml", - "min": 10, - "max": 20, - "category_id": [ - 2 - ] - }, - { - "name": "CA125", - "type": "Float", - "choices": null, - "unit": "U/ml", - "ideal": "< 46 U/ml", - "min": 0, - "max": 46, - "category_id": [ - 2 - ] - }, - { - "name": "CA19.9", - "type": "Float", - "choices": null, - "unit": "U/ml", - "ideal": "0-37 U/ml", - "min": 0, - "max": 37, - "category_id": [ - 2 - ] - }, - { - "name": "Testosterone ", - "type": "Float", - "choices": null, - "unit": "ng/dl", - "ideal": "270-1070 ng/dl", - "min": 270, - "max": 1070, - "category_id": [ - 2 - ] - }, - { - "name": "Progestrone", - "type": "Float", - "choices": null, - "unit": "ng/ml", - "ideal": "female pre ovulation, menupausal women, men <1 ng/ml, mid-cycle 5-20 ng/ml", - "min": null, - "max": null, - "category_id": [ - 2 - ] - }, - { - "name": "Serum IgG", - "type": "Float", - "choices": null, - "unit": "g/L", - "ideal": "6-16 g/L", - "min": 6, - "max": 16, - "category_id": [ - 2 - ] - }, - { - "name": "Serum IgE", - "type": "Float", - "choices": null, - "unit": "UL/ml", - "ideal": "150-1000 UL/ml", - "min": 150, - "max": 1000, - "category_id": [ - 2 - ] - }, - { - "name": "Serum IgM", - "type": "Float", - "choices": null, - "unit": "g/L", - "ideal": "0.4-2.5 g/L", - "min": 0.4, - "max": 2.5, - "category_id": [ - 2 - ] - }, - { - "name": "Serum IgA", - "type": "Float", - "choices": null, - "unit": "G/L", - "ideal": "0.8-3 g/L", - "min": 0.8, - "max": 3, - "category_id": [ - 2 - ] - }, - { - "name": "Colour", - "type": "String", - "choices": null, - "unit": null, - "ideal": null, - "min": null, - "max": null, - "category_id": [ - 3 - ] - }, - { - "name": "Appearence", - "type": "String", - "choices": null, - "unit": null, - "ideal": null, - "min": null, - "max": null, - "category_id": [ - 3 - ] - }, - { - "name": "Ph", - "type": "String", - "choices": null, - "unit": null, - "ideal": null, - "min": null, - "max": null, - "category_id": [ - 3 - ] - }, - { - "name": "Specific Gravity", - "type": "String", - "choices": null, - "unit": null, - "ideal": null, - "min": null, - "max": null, - "category_id": [ - 3 - ] - }, - { - "name": "Nitrite", - "type": "String", - "choices": null, - "unit": null, - "ideal": null, - "min": null, - "max": null, - "category_id": [ - 3 - ] - }, - { - "name": "Urobilinogen", - "type": "String", - "choices": null, - "unit": null, - "ideal": null, - "min": null, - "max": null, - "category_id": [ - 3 - ] - }, - { - "name": "Bile Salt", - "type": "String", - "choices": null, - "unit": null, - "ideal": null, - "min": null, - "max": null, - "category_id": [ - 3 - ] - }, - { - "name": "Bile Pigment", - "type": "String", - "choices": null, - "unit": null, - "ideal": null, - "min": null, - "max": null, - "category_id": [ - 3 - ] - }, - { - "name": "Acetone", - "type": "String", - "choices": null, - "unit": null, - "ideal": null, - "min": null, - "max": null, - "category_id": [ - 3 - ] - }, - { - "name": "Sugar", - "type": "String", - "choices": null, - "unit": null, - "ideal": null, - "min": null, - "max": null, - "category_id": [ - 3 - ] - }, - { - "name": "Puscells", - "type": "String", - "choices": null, - "unit": null, - "ideal": null, - "min": null, - "max": null, - "category_id": [ - 3 - ] - }, - { - "name": "Epithetical Cells", - "type": "String", - "choices": null, - "unit": null, - "ideal": null, - "min": null, - "max": null, - "category_id": [ - 3 - ] - }, - { - "name": "RBC ", - "type": "String", - "choices": null, - "unit": null, - "ideal": null, - "min": null, - "max": null, - "category_id": [ - 3 - ] - }, - { - "name": "Cast", - "type": "String", - "choices": null, - "unit": null, - "ideal": null, - "min": null, - "max": null, - "category_id": [ - 3 - ] - }, - { - "name": "Crystal", - "type": "String", - "choices": null, - "unit": null, - "ideal": null, - "min": null, - "max": null, - "category_id": [ - 3 - ] - }, - { - "name": "others", - "type": "String", - "choices": null, - "unit": null, - "ideal": null, - "min": null, - "max": null, - "category_id": [ - 3 - ] - }, - { - "name": "UPT", - "type": "String", - "choices": null, - "unit": null, - "ideal": null, - "min": null, - "max": null, - "category_id": [ - 3 - ] - }, - { - "name": "Stool OB", - "type": "String", - "choices": null, - "unit": null, - "ideal": null, - "min": null, - "max": null, - "category_id": [ - 3 - ] - }, - { - "name": "Stool Microscopy", - "type": "String", - "choices": null, - "unit": null, - "ideal": null, - "min": null, - "max": null, - "category_id": [ - 3 - ] - }, - { - "name": "HBA1C", - "type": "Float", - "choices": "-", - "unit": "%", - "ideal": "4%- 5.6%", - "min": 0, - "max": 10, - "category_id": [ - 1 - ] - }, - { - "name": "Haemoglobin", - "type": "Float", - "choices": null, - "unit": "gm/dl", - "ideal": "Male 13-18,Female 11-16", - "min": 0, - "max": 25, - "category_id": [ - 4 - ] - }, - { - "name": "PCV/HCT", - "type": "Float", - "choices": null, - "unit": "%", - "ideal": "Male: 38.8% - 50.0%,Female: 34.9% - 44.5%", - "min": 0, - "max": 100, - "category_id": [ - 4 - ] - }, - { - "name": "White Blood Cell (WBC) Count", - "type": "Float", - "choices": null, - "unit": "thousands/\u03bcL ", - "ideal": "4.5 - 11.0", - "min": 0, - "max": 100, - "category_id": [ - 4 - ] - }, - { - "name": "Neutrophils", - "type": "Float", - "choices": null, - "unit": "%", - "ideal": "40-60", - "min": 0, - "max": 100, - "category_id": [ - 4, - 5 - ] - }, - { - "name": "Lymphocytes", - "type": "Float", - "choices": null, - "unit": "%", - "ideal": "20% - 40%", - "min": 0, - "max": 100, - "category_id": [ - 4, - 5 - ] - }, - { - "name": "Monocytes", - "type": "Float", - "choices": null, - "unit": "%", - "ideal": "2% - 8%", - "min": 0, - "max": 100, - "category_id": [ - 4, - 5 - ] - }, - { - "name": "Eosinophils", - "type": "Float", - "choices": null, - "unit": "%", - "ideal": "1% - 4%", - "min": 0, - "max": 100, - "category_id": [ - 4, - 5 - ] - }, - { - "name": "Basophils", - "type": "Float", - "choices": null, - "unit": "%", - "ideal": "0% - 1%", - "min": 0, - "max": 100, - "category_id": [ - 4, - 5 - ] - }, - { - "name": "Platelet Count", - "type": "Float", - "choices": null, - "unit": "thousands/\u03bcL ", - "ideal": "150,000 - 450,000 ", - "min": 0, - "max": 100000000, - "category_id": [ - 4 - ] - }, - { - "name": "Alanine Aminotransferase (ALT)", - "type": "Float", - "choices": null, - "unit": "u/l", - "ideal": "7 - 55 U/L (male),7 - 45 U/L (female)", - "min": 0, - "max": 1500, - "category_id": [ - 6 - ] - }, - { - "name": "Aspartate Aminotransferase (AST)", - "type": "Float", - "choices": null, - "unit": "u/l", - "ideal": "8 - 48 U/L ", - "min": 5, - "max": 300, - "category_id": [ - 6 - ] - }, - { - "name": "Alkaline Phosphatase (ALP)", - "type": "Float", - "choices": null, - "unit": "u/l", - "ideal": "Newborn (0-30 days) 150 - 420 U/L,Infants (1-11 months) 70 - 320 U/L,Children (1-3 years) 80 - 280 U/L,Children (4-6 years) 80 - 230 U/L,Children (7-9 years) 65 - 230 U/L,Children (10-13 years) 45 - 250 U/L,Children (14-17 years) 40 - 220 U/L,Adults (>18 years) 44 - 147 U/L", - "min": 30, - "max": 1200, - "category_id": [ - 6 - ] - }, - { - "name": "Indirect Bilirubin", - "type": "Float", - "choices": null, - "unit": "mg/dL ", - "ideal": "0.2 - 0.8 mg/dL", - "min": 0, - "max": 1, - "category_id": [ - 6 - ] - }, - { - "name": "Prothrombin Time (PT)", - "type": "Float", - "choices": null, - "unit": "Seconds", - "ideal": "Newborn (0-2 days)- 14.0 - 20.5 seconds,Infant (3 days - 1 month)- 14.0 - 19.2 seconds,Infant (1 - 6 months)- 13.3 - 18.7 seconds,Infant (6 - 12 months)- 13.3 - 17.8 seconds,Toddler (1 - 2 years) -12.5 - 16.5 seconds,Child (2 - 6 years) - 11.5 - 15.5 seconds,Child (7 - 12 years) - 11.8 - 14.5 seconds,Adolescent (13 - 15 years) - 12.0 - 14.6 seconds,Adolescent (16 - 17 years) - 11.7 - 14.2 seconds,Adult (> 18 years) -11.0 - 13.0 seconds", - "min": 5, - "max": 30, - "category_id": [ - 6 - ] - }, - { - "name": "Serum Creatinine", - "type": "Float", - "choices": null, - "unit": "mg/dL ", - "ideal": "Infants (0-11 months) 0.2 - 0.4 mg/dL,Children (1-17 years) 0.3 - 0.7 mg/dL (varies with age),Adult (18-60 years) 0.6 - 1.2 mg/dL,Adult (> 60 years) 0.6 - 1.3 mg/dL", - "min": 0, - "max": 2, - "category_id": [ - 7 - ] - }, - { - "name": "Blood Urea Nitrogen (BUN)", - "type": "Float", - "choices": null, - "unit": "mg/dL ", - "ideal": "Newborn (0-2 days) 3 - 17 mg/dL,Infant (3 days - 1 month) 3 - 19 mg/dL,Infant (1 - 6 months) 5 - 20 mg/dL,Infant (6 - 12 months) 5 - 13 mg/dL,Toddler (1 - 2 years) 7 - 20 mg/dL,Child (3 - 5 years) 8 - 18 mg/dL,Child (6 - 11 years) 8 - 21 mg/dL,Adolescent (12 - 17 years) 7 - 20 mg/dL,Adult (> 18 years) 7 - 20 mg/dL", - "min": 0, - "max": 25, - "category_id": [ - 7 - ] - }, - { - "name": "Estimated Glomerular Filtration Rate (eGFR)", - "type": "Float", - "choices": null, - "unit": "mL/min/1.73m\u00b2 (milliliters per minute per 1.73 square meters)", - "ideal": "> 90 mL/min/1.73m\u00b2 ", - "min": 0, - "max": 90, - "category_id": [ - 7 - ] - }, - { - "name": "Blood Uric Acid", - "type": "Float", - "choices": null, - "unit": "mg/dL ", - "ideal": "3.5 - 7.2 mg/dL (males),2.6 - 6.0 mg/dL (females)", - "min": 2, - "max": 10, - "category_id": [] - }, - { - "name": "Urinalysis", - "type": "String", - "choices": null, - "unit": null, - "ideal": null, - "min": null, - "max": null, - "category_id": [ - 3, - 7 - ] - }, - { - "name": "Serum Creatinine Clearance", - "type": "Float", - "choices": null, - "unit": "mL/min ", - "ideal": "110 to 150mL/min (males),100 to 130mL/min (females)", - "min": "Varies based on age, sex, and muscle mass", - "max": "55 - 105 mL/min (females)", - "category_id": [ - 7 - ] - } + { + "name": "Blood Group", + "type": "Choice", + "choices": "A-,A+,B+,B-,O+,O-,AB-,AB+", + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [] + }, + { + "name": "Total Count", + "type": "Float", + "choices": null, + "unit": "cell/cumm", + "ideal": "4500-11000 cells/cumm", + "min": "1000", + "max": "30000", + "category_id": [ + 1, + 4 + ] + }, + { + "name": "Neutrophil count", + "type": "Float", + "choices": null, + "unit": "cell/\u03bcl", + "ideal": "(2,000-7,500/\u03bcl)", + "min": "100", + "max": "30000", + "category_id": [ + 1, + 4 + ] + }, + { + "name": "Lymphocyte count Eosinophil count", + "type": "Float", + "choices": null, + "unit": "cell/\u03bcl", + "ideal": "(1,500-4,000/\u03bcl)", + "min": "10", + "max": "30000", + "category_id": [ + 1, + 4 + ] + }, + { + "name": "Eosinophil count", + "type": "Float", + "choices": null, + "unit": "cell/\u03bcl", + "ideal": "(40-400/\u03bcl)", + "min": "0", + "max": "10000", + "category_id": [ + 1, + 4 + ] + }, + { + "name": "Basophil count", + "type": "Float", + "choices": null, + "unit": "cell/\u03bcl", + "ideal": "(10-100/\u03bcl)", + "min": "0", + "max": "10000", + "category_id": [ + 1, + 4 + ] + }, + { + "name": "Monocyte count", + "type": "Float", + "choices": null, + "unit": "cell/\u03bcl", + "ideal": "(200-800/\u03bcl)", + "min": "10", + "max": "10000", + "category_id": [ + 1, + 4 + ] + }, + { + "name": "neutrophil", + "type": "Float", + "choices": null, + "unit": "%", + "ideal": "40-60 %", + "min": "0", + "max": "100", + "category_id": [ + 1, + 4 + ] + }, + { + "name": "lymphocyte", + "type": "Float", + "choices": null, + "unit": "%", + "ideal": "20-4 %", + "min": "0", + "max": "100", + "category_id": [ + 1, + 4 + ] + }, + { + "name": "eosinophil", + "type": "Float", + "choices": null, + "unit": "%", + "ideal": "1-3 %", + "min": "0", + "max": "100", + "category_id": [ + 1, + 4 + ] + }, + { + "name": "basophile", + "type": "Float", + "choices": null, + "unit": "%", + "ideal": "0-1 %", + "min": "0", + "max": "100", + "category_id": [ + 1, + 4 + ] + }, + { + "name": "monocyte", + "type": "Float", + "choices": null, + "unit": "%", + "ideal": "4-8 %", + "min": "0", + "max": "100", + "category_id": [ + 1, + 4 + ] + }, + { + "name": "Hb", + "type": "Float", + "choices": null, + "unit": "gm%", + "ideal": "men 14-17 gm% , woman 12-16 gm% ,children 12-14 gm%", + "min": "0", + "max": "100", + "category_id": [ + 1, + 4 + ] + }, + { + "name": "PCV", + "type": "Float", + "choices": null, + "unit": "%", + "ideal": "Men 38-51 gm% , Woman 36-47%", + "min": "0", + "max": "100", + "category_id": [ + 1 + ] + }, + { + "name": "RBC count", + "type": "Float", + "choices": null, + "unit": "million/cumm", + "ideal": "4.5-6.0 million/cumm", + "min": "0", + "max": "30", + "category_id": [ + 1, + 4 + ] + }, + { + "name": "RDW", + "type": "Float", + "choices": null, + "unit": "%", + "ideal": "11.8 - 16.1%", + "min": "0", + "max": "100", + "category_id": [ + 1 + ] + }, + { + "name": "Platelets", + "type": "Float", + "choices": null, + "unit": "lakhs/cumm", + "ideal": "1.5-4.5 lakhs/cumm", + "min": "0", + "max": "10", + "category_id": [ + 1, + 4 + ] + }, + { + "name": "MCV", + "type": "Float", + "choices": null, + "unit": "Fl", + "ideal": "80-96 Fl", + "min": "10", + "max": "1000", + "category_id": [ + 1, + 4 + ] + }, + { + "name": "MCH", + "type": "Float", + "choices": null, + "unit": "pg", + "ideal": "27-33 pg", + "min": "0", + "max": "100", + "category_id": [ + 1, + 4 + ] + }, + { + "name": "MCHC", + "type": "Float", + "choices": null, + "unit": "g/dl", + "ideal": "33.4-35.5 g/dl", + "min": "0", + "max": "100", + "category_id": [ + 1, + 4 + ] + }, + { + "name": "ESR", + "type": "Float", + "choices": null, + "unit": "mm/hr", + "ideal": "0-20 mm/hr", + "min": "0", + "max": "1000", + "category_id": [ + 1 + ] + }, + { + "name": "Peripheral blood smear", + "type": "String", + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [ + 1 + ] + }, + { + "name": "Reticulocyte count", + "type": "Float", + "choices": null, + "unit": "%", + "ideal": "adults 0.5-1.5%, newborns 3-6%", + "min": "0", + "max": "100", + "category_id": [ + 1 + ] + }, + { + "name": "M P smear", + "type": "String", + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [ + 1 + ] + }, + { + "name": "FBS", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "70-110 mg/dl", + "min": "0", + "max": "500", + "category_id": [ + 2 + ] + }, + { + "name": "PPBS", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "< 140 mg/dl", + "min": "0", + "max": "1000", + "category_id": [ + 2 + ] + }, + { + "name": "RBS", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "80-120 mg/dl", + "min": "0", + "max": "1000", + "category_id": [ + 2 + ] + }, + { + "name": "T. Cholestrol", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "150-220 mg/dl", + "min": "0", + "max": "1000", + "category_id": [ + 2 + ] + }, + { + "name": "LDL", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "< 130 mg/dl", + "min": "0", + "max": "1000", + "category_id": [ + 2 + ] + }, + { + "name": "HDL", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "male 35-80 mg/dl, female 40-88 mg/dl", + "min": "0", + "max": "1000", + "category_id": [ + 2 + ] + }, + { + "name": "Triglycerides", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "male 60-165 mg/dl, female 40-140 mg/dl", + "min": "0", + "max": "1000", + "category_id": [ + 2 + ] + }, + { + "name": "VLDL", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "2-30 mg/dl", + "min": "0", + "max": "100", + "category_id": [ + 2 + ] + }, + { + "name": "Urea", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "20-40 mg/dl", + "min": "0", + "max": "100", + "category_id": [ + 12 + ] + }, + { + "name": "Uric Acid", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "male 3.1-7.0 mg/dl, female 2.5-5.6 mg/dl", + "min": "0", + "max": "30", + "category_id": [ + 2 + ] + }, + { + "name": "Creatinine", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "male 0.7-1.4 mg/dl, female 0.6-1.2 mg/dl", + "min": "0", + "max": "20", + "category_id": [ + 2, + 12 + ] + }, + { + "name": "CRP", + "type": "Float", + "choices": null, + "unit": "mg/l", + "ideal": "upto 6 mg/l", + "min": "0", + "max": "50", + "category_id": [ + 2 + ] + }, + { + "name": "Serum Sodium (Na+)", + "type": "Float", + "choices": null, + "unit": "mmol/l", + "ideal": "136-146 mmol/l", + "min": "0", + "max": "1000", + "category_id": [ + 8 + ] + }, + { + "name": "Serum Potassium (K+)", + "type": "Float", + "choices": null, + "unit": "mmol/l", + "ideal": "3.5 - 5.5 mmol/l", + "min": "0", + "max": "10", + "category_id": [ + 8 + ] + }, + { + "name": "Serum Calcium", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "8.7-10.2 mg/dl", + "min": "0", + "max": "100", + "category_id": [ + 8 + ] + }, + { + "name": "Serum Phosphorus", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "children 4-7 mg/dl, adult 2.5-4.3 mg/dl", + "min": "0", + "max": "10", + "category_id": [ + 2 + ] + }, + { + "name": "Serum Chloride", + "type": "Float", + "choices": null, + "unit": "mmol/l", + "ideal": "102-109 mmol/l", + "min": "0", + "max": "500", + "category_id": [ + 8 + ] + }, + { + "name": "Serum Megnesium", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "1.6-2.6 mg/dl", + "min": "0", + "max": "10", + "category_id": [ + 2 + ] + }, + { + "name": "Total Bilirubin", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "0.3 - 1.3 mg/dl", + "min": "0", + "max": "30", + "category_id": [ + 6 + ] + }, + { + "name": "Direct Bilirubin", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "0.1 - 0.4 mg/dl", + "min": "0", + "max": "30", + "category_id": [ + 6 + ] + }, + { + "name": "SGOT", + "type": "Float", + "choices": null, + "unit": "IU/L", + "ideal": "upto 46 IU/L", + "min": "0", + "max": "1000", + "category_id": [ + 2 + ] + }, + { + "name": "SGPT", + "type": "Float", + "choices": null, + "unit": "IU/L", + "ideal": "upto 49 IU/L", + "min": "0", + "max": "1000", + "category_id": [ + 2 + ] + }, + { + "name": "ALP", + "type": "Float", + "choices": null, + "unit": "IU/L", + "ideal": "male 80-306 IU/L, female 64-306 IU/L", + "min": "0", + "max": "1000", + "category_id": [ + 2 + ] + }, + { + "name": "Total Protein", + "type": "Float", + "choices": null, + "unit": "g/dl", + "ideal": "6.7-8.6 g/dl", + "min": "0", + "max": "10", + "category_id": [ + 6 + ] + }, + { + "name": "Albumin", + "type": "Float", + "choices": null, + "unit": "g/dl", + "ideal": "3.5-5.5 g/dl (50-60%)", + "min": "0", + "max": "10", + "category_id": [ + 2, + 6 + ] + }, + { + "name": "Globulin", + "type": "Float", + "choices": null, + "unit": "g/dl", + "ideal": "2.0-3.5 g/dl (40-50%)", + "min": "0", + "max": "10", + "category_id": [ + 2 + ] + }, + { + "name": "PT", + "type": "Float", + "choices": null, + "unit": "sec", + "ideal": "9.1-12.1 seconds", + "min": "0", + "max": "100", + "category_id": [ + 2 + ] + }, + { + "name": "INR", + "type": "Float", + "choices": null, + "unit": "sec", + "ideal": "0.8-1.1 seconds", + "min": "0", + "max": "100", + "category_id": [ + 2 + ] + }, + { + "name": "APTT", + "type": "Float", + "choices": null, + "unit": "sec", + "ideal": "25.4-38.4 seconds", + "min": "0", + "max": "100", + "category_id": [ + 2 + ] + }, + { + "name": "D-Dimer", + "type": "Float", + "choices": null, + "unit": "ug/l", + "ideal": "< 0.5 ug/l", + "min": "0", + "max": "10", + "category_id": [ + 2 + ] + }, + { + "name": "Fibrinogen", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "200-400 mg/dl", + "min": "0", + "max": "1000", + "category_id": [ + 2 + ] + }, + { + "name": "GCT", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "< 140 mg/dl", + "min": "0", + "max": "1000", + "category_id": [ + 2 + ] + }, + { + "name": "GTT", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "140-200 mg/dl", + "min": "0", + "max": "1000", + "category_id": [ + 2 + ] + }, + { + "name": "GGT", + "type": "Float", + "choices": null, + "unit": "U/L", + "ideal": "9 - 48 U/L (male)\n5 - 32 U/L (female)", + "min": "0", + "max": "300", + "category_id": [ + 2, + 6 + ] + }, + { + "name": "HbA1C", + "type": "Float", + "choices": null, + "unit": "%", + "ideal": "4-5.6 %", + "min": "0", + "max": "100", + "category_id": [ + 2 + ] + }, + { + "name": "Serum Copper", + "type": "Float", + "choices": null, + "unit": "mcg/dl", + "ideal": "85-180 mcg/dl", + "min": "0", + "max": "1000", + "category_id": [ + 2 + ] + }, + { + "name": "Serum Lead", + "type": "Float", + "choices": null, + "unit": "mcg/dl", + "ideal": "upto 10 mcg/dl", + "min": "0", + "max": "1000", + "category_id": [ + 2 + ] + }, + { + "name": "Iron", + "type": "Float", + "choices": null, + "unit": "mcg/dl", + "ideal": "60-170 mcg/dl", + "min": "0", + "max": "1000", + "category_id": [ + 2 + ] + }, + { + "name": "TIBC", + "type": "Float", + "choices": null, + "unit": "mcg/dl", + "ideal": "250-450 mcg/dl", + "min": "100", + "max": "1000", + "category_id": [ + 2 + ] + }, + { + "name": "Transferin Saturation", + "type": "Float", + "choices": null, + "unit": "%", + "ideal": "15-50 %", + "min": "0", + "max": "100", + "category_id": [ + 2 + ] + }, + { + "name": "IL6", + "type": "Float", + "choices": null, + "unit": "pg/ml", + "ideal": "0-16.4 pg/ml", + "min": "0", + "max": "100", + "category_id": [ + 2 + ] + }, + { + "name": "Lactate", + "type": "Float", + "choices": null, + "unit": "mmol/l", + "ideal": "0.5-1.6mmol/l", + "min": "0", + "max": "10", + "category_id": [ + 2, + 10 + ] + }, + { + "name": "Ceruloplasmin", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "14-40 mg/dl", + "min": "0", + "max": "100", + "category_id": [ + 2 + ] + }, + { + "name": "ACP", + "type": "Float", + "choices": null, + "unit": "U/L", + "ideal": "0.13-0.63 U/L", + "min": "0", + "max": "10", + "category_id": [ + 2 + ] + }, + { + "name": "Protein C", + "type": "Float", + "choices": null, + "unit": "IU dl 1", + "ideal": "65-135 IU dl 1", + "min": "65", + "max": "135", + "category_id": [ + 2 + ] + }, + { + "name": "Protein S", + "type": "Float", + "choices": null, + "unit": "%", + "ideal": "70-140 %", + "min": "0", + "max": "100", + "category_id": [ + 2 + ] + }, + { + "name": "G6PD", + "type": "Float", + "choices": null, + "unit": "U/g Hb", + "ideal": "neonate 10.15-14.71 U/g Hb, adult 6.75-11.95 U/g Hb", + "min": null, + "max": null, + "category_id": [ + 2 + ] + }, + { + "name": "ACCP", + "type": "Float", + "choices": null, + "unit": "EU/ml", + "ideal": "< 20 EU/ml", + "min": "0", + "max": "100", + "category_id": [ + 2 + ] + }, + { + "name": "Ferritin", + "type": "Float", + "choices": null, + "unit": "ng/ml", + "ideal": "20-250 ng/ml", + "min": "0", + "max": "1000", + "category_id": [ + 2 + ] + }, + { + "name": "LDH", + "type": "Float", + "choices": null, + "unit": "U/L", + "ideal": "140-280 U/L", + "min": "0", + "max": "1000", + "category_id": [ + 2 + ] + }, + { + "name": "Amylase", + "type": "Float", + "choices": null, + "unit": "U/L", + "ideal": "20-96 U/L", + "min": "0", + "max": "200", + "category_id": [ + 2 + ] + }, + { + "name": "Lipase", + "type": "Float", + "choices": null, + "unit": "U/L", + "ideal": "3-43 U/L", + "min": "0", + "max": "200", + "category_id": [ + 2 + ] + }, + { + "name": "Ammonia", + "type": "Float", + "choices": null, + "unit": "ug/dL", + "ideal": "19-60 \u03bcg/dl", + "min": "0", + "max": "100", + "category_id": [ + 2 + ] + }, + { + "name": "CKMB", + "type": "Float", + "choices": null, + "unit": "IU/L", + "ideal": "5-25 IU/L", + "min": "0", + "max": "100", + "category_id": [ + 2 + ] + }, + { + "name": "CK NAC", + "type": "Float", + "choices": null, + "unit": "U/L", + "ideal": "male < 171 U/L, female < 145 U/L", + "min": null, + "max": null, + "category_id": [ + 2 + ] + }, + { + "name": "24hrs Urine Protein", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "<10 mg/dl", + "min": "0", + "max": "100", + "category_id": [ + 2, + 7 + ] + }, + { + "name": "24hrs Urine Uric Acid", + "type": "Float", + "choices": null, + "unit": "mg/24hr", + "ideal": "250-750 mg/24hr", + "min": "0", + "max": "1500", + "category_id": [ + 2 + ] + }, + { + "name": "24 hrs Urine Oxalate", + "type": "Float", + "choices": null, + "unit": "mg/L", + "ideal": "<15 mg/L", + "min": "0", + "max": "100", + "category_id": [ + 2 + ] + }, + { + "name": "Urine Microalbumin", + "type": "Float", + "choices": null, + "unit": "mg", + "ideal": "< 30 mg", + "min": "0", + "max": "100", + "category_id": [ + 2 + ] + }, + { + "name": "Urine Sodium", + "type": "Float", + "choices": null, + "unit": "mEq/day", + "ideal": "40-220 mEq/day", + "min": "0", + "max": "1000", + "category_id": [ + 2 + ] + }, + { + "name": "PCT", + "type": "Float", + "choices": null, + "unit": "ng/ml", + "ideal": "< 0.15 ng/ml", + "min": "0", + "max": "10", + "category_id": [ + 2 + ] + }, + { + "name": "T3", + "type": "Float", + "choices": null, + "unit": "ng/dl", + "ideal": "80-220 ng/dl", + "min": "0", + "max": "1000", + "category_id": [ + 2 + ] + }, + { + "name": "T4", + "type": "Float", + "choices": null, + "unit": "ug/L", + "ideal": "5-12 ug/L", + "min": "0", + "max": "100", + "category_id": [ + 2 + ] + }, + { + "name": "TSH", + "type": "Float", + "choices": null, + "unit": "mIU/L", + "ideal": "0.5-5 mIU/L", + "min": "0", + "max": "100", + "category_id": [ + 2 + ] + }, + { + "name": "FT3", + "type": "Float", + "choices": null, + "unit": "ng/dl", + "ideal": "60-180 ng/dl", + "min": "10", + "max": "1000", + "category_id": [ + 2 + ] + }, + { + "name": "FT4", + "type": "Float", + "choices": null, + "unit": "ng/dl", + "ideal": "0.7-1.9 ng/dl", + "min": "0", + "max": "10", + "category_id": [ + 2 + ] + }, + { + "name": "Estradiol", + "type": "Float", + "choices": null, + "unit": "pg/ml", + "ideal": "premenopausal women 30-400 pg/ml, post-menopausal women 0-30 pg/ml, men 10-50 pg/ml", + "min": null, + "max": null, + "category_id": [ + 2 + ] + }, + { + "name": "Growth Hormone", + "type": "Float", + "choices": null, + "unit": "ng/ml", + "ideal": "male 0.4-10 ng/ml, female 1-14 ng/ml", + "min": "0", + "max": "100", + "category_id": [ + 2 + ] + }, + { + "name": "Cortisol", + "type": "Float", + "choices": null, + "unit": "mcg/dl", + "ideal": "5-25 ng/ml", + "min": "0", + "max": "100", + "category_id": [ + 2 + ] + }, + { + "name": "PTH", + "type": "Float", + "choices": null, + "unit": "pg/ml", + "ideal": "14-65 pg/ml", + "min": "0", + "max": "100", + "category_id": [ + 2 + ] + }, + { + "name": "Prolactine", + "type": "Float", + "choices": null, + "unit": "ng/ml", + "ideal": "male <20 ng/ml, female <25 ng/ml, pregnant women <300 ng/ml", + "min": null, + "max": null, + "category_id": [ + 2 + ] + }, + { + "name": "Pro BNP", + "type": "Float", + "choices": null, + "unit": "pg/ml", + "ideal": "< 300 pg/ml", + "min": "0", + "max": "1000", + "category_id": [ + 2 + ] + }, + { + "name": "Vitamine D3", + "type": "Float", + "choices": null, + "unit": "ng/ml", + "ideal": "20-40 ng/ml", + "min": "10", + "max": "100", + "category_id": [ + 2 + ] + }, + { + "name": "Vitamine B12", + "type": "Float", + "choices": null, + "unit": "pg/ml", + "ideal": "160-950 pg/ml", + "min": "10", + "max": "2000", + "category_id": [ + 2 + ] + }, + { + "name": "FSH", + "type": "Float", + "choices": null, + "unit": "IU/L", + "ideal": "before puberty 0-4 IU/L, during puberty 0.36-10 IU/L, ", + "min": "0", + "max": "100", + "category_id": [ + 2 + ] + }, + { + "name": "LH", + "type": "Float", + "choices": null, + "unit": "IU/L", + "ideal": "before menopause 5-25 IU/L, after menopause 14.2-52.3 IU/L", + "min": "0", + "max": "100", + "category_id": [ + 2 + ] + }, + { + "name": "PSA", + "type": "Float", + "choices": null, + "unit": "ng/ml", + "ideal": "<4 ng/ml", + "min": "0", + "max": "10", + "category_id": [ + 2 + ] + }, + { + "name": "ACTH", + "type": "Float", + "choices": null, + "unit": "pg/ml", + "ideal": "10-60 pg/ml", + "min": "0", + "max": "100", + "category_id": [ + 2 + ] + }, + { + "name": "CEA", + "type": "Float", + "choices": null, + "unit": "ng/ml", + "ideal": "0-2.5 ng/ml", + "min": "0", + "max": "10", + "category_id": [ + 2 + ] + }, + { + "name": "AFP", + "type": "Float", + "choices": null, + "unit": "ng/ml", + "ideal": "10-20 ng/ml", + "min": "0", + "max": "100", + "category_id": [ + 2 + ] + }, + { + "name": "CA125", + "type": "Float", + "choices": null, + "unit": "U/ml", + "ideal": "< 46 U/ml", + "min": "0", + "max": "100", + "category_id": [ + 2 + ] + }, + { + "name": "CA19.9", + "type": "Float", + "choices": null, + "unit": "U/ml", + "ideal": "0-37 U/ml", + "min": "0", + "max": "100", + "category_id": [ + 2 + ] + }, + { + "name": "Testosterone ", + "type": "Float", + "choices": null, + "unit": "ng/dl", + "ideal": "270-1070 ng/dl", + "min": "10", + "max": "2000", + "category_id": [ + 2 + ] + }, + { + "name": "Progestrone", + "type": "Float", + "choices": null, + "unit": "ng/ml", + "ideal": "female pre ovulation, menupausal women, men <1 ng/ml, mid-cycle 5-20 ng/ml", + "min": null, + "max": null, + "category_id": [ + 2 + ] + }, + { + "name": "Serum IgG", + "type": "Float", + "choices": null, + "unit": "g/L", + "ideal": "7.0-17.0 g/L", + "min": "0", + "max": "100", + "category_id": [ + 14 + ] + }, + { + "name": "Serum IgE", + "type": "Float", + "choices": null, + "unit": "\u00b5g/L", + "ideal": "24-430 \u00b5g/L", + "min": "0", + "max": "1000", + "category_id": [ + 14 + ] + }, + { + "name": "Serum IgM", + "type": "Float", + "choices": null, + "unit": "g/L", + "ideal": "0.4-2.5 g/L", + "min": "0", + "max": "10", + "category_id": [ + 14 + ] + }, + { + "name": "Serum IgA", + "type": "Float", + "choices": null, + "unit": "g/l", + "ideal": "0.70-3.50 g/L", + "min": "0", + "max": "10", + "category_id": [ + 14 + ] + }, + { + "name": "Urine Colour", + "type": "String", + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [ + 3 + ] + }, + { + "name": "Urine Appearence", + "type": "String", + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [ + 3 + ] + }, + { + "name": "pH (Urine)", + "type": "Float", + "choices": null, + "unit": null, + "ideal": "5.0-9.0", + "min": "0", + "max": "10", + "category_id": [ + 3 + ] + }, + { + "name": "Urine Specific Gravity", + "type": "String", + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [ + 3 + ] + }, + { + "name": "Urine Nitrite", + "type": "String", + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [ + 3 + ] + }, + { + "name": "Urine Urobilinogen", + "type": "String", + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [ + 3 + ] + }, + { + "name": "Urine Bile Salt", + "type": "String", + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [ + 3 + ] + }, + { + "name": "Urine Bile Pigment", + "type": "String", + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [ + 3 + ] + }, + { + "name": "Urine Acetone", + "type": "String", + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [ + 3 + ] + }, + { + "name": "Urine Albumin", + "type": "String", + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [ + 3 + ] + }, + { + "name": "Urine Sugar", + "type": "String", + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [ + 3 + ] + }, + { + "name": "Urine Puscells", + "type": "String", + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [ + 3 + ] + }, + { + "name": "Urine Epithetical Cells", + "type": "String", + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [ + 3 + ] + }, + { + "name": "Urine RBC ", + "type": "String", + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [ + 3 + ] + }, + { + "name": "Urine Cast", + "type": "String", + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [ + 3 + ] + }, + { + "name": "Urine Crystal", + "type": "String", + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [ + 3 + ] + }, + { + "name": "others", + "type": "String", + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [ + 3 + ] + }, + { + "name": "UPT", + "type": "String", + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [ + 3 + ] + }, + { + "name": "Stool OB", + "type": "String", + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [ + 3 + ] + }, + { + "name": "Stool Microscopy", + "type": "String", + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [ + 3 + ] + }, + { + "name": "HBA1C", + "type": "Float", + "choices": "-", + "unit": "%", + "ideal": "4%- 5.6%", + "min": "0", + "max": "10", + "category_id": [ + 1 + ] + }, + { + "name": "Haemoglobin", + "type": "Float", + "choices": null, + "unit": "gm/dl", + "ideal": "Male 14-18\nFemale 12-16", + "min": "0", + "max": "25", + "category_id": [ + 4 + ] + }, + { + "name": "PCV/HCT(hematocrit)", + "type": "Float", + "choices": null, + "unit": "%", + "ideal": "Male: 38.8% - 50.0%\nFemale: 34.9% - 44.5%", + "min": "0", + "max": "100", + "category_id": [ + 4 + ] + }, + { + "name": "White Blood Cell (WBC) Count", + "type": "Float", + "choices": null, + "unit": "thousands/\u03bcL ", + "ideal": "4.5 - 11.0", + "min": "0", + "max": "100", + "category_id": [ + 4 + ] + }, + { + "name": "Neutrophils", + "type": "Float", + "choices": null, + "unit": "%", + "ideal": "40-60", + "min": "0", + "max": "100", + "category_id": [ + 4, + 5 + ] + }, + { + "name": "Lymphocytes", + "type": "Float", + "choices": null, + "unit": "%", + "ideal": "20% - 40%", + "min": "0", + "max": "100", + "category_id": [ + 4, + 5 + ] + }, + { + "name": "Monocytes", + "type": "Float", + "choices": null, + "unit": "%", + "ideal": "2% - 8%", + "min": "0", + "max": "100", + "category_id": [ + 4, + 5 + ] + }, + { + "name": "Eosinophils", + "type": "Float", + "choices": null, + "unit": "%", + "ideal": "1% - 4%", + "min": "0", + "max": "100", + "category_id": [ + 4, + 5 + ] + }, + { + "name": "Basophils", + "type": "Float", + "choices": null, + "unit": "%", + "ideal": "0% - 1%", + "min": "0", + "max": "100", + "category_id": [ + 4, + 5 + ] + }, + { + "name": "Platelet Count", + "type": "Float", + "choices": null, + "unit": "thousands/\u03bcL ", + "ideal": "150,000 - 450,000 ", + "min": "0", + "max": "100000000", + "category_id": [ + 4 + ] + }, + { + "name": "Alanine Aminotransferase (ALT)", + "type": "Float", + "choices": null, + "unit": "u/l", + "ideal": "7 - 55 U/L (male)\n7 - 45 U/L (female)", + "min": "0", + "max": "1500", + "category_id": [ + 6 + ] + }, + { + "name": "Aspartate Aminotransferase (AST)", + "type": "Float", + "choices": null, + "unit": "u/l", + "ideal": "8 - 48 U/L ", + "min": "1", + "max": "300", + "category_id": [ + 6 + ] + }, + { + "name": "Alkaline Phosphatase (ALP)", + "type": "Float", + "choices": null, + "unit": "u/l", + "ideal": "Newborn (0-30 days)\t150 - 420 U/L\nInfants (1-11 months)\t70 - 320 U/L\nChildren (1-3 years)\t80 - 280 U/L\nChildren (4-6 years)\t80 - 230 U/L\nChildren (7-9 years)\t65 - 230 U/L\nChildren (10-13 years)\t45 - 250 U/L\nChildren (14-17 years)\t40 - 220 U/L\nAdults (>18 years)\t44 - 147 U/L", + "min": "0", + "max": "1200", + "category_id": [ + 6 + ] + }, + { + "name": "Indirect Bilirubin", + "type": "Float", + "choices": null, + "unit": "mg/dL ", + "ideal": "0.2 - 0.9 mg/dL", + "min": "0", + "max": "10", + "category_id": [ + 6 + ] + }, + { + "name": "Prothrombin Time (PT)", + "type": "Float", + "choices": null, + "unit": "Seconds", + "ideal": "Newborn (0-2 days)- 14.0 - 20.5 seconds\nInfant (3 days - 1 month)- 14.0 - 19.2 seconds\nInfant (1 - 6 months)- 13.3 - 18.7 seconds\nInfant (6 - 12 months)- 13.3 - 17.8 seconds\nToddler (1 - 2 years) -12.5 - 16.5 seconds\nChild (2 - 6 years) - 11.5 - 15.5 seconds\nChild (7 - 12 years) - 11.8 - 14.5 seconds\nAdolescent (13 - 15 years) - 12.0 - 14.6 seconds\nAdolescent (16 - 17 years) - 11.7 - 14.2 seconds\nAdult (> 18 years) -11.0 - 13.0 seconds", + "min": "5", + "max": "30", + "category_id": [ + 6 + ] + }, + { + "name": "Serum Creatinine", + "type": "Float", + "choices": null, + "unit": "mg/dL ", + "ideal": "Infants (0-11 months)\t0.2 - 0.4 mg/dL\nChildren (1-17 years)\t0.3 - 0.7 mg/dL (varies with age)\nAdult (18-60 years)\t0.6 - 1.2 mg/dL\nAdult (> 60 years)\t0.6 - 1.3 mg/dL", + "min": "0", + "max": "30", + "category_id": [ + 12 + ] + }, + { + "name": "Blood Urea Nitrogen (BUN)", + "type": "FLoat", + "choices": null, + "unit": "mg/dL ", + "ideal": "Newborn (0-2 days)\t3 - 17 mg/dL\nInfant (3 days - 1 month)\t3 - 19 mg/dL\nInfant (1 - 6 months)\t5 - 20 mg/dL\nInfant (6 - 12 months)\t5 - 13 mg/dL\nToddler (1 - 2 years)\t7 - 20 mg/dL\nChild (3 - 5 years)\t8 - 18 mg/dL\nChild (6 - 11 years)\t8 - 21 mg/dL\nAdolescent (12 - 17 years)\t7 - 20 mg/dL\nAdult (> 18 years)\t7 - 20 mg/dL", + "min": "0", + "max": "100", + "category_id": [ + 12 + ] + }, + { + "name": "Estimated Glomerular Filtration Rate (eGFR)", + "type": "FLoat", + "choices": null, + "unit": "mL/min/1.73m\u00b2 (milliliters per minute per 1.73 square meters)", + "ideal": "> 90 mL/min/1.73m\u00b2 ", + "min": "0", + "max": "90", + "category_id": [ + 7 + ] + }, + { + "name": "Blood Uric Acid", + "type": "Float", + "choices": null, + "unit": "mg/dL ", + "ideal": "3.5 - 7.2 mg/dL (males)\n2.6 - 6.0 mg/dL (females)", + "min": "2", + "max": "10", + "category_id": [] + }, + { + "name": "Urinalysis", + "type": "String", + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [ + 3, + 7 + ] + }, + { + "name": "Serum Creatinine Clearance", + "type": "FLoat", + "choices": null, + "unit": "mL/min ", + "ideal": "97 to 137mL/min (males)\n88 to 128mL/min (females)", + "min": "10", + "max": "250", + "category_id": [ + 7 + ] + }, + { + "name": "s. typhus test", + "type": null, + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [] + }, + { + "name": "Widal Test", + "type": null, + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [] + }, + { + "name": "Alcohol, ethyl", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "Negative\nmild intoxication : 80-200 mg/dl\nmoderate intoxication: 250-400 mg/dl\nsevere intoxication: >400 mg/dl", + "min": "0", + "max": "1500", + "category_id": [] + }, + { + "name": "Blood volume Total\nRed cell volume, males\n females \nPlasma volume, males\n females", + "type": null, + "choices": null, + "unit": null, + "ideal": "Blood Volume Total: 60-80 ml/kg body weight \nRed Cell Volume, Male:30 ml/kg body weight\n Female:25 ml/kg body weight\nPlasma Volume, Male:39 ml/kg body weight\n Female:40 ml/kg body weight", + "min": null, + "max": null, + "category_id": [] + }, + { + "name": "Bromsulphalein (BSP) test 5 mg/kg body weight", + "type": "Float", + "choices": null, + "unit": "%", + "ideal": "<5% retention in serum after 45 min", + "min": "0", + "max": "100", + "category_id": [] + }, + { + "name": "Calcium, ionised", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "4.5-5.3 mg/dl", + "min": "0", + "max": "50", + "category_id": [] + }, + { + "name": "Cholesterol", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "total desirable for adults <200 mg/dl \nborderline high 200-239 mg/dl \nhigh undesirable \u2265240 mg/dl \nLDL-cholesterol, desirable range <130 mg/dl \nborderline high 130-159 mg/dl \nhigh undesirable \u2265160 mg/dl \nHDL-cholesterol, protective range >60 mg/dl \nlow <40 mg/dl \ntriglycerides <160 mg/dl\n", + "min": "0", + "max": "1000", + "category_id": [ + 9 + ] + }, + { + "name": "CO2 Content", + "type": "Float", + "choices": null, + "unit": "mEq/L", + "ideal": "22-30 mEq/L (arterial)", + "min": "0", + "max": "100", + "category_id": [ + 10 + ] + }, + { + "name": "Copper", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "70-140 \u03bcg/dl", + "min": "0", + "max": "1000", + "category_id": [] + }, + { + "name": "C-reactive Protiens", + "type": "Float", + "choices": null, + "unit": "mg/L", + "ideal": "0.2-3.0 mg/L", + "min": "0", + "max": "30", + "category_id": [] + }, + { + "name": "Creatine kinase (CK), total", + "type": "Float", + "choices": null, + "unit": "U/L", + "ideal": "Males:51-294 U/L\nFemales:39-238 IU/L", + "min": "0", + "max": "1000", + "category_id": [ + 11 + ] + }, + { + "name": "Creatine kinase-MB (CK-MB)", + "type": "Float", + "choices": null, + "unit": "ng/ml", + "ideal": "0-5.5 ng/ml", + "min": "0", + "max": "30", + "category_id": [ + 11 + ] + }, + { + "name": "Gamma-glutamyl trans- peptidase (transferase) (\uf067-GT)", + "type": "Float", + "choices": null, + "unit": "IU/L", + "ideal": "9-58 IU/L", + "min": "0", + "max": "300", + "category_id": [ + 6 + ] + }, + { + "name": "arterial Bicarbonate (HCO3\u2013)", + "type": "Float", + "choices": null, + "unit": "mEq/L", + "ideal": "22-30 mEq/L", + "min": "0", + "max": "100", + "category_id": [ + 10 + ] + }, + { + "name": "pH (Whole Blood)", + "type": "Float", + "choices": null, + "unit": null, + "ideal": "7.35-7.45", + "min": "0", + "max": "10", + "category_id": [ + 10, + 16 + ] + }, + { + "name": "Pco2", + "type": "Float", + "choices": null, + "unit": "mmHg", + "ideal": "22-45 mmHg", + "min": "0", + "max": "100", + "category_id": [ + 10 + ] + }, + { + "name": "Po2", + "type": "Float", + "choices": null, + "unit": "mmHg", + "ideal": "72-104 mmHg", + "min": "0", + "max": "500", + "category_id": [ + 10 + ] + }, + { + "name": "Glucose (fasting)", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "normal:70-100 mg/dl\nimpaired fasting glucose (IFG) :101-125 mg/dl\ndiabetes mellitus:>126 mg/dl", + "min": "0", + "max": "1500", + "category_id": [ + 13, + 16 + ] + }, + { + "name": "Glucose (2-hr post-prandial)", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "normal :<140 mg/dl\nimpaired glucose tolerance (IGT):140-200 mg/dl\ndiabetes mellitus:>200 mg/dl", + "min": "0", + "max": "1500", + "category_id": [ + 13 + ] + }, + { + "name": "Haemoglobin A1C", + "type": "Float", + "choices": null, + "unit": "%", + "ideal": "4-6%", + "min": "0", + "max": "100", + "category_id": [ + 13 + ] + }, + { + "name": "Serum Igd", + "type": "Float", + "choices": null, + "unit": "mg/L", + "ideal": "0-140 mg/L", + "min": "0", + "max": "1000", + "category_id": [ + 14 + ] + }, + { + "name": "Lactate dehydrogenase (LDH)", + "type": "Float", + "choices": null, + "unit": "U/L", + "ideal": "115-221 U/L", + "min": "0", + "max": "1000", + "category_id": [ + 10 + ] + }, + { + "name": "Lactate/pyruvate ratio", + "type": "Float", + "choices": null, + "unit": "ratio", + "ideal": "10/1", + "min": "0", + "max": "100", + "category_id": [] + }, + { + "name": "Lipoproteins", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "0-30 mg/dl", + "min": "0", + "max": "100", + "category_id": [] + }, + { + "name": "5- Nucleotidase", + "type": "Float", + "choices": null, + "unit": "U/L", + "ideal": "0-11 U/L", + "min": "0", + "max": "100", + "category_id": [] + }, + { + "name": "Oxygen (% saturation)", + "type": "Float", + "choices": null, + "unit": "%", + "ideal": "arterial blood : 94-100 %\nvenous blood: 60-85 %", + "min": "0", + "max": "100", + "category_id": [] + }, + { + "name": "acid phosphatase", + "type": "Float", + "choices": null, + "unit": "U/L", + "ideal": "0-5.5 U/L", + "min": "0", + "max": "30", + "category_id": [] + }, + { + "name": "Prostate specific antigen (PSA)", + "type": "Float", + "choices": null, + "unit": "ng/ml", + "ideal": "0-4.0 ng/ml", + "min": "0", + "max": "10", + "category_id": [] + }, + { + "name": "Pyruvate", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "0.35-1.14 mg/dl", + "min": "0", + "max": "10", + "category_id": [] + }, + { + "name": "Renal blood flow", + "type": "Float", + "choices": null, + "unit": "ml/min", + "ideal": "1200 ml/min", + "min": "0", + "max": "5000", + "category_id": [ + 12 + ] + }, + { + "name": "Rheumatoid factor", + "type": "Float", + "choices": null, + "unit": "IU/ml", + "ideal": "< 30 IU/ml", + "min": "0", + "max": "100", + "category_id": [] + }, + { + "name": "Thyroid function tests", + "type": null, + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [ + 20 + ] + }, + { + "name": "radioactive iodine uptake", + "type": null, + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [ + 20 + ] + }, + { + "name": "(RAIU) 24-hr", + "type": "Float", + "choices": null, + "unit": "%", + "ideal": "5-30%", + "min": "0", + "max": "100", + "category_id": [ + 20 + ] + }, + { + "name": "thyroxine (T4) total", + "type": "Float", + "choices": null, + "unit": "nmol/L", + "ideal": "70-151 nmol/L", + "min": "0", + "max": "1000", + "category_id": [ + 20 + ] + }, + { + "name": "triiodothyronine (T3) total", + "type": "Float", + "choices": null, + "unit": "nmol/L", + "ideal": "1.2-2.1 nmol/L", + "min": "0", + "max": "10", + "category_id": [ + 20 + ] + }, + { + "name": "thyroid stimulating hormone (TSH)", + "type": "Float", + "choices": null, + "unit": "mU/L", + "ideal": "0.4-5.0 mU/L", + "min": "0", + "max": "10", + "category_id": [ + 20 + ] + }, + { + "name": "Troponins, cardiac (cTn)", + "type": "Float", + "choices": null, + "unit": null, + "ideal": " Troponin I (cTnI) :0-0.08 ng/ml\r\n Ttroponin T (cTnT):0-0.01 ng/ml", + "min": "0", + "max": "10", + "category_id": [ + 11 + ] + }, + { + "name": "Body volume\ntotal \nintracellular\n extracellular\n interstitial fluid including lymph fluid \nintravascular fluid or blood plasma \nfluid in mesenchymal tissues \ntranscellular fluid", + "type": "Float", + "choices": null, + "unit": "%", + "ideal": "\n50-70% (60%)\n 33%\n27%\n 12%\n5%\n9%\n 1%", + "min": "0", + "max": "100", + "category_id": [ + 15 + ] + }, + { + "name": "Catecholamines", + "type": null, + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [ + 15 + ] + }, + { + "name": "epinephrine", + "type": null, + "choices": null, + "unit": "ng/day", + "ideal": "< 10 ng/day", + "min": "0", + "max": "100", + "category_id": [ + 15 + ] + }, + { + "name": "free catecholamines", + "type": null, + "choices": null, + "unit": "ng/day", + "ideal": "<100 \u03bcg/day", + "min": "0", + "max": "1000", + "category_id": [ + 15 + ] + }, + { + "name": "metanephrine", + "type": "Float", + "choices": null, + "unit": "mg/day", + "ideal": "<1.3 mg/day", + "min": "0", + "max": "100", + "category_id": [ + 15 + ] + }, + { + "name": "vanillyl mandelic acid (VMA)", + "type": "Float", + "choices": null, + "unit": "mg/day", + "ideal": "<8 mg/day", + "min": "0", + "max": "100", + "category_id": [ + 15 + ] + }, + { + "name": "Cerebrospinal fluid (CSF)", + "type": null, + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [ + 16 + ] + }, + { + "name": "CSF volume", + "type": "Float", + "choices": null, + "unit": "ml", + "ideal": "120-150 ml", + "min": "0", + "max": "1000", + "category_id": [ + 16 + ] + }, + { + "name": "CSF pressure", + "type": "Float", + "choices": null, + "unit": "mm water", + "ideal": "60-150 mm water", + "min": "0", + "max": "1000", + "category_id": [ + 16 + ] + }, + { + "name": "leucocytes", + "type": "Float", + "choices": null, + "unit": "lymphocytes/l", + "ideal": "0-5 lymphocytes/\u03bcl", + "min": "0", + "max": "10", + "category_id": [ + 16 + ] + }, + { + "name": "pH (CSF)", + "type": "Float", + "choices": null, + "unit": null, + "ideal": "7.31-7.34", + "min": "0", + "max": "10", + "category_id": [ + 16 + ] + }, + { + "name": "glucose", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "40-70 mg/dl", + "min": "0", + "max": "1000", + "category_id": [ + 16 + ] + }, + { + "name": "proteins", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "20-50 mg/dl", + "min": "0", + "max": "1000", + "category_id": [ + 16 + ] + }, + { + "name": "Formiminoglutamin Acid", + "type": "Float", + "choices": null, + "unit": "mg/day", + "ideal": "<3 mg/day", + "min": "0", + "max": "10000", + "category_id": [] + }, + { + "name": "Gastric analysis", + "type": null, + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [ + 17 + ] + }, + { + "name": "24-hr volume", + "type": "Float", + "choices": null, + "unit": "L", + "ideal": "2-3 L", + "min": "0", + "max": "10", + "category_id": [ + 17 + ] + }, + { + "name": "pH (Gastric Juice)", + "type": "Float", + "choices": null, + "unit": null, + "ideal": "1.6-1.8", + "min": "0", + "max": "10", + "category_id": [ + 17 + ] + }, + { + "name": "basal acid output (BAO)", + "type": "Float", + "choices": null, + "unit": "mEq/hr", + "ideal": "1-5 mEq/hr", + "min": "0", + "max": "100", + "category_id": [ + 17 + ] + }, + { + "name": "maximal acid output (MAO)", + "type": "Float", + "choices": null, + "unit": "mEq/hr", + "ideal": "5-40 mEq/hr", + "min": "0", + "max": "100", + "category_id": [ + 17 + ] + }, + { + "name": "after injection of stimulant", + "type": null, + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [ + 17 + ] + }, + { + "name": "BAO/MAO ratio", + "type": "Float", + "choices": null, + "unit": "ratio", + "ideal": "<0:6", + "min": "0", + "max": "10", + "category_id": [ + 17 + ] + }, + { + "name": "Glomerular filtration rate (GFR)", + "type": "Float", + "choices": null, + "unit": "L/day", + "ideal": "180 L/day (about 125 ml/min)", + "min": "0", + "max": "1000", + "category_id": [ + 12 + ] + }, + { + "name": "5-HIAA", + "type": "Float", + "choices": null, + "unit": "mg/day", + "ideal": "2-9 mg/day", + "min": "0", + "max": "100", + "category_id": [] + }, + { + "name": "17-Ketosteroids \n", + "type": "Float", + "choices": null, + "unit": "mg/day", + "ideal": "males :7-25 mg/day\nfemales: 4-15 mg/day", + "min": "0", + "max": "100", + "category_id": [] + }, + { + "name": "Seminal fluid liquefaction", + "type": "Float", + "choices": null, + "unit": null, + "ideal": "Within 20 min", + "min": "1 min", + "max": "60 min", + "category_id": [ + 18 + ] + }, + { + "name": "sperm morphology", + "type": "Float", + "choices": null, + "unit": "%", + "ideal": ">70% normal, mature spermatozoa", + "min": null, + "max": null, + "category_id": [ + 18 + ] + }, + { + "name": "sperm motility", + "type": "Float", + "choices": null, + "unit": "%", + "ideal": ">60%", + "min": null, + "max": null, + "category_id": [ + 18 + ] + }, + { + "name": "pH (Semen)", + "type": "Float", + "choices": null, + "unit": null, + "ideal": ">7.0 (average 7.7)", + "min": null, + "max": null, + "category_id": [ + 18 + ] + }, + { + "name": "sperm count", + "type": "Float", + "choices": null, + "unit": "million/ml", + "ideal": "60-150 million/ml", + "min": null, + "max": null, + "category_id": [ + 18 + ] + }, + { + "name": "volume", + "type": "Float", + "choices": null, + "unit": "ml", + "ideal": "1.5-5.0 ml", + "min": null, + "max": null, + "category_id": [ + 18 + ] + }, + { + "name": "Stool examination\ncoproporphyrin: ", + "type": "Float", + "choices": null, + "unit": "mg/day", + "ideal": " 400-1000 mg/day", + "min": "100", + "max": "10000", + "category_id": [ + 19 + ] + }, + { + "name": "faecal fat excretion", + "type": "Float", + "choices": null, + "unit": "g/day", + "ideal": "<6.0 g/day", + "min": "0", + "max": "100", + "category_id": [ + 19 + ] + }, + { + "name": "occult blood", + "type": "string", + "choices": null, + "unit": "mlblood/day", + "ideal": ": Negative (<2 ml blood /day)", + "min": null, + "max": null, + "category_id": [ + 19 + ] + }, + { + "name": "urobilinogen", + "type": "Float", + "choices": null, + "unit": "mg/day", + "ideal": "40-280 mg/day", + "min": "0", + "max": "1000", + "category_id": [ + 19 + ] + }, + { + "name": "D-xylose excretion", + "type": "Float", + "choices": null, + "unit": "g", + "ideal": "5-8 g within 5 hrs after oral dose of 25 g", + "min": "0", + "max": "100", + "category_id": [ + 19 + ] + }, + { + "name": "Schilling\u2019s test (Intrinsic factor test)", + "type": "Float", + "choices": null, + "unit": "%", + "ideal": ">10% of ingested dose of \u2018hot\u2019\nvitamin B12 ", + "min": "0", + "max": "100", + "category_id": [] + }, + { + "name": "Urine examination", + "type": "Float", + "choices": null, + "unit": "ml", + "ideal": "600-1800 ml (variable)", + "min": "0", + "max": "10000", + "category_id": [] + }, + { + "name": "specific gravity, quantitative", + "type": "Float", + "choices": null, + "unit": null, + "ideal": "1.002-1.028 (average 1.018)", + "min": "0", + "max": "10", + "category_id": [] + }, + { + "name": "protein excretion", + "type": "Float", + "choices": null, + "unit": "mg/day", + "ideal": "<150 mg/day", + "min": "0", + "max": "1000", + "category_id": [] + }, + { + "name": "porphobilinogen\n\n", + "type": "string", + "choices": null, + "unit": null, + "ideal": "Negative\n\n", + "min": null, + "max": null, + "category_id": [ + 6 + ] + }, + { + "name": "UROBILINOGEN", + "type": "Float", + "choices": null, + "unit": "mg/day", + "ideal": "1.0-3.5 mg/day", + "min": "0", + "max": "10", + "category_id": [ + 6 + ] + }, + { + "name": "Microalbuminuria (24 hours)", + "type": "Float", + "choices": null, + "unit": "mg/day", + "ideal": "0-30 mg/day (0-30 \u00b5g/mg creatinine)", + "min": "0", + "max": "100", + "category_id": [ + 12 + ] + }, + { + "name": "Urobilinogen", + "type": "Float", + "choices": null, + "unit": "ratio", + "ideal": "Present in 1: 20 dilution", + "min": null, + "max": null, + "category_id": [ + 6 + ] + } ] From 1c274345e73d17513ba113652cb5520ceed5d1c3 Mon Sep 17 00:00:00 2001 From: prafful Date: Tue, 15 Oct 2024 19:58:49 +0530 Subject: [PATCH 06/11] fixed indentation --- .../commands/populate_investigations.py | 12 +- data/investigation_groups.json | 160 +- data/investigations.json | 5576 ++++++++--------- 3 files changed, 2874 insertions(+), 2874 deletions(-) diff --git a/care/users/management/commands/populate_investigations.py b/care/users/management/commands/populate_investigations.py index 5114769349..987aa60b5e 100644 --- a/care/users/management/commands/populate_investigations.py +++ b/care/users/management/commands/populate_investigations.py @@ -9,17 +9,17 @@ PatientInvestigationGroup, ) -with Path("data/investigations.json").open() as investigations_data: - investigations = json.load(investigations_data) - -with Path("data/investigation_groups.json").open() as investigation_groups_data: - investigation_groups = json.load(investigation_groups_data) - class Command(BaseCommand): help = "Seed Data for Investigations" def handle(self, *args, **kwargs): + with Path("data/investigations.json").open() as investigations_data: + investigations = json.load(investigations_data) + + with Path("data/investigation_groups.json").open() as investigation_groups_data: + investigation_groups = json.load(investigation_groups_data) + investigation_group_dict = {} for investigation_group in investigation_groups: diff --git a/data/investigation_groups.json b/data/investigation_groups.json index 711a558f15..694aa1cf8d 100644 --- a/data/investigation_groups.json +++ b/data/investigation_groups.json @@ -1,82 +1,82 @@ [ - { - "id": "1", - "name": "Haematology" - }, - { - "id": "2", - "name": "Biochemistry test" - }, - { - "id": "3", - "name": "Urine Test" - }, - { - "id": "4", - "name": "CBC" - }, - { - "id": "5", - "name": "Differential white blood cell count" - }, - { - "id": "6", - "name": "Liver Function Test" - }, - { - "id": "7", - "name": "Kidney Function test" - }, - { - "id": "8", - "name": "Elecyrolytes" - }, - { - "id": "9", - "name": "Lipid Profile" - }, - { - "id": "10", - "name": "ABG" - }, - { - "id": "11", - "name": "Cardiac Enzyme" - }, - { - "id": "12", - "name": "RFT" - }, - { - "id": "13", - "name": "Blood Glucose Level" - }, - { - "id": "14", - "name": "Immunoglobulins" - }, - { - "id": "15", - "name": "Other Body Fluids" - }, - { - "id": "16", - "name": "Cerebro Spinal Fluid analysis" - }, - { - "id": "17", - "name": "Gastric Analysis" - }, - { - "id": "18", - "name": "Semen analysis" - }, - { - "id": "19", - "name": "Stool Examination" - }, - { - "id": "20", - "name": "Thyroid Function Test" - } + { + "id": "1", + "name": "Haematology" + }, + { + "id": "2", + "name": "Biochemistry test" + }, + { + "id": "3", + "name": "Urine Test" + }, + { + "id": "4", + "name": "CBC" + }, + { + "id": "5", + "name": "Differential white blood cell count" + }, + { + "id": "6", + "name": "Liver Function Test" + }, + { + "id": "7", + "name": "Kidney Function test" + }, + { + "id": "8", + "name": "Elecyrolytes" + }, + { + "id": "9", + "name": "Lipid Profile" + }, + { + "id": "10", + "name": "ABG" + }, + { + "id": "11", + "name": "Cardiac Enzyme" + }, + { + "id": "12", + "name": "RFT" + }, + { + "id": "13", + "name": "Blood Glucose Level" + }, + { + "id": "14", + "name": "Immunoglobulins" + }, + { + "id": "15", + "name": "Other Body Fluids" + }, + { + "id": "16", + "name": "Cerebro Spinal Fluid analysis" + }, + { + "id": "17", + "name": "Gastric Analysis" + }, + { + "id": "18", + "name": "Semen analysis" + }, + { + "id": "19", + "name": "Stool Examination" + }, + { + "id": "20", + "name": "Thyroid Function Test" + } ] diff --git a/data/investigations.json b/data/investigations.json index d3196b7de7..ada5bf5e17 100644 --- a/data/investigations.json +++ b/data/investigations.json @@ -1,2790 +1,2790 @@ [ - { - "name": "Blood Group", - "type": "Choice", - "choices": "A-,A+,B+,B-,O+,O-,AB-,AB+", - "unit": null, - "ideal": null, - "min": null, - "max": null, - "category_id": [] - }, - { - "name": "Total Count", - "type": "Float", - "choices": null, - "unit": "cell/cumm", - "ideal": "4500-11000 cells/cumm", - "min": "1000", - "max": "30000", - "category_id": [ - 1, - 4 - ] - }, - { - "name": "Neutrophil count", - "type": "Float", - "choices": null, - "unit": "cell/\u03bcl", - "ideal": "(2,000-7,500/\u03bcl)", - "min": "100", - "max": "30000", - "category_id": [ - 1, - 4 - ] - }, - { - "name": "Lymphocyte count Eosinophil count", - "type": "Float", - "choices": null, - "unit": "cell/\u03bcl", - "ideal": "(1,500-4,000/\u03bcl)", - "min": "10", - "max": "30000", - "category_id": [ - 1, - 4 - ] - }, - { - "name": "Eosinophil count", - "type": "Float", - "choices": null, - "unit": "cell/\u03bcl", - "ideal": "(40-400/\u03bcl)", - "min": "0", - "max": "10000", - "category_id": [ - 1, - 4 - ] - }, - { - "name": "Basophil count", - "type": "Float", - "choices": null, - "unit": "cell/\u03bcl", - "ideal": "(10-100/\u03bcl)", - "min": "0", - "max": "10000", - "category_id": [ - 1, - 4 - ] - }, - { - "name": "Monocyte count", - "type": "Float", - "choices": null, - "unit": "cell/\u03bcl", - "ideal": "(200-800/\u03bcl)", - "min": "10", - "max": "10000", - "category_id": [ - 1, - 4 - ] - }, - { - "name": "neutrophil", - "type": "Float", - "choices": null, - "unit": "%", - "ideal": "40-60 %", - "min": "0", - "max": "100", - "category_id": [ - 1, - 4 - ] - }, - { - "name": "lymphocyte", - "type": "Float", - "choices": null, - "unit": "%", - "ideal": "20-4 %", - "min": "0", - "max": "100", - "category_id": [ - 1, - 4 - ] - }, - { - "name": "eosinophil", - "type": "Float", - "choices": null, - "unit": "%", - "ideal": "1-3 %", - "min": "0", - "max": "100", - "category_id": [ - 1, - 4 - ] - }, - { - "name": "basophile", - "type": "Float", - "choices": null, - "unit": "%", - "ideal": "0-1 %", - "min": "0", - "max": "100", - "category_id": [ - 1, - 4 - ] - }, - { - "name": "monocyte", - "type": "Float", - "choices": null, - "unit": "%", - "ideal": "4-8 %", - "min": "0", - "max": "100", - "category_id": [ - 1, - 4 - ] - }, - { - "name": "Hb", - "type": "Float", - "choices": null, - "unit": "gm%", - "ideal": "men 14-17 gm% , woman 12-16 gm% ,children 12-14 gm%", - "min": "0", - "max": "100", - "category_id": [ - 1, - 4 - ] - }, - { - "name": "PCV", - "type": "Float", - "choices": null, - "unit": "%", - "ideal": "Men 38-51 gm% , Woman 36-47%", - "min": "0", - "max": "100", - "category_id": [ - 1 - ] - }, - { - "name": "RBC count", - "type": "Float", - "choices": null, - "unit": "million/cumm", - "ideal": "4.5-6.0 million/cumm", - "min": "0", - "max": "30", - "category_id": [ - 1, - 4 - ] - }, - { - "name": "RDW", - "type": "Float", - "choices": null, - "unit": "%", - "ideal": "11.8 - 16.1%", - "min": "0", - "max": "100", - "category_id": [ - 1 - ] - }, - { - "name": "Platelets", - "type": "Float", - "choices": null, - "unit": "lakhs/cumm", - "ideal": "1.5-4.5 lakhs/cumm", - "min": "0", - "max": "10", - "category_id": [ - 1, - 4 - ] - }, - { - "name": "MCV", - "type": "Float", - "choices": null, - "unit": "Fl", - "ideal": "80-96 Fl", - "min": "10", - "max": "1000", - "category_id": [ - 1, - 4 - ] - }, - { - "name": "MCH", - "type": "Float", - "choices": null, - "unit": "pg", - "ideal": "27-33 pg", - "min": "0", - "max": "100", - "category_id": [ - 1, - 4 - ] - }, - { - "name": "MCHC", - "type": "Float", - "choices": null, - "unit": "g/dl", - "ideal": "33.4-35.5 g/dl", - "min": "0", - "max": "100", - "category_id": [ - 1, - 4 - ] - }, - { - "name": "ESR", - "type": "Float", - "choices": null, - "unit": "mm/hr", - "ideal": "0-20 mm/hr", - "min": "0", - "max": "1000", - "category_id": [ - 1 - ] - }, - { - "name": "Peripheral blood smear", - "type": "String", - "choices": null, - "unit": null, - "ideal": null, - "min": null, - "max": null, - "category_id": [ - 1 - ] - }, - { - "name": "Reticulocyte count", - "type": "Float", - "choices": null, - "unit": "%", - "ideal": "adults 0.5-1.5%, newborns 3-6%", - "min": "0", - "max": "100", - "category_id": [ - 1 - ] - }, - { - "name": "M P smear", - "type": "String", - "choices": null, - "unit": null, - "ideal": null, - "min": null, - "max": null, - "category_id": [ - 1 - ] - }, - { - "name": "FBS", - "type": "Float", - "choices": null, - "unit": "mg/dl", - "ideal": "70-110 mg/dl", - "min": "0", - "max": "500", - "category_id": [ - 2 - ] - }, - { - "name": "PPBS", - "type": "Float", - "choices": null, - "unit": "mg/dl", - "ideal": "< 140 mg/dl", - "min": "0", - "max": "1000", - "category_id": [ - 2 - ] - }, - { - "name": "RBS", - "type": "Float", - "choices": null, - "unit": "mg/dl", - "ideal": "80-120 mg/dl", - "min": "0", - "max": "1000", - "category_id": [ - 2 - ] - }, - { - "name": "T. Cholestrol", - "type": "Float", - "choices": null, - "unit": "mg/dl", - "ideal": "150-220 mg/dl", - "min": "0", - "max": "1000", - "category_id": [ - 2 - ] - }, - { - "name": "LDL", - "type": "Float", - "choices": null, - "unit": "mg/dl", - "ideal": "< 130 mg/dl", - "min": "0", - "max": "1000", - "category_id": [ - 2 - ] - }, - { - "name": "HDL", - "type": "Float", - "choices": null, - "unit": "mg/dl", - "ideal": "male 35-80 mg/dl, female 40-88 mg/dl", - "min": "0", - "max": "1000", - "category_id": [ - 2 - ] - }, - { - "name": "Triglycerides", - "type": "Float", - "choices": null, - "unit": "mg/dl", - "ideal": "male 60-165 mg/dl, female 40-140 mg/dl", - "min": "0", - "max": "1000", - "category_id": [ - 2 - ] - }, - { - "name": "VLDL", - "type": "Float", - "choices": null, - "unit": "mg/dl", - "ideal": "2-30 mg/dl", - "min": "0", - "max": "100", - "category_id": [ - 2 - ] - }, - { - "name": "Urea", - "type": "Float", - "choices": null, - "unit": "mg/dl", - "ideal": "20-40 mg/dl", - "min": "0", - "max": "100", - "category_id": [ - 12 - ] - }, - { - "name": "Uric Acid", - "type": "Float", - "choices": null, - "unit": "mg/dl", - "ideal": "male 3.1-7.0 mg/dl, female 2.5-5.6 mg/dl", - "min": "0", - "max": "30", - "category_id": [ - 2 - ] - }, - { - "name": "Creatinine", - "type": "Float", - "choices": null, - "unit": "mg/dl", - "ideal": "male 0.7-1.4 mg/dl, female 0.6-1.2 mg/dl", - "min": "0", - "max": "20", - "category_id": [ - 2, - 12 - ] - }, - { - "name": "CRP", - "type": "Float", - "choices": null, - "unit": "mg/l", - "ideal": "upto 6 mg/l", - "min": "0", - "max": "50", - "category_id": [ - 2 - ] - }, - { - "name": "Serum Sodium (Na+)", - "type": "Float", - "choices": null, - "unit": "mmol/l", - "ideal": "136-146 mmol/l", - "min": "0", - "max": "1000", - "category_id": [ - 8 - ] - }, - { - "name": "Serum Potassium (K+)", - "type": "Float", - "choices": null, - "unit": "mmol/l", - "ideal": "3.5 - 5.5 mmol/l", - "min": "0", - "max": "10", - "category_id": [ - 8 - ] - }, - { - "name": "Serum Calcium", - "type": "Float", - "choices": null, - "unit": "mg/dl", - "ideal": "8.7-10.2 mg/dl", - "min": "0", - "max": "100", - "category_id": [ - 8 - ] - }, - { - "name": "Serum Phosphorus", - "type": "Float", - "choices": null, - "unit": "mg/dl", - "ideal": "children 4-7 mg/dl, adult 2.5-4.3 mg/dl", - "min": "0", - "max": "10", - "category_id": [ - 2 - ] - }, - { - "name": "Serum Chloride", - "type": "Float", - "choices": null, - "unit": "mmol/l", - "ideal": "102-109 mmol/l", - "min": "0", - "max": "500", - "category_id": [ - 8 - ] - }, - { - "name": "Serum Megnesium", - "type": "Float", - "choices": null, - "unit": "mg/dl", - "ideal": "1.6-2.6 mg/dl", - "min": "0", - "max": "10", - "category_id": [ - 2 - ] - }, - { - "name": "Total Bilirubin", - "type": "Float", - "choices": null, - "unit": "mg/dl", - "ideal": "0.3 - 1.3 mg/dl", - "min": "0", - "max": "30", - "category_id": [ - 6 - ] - }, - { - "name": "Direct Bilirubin", - "type": "Float", - "choices": null, - "unit": "mg/dl", - "ideal": "0.1 - 0.4 mg/dl", - "min": "0", - "max": "30", - "category_id": [ - 6 - ] - }, - { - "name": "SGOT", - "type": "Float", - "choices": null, - "unit": "IU/L", - "ideal": "upto 46 IU/L", - "min": "0", - "max": "1000", - "category_id": [ - 2 - ] - }, - { - "name": "SGPT", - "type": "Float", - "choices": null, - "unit": "IU/L", - "ideal": "upto 49 IU/L", - "min": "0", - "max": "1000", - "category_id": [ - 2 - ] - }, - { - "name": "ALP", - "type": "Float", - "choices": null, - "unit": "IU/L", - "ideal": "male 80-306 IU/L, female 64-306 IU/L", - "min": "0", - "max": "1000", - "category_id": [ - 2 - ] - }, - { - "name": "Total Protein", - "type": "Float", - "choices": null, - "unit": "g/dl", - "ideal": "6.7-8.6 g/dl", - "min": "0", - "max": "10", - "category_id": [ - 6 - ] - }, - { - "name": "Albumin", - "type": "Float", - "choices": null, - "unit": "g/dl", - "ideal": "3.5-5.5 g/dl (50-60%)", - "min": "0", - "max": "10", - "category_id": [ - 2, - 6 - ] - }, - { - "name": "Globulin", - "type": "Float", - "choices": null, - "unit": "g/dl", - "ideal": "2.0-3.5 g/dl (40-50%)", - "min": "0", - "max": "10", - "category_id": [ - 2 - ] - }, - { - "name": "PT", - "type": "Float", - "choices": null, - "unit": "sec", - "ideal": "9.1-12.1 seconds", - "min": "0", - "max": "100", - "category_id": [ - 2 - ] - }, - { - "name": "INR", - "type": "Float", - "choices": null, - "unit": "sec", - "ideal": "0.8-1.1 seconds", - "min": "0", - "max": "100", - "category_id": [ - 2 - ] - }, - { - "name": "APTT", - "type": "Float", - "choices": null, - "unit": "sec", - "ideal": "25.4-38.4 seconds", - "min": "0", - "max": "100", - "category_id": [ - 2 - ] - }, - { - "name": "D-Dimer", - "type": "Float", - "choices": null, - "unit": "ug/l", - "ideal": "< 0.5 ug/l", - "min": "0", - "max": "10", - "category_id": [ - 2 - ] - }, - { - "name": "Fibrinogen", - "type": "Float", - "choices": null, - "unit": "mg/dl", - "ideal": "200-400 mg/dl", - "min": "0", - "max": "1000", - "category_id": [ - 2 - ] - }, - { - "name": "GCT", - "type": "Float", - "choices": null, - "unit": "mg/dl", - "ideal": "< 140 mg/dl", - "min": "0", - "max": "1000", - "category_id": [ - 2 - ] - }, - { - "name": "GTT", - "type": "Float", - "choices": null, - "unit": "mg/dl", - "ideal": "140-200 mg/dl", - "min": "0", - "max": "1000", - "category_id": [ - 2 - ] - }, - { - "name": "GGT", - "type": "Float", - "choices": null, - "unit": "U/L", - "ideal": "9 - 48 U/L (male)\n5 - 32 U/L (female)", - "min": "0", - "max": "300", - "category_id": [ - 2, - 6 - ] - }, - { - "name": "HbA1C", - "type": "Float", - "choices": null, - "unit": "%", - "ideal": "4-5.6 %", - "min": "0", - "max": "100", - "category_id": [ - 2 - ] - }, - { - "name": "Serum Copper", - "type": "Float", - "choices": null, - "unit": "mcg/dl", - "ideal": "85-180 mcg/dl", - "min": "0", - "max": "1000", - "category_id": [ - 2 - ] - }, - { - "name": "Serum Lead", - "type": "Float", - "choices": null, - "unit": "mcg/dl", - "ideal": "upto 10 mcg/dl", - "min": "0", - "max": "1000", - "category_id": [ - 2 - ] - }, - { - "name": "Iron", - "type": "Float", - "choices": null, - "unit": "mcg/dl", - "ideal": "60-170 mcg/dl", - "min": "0", - "max": "1000", - "category_id": [ - 2 - ] - }, - { - "name": "TIBC", - "type": "Float", - "choices": null, - "unit": "mcg/dl", - "ideal": "250-450 mcg/dl", - "min": "100", - "max": "1000", - "category_id": [ - 2 - ] - }, - { - "name": "Transferin Saturation", - "type": "Float", - "choices": null, - "unit": "%", - "ideal": "15-50 %", - "min": "0", - "max": "100", - "category_id": [ - 2 - ] - }, - { - "name": "IL6", - "type": "Float", - "choices": null, - "unit": "pg/ml", - "ideal": "0-16.4 pg/ml", - "min": "0", - "max": "100", - "category_id": [ - 2 - ] - }, - { - "name": "Lactate", - "type": "Float", - "choices": null, - "unit": "mmol/l", - "ideal": "0.5-1.6mmol/l", - "min": "0", - "max": "10", - "category_id": [ - 2, - 10 - ] - }, - { - "name": "Ceruloplasmin", - "type": "Float", - "choices": null, - "unit": "mg/dl", - "ideal": "14-40 mg/dl", - "min": "0", - "max": "100", - "category_id": [ - 2 - ] - }, - { - "name": "ACP", - "type": "Float", - "choices": null, - "unit": "U/L", - "ideal": "0.13-0.63 U/L", - "min": "0", - "max": "10", - "category_id": [ - 2 - ] - }, - { - "name": "Protein C", - "type": "Float", - "choices": null, - "unit": "IU dl 1", - "ideal": "65-135 IU dl 1", - "min": "65", - "max": "135", - "category_id": [ - 2 - ] - }, - { - "name": "Protein S", - "type": "Float", - "choices": null, - "unit": "%", - "ideal": "70-140 %", - "min": "0", - "max": "100", - "category_id": [ - 2 - ] - }, - { - "name": "G6PD", - "type": "Float", - "choices": null, - "unit": "U/g Hb", - "ideal": "neonate 10.15-14.71 U/g Hb, adult 6.75-11.95 U/g Hb", - "min": null, - "max": null, - "category_id": [ - 2 - ] - }, - { - "name": "ACCP", - "type": "Float", - "choices": null, - "unit": "EU/ml", - "ideal": "< 20 EU/ml", - "min": "0", - "max": "100", - "category_id": [ - 2 - ] - }, - { - "name": "Ferritin", - "type": "Float", - "choices": null, - "unit": "ng/ml", - "ideal": "20-250 ng/ml", - "min": "0", - "max": "1000", - "category_id": [ - 2 - ] - }, - { - "name": "LDH", - "type": "Float", - "choices": null, - "unit": "U/L", - "ideal": "140-280 U/L", - "min": "0", - "max": "1000", - "category_id": [ - 2 - ] - }, - { - "name": "Amylase", - "type": "Float", - "choices": null, - "unit": "U/L", - "ideal": "20-96 U/L", - "min": "0", - "max": "200", - "category_id": [ - 2 - ] - }, - { - "name": "Lipase", - "type": "Float", - "choices": null, - "unit": "U/L", - "ideal": "3-43 U/L", - "min": "0", - "max": "200", - "category_id": [ - 2 - ] - }, - { - "name": "Ammonia", - "type": "Float", - "choices": null, - "unit": "ug/dL", - "ideal": "19-60 \u03bcg/dl", - "min": "0", - "max": "100", - "category_id": [ - 2 - ] - }, - { - "name": "CKMB", - "type": "Float", - "choices": null, - "unit": "IU/L", - "ideal": "5-25 IU/L", - "min": "0", - "max": "100", - "category_id": [ - 2 - ] - }, - { - "name": "CK NAC", - "type": "Float", - "choices": null, - "unit": "U/L", - "ideal": "male < 171 U/L, female < 145 U/L", - "min": null, - "max": null, - "category_id": [ - 2 - ] - }, - { - "name": "24hrs Urine Protein", - "type": "Float", - "choices": null, - "unit": "mg/dl", - "ideal": "<10 mg/dl", - "min": "0", - "max": "100", - "category_id": [ - 2, - 7 - ] - }, - { - "name": "24hrs Urine Uric Acid", - "type": "Float", - "choices": null, - "unit": "mg/24hr", - "ideal": "250-750 mg/24hr", - "min": "0", - "max": "1500", - "category_id": [ - 2 - ] - }, - { - "name": "24 hrs Urine Oxalate", - "type": "Float", - "choices": null, - "unit": "mg/L", - "ideal": "<15 mg/L", - "min": "0", - "max": "100", - "category_id": [ - 2 - ] - }, - { - "name": "Urine Microalbumin", - "type": "Float", - "choices": null, - "unit": "mg", - "ideal": "< 30 mg", - "min": "0", - "max": "100", - "category_id": [ - 2 - ] - }, - { - "name": "Urine Sodium", - "type": "Float", - "choices": null, - "unit": "mEq/day", - "ideal": "40-220 mEq/day", - "min": "0", - "max": "1000", - "category_id": [ - 2 - ] - }, - { - "name": "PCT", - "type": "Float", - "choices": null, - "unit": "ng/ml", - "ideal": "< 0.15 ng/ml", - "min": "0", - "max": "10", - "category_id": [ - 2 - ] - }, - { - "name": "T3", - "type": "Float", - "choices": null, - "unit": "ng/dl", - "ideal": "80-220 ng/dl", - "min": "0", - "max": "1000", - "category_id": [ - 2 - ] - }, - { - "name": "T4", - "type": "Float", - "choices": null, - "unit": "ug/L", - "ideal": "5-12 ug/L", - "min": "0", - "max": "100", - "category_id": [ - 2 - ] - }, - { - "name": "TSH", - "type": "Float", - "choices": null, - "unit": "mIU/L", - "ideal": "0.5-5 mIU/L", - "min": "0", - "max": "100", - "category_id": [ - 2 - ] - }, - { - "name": "FT3", - "type": "Float", - "choices": null, - "unit": "ng/dl", - "ideal": "60-180 ng/dl", - "min": "10", - "max": "1000", - "category_id": [ - 2 - ] - }, - { - "name": "FT4", - "type": "Float", - "choices": null, - "unit": "ng/dl", - "ideal": "0.7-1.9 ng/dl", - "min": "0", - "max": "10", - "category_id": [ - 2 - ] - }, - { - "name": "Estradiol", - "type": "Float", - "choices": null, - "unit": "pg/ml", - "ideal": "premenopausal women 30-400 pg/ml, post-menopausal women 0-30 pg/ml, men 10-50 pg/ml", - "min": null, - "max": null, - "category_id": [ - 2 - ] - }, - { - "name": "Growth Hormone", - "type": "Float", - "choices": null, - "unit": "ng/ml", - "ideal": "male 0.4-10 ng/ml, female 1-14 ng/ml", - "min": "0", - "max": "100", - "category_id": [ - 2 - ] - }, - { - "name": "Cortisol", - "type": "Float", - "choices": null, - "unit": "mcg/dl", - "ideal": "5-25 ng/ml", - "min": "0", - "max": "100", - "category_id": [ - 2 - ] - }, - { - "name": "PTH", - "type": "Float", - "choices": null, - "unit": "pg/ml", - "ideal": "14-65 pg/ml", - "min": "0", - "max": "100", - "category_id": [ - 2 - ] - }, - { - "name": "Prolactine", - "type": "Float", - "choices": null, - "unit": "ng/ml", - "ideal": "male <20 ng/ml, female <25 ng/ml, pregnant women <300 ng/ml", - "min": null, - "max": null, - "category_id": [ - 2 - ] - }, - { - "name": "Pro BNP", - "type": "Float", - "choices": null, - "unit": "pg/ml", - "ideal": "< 300 pg/ml", - "min": "0", - "max": "1000", - "category_id": [ - 2 - ] - }, - { - "name": "Vitamine D3", - "type": "Float", - "choices": null, - "unit": "ng/ml", - "ideal": "20-40 ng/ml", - "min": "10", - "max": "100", - "category_id": [ - 2 - ] - }, - { - "name": "Vitamine B12", - "type": "Float", - "choices": null, - "unit": "pg/ml", - "ideal": "160-950 pg/ml", - "min": "10", - "max": "2000", - "category_id": [ - 2 - ] - }, - { - "name": "FSH", - "type": "Float", - "choices": null, - "unit": "IU/L", - "ideal": "before puberty 0-4 IU/L, during puberty 0.36-10 IU/L, ", - "min": "0", - "max": "100", - "category_id": [ - 2 - ] - }, - { - "name": "LH", - "type": "Float", - "choices": null, - "unit": "IU/L", - "ideal": "before menopause 5-25 IU/L, after menopause 14.2-52.3 IU/L", - "min": "0", - "max": "100", - "category_id": [ - 2 - ] - }, - { - "name": "PSA", - "type": "Float", - "choices": null, - "unit": "ng/ml", - "ideal": "<4 ng/ml", - "min": "0", - "max": "10", - "category_id": [ - 2 - ] - }, - { - "name": "ACTH", - "type": "Float", - "choices": null, - "unit": "pg/ml", - "ideal": "10-60 pg/ml", - "min": "0", - "max": "100", - "category_id": [ - 2 - ] - }, - { - "name": "CEA", - "type": "Float", - "choices": null, - "unit": "ng/ml", - "ideal": "0-2.5 ng/ml", - "min": "0", - "max": "10", - "category_id": [ - 2 - ] - }, - { - "name": "AFP", - "type": "Float", - "choices": null, - "unit": "ng/ml", - "ideal": "10-20 ng/ml", - "min": "0", - "max": "100", - "category_id": [ - 2 - ] - }, - { - "name": "CA125", - "type": "Float", - "choices": null, - "unit": "U/ml", - "ideal": "< 46 U/ml", - "min": "0", - "max": "100", - "category_id": [ - 2 - ] - }, - { - "name": "CA19.9", - "type": "Float", - "choices": null, - "unit": "U/ml", - "ideal": "0-37 U/ml", - "min": "0", - "max": "100", - "category_id": [ - 2 - ] - }, - { - "name": "Testosterone ", - "type": "Float", - "choices": null, - "unit": "ng/dl", - "ideal": "270-1070 ng/dl", - "min": "10", - "max": "2000", - "category_id": [ - 2 - ] - }, - { - "name": "Progestrone", - "type": "Float", - "choices": null, - "unit": "ng/ml", - "ideal": "female pre ovulation, menupausal women, men <1 ng/ml, mid-cycle 5-20 ng/ml", - "min": null, - "max": null, - "category_id": [ - 2 - ] - }, - { - "name": "Serum IgG", - "type": "Float", - "choices": null, - "unit": "g/L", - "ideal": "7.0-17.0 g/L", - "min": "0", - "max": "100", - "category_id": [ - 14 - ] - }, - { - "name": "Serum IgE", - "type": "Float", - "choices": null, - "unit": "\u00b5g/L", - "ideal": "24-430 \u00b5g/L", - "min": "0", - "max": "1000", - "category_id": [ - 14 - ] - }, - { - "name": "Serum IgM", - "type": "Float", - "choices": null, - "unit": "g/L", - "ideal": "0.4-2.5 g/L", - "min": "0", - "max": "10", - "category_id": [ - 14 - ] - }, - { - "name": "Serum IgA", - "type": "Float", - "choices": null, - "unit": "g/l", - "ideal": "0.70-3.50 g/L", - "min": "0", - "max": "10", - "category_id": [ - 14 - ] - }, - { - "name": "Urine Colour", - "type": "String", - "choices": null, - "unit": null, - "ideal": null, - "min": null, - "max": null, - "category_id": [ - 3 - ] - }, - { - "name": "Urine Appearence", - "type": "String", - "choices": null, - "unit": null, - "ideal": null, - "min": null, - "max": null, - "category_id": [ - 3 - ] - }, - { - "name": "pH (Urine)", - "type": "Float", - "choices": null, - "unit": null, - "ideal": "5.0-9.0", - "min": "0", - "max": "10", - "category_id": [ - 3 - ] - }, - { - "name": "Urine Specific Gravity", - "type": "String", - "choices": null, - "unit": null, - "ideal": null, - "min": null, - "max": null, - "category_id": [ - 3 - ] - }, - { - "name": "Urine Nitrite", - "type": "String", - "choices": null, - "unit": null, - "ideal": null, - "min": null, - "max": null, - "category_id": [ - 3 - ] - }, - { - "name": "Urine Urobilinogen", - "type": "String", - "choices": null, - "unit": null, - "ideal": null, - "min": null, - "max": null, - "category_id": [ - 3 - ] - }, - { - "name": "Urine Bile Salt", - "type": "String", - "choices": null, - "unit": null, - "ideal": null, - "min": null, - "max": null, - "category_id": [ - 3 - ] - }, - { - "name": "Urine Bile Pigment", - "type": "String", - "choices": null, - "unit": null, - "ideal": null, - "min": null, - "max": null, - "category_id": [ - 3 - ] - }, - { - "name": "Urine Acetone", - "type": "String", - "choices": null, - "unit": null, - "ideal": null, - "min": null, - "max": null, - "category_id": [ - 3 - ] - }, - { - "name": "Urine Albumin", - "type": "String", - "choices": null, - "unit": null, - "ideal": null, - "min": null, - "max": null, - "category_id": [ - 3 - ] - }, - { - "name": "Urine Sugar", - "type": "String", - "choices": null, - "unit": null, - "ideal": null, - "min": null, - "max": null, - "category_id": [ - 3 - ] - }, - { - "name": "Urine Puscells", - "type": "String", - "choices": null, - "unit": null, - "ideal": null, - "min": null, - "max": null, - "category_id": [ - 3 - ] - }, - { - "name": "Urine Epithetical Cells", - "type": "String", - "choices": null, - "unit": null, - "ideal": null, - "min": null, - "max": null, - "category_id": [ - 3 - ] - }, - { - "name": "Urine RBC ", - "type": "String", - "choices": null, - "unit": null, - "ideal": null, - "min": null, - "max": null, - "category_id": [ - 3 - ] - }, - { - "name": "Urine Cast", - "type": "String", - "choices": null, - "unit": null, - "ideal": null, - "min": null, - "max": null, - "category_id": [ - 3 - ] - }, - { - "name": "Urine Crystal", - "type": "String", - "choices": null, - "unit": null, - "ideal": null, - "min": null, - "max": null, - "category_id": [ - 3 - ] - }, - { - "name": "others", - "type": "String", - "choices": null, - "unit": null, - "ideal": null, - "min": null, - "max": null, - "category_id": [ - 3 - ] - }, - { - "name": "UPT", - "type": "String", - "choices": null, - "unit": null, - "ideal": null, - "min": null, - "max": null, - "category_id": [ - 3 - ] - }, - { - "name": "Stool OB", - "type": "String", - "choices": null, - "unit": null, - "ideal": null, - "min": null, - "max": null, - "category_id": [ - 3 - ] - }, - { - "name": "Stool Microscopy", - "type": "String", - "choices": null, - "unit": null, - "ideal": null, - "min": null, - "max": null, - "category_id": [ - 3 - ] - }, - { - "name": "HBA1C", - "type": "Float", - "choices": "-", - "unit": "%", - "ideal": "4%- 5.6%", - "min": "0", - "max": "10", - "category_id": [ - 1 - ] - }, - { - "name": "Haemoglobin", - "type": "Float", - "choices": null, - "unit": "gm/dl", - "ideal": "Male 14-18\nFemale 12-16", - "min": "0", - "max": "25", - "category_id": [ - 4 - ] - }, - { - "name": "PCV/HCT(hematocrit)", - "type": "Float", - "choices": null, - "unit": "%", - "ideal": "Male: 38.8% - 50.0%\nFemale: 34.9% - 44.5%", - "min": "0", - "max": "100", - "category_id": [ - 4 - ] - }, - { - "name": "White Blood Cell (WBC) Count", - "type": "Float", - "choices": null, - "unit": "thousands/\u03bcL ", - "ideal": "4.5 - 11.0", - "min": "0", - "max": "100", - "category_id": [ - 4 - ] - }, - { - "name": "Neutrophils", - "type": "Float", - "choices": null, - "unit": "%", - "ideal": "40-60", - "min": "0", - "max": "100", - "category_id": [ - 4, - 5 - ] - }, - { - "name": "Lymphocytes", - "type": "Float", - "choices": null, - "unit": "%", - "ideal": "20% - 40%", - "min": "0", - "max": "100", - "category_id": [ - 4, - 5 - ] - }, - { - "name": "Monocytes", - "type": "Float", - "choices": null, - "unit": "%", - "ideal": "2% - 8%", - "min": "0", - "max": "100", - "category_id": [ - 4, - 5 - ] - }, - { - "name": "Eosinophils", - "type": "Float", - "choices": null, - "unit": "%", - "ideal": "1% - 4%", - "min": "0", - "max": "100", - "category_id": [ - 4, - 5 - ] - }, - { - "name": "Basophils", - "type": "Float", - "choices": null, - "unit": "%", - "ideal": "0% - 1%", - "min": "0", - "max": "100", - "category_id": [ - 4, - 5 - ] - }, - { - "name": "Platelet Count", - "type": "Float", - "choices": null, - "unit": "thousands/\u03bcL ", - "ideal": "150,000 - 450,000 ", - "min": "0", - "max": "100000000", - "category_id": [ - 4 - ] - }, - { - "name": "Alanine Aminotransferase (ALT)", - "type": "Float", - "choices": null, - "unit": "u/l", - "ideal": "7 - 55 U/L (male)\n7 - 45 U/L (female)", - "min": "0", - "max": "1500", - "category_id": [ - 6 - ] - }, - { - "name": "Aspartate Aminotransferase (AST)", - "type": "Float", - "choices": null, - "unit": "u/l", - "ideal": "8 - 48 U/L ", - "min": "1", - "max": "300", - "category_id": [ - 6 - ] - }, - { - "name": "Alkaline Phosphatase (ALP)", - "type": "Float", - "choices": null, - "unit": "u/l", - "ideal": "Newborn (0-30 days)\t150 - 420 U/L\nInfants (1-11 months)\t70 - 320 U/L\nChildren (1-3 years)\t80 - 280 U/L\nChildren (4-6 years)\t80 - 230 U/L\nChildren (7-9 years)\t65 - 230 U/L\nChildren (10-13 years)\t45 - 250 U/L\nChildren (14-17 years)\t40 - 220 U/L\nAdults (>18 years)\t44 - 147 U/L", - "min": "0", - "max": "1200", - "category_id": [ - 6 - ] - }, - { - "name": "Indirect Bilirubin", - "type": "Float", - "choices": null, - "unit": "mg/dL ", - "ideal": "0.2 - 0.9 mg/dL", - "min": "0", - "max": "10", - "category_id": [ - 6 - ] - }, - { - "name": "Prothrombin Time (PT)", - "type": "Float", - "choices": null, - "unit": "Seconds", - "ideal": "Newborn (0-2 days)- 14.0 - 20.5 seconds\nInfant (3 days - 1 month)- 14.0 - 19.2 seconds\nInfant (1 - 6 months)- 13.3 - 18.7 seconds\nInfant (6 - 12 months)- 13.3 - 17.8 seconds\nToddler (1 - 2 years) -12.5 - 16.5 seconds\nChild (2 - 6 years) - 11.5 - 15.5 seconds\nChild (7 - 12 years) - 11.8 - 14.5 seconds\nAdolescent (13 - 15 years) - 12.0 - 14.6 seconds\nAdolescent (16 - 17 years) - 11.7 - 14.2 seconds\nAdult (> 18 years) -11.0 - 13.0 seconds", - "min": "5", - "max": "30", - "category_id": [ - 6 - ] - }, - { - "name": "Serum Creatinine", - "type": "Float", - "choices": null, - "unit": "mg/dL ", - "ideal": "Infants (0-11 months)\t0.2 - 0.4 mg/dL\nChildren (1-17 years)\t0.3 - 0.7 mg/dL (varies with age)\nAdult (18-60 years)\t0.6 - 1.2 mg/dL\nAdult (> 60 years)\t0.6 - 1.3 mg/dL", - "min": "0", - "max": "30", - "category_id": [ - 12 - ] - }, - { - "name": "Blood Urea Nitrogen (BUN)", - "type": "FLoat", - "choices": null, - "unit": "mg/dL ", - "ideal": "Newborn (0-2 days)\t3 - 17 mg/dL\nInfant (3 days - 1 month)\t3 - 19 mg/dL\nInfant (1 - 6 months)\t5 - 20 mg/dL\nInfant (6 - 12 months)\t5 - 13 mg/dL\nToddler (1 - 2 years)\t7 - 20 mg/dL\nChild (3 - 5 years)\t8 - 18 mg/dL\nChild (6 - 11 years)\t8 - 21 mg/dL\nAdolescent (12 - 17 years)\t7 - 20 mg/dL\nAdult (> 18 years)\t7 - 20 mg/dL", - "min": "0", - "max": "100", - "category_id": [ - 12 - ] - }, - { - "name": "Estimated Glomerular Filtration Rate (eGFR)", - "type": "FLoat", - "choices": null, - "unit": "mL/min/1.73m\u00b2 (milliliters per minute per 1.73 square meters)", - "ideal": "> 90 mL/min/1.73m\u00b2 ", - "min": "0", - "max": "90", - "category_id": [ - 7 - ] - }, - { - "name": "Blood Uric Acid", - "type": "Float", - "choices": null, - "unit": "mg/dL ", - "ideal": "3.5 - 7.2 mg/dL (males)\n2.6 - 6.0 mg/dL (females)", - "min": "2", - "max": "10", - "category_id": [] - }, - { - "name": "Urinalysis", - "type": "String", - "choices": null, - "unit": null, - "ideal": null, - "min": null, - "max": null, - "category_id": [ - 3, - 7 - ] - }, - { - "name": "Serum Creatinine Clearance", - "type": "FLoat", - "choices": null, - "unit": "mL/min ", - "ideal": "97 to 137mL/min (males)\n88 to 128mL/min (females)", - "min": "10", - "max": "250", - "category_id": [ - 7 - ] - }, - { - "name": "s. typhus test", - "type": null, - "choices": null, - "unit": null, - "ideal": null, - "min": null, - "max": null, - "category_id": [] - }, - { - "name": "Widal Test", - "type": null, - "choices": null, - "unit": null, - "ideal": null, - "min": null, - "max": null, - "category_id": [] - }, - { - "name": "Alcohol, ethyl", - "type": "Float", - "choices": null, - "unit": "mg/dl", - "ideal": "Negative\nmild intoxication : 80-200 mg/dl\nmoderate intoxication: 250-400 mg/dl\nsevere intoxication: >400 mg/dl", - "min": "0", - "max": "1500", - "category_id": [] - }, - { - "name": "Blood volume Total\nRed cell volume, males\n females \nPlasma volume, males\n females", - "type": null, - "choices": null, - "unit": null, - "ideal": "Blood Volume Total: 60-80 ml/kg body weight \nRed Cell Volume, Male:30 ml/kg body weight\n Female:25 ml/kg body weight\nPlasma Volume, Male:39 ml/kg body weight\n Female:40 ml/kg body weight", - "min": null, - "max": null, - "category_id": [] - }, - { - "name": "Bromsulphalein (BSP) test 5 mg/kg body weight", - "type": "Float", - "choices": null, - "unit": "%", - "ideal": "<5% retention in serum after 45 min", - "min": "0", - "max": "100", - "category_id": [] - }, - { - "name": "Calcium, ionised", - "type": "Float", - "choices": null, - "unit": "mg/dl", - "ideal": "4.5-5.3 mg/dl", - "min": "0", - "max": "50", - "category_id": [] - }, - { - "name": "Cholesterol", - "type": "Float", - "choices": null, - "unit": "mg/dl", - "ideal": "total desirable for adults <200 mg/dl \nborderline high 200-239 mg/dl \nhigh undesirable \u2265240 mg/dl \nLDL-cholesterol, desirable range <130 mg/dl \nborderline high 130-159 mg/dl \nhigh undesirable \u2265160 mg/dl \nHDL-cholesterol, protective range >60 mg/dl \nlow <40 mg/dl \ntriglycerides <160 mg/dl\n", - "min": "0", - "max": "1000", - "category_id": [ - 9 - ] - }, - { - "name": "CO2 Content", - "type": "Float", - "choices": null, - "unit": "mEq/L", - "ideal": "22-30 mEq/L (arterial)", - "min": "0", - "max": "100", - "category_id": [ - 10 - ] - }, - { - "name": "Copper", - "type": "Float", - "choices": null, - "unit": "mg/dl", - "ideal": "70-140 \u03bcg/dl", - "min": "0", - "max": "1000", - "category_id": [] - }, - { - "name": "C-reactive Protiens", - "type": "Float", - "choices": null, - "unit": "mg/L", - "ideal": "0.2-3.0 mg/L", - "min": "0", - "max": "30", - "category_id": [] - }, - { - "name": "Creatine kinase (CK), total", - "type": "Float", - "choices": null, - "unit": "U/L", - "ideal": "Males:51-294 U/L\nFemales:39-238 IU/L", - "min": "0", - "max": "1000", - "category_id": [ - 11 - ] - }, - { - "name": "Creatine kinase-MB (CK-MB)", - "type": "Float", - "choices": null, - "unit": "ng/ml", - "ideal": "0-5.5 ng/ml", - "min": "0", - "max": "30", - "category_id": [ - 11 - ] - }, - { - "name": "Gamma-glutamyl trans- peptidase (transferase) (\uf067-GT)", - "type": "Float", - "choices": null, - "unit": "IU/L", - "ideal": "9-58 IU/L", - "min": "0", - "max": "300", - "category_id": [ - 6 - ] - }, - { - "name": "arterial Bicarbonate (HCO3\u2013)", - "type": "Float", - "choices": null, - "unit": "mEq/L", - "ideal": "22-30 mEq/L", - "min": "0", - "max": "100", - "category_id": [ - 10 - ] - }, - { - "name": "pH (Whole Blood)", - "type": "Float", - "choices": null, - "unit": null, - "ideal": "7.35-7.45", - "min": "0", - "max": "10", - "category_id": [ - 10, - 16 - ] - }, - { - "name": "Pco2", - "type": "Float", - "choices": null, - "unit": "mmHg", - "ideal": "22-45 mmHg", - "min": "0", - "max": "100", - "category_id": [ - 10 - ] - }, - { - "name": "Po2", - "type": "Float", - "choices": null, - "unit": "mmHg", - "ideal": "72-104 mmHg", - "min": "0", - "max": "500", - "category_id": [ - 10 - ] - }, - { - "name": "Glucose (fasting)", - "type": "Float", - "choices": null, - "unit": "mg/dl", - "ideal": "normal:70-100 mg/dl\nimpaired fasting glucose (IFG) :101-125 mg/dl\ndiabetes mellitus:>126 mg/dl", - "min": "0", - "max": "1500", - "category_id": [ - 13, - 16 - ] - }, - { - "name": "Glucose (2-hr post-prandial)", - "type": "Float", - "choices": null, - "unit": "mg/dl", - "ideal": "normal :<140 mg/dl\nimpaired glucose tolerance (IGT):140-200 mg/dl\ndiabetes mellitus:>200 mg/dl", - "min": "0", - "max": "1500", - "category_id": [ - 13 - ] - }, - { - "name": "Haemoglobin A1C", - "type": "Float", - "choices": null, - "unit": "%", - "ideal": "4-6%", - "min": "0", - "max": "100", - "category_id": [ - 13 - ] - }, - { - "name": "Serum Igd", - "type": "Float", - "choices": null, - "unit": "mg/L", - "ideal": "0-140 mg/L", - "min": "0", - "max": "1000", - "category_id": [ - 14 - ] - }, - { - "name": "Lactate dehydrogenase (LDH)", - "type": "Float", - "choices": null, - "unit": "U/L", - "ideal": "115-221 U/L", - "min": "0", - "max": "1000", - "category_id": [ - 10 - ] - }, - { - "name": "Lactate/pyruvate ratio", - "type": "Float", - "choices": null, - "unit": "ratio", - "ideal": "10/1", - "min": "0", - "max": "100", - "category_id": [] - }, - { - "name": "Lipoproteins", - "type": "Float", - "choices": null, - "unit": "mg/dl", - "ideal": "0-30 mg/dl", - "min": "0", - "max": "100", - "category_id": [] - }, - { - "name": "5- Nucleotidase", - "type": "Float", - "choices": null, - "unit": "U/L", - "ideal": "0-11 U/L", - "min": "0", - "max": "100", - "category_id": [] - }, - { - "name": "Oxygen (% saturation)", - "type": "Float", - "choices": null, - "unit": "%", - "ideal": "arterial blood : 94-100 %\nvenous blood: 60-85 %", - "min": "0", - "max": "100", - "category_id": [] - }, - { - "name": "acid phosphatase", - "type": "Float", - "choices": null, - "unit": "U/L", - "ideal": "0-5.5 U/L", - "min": "0", - "max": "30", - "category_id": [] - }, - { - "name": "Prostate specific antigen (PSA)", - "type": "Float", - "choices": null, - "unit": "ng/ml", - "ideal": "0-4.0 ng/ml", - "min": "0", - "max": "10", - "category_id": [] - }, - { - "name": "Pyruvate", - "type": "Float", - "choices": null, - "unit": "mg/dl", - "ideal": "0.35-1.14 mg/dl", - "min": "0", - "max": "10", - "category_id": [] - }, - { - "name": "Renal blood flow", - "type": "Float", - "choices": null, - "unit": "ml/min", - "ideal": "1200 ml/min", - "min": "0", - "max": "5000", - "category_id": [ - 12 - ] - }, - { - "name": "Rheumatoid factor", - "type": "Float", - "choices": null, - "unit": "IU/ml", - "ideal": "< 30 IU/ml", - "min": "0", - "max": "100", - "category_id": [] - }, - { - "name": "Thyroid function tests", - "type": null, - "choices": null, - "unit": null, - "ideal": null, - "min": null, - "max": null, - "category_id": [ - 20 - ] - }, - { - "name": "radioactive iodine uptake", - "type": null, - "choices": null, - "unit": null, - "ideal": null, - "min": null, - "max": null, - "category_id": [ - 20 - ] - }, - { - "name": "(RAIU) 24-hr", - "type": "Float", - "choices": null, - "unit": "%", - "ideal": "5-30%", - "min": "0", - "max": "100", - "category_id": [ - 20 - ] - }, - { - "name": "thyroxine (T4) total", - "type": "Float", - "choices": null, - "unit": "nmol/L", - "ideal": "70-151 nmol/L", - "min": "0", - "max": "1000", - "category_id": [ - 20 - ] - }, - { - "name": "triiodothyronine (T3) total", - "type": "Float", - "choices": null, - "unit": "nmol/L", - "ideal": "1.2-2.1 nmol/L", - "min": "0", - "max": "10", - "category_id": [ - 20 - ] - }, - { - "name": "thyroid stimulating hormone (TSH)", - "type": "Float", - "choices": null, - "unit": "mU/L", - "ideal": "0.4-5.0 mU/L", - "min": "0", - "max": "10", - "category_id": [ - 20 - ] - }, - { - "name": "Troponins, cardiac (cTn)", - "type": "Float", - "choices": null, - "unit": null, - "ideal": " Troponin I (cTnI) :0-0.08 ng/ml\r\n Ttroponin T (cTnT):0-0.01 ng/ml", - "min": "0", - "max": "10", - "category_id": [ - 11 - ] - }, - { - "name": "Body volume\ntotal \nintracellular\n extracellular\n interstitial fluid including lymph fluid \nintravascular fluid or blood plasma \nfluid in mesenchymal tissues \ntranscellular fluid", - "type": "Float", - "choices": null, - "unit": "%", - "ideal": "\n50-70% (60%)\n 33%\n27%\n 12%\n5%\n9%\n 1%", - "min": "0", - "max": "100", - "category_id": [ - 15 - ] - }, - { - "name": "Catecholamines", - "type": null, - "choices": null, - "unit": null, - "ideal": null, - "min": null, - "max": null, - "category_id": [ - 15 - ] - }, - { - "name": "epinephrine", - "type": null, - "choices": null, - "unit": "ng/day", - "ideal": "< 10 ng/day", - "min": "0", - "max": "100", - "category_id": [ - 15 - ] - }, - { - "name": "free catecholamines", - "type": null, - "choices": null, - "unit": "ng/day", - "ideal": "<100 \u03bcg/day", - "min": "0", - "max": "1000", - "category_id": [ - 15 - ] - }, - { - "name": "metanephrine", - "type": "Float", - "choices": null, - "unit": "mg/day", - "ideal": "<1.3 mg/day", - "min": "0", - "max": "100", - "category_id": [ - 15 - ] - }, - { - "name": "vanillyl mandelic acid (VMA)", - "type": "Float", - "choices": null, - "unit": "mg/day", - "ideal": "<8 mg/day", - "min": "0", - "max": "100", - "category_id": [ - 15 - ] - }, - { - "name": "Cerebrospinal fluid (CSF)", - "type": null, - "choices": null, - "unit": null, - "ideal": null, - "min": null, - "max": null, - "category_id": [ - 16 - ] - }, - { - "name": "CSF volume", - "type": "Float", - "choices": null, - "unit": "ml", - "ideal": "120-150 ml", - "min": "0", - "max": "1000", - "category_id": [ - 16 - ] - }, - { - "name": "CSF pressure", - "type": "Float", - "choices": null, - "unit": "mm water", - "ideal": "60-150 mm water", - "min": "0", - "max": "1000", - "category_id": [ - 16 - ] - }, - { - "name": "leucocytes", - "type": "Float", - "choices": null, - "unit": "lymphocytes/l", - "ideal": "0-5 lymphocytes/\u03bcl", - "min": "0", - "max": "10", - "category_id": [ - 16 - ] - }, - { - "name": "pH (CSF)", - "type": "Float", - "choices": null, - "unit": null, - "ideal": "7.31-7.34", - "min": "0", - "max": "10", - "category_id": [ - 16 - ] - }, - { - "name": "glucose", - "type": "Float", - "choices": null, - "unit": "mg/dl", - "ideal": "40-70 mg/dl", - "min": "0", - "max": "1000", - "category_id": [ - 16 - ] - }, - { - "name": "proteins", - "type": "Float", - "choices": null, - "unit": "mg/dl", - "ideal": "20-50 mg/dl", - "min": "0", - "max": "1000", - "category_id": [ - 16 - ] - }, - { - "name": "Formiminoglutamin Acid", - "type": "Float", - "choices": null, - "unit": "mg/day", - "ideal": "<3 mg/day", - "min": "0", - "max": "10000", - "category_id": [] - }, - { - "name": "Gastric analysis", - "type": null, - "choices": null, - "unit": null, - "ideal": null, - "min": null, - "max": null, - "category_id": [ - 17 - ] - }, - { - "name": "24-hr volume", - "type": "Float", - "choices": null, - "unit": "L", - "ideal": "2-3 L", - "min": "0", - "max": "10", - "category_id": [ - 17 - ] - }, - { - "name": "pH (Gastric Juice)", - "type": "Float", - "choices": null, - "unit": null, - "ideal": "1.6-1.8", - "min": "0", - "max": "10", - "category_id": [ - 17 - ] - }, - { - "name": "basal acid output (BAO)", - "type": "Float", - "choices": null, - "unit": "mEq/hr", - "ideal": "1-5 mEq/hr", - "min": "0", - "max": "100", - "category_id": [ - 17 - ] - }, - { - "name": "maximal acid output (MAO)", - "type": "Float", - "choices": null, - "unit": "mEq/hr", - "ideal": "5-40 mEq/hr", - "min": "0", - "max": "100", - "category_id": [ - 17 - ] - }, - { - "name": "after injection of stimulant", - "type": null, - "choices": null, - "unit": null, - "ideal": null, - "min": null, - "max": null, - "category_id": [ - 17 - ] - }, - { - "name": "BAO/MAO ratio", - "type": "Float", - "choices": null, - "unit": "ratio", - "ideal": "<0:6", - "min": "0", - "max": "10", - "category_id": [ - 17 - ] - }, - { - "name": "Glomerular filtration rate (GFR)", - "type": "Float", - "choices": null, - "unit": "L/day", - "ideal": "180 L/day (about 125 ml/min)", - "min": "0", - "max": "1000", - "category_id": [ - 12 - ] - }, - { - "name": "5-HIAA", - "type": "Float", - "choices": null, - "unit": "mg/day", - "ideal": "2-9 mg/day", - "min": "0", - "max": "100", - "category_id": [] - }, - { - "name": "17-Ketosteroids \n", - "type": "Float", - "choices": null, - "unit": "mg/day", - "ideal": "males :7-25 mg/day\nfemales: 4-15 mg/day", - "min": "0", - "max": "100", - "category_id": [] - }, - { - "name": "Seminal fluid liquefaction", - "type": "Float", - "choices": null, - "unit": null, - "ideal": "Within 20 min", - "min": "1 min", - "max": "60 min", - "category_id": [ - 18 - ] - }, - { - "name": "sperm morphology", - "type": "Float", - "choices": null, - "unit": "%", - "ideal": ">70% normal, mature spermatozoa", - "min": null, - "max": null, - "category_id": [ - 18 - ] - }, - { - "name": "sperm motility", - "type": "Float", - "choices": null, - "unit": "%", - "ideal": ">60%", - "min": null, - "max": null, - "category_id": [ - 18 - ] - }, - { - "name": "pH (Semen)", - "type": "Float", - "choices": null, - "unit": null, - "ideal": ">7.0 (average 7.7)", - "min": null, - "max": null, - "category_id": [ - 18 - ] - }, - { - "name": "sperm count", - "type": "Float", - "choices": null, - "unit": "million/ml", - "ideal": "60-150 million/ml", - "min": null, - "max": null, - "category_id": [ - 18 - ] - }, - { - "name": "volume", - "type": "Float", - "choices": null, - "unit": "ml", - "ideal": "1.5-5.0 ml", - "min": null, - "max": null, - "category_id": [ - 18 - ] - }, - { - "name": "Stool examination\ncoproporphyrin: ", - "type": "Float", - "choices": null, - "unit": "mg/day", - "ideal": " 400-1000 mg/day", - "min": "100", - "max": "10000", - "category_id": [ - 19 - ] - }, - { - "name": "faecal fat excretion", - "type": "Float", - "choices": null, - "unit": "g/day", - "ideal": "<6.0 g/day", - "min": "0", - "max": "100", - "category_id": [ - 19 - ] - }, - { - "name": "occult blood", - "type": "string", - "choices": null, - "unit": "mlblood/day", - "ideal": ": Negative (<2 ml blood /day)", - "min": null, - "max": null, - "category_id": [ - 19 - ] - }, - { - "name": "urobilinogen", - "type": "Float", - "choices": null, - "unit": "mg/day", - "ideal": "40-280 mg/day", - "min": "0", - "max": "1000", - "category_id": [ - 19 - ] - }, - { - "name": "D-xylose excretion", - "type": "Float", - "choices": null, - "unit": "g", - "ideal": "5-8 g within 5 hrs after oral dose of 25 g", - "min": "0", - "max": "100", - "category_id": [ - 19 - ] - }, - { - "name": "Schilling\u2019s test (Intrinsic factor test)", - "type": "Float", - "choices": null, - "unit": "%", - "ideal": ">10% of ingested dose of \u2018hot\u2019\nvitamin B12 ", - "min": "0", - "max": "100", - "category_id": [] - }, - { - "name": "Urine examination", - "type": "Float", - "choices": null, - "unit": "ml", - "ideal": "600-1800 ml (variable)", - "min": "0", - "max": "10000", - "category_id": [] - }, - { - "name": "specific gravity, quantitative", - "type": "Float", - "choices": null, - "unit": null, - "ideal": "1.002-1.028 (average 1.018)", - "min": "0", - "max": "10", - "category_id": [] - }, - { - "name": "protein excretion", - "type": "Float", - "choices": null, - "unit": "mg/day", - "ideal": "<150 mg/day", - "min": "0", - "max": "1000", - "category_id": [] - }, - { - "name": "porphobilinogen\n\n", - "type": "string", - "choices": null, - "unit": null, - "ideal": "Negative\n\n", - "min": null, - "max": null, - "category_id": [ - 6 - ] - }, - { - "name": "UROBILINOGEN", - "type": "Float", - "choices": null, - "unit": "mg/day", - "ideal": "1.0-3.5 mg/day", - "min": "0", - "max": "10", - "category_id": [ - 6 - ] - }, - { - "name": "Microalbuminuria (24 hours)", - "type": "Float", - "choices": null, - "unit": "mg/day", - "ideal": "0-30 mg/day (0-30 \u00b5g/mg creatinine)", - "min": "0", - "max": "100", - "category_id": [ - 12 - ] - }, - { - "name": "Urobilinogen", - "type": "Float", - "choices": null, - "unit": "ratio", - "ideal": "Present in 1: 20 dilution", - "min": null, - "max": null, - "category_id": [ - 6 - ] - } + { + "name": "Blood Group", + "type": "Choice", + "choices": "A-,A+,B+,B-,O+,O-,AB-,AB+", + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [] + }, + { + "name": "Total Count", + "type": "Float", + "choices": null, + "unit": "cell/cumm", + "ideal": "4500-11000 cells/cumm", + "min": "1000", + "max": "30000", + "category_id": [ + 1, + 4 + ] + }, + { + "name": "Neutrophil count", + "type": "Float", + "choices": null, + "unit": "cell/\u03bcl", + "ideal": "(2,000-7,500/\u03bcl)", + "min": "100", + "max": "30000", + "category_id": [ + 1, + 4 + ] + }, + { + "name": "Lymphocyte count Eosinophil count", + "type": "Float", + "choices": null, + "unit": "cell/\u03bcl", + "ideal": "(1,500-4,000/\u03bcl)", + "min": "10", + "max": "30000", + "category_id": [ + 1, + 4 + ] + }, + { + "name": "Eosinophil count", + "type": "Float", + "choices": null, + "unit": "cell/\u03bcl", + "ideal": "(40-400/\u03bcl)", + "min": "0", + "max": "10000", + "category_id": [ + 1, + 4 + ] + }, + { + "name": "Basophil count", + "type": "Float", + "choices": null, + "unit": "cell/\u03bcl", + "ideal": "(10-100/\u03bcl)", + "min": "0", + "max": "10000", + "category_id": [ + 1, + 4 + ] + }, + { + "name": "Monocyte count", + "type": "Float", + "choices": null, + "unit": "cell/\u03bcl", + "ideal": "(200-800/\u03bcl)", + "min": "10", + "max": "10000", + "category_id": [ + 1, + 4 + ] + }, + { + "name": "neutrophil", + "type": "Float", + "choices": null, + "unit": "%", + "ideal": "40-60 %", + "min": "0", + "max": "100", + "category_id": [ + 1, + 4 + ] + }, + { + "name": "lymphocyte", + "type": "Float", + "choices": null, + "unit": "%", + "ideal": "20-4 %", + "min": "0", + "max": "100", + "category_id": [ + 1, + 4 + ] + }, + { + "name": "eosinophil", + "type": "Float", + "choices": null, + "unit": "%", + "ideal": "1-3 %", + "min": "0", + "max": "100", + "category_id": [ + 1, + 4 + ] + }, + { + "name": "basophile", + "type": "Float", + "choices": null, + "unit": "%", + "ideal": "0-1 %", + "min": "0", + "max": "100", + "category_id": [ + 1, + 4 + ] + }, + { + "name": "monocyte", + "type": "Float", + "choices": null, + "unit": "%", + "ideal": "4-8 %", + "min": "0", + "max": "100", + "category_id": [ + 1, + 4 + ] + }, + { + "name": "Hb", + "type": "Float", + "choices": null, + "unit": "gm%", + "ideal": "men 14-17 gm% , woman 12-16 gm% ,children 12-14 gm%", + "min": "0", + "max": "100", + "category_id": [ + 1, + 4 + ] + }, + { + "name": "PCV", + "type": "Float", + "choices": null, + "unit": "%", + "ideal": "Men 38-51 gm% , Woman 36-47%", + "min": "0", + "max": "100", + "category_id": [ + 1 + ] + }, + { + "name": "RBC count", + "type": "Float", + "choices": null, + "unit": "million/cumm", + "ideal": "4.5-6.0 million/cumm", + "min": "0", + "max": "30", + "category_id": [ + 1, + 4 + ] + }, + { + "name": "RDW", + "type": "Float", + "choices": null, + "unit": "%", + "ideal": "11.8 - 16.1%", + "min": "0", + "max": "100", + "category_id": [ + 1 + ] + }, + { + "name": "Platelets", + "type": "Float", + "choices": null, + "unit": "lakhs/cumm", + "ideal": "1.5-4.5 lakhs/cumm", + "min": "0", + "max": "10", + "category_id": [ + 1, + 4 + ] + }, + { + "name": "MCV", + "type": "Float", + "choices": null, + "unit": "Fl", + "ideal": "80-96 Fl", + "min": "10", + "max": "1000", + "category_id": [ + 1, + 4 + ] + }, + { + "name": "MCH", + "type": "Float", + "choices": null, + "unit": "pg", + "ideal": "27-33 pg", + "min": "0", + "max": "100", + "category_id": [ + 1, + 4 + ] + }, + { + "name": "MCHC", + "type": "Float", + "choices": null, + "unit": "g/dl", + "ideal": "33.4-35.5 g/dl", + "min": "0", + "max": "100", + "category_id": [ + 1, + 4 + ] + }, + { + "name": "ESR", + "type": "Float", + "choices": null, + "unit": "mm/hr", + "ideal": "0-20 mm/hr", + "min": "0", + "max": "1000", + "category_id": [ + 1 + ] + }, + { + "name": "Peripheral blood smear", + "type": "String", + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [ + 1 + ] + }, + { + "name": "Reticulocyte count", + "type": "Float", + "choices": null, + "unit": "%", + "ideal": "adults 0.5-1.5%, newborns 3-6%", + "min": "0", + "max": "100", + "category_id": [ + 1 + ] + }, + { + "name": "M P smear", + "type": "String", + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [ + 1 + ] + }, + { + "name": "FBS", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "70-110 mg/dl", + "min": "0", + "max": "500", + "category_id": [ + 2 + ] + }, + { + "name": "PPBS", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "< 140 mg/dl", + "min": "0", + "max": "1000", + "category_id": [ + 2 + ] + }, + { + "name": "RBS", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "80-120 mg/dl", + "min": "0", + "max": "1000", + "category_id": [ + 2 + ] + }, + { + "name": "T. Cholestrol", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "150-220 mg/dl", + "min": "0", + "max": "1000", + "category_id": [ + 2 + ] + }, + { + "name": "LDL", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "< 130 mg/dl", + "min": "0", + "max": "1000", + "category_id": [ + 2 + ] + }, + { + "name": "HDL", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "male 35-80 mg/dl, female 40-88 mg/dl", + "min": "0", + "max": "1000", + "category_id": [ + 2 + ] + }, + { + "name": "Triglycerides", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "male 60-165 mg/dl, female 40-140 mg/dl", + "min": "0", + "max": "1000", + "category_id": [ + 2 + ] + }, + { + "name": "VLDL", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "2-30 mg/dl", + "min": "0", + "max": "100", + "category_id": [ + 2 + ] + }, + { + "name": "Urea", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "20-40 mg/dl", + "min": "0", + "max": "100", + "category_id": [ + 12 + ] + }, + { + "name": "Uric Acid", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "male 3.1-7.0 mg/dl, female 2.5-5.6 mg/dl", + "min": "0", + "max": "30", + "category_id": [ + 2 + ] + }, + { + "name": "Creatinine", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "male 0.7-1.4 mg/dl, female 0.6-1.2 mg/dl", + "min": "0", + "max": "20", + "category_id": [ + 2, + 12 + ] + }, + { + "name": "CRP", + "type": "Float", + "choices": null, + "unit": "mg/l", + "ideal": "upto 6 mg/l", + "min": "0", + "max": "50", + "category_id": [ + 2 + ] + }, + { + "name": "Serum Sodium (Na+)", + "type": "Float", + "choices": null, + "unit": "mmol/l", + "ideal": "136-146 mmol/l", + "min": "0", + "max": "1000", + "category_id": [ + 8 + ] + }, + { + "name": "Serum Potassium (K+)", + "type": "Float", + "choices": null, + "unit": "mmol/l", + "ideal": "3.5 - 5.5 mmol/l", + "min": "0", + "max": "10", + "category_id": [ + 8 + ] + }, + { + "name": "Serum Calcium", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "8.7-10.2 mg/dl", + "min": "0", + "max": "100", + "category_id": [ + 8 + ] + }, + { + "name": "Serum Phosphorus", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "children 4-7 mg/dl, adult 2.5-4.3 mg/dl", + "min": "0", + "max": "10", + "category_id": [ + 2 + ] + }, + { + "name": "Serum Chloride", + "type": "Float", + "choices": null, + "unit": "mmol/l", + "ideal": "102-109 mmol/l", + "min": "0", + "max": "500", + "category_id": [ + 8 + ] + }, + { + "name": "Serum Megnesium", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "1.6-2.6 mg/dl", + "min": "0", + "max": "10", + "category_id": [ + 2 + ] + }, + { + "name": "Total Bilirubin", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "0.3 - 1.3 mg/dl", + "min": "0", + "max": "30", + "category_id": [ + 6 + ] + }, + { + "name": "Direct Bilirubin", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "0.1 - 0.4 mg/dl", + "min": "0", + "max": "30", + "category_id": [ + 6 + ] + }, + { + "name": "SGOT", + "type": "Float", + "choices": null, + "unit": "IU/L", + "ideal": "upto 46 IU/L", + "min": "0", + "max": "1000", + "category_id": [ + 2 + ] + }, + { + "name": "SGPT", + "type": "Float", + "choices": null, + "unit": "IU/L", + "ideal": "upto 49 IU/L", + "min": "0", + "max": "1000", + "category_id": [ + 2 + ] + }, + { + "name": "ALP", + "type": "Float", + "choices": null, + "unit": "IU/L", + "ideal": "male 80-306 IU/L, female 64-306 IU/L", + "min": "0", + "max": "1000", + "category_id": [ + 2 + ] + }, + { + "name": "Total Protein", + "type": "Float", + "choices": null, + "unit": "g/dl", + "ideal": "6.7-8.6 g/dl", + "min": "0", + "max": "10", + "category_id": [ + 6 + ] + }, + { + "name": "Albumin", + "type": "Float", + "choices": null, + "unit": "g/dl", + "ideal": "3.5-5.5 g/dl (50-60%)", + "min": "0", + "max": "10", + "category_id": [ + 2, + 6 + ] + }, + { + "name": "Globulin", + "type": "Float", + "choices": null, + "unit": "g/dl", + "ideal": "2.0-3.5 g/dl (40-50%)", + "min": "0", + "max": "10", + "category_id": [ + 2 + ] + }, + { + "name": "PT", + "type": "Float", + "choices": null, + "unit": "sec", + "ideal": "9.1-12.1 seconds", + "min": "0", + "max": "100", + "category_id": [ + 2 + ] + }, + { + "name": "INR", + "type": "Float", + "choices": null, + "unit": "sec", + "ideal": "0.8-1.1 seconds", + "min": "0", + "max": "100", + "category_id": [ + 2 + ] + }, + { + "name": "APTT", + "type": "Float", + "choices": null, + "unit": "sec", + "ideal": "25.4-38.4 seconds", + "min": "0", + "max": "100", + "category_id": [ + 2 + ] + }, + { + "name": "D-Dimer", + "type": "Float", + "choices": null, + "unit": "ug/l", + "ideal": "< 0.5 ug/l", + "min": "0", + "max": "10", + "category_id": [ + 2 + ] + }, + { + "name": "Fibrinogen", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "200-400 mg/dl", + "min": "0", + "max": "1000", + "category_id": [ + 2 + ] + }, + { + "name": "GCT", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "< 140 mg/dl", + "min": "0", + "max": "1000", + "category_id": [ + 2 + ] + }, + { + "name": "GTT", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "140-200 mg/dl", + "min": "0", + "max": "1000", + "category_id": [ + 2 + ] + }, + { + "name": "GGT", + "type": "Float", + "choices": null, + "unit": "U/L", + "ideal": "9 - 48 U/L (male)\n5 - 32 U/L (female)", + "min": "0", + "max": "300", + "category_id": [ + 2, + 6 + ] + }, + { + "name": "HbA1C", + "type": "Float", + "choices": null, + "unit": "%", + "ideal": "4-5.6 %", + "min": "0", + "max": "100", + "category_id": [ + 2 + ] + }, + { + "name": "Serum Copper", + "type": "Float", + "choices": null, + "unit": "mcg/dl", + "ideal": "85-180 mcg/dl", + "min": "0", + "max": "1000", + "category_id": [ + 2 + ] + }, + { + "name": "Serum Lead", + "type": "Float", + "choices": null, + "unit": "mcg/dl", + "ideal": "upto 10 mcg/dl", + "min": "0", + "max": "1000", + "category_id": [ + 2 + ] + }, + { + "name": "Iron", + "type": "Float", + "choices": null, + "unit": "mcg/dl", + "ideal": "60-170 mcg/dl", + "min": "0", + "max": "1000", + "category_id": [ + 2 + ] + }, + { + "name": "TIBC", + "type": "Float", + "choices": null, + "unit": "mcg/dl", + "ideal": "250-450 mcg/dl", + "min": "100", + "max": "1000", + "category_id": [ + 2 + ] + }, + { + "name": "Transferin Saturation", + "type": "Float", + "choices": null, + "unit": "%", + "ideal": "15-50 %", + "min": "0", + "max": "100", + "category_id": [ + 2 + ] + }, + { + "name": "IL6", + "type": "Float", + "choices": null, + "unit": "pg/ml", + "ideal": "0-16.4 pg/ml", + "min": "0", + "max": "100", + "category_id": [ + 2 + ] + }, + { + "name": "Lactate", + "type": "Float", + "choices": null, + "unit": "mmol/l", + "ideal": "0.5-1.6mmol/l", + "min": "0", + "max": "10", + "category_id": [ + 2, + 10 + ] + }, + { + "name": "Ceruloplasmin", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "14-40 mg/dl", + "min": "0", + "max": "100", + "category_id": [ + 2 + ] + }, + { + "name": "ACP", + "type": "Float", + "choices": null, + "unit": "U/L", + "ideal": "0.13-0.63 U/L", + "min": "0", + "max": "10", + "category_id": [ + 2 + ] + }, + { + "name": "Protein C", + "type": "Float", + "choices": null, + "unit": "IU dl 1", + "ideal": "65-135 IU dl 1", + "min": "65", + "max": "135", + "category_id": [ + 2 + ] + }, + { + "name": "Protein S", + "type": "Float", + "choices": null, + "unit": "%", + "ideal": "70-140 %", + "min": "0", + "max": "100", + "category_id": [ + 2 + ] + }, + { + "name": "G6PD", + "type": "Float", + "choices": null, + "unit": "U/g Hb", + "ideal": "neonate 10.15-14.71 U/g Hb, adult 6.75-11.95 U/g Hb", + "min": null, + "max": null, + "category_id": [ + 2 + ] + }, + { + "name": "ACCP", + "type": "Float", + "choices": null, + "unit": "EU/ml", + "ideal": "< 20 EU/ml", + "min": "0", + "max": "100", + "category_id": [ + 2 + ] + }, + { + "name": "Ferritin", + "type": "Float", + "choices": null, + "unit": "ng/ml", + "ideal": "20-250 ng/ml", + "min": "0", + "max": "1000", + "category_id": [ + 2 + ] + }, + { + "name": "LDH", + "type": "Float", + "choices": null, + "unit": "U/L", + "ideal": "140-280 U/L", + "min": "0", + "max": "1000", + "category_id": [ + 2 + ] + }, + { + "name": "Amylase", + "type": "Float", + "choices": null, + "unit": "U/L", + "ideal": "20-96 U/L", + "min": "0", + "max": "200", + "category_id": [ + 2 + ] + }, + { + "name": "Lipase", + "type": "Float", + "choices": null, + "unit": "U/L", + "ideal": "3-43 U/L", + "min": "0", + "max": "200", + "category_id": [ + 2 + ] + }, + { + "name": "Ammonia", + "type": "Float", + "choices": null, + "unit": "ug/dL", + "ideal": "19-60 \u03bcg/dl", + "min": "0", + "max": "100", + "category_id": [ + 2 + ] + }, + { + "name": "CKMB", + "type": "Float", + "choices": null, + "unit": "IU/L", + "ideal": "5-25 IU/L", + "min": "0", + "max": "100", + "category_id": [ + 2 + ] + }, + { + "name": "CK NAC", + "type": "Float", + "choices": null, + "unit": "U/L", + "ideal": "male < 171 U/L, female < 145 U/L", + "min": null, + "max": null, + "category_id": [ + 2 + ] + }, + { + "name": "24hrs Urine Protein", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "<10 mg/dl", + "min": "0", + "max": "100", + "category_id": [ + 2, + 7 + ] + }, + { + "name": "24hrs Urine Uric Acid", + "type": "Float", + "choices": null, + "unit": "mg/24hr", + "ideal": "250-750 mg/24hr", + "min": "0", + "max": "1500", + "category_id": [ + 2 + ] + }, + { + "name": "24 hrs Urine Oxalate", + "type": "Float", + "choices": null, + "unit": "mg/L", + "ideal": "<15 mg/L", + "min": "0", + "max": "100", + "category_id": [ + 2 + ] + }, + { + "name": "Urine Microalbumin", + "type": "Float", + "choices": null, + "unit": "mg", + "ideal": "< 30 mg", + "min": "0", + "max": "100", + "category_id": [ + 2 + ] + }, + { + "name": "Urine Sodium", + "type": "Float", + "choices": null, + "unit": "mEq/day", + "ideal": "40-220 mEq/day", + "min": "0", + "max": "1000", + "category_id": [ + 2 + ] + }, + { + "name": "PCT", + "type": "Float", + "choices": null, + "unit": "ng/ml", + "ideal": "< 0.15 ng/ml", + "min": "0", + "max": "10", + "category_id": [ + 2 + ] + }, + { + "name": "T3", + "type": "Float", + "choices": null, + "unit": "ng/dl", + "ideal": "80-220 ng/dl", + "min": "0", + "max": "1000", + "category_id": [ + 2 + ] + }, + { + "name": "T4", + "type": "Float", + "choices": null, + "unit": "ug/L", + "ideal": "5-12 ug/L", + "min": "0", + "max": "100", + "category_id": [ + 2 + ] + }, + { + "name": "TSH", + "type": "Float", + "choices": null, + "unit": "mIU/L", + "ideal": "0.5-5 mIU/L", + "min": "0", + "max": "100", + "category_id": [ + 2 + ] + }, + { + "name": "FT3", + "type": "Float", + "choices": null, + "unit": "ng/dl", + "ideal": "60-180 ng/dl", + "min": "10", + "max": "1000", + "category_id": [ + 2 + ] + }, + { + "name": "FT4", + "type": "Float", + "choices": null, + "unit": "ng/dl", + "ideal": "0.7-1.9 ng/dl", + "min": "0", + "max": "10", + "category_id": [ + 2 + ] + }, + { + "name": "Estradiol", + "type": "Float", + "choices": null, + "unit": "pg/ml", + "ideal": "premenopausal women 30-400 pg/ml, post-menopausal women 0-30 pg/ml, men 10-50 pg/ml", + "min": null, + "max": null, + "category_id": [ + 2 + ] + }, + { + "name": "Growth Hormone", + "type": "Float", + "choices": null, + "unit": "ng/ml", + "ideal": "male 0.4-10 ng/ml, female 1-14 ng/ml", + "min": "0", + "max": "100", + "category_id": [ + 2 + ] + }, + { + "name": "Cortisol", + "type": "Float", + "choices": null, + "unit": "mcg/dl", + "ideal": "5-25 ng/ml", + "min": "0", + "max": "100", + "category_id": [ + 2 + ] + }, + { + "name": "PTH", + "type": "Float", + "choices": null, + "unit": "pg/ml", + "ideal": "14-65 pg/ml", + "min": "0", + "max": "100", + "category_id": [ + 2 + ] + }, + { + "name": "Prolactine", + "type": "Float", + "choices": null, + "unit": "ng/ml", + "ideal": "male <20 ng/ml, female <25 ng/ml, pregnant women <300 ng/ml", + "min": null, + "max": null, + "category_id": [ + 2 + ] + }, + { + "name": "Pro BNP", + "type": "Float", + "choices": null, + "unit": "pg/ml", + "ideal": "< 300 pg/ml", + "min": "0", + "max": "1000", + "category_id": [ + 2 + ] + }, + { + "name": "Vitamine D3", + "type": "Float", + "choices": null, + "unit": "ng/ml", + "ideal": "20-40 ng/ml", + "min": "10", + "max": "100", + "category_id": [ + 2 + ] + }, + { + "name": "Vitamine B12", + "type": "Float", + "choices": null, + "unit": "pg/ml", + "ideal": "160-950 pg/ml", + "min": "10", + "max": "2000", + "category_id": [ + 2 + ] + }, + { + "name": "FSH", + "type": "Float", + "choices": null, + "unit": "IU/L", + "ideal": "before puberty 0-4 IU/L, during puberty 0.36-10 IU/L, ", + "min": "0", + "max": "100", + "category_id": [ + 2 + ] + }, + { + "name": "LH", + "type": "Float", + "choices": null, + "unit": "IU/L", + "ideal": "before menopause 5-25 IU/L, after menopause 14.2-52.3 IU/L", + "min": "0", + "max": "100", + "category_id": [ + 2 + ] + }, + { + "name": "PSA", + "type": "Float", + "choices": null, + "unit": "ng/ml", + "ideal": "<4 ng/ml", + "min": "0", + "max": "10", + "category_id": [ + 2 + ] + }, + { + "name": "ACTH", + "type": "Float", + "choices": null, + "unit": "pg/ml", + "ideal": "10-60 pg/ml", + "min": "0", + "max": "100", + "category_id": [ + 2 + ] + }, + { + "name": "CEA", + "type": "Float", + "choices": null, + "unit": "ng/ml", + "ideal": "0-2.5 ng/ml", + "min": "0", + "max": "10", + "category_id": [ + 2 + ] + }, + { + "name": "AFP", + "type": "Float", + "choices": null, + "unit": "ng/ml", + "ideal": "10-20 ng/ml", + "min": "0", + "max": "100", + "category_id": [ + 2 + ] + }, + { + "name": "CA125", + "type": "Float", + "choices": null, + "unit": "U/ml", + "ideal": "< 46 U/ml", + "min": "0", + "max": "100", + "category_id": [ + 2 + ] + }, + { + "name": "CA19.9", + "type": "Float", + "choices": null, + "unit": "U/ml", + "ideal": "0-37 U/ml", + "min": "0", + "max": "100", + "category_id": [ + 2 + ] + }, + { + "name": "Testosterone ", + "type": "Float", + "choices": null, + "unit": "ng/dl", + "ideal": "270-1070 ng/dl", + "min": "10", + "max": "2000", + "category_id": [ + 2 + ] + }, + { + "name": "Progestrone", + "type": "Float", + "choices": null, + "unit": "ng/ml", + "ideal": "female pre ovulation, menupausal women, men <1 ng/ml, mid-cycle 5-20 ng/ml", + "min": null, + "max": null, + "category_id": [ + 2 + ] + }, + { + "name": "Serum IgG", + "type": "Float", + "choices": null, + "unit": "g/L", + "ideal": "7.0-17.0 g/L", + "min": "0", + "max": "100", + "category_id": [ + 14 + ] + }, + { + "name": "Serum IgE", + "type": "Float", + "choices": null, + "unit": "\u00b5g/L", + "ideal": "24-430 \u00b5g/L", + "min": "0", + "max": "1000", + "category_id": [ + 14 + ] + }, + { + "name": "Serum IgM", + "type": "Float", + "choices": null, + "unit": "g/L", + "ideal": "0.4-2.5 g/L", + "min": "0", + "max": "10", + "category_id": [ + 14 + ] + }, + { + "name": "Serum IgA", + "type": "Float", + "choices": null, + "unit": "g/l", + "ideal": "0.70-3.50 g/L", + "min": "0", + "max": "10", + "category_id": [ + 14 + ] + }, + { + "name": "Urine Colour", + "type": "String", + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [ + 3 + ] + }, + { + "name": "Urine Appearence", + "type": "String", + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [ + 3 + ] + }, + { + "name": "pH (Urine)", + "type": "Float", + "choices": null, + "unit": null, + "ideal": "5.0-9.0", + "min": "0", + "max": "10", + "category_id": [ + 3 + ] + }, + { + "name": "Urine Specific Gravity", + "type": "String", + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [ + 3 + ] + }, + { + "name": "Urine Nitrite", + "type": "String", + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [ + 3 + ] + }, + { + "name": "Urine Urobilinogen", + "type": "String", + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [ + 3 + ] + }, + { + "name": "Urine Bile Salt", + "type": "String", + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [ + 3 + ] + }, + { + "name": "Urine Bile Pigment", + "type": "String", + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [ + 3 + ] + }, + { + "name": "Urine Acetone", + "type": "String", + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [ + 3 + ] + }, + { + "name": "Urine Albumin", + "type": "String", + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [ + 3 + ] + }, + { + "name": "Urine Sugar", + "type": "String", + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [ + 3 + ] + }, + { + "name": "Urine Puscells", + "type": "String", + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [ + 3 + ] + }, + { + "name": "Urine Epithetical Cells", + "type": "String", + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [ + 3 + ] + }, + { + "name": "Urine RBC ", + "type": "String", + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [ + 3 + ] + }, + { + "name": "Urine Cast", + "type": "String", + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [ + 3 + ] + }, + { + "name": "Urine Crystal", + "type": "String", + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [ + 3 + ] + }, + { + "name": "others", + "type": "String", + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [ + 3 + ] + }, + { + "name": "UPT", + "type": "String", + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [ + 3 + ] + }, + { + "name": "Stool OB", + "type": "String", + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [ + 3 + ] + }, + { + "name": "Stool Microscopy", + "type": "String", + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [ + 3 + ] + }, + { + "name": "HBA1C", + "type": "Float", + "choices": "-", + "unit": "%", + "ideal": "4%- 5.6%", + "min": "0", + "max": "10", + "category_id": [ + 1 + ] + }, + { + "name": "Haemoglobin", + "type": "Float", + "choices": null, + "unit": "gm/dl", + "ideal": "Male 14-18\nFemale 12-16", + "min": "0", + "max": "25", + "category_id": [ + 4 + ] + }, + { + "name": "PCV/HCT(hematocrit)", + "type": "Float", + "choices": null, + "unit": "%", + "ideal": "Male: 38.8% - 50.0%\nFemale: 34.9% - 44.5%", + "min": "0", + "max": "100", + "category_id": [ + 4 + ] + }, + { + "name": "White Blood Cell (WBC) Count", + "type": "Float", + "choices": null, + "unit": "thousands/\u03bcL ", + "ideal": "4.5 - 11.0", + "min": "0", + "max": "100", + "category_id": [ + 4 + ] + }, + { + "name": "Neutrophils", + "type": "Float", + "choices": null, + "unit": "%", + "ideal": "40-60", + "min": "0", + "max": "100", + "category_id": [ + 4, + 5 + ] + }, + { + "name": "Lymphocytes", + "type": "Float", + "choices": null, + "unit": "%", + "ideal": "20% - 40%", + "min": "0", + "max": "100", + "category_id": [ + 4, + 5 + ] + }, + { + "name": "Monocytes", + "type": "Float", + "choices": null, + "unit": "%", + "ideal": "2% - 8%", + "min": "0", + "max": "100", + "category_id": [ + 4, + 5 + ] + }, + { + "name": "Eosinophils", + "type": "Float", + "choices": null, + "unit": "%", + "ideal": "1% - 4%", + "min": "0", + "max": "100", + "category_id": [ + 4, + 5 + ] + }, + { + "name": "Basophils", + "type": "Float", + "choices": null, + "unit": "%", + "ideal": "0% - 1%", + "min": "0", + "max": "100", + "category_id": [ + 4, + 5 + ] + }, + { + "name": "Platelet Count", + "type": "Float", + "choices": null, + "unit": "thousands/\u03bcL ", + "ideal": "150,000 - 450,000 ", + "min": "0", + "max": "100000000", + "category_id": [ + 4 + ] + }, + { + "name": "Alanine Aminotransferase (ALT)", + "type": "Float", + "choices": null, + "unit": "u/l", + "ideal": "7 - 55 U/L (male)\n7 - 45 U/L (female)", + "min": "0", + "max": "1500", + "category_id": [ + 6 + ] + }, + { + "name": "Aspartate Aminotransferase (AST)", + "type": "Float", + "choices": null, + "unit": "u/l", + "ideal": "8 - 48 U/L ", + "min": "1", + "max": "300", + "category_id": [ + 6 + ] + }, + { + "name": "Alkaline Phosphatase (ALP)", + "type": "Float", + "choices": null, + "unit": "u/l", + "ideal": "Newborn (0-30 days)\t150 - 420 U/L\nInfants (1-11 months)\t70 - 320 U/L\nChildren (1-3 years)\t80 - 280 U/L\nChildren (4-6 years)\t80 - 230 U/L\nChildren (7-9 years)\t65 - 230 U/L\nChildren (10-13 years)\t45 - 250 U/L\nChildren (14-17 years)\t40 - 220 U/L\nAdults (>18 years)\t44 - 147 U/L", + "min": "0", + "max": "1200", + "category_id": [ + 6 + ] + }, + { + "name": "Indirect Bilirubin", + "type": "Float", + "choices": null, + "unit": "mg/dL ", + "ideal": "0.2 - 0.9 mg/dL", + "min": "0", + "max": "10", + "category_id": [ + 6 + ] + }, + { + "name": "Prothrombin Time (PT)", + "type": "Float", + "choices": null, + "unit": "Seconds", + "ideal": "Newborn (0-2 days)- 14.0 - 20.5 seconds\nInfant (3 days - 1 month)- 14.0 - 19.2 seconds\nInfant (1 - 6 months)- 13.3 - 18.7 seconds\nInfant (6 - 12 months)- 13.3 - 17.8 seconds\nToddler (1 - 2 years) -12.5 - 16.5 seconds\nChild (2 - 6 years) - 11.5 - 15.5 seconds\nChild (7 - 12 years) - 11.8 - 14.5 seconds\nAdolescent (13 - 15 years) - 12.0 - 14.6 seconds\nAdolescent (16 - 17 years) - 11.7 - 14.2 seconds\nAdult (> 18 years) -11.0 - 13.0 seconds", + "min": "5", + "max": "30", + "category_id": [ + 6 + ] + }, + { + "name": "Serum Creatinine", + "type": "Float", + "choices": null, + "unit": "mg/dL ", + "ideal": "Infants (0-11 months)\t0.2 - 0.4 mg/dL\nChildren (1-17 years)\t0.3 - 0.7 mg/dL (varies with age)\nAdult (18-60 years)\t0.6 - 1.2 mg/dL\nAdult (> 60 years)\t0.6 - 1.3 mg/dL", + "min": "0", + "max": "30", + "category_id": [ + 12 + ] + }, + { + "name": "Blood Urea Nitrogen (BUN)", + "type": "FLoat", + "choices": null, + "unit": "mg/dL ", + "ideal": "Newborn (0-2 days)\t3 - 17 mg/dL\nInfant (3 days - 1 month)\t3 - 19 mg/dL\nInfant (1 - 6 months)\t5 - 20 mg/dL\nInfant (6 - 12 months)\t5 - 13 mg/dL\nToddler (1 - 2 years)\t7 - 20 mg/dL\nChild (3 - 5 years)\t8 - 18 mg/dL\nChild (6 - 11 years)\t8 - 21 mg/dL\nAdolescent (12 - 17 years)\t7 - 20 mg/dL\nAdult (> 18 years)\t7 - 20 mg/dL", + "min": "0", + "max": "100", + "category_id": [ + 12 + ] + }, + { + "name": "Estimated Glomerular Filtration Rate (eGFR)", + "type": "FLoat", + "choices": null, + "unit": "mL/min/1.73m\u00b2 (milliliters per minute per 1.73 square meters)", + "ideal": "> 90 mL/min/1.73m\u00b2 ", + "min": "0", + "max": "90", + "category_id": [ + 7 + ] + }, + { + "name": "Blood Uric Acid", + "type": "Float", + "choices": null, + "unit": "mg/dL ", + "ideal": "3.5 - 7.2 mg/dL (males)\n2.6 - 6.0 mg/dL (females)", + "min": "2", + "max": "10", + "category_id": [] + }, + { + "name": "Urinalysis", + "type": "String", + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [ + 3, + 7 + ] + }, + { + "name": "Serum Creatinine Clearance", + "type": "FLoat", + "choices": null, + "unit": "mL/min ", + "ideal": "97 to 137mL/min (males)\n88 to 128mL/min (females)", + "min": "10", + "max": "250", + "category_id": [ + 7 + ] + }, + { + "name": "s. typhus test", + "type": null, + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [] + }, + { + "name": "Widal Test", + "type": null, + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [] + }, + { + "name": "Alcohol, ethyl", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "Negative\nmild intoxication : 80-200 mg/dl\nmoderate intoxication: 250-400 mg/dl\nsevere intoxication: >400 mg/dl", + "min": "0", + "max": "1500", + "category_id": [] + }, + { + "name": "Blood volume Total\nRed cell volume, males\n females \nPlasma volume, males\n females", + "type": null, + "choices": null, + "unit": null, + "ideal": "Blood Volume Total: 60-80 ml/kg body weight \nRed Cell Volume, Male:30 ml/kg body weight\n Female:25 ml/kg body weight\nPlasma Volume, Male:39 ml/kg body weight\n Female:40 ml/kg body weight", + "min": null, + "max": null, + "category_id": [] + }, + { + "name": "Bromsulphalein (BSP) test 5 mg/kg body weight", + "type": "Float", + "choices": null, + "unit": "%", + "ideal": "<5% retention in serum after 45 min", + "min": "0", + "max": "100", + "category_id": [] + }, + { + "name": "Calcium, ionised", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "4.5-5.3 mg/dl", + "min": "0", + "max": "50", + "category_id": [] + }, + { + "name": "Cholesterol", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "total desirable for adults <200 mg/dl \nborderline high 200-239 mg/dl \nhigh undesirable \u2265240 mg/dl \nLDL-cholesterol, desirable range <130 mg/dl \nborderline high 130-159 mg/dl \nhigh undesirable \u2265160 mg/dl \nHDL-cholesterol, protective range >60 mg/dl \nlow <40 mg/dl \ntriglycerides <160 mg/dl\n", + "min": "0", + "max": "1000", + "category_id": [ + 9 + ] + }, + { + "name": "CO2 Content", + "type": "Float", + "choices": null, + "unit": "mEq/L", + "ideal": "22-30 mEq/L (arterial)", + "min": "0", + "max": "100", + "category_id": [ + 10 + ] + }, + { + "name": "Copper", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "70-140 \u03bcg/dl", + "min": "0", + "max": "1000", + "category_id": [] + }, + { + "name": "C-reactive Protiens", + "type": "Float", + "choices": null, + "unit": "mg/L", + "ideal": "0.2-3.0 mg/L", + "min": "0", + "max": "30", + "category_id": [] + }, + { + "name": "Creatine kinase (CK), total", + "type": "Float", + "choices": null, + "unit": "U/L", + "ideal": "Males:51-294 U/L\nFemales:39-238 IU/L", + "min": "0", + "max": "1000", + "category_id": [ + 11 + ] + }, + { + "name": "Creatine kinase-MB (CK-MB)", + "type": "Float", + "choices": null, + "unit": "ng/ml", + "ideal": "0-5.5 ng/ml", + "min": "0", + "max": "30", + "category_id": [ + 11 + ] + }, + { + "name": "Gamma-glutamyl trans- peptidase (transferase) (\uf067-GT)", + "type": "Float", + "choices": null, + "unit": "IU/L", + "ideal": "9-58 IU/L", + "min": "0", + "max": "300", + "category_id": [ + 6 + ] + }, + { + "name": "arterial Bicarbonate (HCO3\u2013)", + "type": "Float", + "choices": null, + "unit": "mEq/L", + "ideal": "22-30 mEq/L", + "min": "0", + "max": "100", + "category_id": [ + 10 + ] + }, + { + "name": "pH (Whole Blood)", + "type": "Float", + "choices": null, + "unit": null, + "ideal": "7.35-7.45", + "min": "0", + "max": "10", + "category_id": [ + 10, + 16 + ] + }, + { + "name": "Pco2", + "type": "Float", + "choices": null, + "unit": "mmHg", + "ideal": "22-45 mmHg", + "min": "0", + "max": "100", + "category_id": [ + 10 + ] + }, + { + "name": "Po2", + "type": "Float", + "choices": null, + "unit": "mmHg", + "ideal": "72-104 mmHg", + "min": "0", + "max": "500", + "category_id": [ + 10 + ] + }, + { + "name": "Glucose (fasting)", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "normal:70-100 mg/dl\nimpaired fasting glucose (IFG) :101-125 mg/dl\ndiabetes mellitus:>126 mg/dl", + "min": "0", + "max": "1500", + "category_id": [ + 13, + 16 + ] + }, + { + "name": "Glucose (2-hr post-prandial)", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "normal :<140 mg/dl\nimpaired glucose tolerance (IGT):140-200 mg/dl\ndiabetes mellitus:>200 mg/dl", + "min": "0", + "max": "1500", + "category_id": [ + 13 + ] + }, + { + "name": "Haemoglobin A1C", + "type": "Float", + "choices": null, + "unit": "%", + "ideal": "4-6%", + "min": "0", + "max": "100", + "category_id": [ + 13 + ] + }, + { + "name": "Serum Igd", + "type": "Float", + "choices": null, + "unit": "mg/L", + "ideal": "0-140 mg/L", + "min": "0", + "max": "1000", + "category_id": [ + 14 + ] + }, + { + "name": "Lactate dehydrogenase (LDH)", + "type": "Float", + "choices": null, + "unit": "U/L", + "ideal": "115-221 U/L", + "min": "0", + "max": "1000", + "category_id": [ + 10 + ] + }, + { + "name": "Lactate/pyruvate ratio", + "type": "Float", + "choices": null, + "unit": "ratio", + "ideal": "10/1", + "min": "0", + "max": "100", + "category_id": [] + }, + { + "name": "Lipoproteins", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "0-30 mg/dl", + "min": "0", + "max": "100", + "category_id": [] + }, + { + "name": "5- Nucleotidase", + "type": "Float", + "choices": null, + "unit": "U/L", + "ideal": "0-11 U/L", + "min": "0", + "max": "100", + "category_id": [] + }, + { + "name": "Oxygen (% saturation)", + "type": "Float", + "choices": null, + "unit": "%", + "ideal": "arterial blood : 94-100 %\nvenous blood: 60-85 %", + "min": "0", + "max": "100", + "category_id": [] + }, + { + "name": "acid phosphatase", + "type": "Float", + "choices": null, + "unit": "U/L", + "ideal": "0-5.5 U/L", + "min": "0", + "max": "30", + "category_id": [] + }, + { + "name": "Prostate specific antigen (PSA)", + "type": "Float", + "choices": null, + "unit": "ng/ml", + "ideal": "0-4.0 ng/ml", + "min": "0", + "max": "10", + "category_id": [] + }, + { + "name": "Pyruvate", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "0.35-1.14 mg/dl", + "min": "0", + "max": "10", + "category_id": [] + }, + { + "name": "Renal blood flow", + "type": "Float", + "choices": null, + "unit": "ml/min", + "ideal": "1200 ml/min", + "min": "0", + "max": "5000", + "category_id": [ + 12 + ] + }, + { + "name": "Rheumatoid factor", + "type": "Float", + "choices": null, + "unit": "IU/ml", + "ideal": "< 30 IU/ml", + "min": "0", + "max": "100", + "category_id": [] + }, + { + "name": "Thyroid function tests", + "type": null, + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [ + 20 + ] + }, + { + "name": "radioactive iodine uptake", + "type": null, + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [ + 20 + ] + }, + { + "name": "(RAIU) 24-hr", + "type": "Float", + "choices": null, + "unit": "%", + "ideal": "5-30%", + "min": "0", + "max": "100", + "category_id": [ + 20 + ] + }, + { + "name": "thyroxine (T4) total", + "type": "Float", + "choices": null, + "unit": "nmol/L", + "ideal": "70-151 nmol/L", + "min": "0", + "max": "1000", + "category_id": [ + 20 + ] + }, + { + "name": "triiodothyronine (T3) total", + "type": "Float", + "choices": null, + "unit": "nmol/L", + "ideal": "1.2-2.1 nmol/L", + "min": "0", + "max": "10", + "category_id": [ + 20 + ] + }, + { + "name": "thyroid stimulating hormone (TSH)", + "type": "Float", + "choices": null, + "unit": "mU/L", + "ideal": "0.4-5.0 mU/L", + "min": "0", + "max": "10", + "category_id": [ + 20 + ] + }, + { + "name": "Troponins, cardiac (cTn)", + "type": "Float", + "choices": null, + "unit": null, + "ideal": " Troponin I (cTnI) :0-0.08 ng/ml\r\n Ttroponin T (cTnT):0-0.01 ng/ml", + "min": "0", + "max": "10", + "category_id": [ + 11 + ] + }, + { + "name": "Body volume\ntotal \nintracellular\n extracellular\n interstitial fluid including lymph fluid \nintravascular fluid or blood plasma \nfluid in mesenchymal tissues \ntranscellular fluid", + "type": "Float", + "choices": null, + "unit": "%", + "ideal": "\n50-70% (60%)\n 33%\n27%\n 12%\n5%\n9%\n 1%", + "min": "0", + "max": "100", + "category_id": [ + 15 + ] + }, + { + "name": "Catecholamines", + "type": null, + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [ + 15 + ] + }, + { + "name": "epinephrine", + "type": null, + "choices": null, + "unit": "ng/day", + "ideal": "< 10 ng/day", + "min": "0", + "max": "100", + "category_id": [ + 15 + ] + }, + { + "name": "free catecholamines", + "type": null, + "choices": null, + "unit": "ng/day", + "ideal": "<100 \u03bcg/day", + "min": "0", + "max": "1000", + "category_id": [ + 15 + ] + }, + { + "name": "metanephrine", + "type": "Float", + "choices": null, + "unit": "mg/day", + "ideal": "<1.3 mg/day", + "min": "0", + "max": "100", + "category_id": [ + 15 + ] + }, + { + "name": "vanillyl mandelic acid (VMA)", + "type": "Float", + "choices": null, + "unit": "mg/day", + "ideal": "<8 mg/day", + "min": "0", + "max": "100", + "category_id": [ + 15 + ] + }, + { + "name": "Cerebrospinal fluid (CSF)", + "type": null, + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [ + 16 + ] + }, + { + "name": "CSF volume", + "type": "Float", + "choices": null, + "unit": "ml", + "ideal": "120-150 ml", + "min": "0", + "max": "1000", + "category_id": [ + 16 + ] + }, + { + "name": "CSF pressure", + "type": "Float", + "choices": null, + "unit": "mm water", + "ideal": "60-150 mm water", + "min": "0", + "max": "1000", + "category_id": [ + 16 + ] + }, + { + "name": "leucocytes", + "type": "Float", + "choices": null, + "unit": "lymphocytes/l", + "ideal": "0-5 lymphocytes/\u03bcl", + "min": "0", + "max": "10", + "category_id": [ + 16 + ] + }, + { + "name": "pH (CSF)", + "type": "Float", + "choices": null, + "unit": null, + "ideal": "7.31-7.34", + "min": "0", + "max": "10", + "category_id": [ + 16 + ] + }, + { + "name": "glucose", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "40-70 mg/dl", + "min": "0", + "max": "1000", + "category_id": [ + 16 + ] + }, + { + "name": "proteins", + "type": "Float", + "choices": null, + "unit": "mg/dl", + "ideal": "20-50 mg/dl", + "min": "0", + "max": "1000", + "category_id": [ + 16 + ] + }, + { + "name": "Formiminoglutamin Acid", + "type": "Float", + "choices": null, + "unit": "mg/day", + "ideal": "<3 mg/day", + "min": "0", + "max": "10000", + "category_id": [] + }, + { + "name": "Gastric analysis", + "type": null, + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [ + 17 + ] + }, + { + "name": "24-hr volume", + "type": "Float", + "choices": null, + "unit": "L", + "ideal": "2-3 L", + "min": "0", + "max": "10", + "category_id": [ + 17 + ] + }, + { + "name": "pH (Gastric Juice)", + "type": "Float", + "choices": null, + "unit": null, + "ideal": "1.6-1.8", + "min": "0", + "max": "10", + "category_id": [ + 17 + ] + }, + { + "name": "basal acid output (BAO)", + "type": "Float", + "choices": null, + "unit": "mEq/hr", + "ideal": "1-5 mEq/hr", + "min": "0", + "max": "100", + "category_id": [ + 17 + ] + }, + { + "name": "maximal acid output (MAO)", + "type": "Float", + "choices": null, + "unit": "mEq/hr", + "ideal": "5-40 mEq/hr", + "min": "0", + "max": "100", + "category_id": [ + 17 + ] + }, + { + "name": "after injection of stimulant", + "type": null, + "choices": null, + "unit": null, + "ideal": null, + "min": null, + "max": null, + "category_id": [ + 17 + ] + }, + { + "name": "BAO/MAO ratio", + "type": "Float", + "choices": null, + "unit": "ratio", + "ideal": "<0:6", + "min": "0", + "max": "10", + "category_id": [ + 17 + ] + }, + { + "name": "Glomerular filtration rate (GFR)", + "type": "Float", + "choices": null, + "unit": "L/day", + "ideal": "180 L/day (about 125 ml/min)", + "min": "0", + "max": "1000", + "category_id": [ + 12 + ] + }, + { + "name": "5-HIAA", + "type": "Float", + "choices": null, + "unit": "mg/day", + "ideal": "2-9 mg/day", + "min": "0", + "max": "100", + "category_id": [] + }, + { + "name": "17-Ketosteroids \n", + "type": "Float", + "choices": null, + "unit": "mg/day", + "ideal": "males :7-25 mg/day\nfemales: 4-15 mg/day", + "min": "0", + "max": "100", + "category_id": [] + }, + { + "name": "Seminal fluid liquefaction", + "type": "Float", + "choices": null, + "unit": null, + "ideal": "Within 20 min", + "min": "1 min", + "max": "60 min", + "category_id": [ + 18 + ] + }, + { + "name": "sperm morphology", + "type": "Float", + "choices": null, + "unit": "%", + "ideal": ">70% normal, mature spermatozoa", + "min": null, + "max": null, + "category_id": [ + 18 + ] + }, + { + "name": "sperm motility", + "type": "Float", + "choices": null, + "unit": "%", + "ideal": ">60%", + "min": null, + "max": null, + "category_id": [ + 18 + ] + }, + { + "name": "pH (Semen)", + "type": "Float", + "choices": null, + "unit": null, + "ideal": ">7.0 (average 7.7)", + "min": null, + "max": null, + "category_id": [ + 18 + ] + }, + { + "name": "sperm count", + "type": "Float", + "choices": null, + "unit": "million/ml", + "ideal": "60-150 million/ml", + "min": null, + "max": null, + "category_id": [ + 18 + ] + }, + { + "name": "volume", + "type": "Float", + "choices": null, + "unit": "ml", + "ideal": "1.5-5.0 ml", + "min": null, + "max": null, + "category_id": [ + 18 + ] + }, + { + "name": "Stool examination\ncoproporphyrin: ", + "type": "Float", + "choices": null, + "unit": "mg/day", + "ideal": " 400-1000 mg/day", + "min": "100", + "max": "10000", + "category_id": [ + 19 + ] + }, + { + "name": "faecal fat excretion", + "type": "Float", + "choices": null, + "unit": "g/day", + "ideal": "<6.0 g/day", + "min": "0", + "max": "100", + "category_id": [ + 19 + ] + }, + { + "name": "occult blood", + "type": "string", + "choices": null, + "unit": "mlblood/day", + "ideal": ": Negative (<2 ml blood /day)", + "min": null, + "max": null, + "category_id": [ + 19 + ] + }, + { + "name": "urobilinogen", + "type": "Float", + "choices": null, + "unit": "mg/day", + "ideal": "40-280 mg/day", + "min": "0", + "max": "1000", + "category_id": [ + 19 + ] + }, + { + "name": "D-xylose excretion", + "type": "Float", + "choices": null, + "unit": "g", + "ideal": "5-8 g within 5 hrs after oral dose of 25 g", + "min": "0", + "max": "100", + "category_id": [ + 19 + ] + }, + { + "name": "Schilling\u2019s test (Intrinsic factor test)", + "type": "Float", + "choices": null, + "unit": "%", + "ideal": ">10% of ingested dose of \u2018hot\u2019\nvitamin B12 ", + "min": "0", + "max": "100", + "category_id": [] + }, + { + "name": "Urine examination", + "type": "Float", + "choices": null, + "unit": "ml", + "ideal": "600-1800 ml (variable)", + "min": "0", + "max": "10000", + "category_id": [] + }, + { + "name": "specific gravity, quantitative", + "type": "Float", + "choices": null, + "unit": null, + "ideal": "1.002-1.028 (average 1.018)", + "min": "0", + "max": "10", + "category_id": [] + }, + { + "name": "protein excretion", + "type": "Float", + "choices": null, + "unit": "mg/day", + "ideal": "<150 mg/day", + "min": "0", + "max": "1000", + "category_id": [] + }, + { + "name": "porphobilinogen\n\n", + "type": "string", + "choices": null, + "unit": null, + "ideal": "Negative\n\n", + "min": null, + "max": null, + "category_id": [ + 6 + ] + }, + { + "name": "UROBILINOGEN", + "type": "Float", + "choices": null, + "unit": "mg/day", + "ideal": "1.0-3.5 mg/day", + "min": "0", + "max": "10", + "category_id": [ + 6 + ] + }, + { + "name": "Microalbuminuria (24 hours)", + "type": "Float", + "choices": null, + "unit": "mg/day", + "ideal": "0-30 mg/day (0-30 \u00b5g/mg creatinine)", + "min": "0", + "max": "100", + "category_id": [ + 12 + ] + }, + { + "name": "Urobilinogen", + "type": "Float", + "choices": null, + "unit": "ratio", + "ideal": "Present in 1: 20 dilution", + "min": null, + "max": null, + "category_id": [ + 6 + ] + } ] From 7aa339f15ecb81253660d6717f26cf36b114b04a Mon Sep 17 00:00:00 2001 From: prafful Date: Wed, 23 Oct 2024 08:29:50 +0530 Subject: [PATCH 07/11] improved exception handling --- care/users/management/commands/populate_investigations.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/care/users/management/commands/populate_investigations.py b/care/users/management/commands/populate_investigations.py index 987aa60b5e..25b2bc0edf 100644 --- a/care/users/management/commands/populate_investigations.py +++ b/care/users/management/commands/populate_investigations.py @@ -54,7 +54,7 @@ def handle(self, *args, **kwargs): if investigation.get("min") is not None else None ) - except (ValueError, TypeError): + except (ValueError, TypeError, KeyError): data["min_value"] = None try: @@ -63,7 +63,7 @@ def handle(self, *args, **kwargs): if investigation.get("max") is not None else None ) - except (ValueError, TypeError): + except (ValueError, TypeError, KeyError): data["max_value"] = None existing_obj = PatientInvestigation.objects.filter( From 77581f779d4b5d8e93455fe41c3b9978c9dd48a9 Mon Sep 17 00:00:00 2001 From: prafful Date: Wed, 23 Oct 2024 13:49:50 +0530 Subject: [PATCH 08/11] improved exception handling --- .../management/commands/populate_investigations.py | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/care/users/management/commands/populate_investigations.py b/care/users/management/commands/populate_investigations.py index 25b2bc0edf..a7dfebf09c 100644 --- a/care/users/management/commands/populate_investigations.py +++ b/care/users/management/commands/populate_investigations.py @@ -49,20 +49,11 @@ def handle(self, *args, **kwargs): } try: - data["min_value"] = ( - float(investigation["min"]) - if investigation.get("min") is not None - else None - ) + data["min_value"] = float(investigation["min"]) except (ValueError, TypeError, KeyError): data["min_value"] = None - try: - data["max_value"] = ( - float(investigation["max"]) - if investigation.get("max") is not None - else None - ) + data["max_value"] = float(investigation["max"]) except (ValueError, TypeError, KeyError): data["max_value"] = None From a9b70f51e427abd6f3fcb9b0eca52adaf4078bc0 Mon Sep 17 00:00:00 2001 From: prafful Date: Thu, 24 Oct 2024 02:33:11 +0530 Subject: [PATCH 09/11] added test cases --- .../tests/test_management_commands.py | 48 +++++++++++++++++++ .../commands/populate_investigations.py | 7 +-- 2 files changed, 52 insertions(+), 3 deletions(-) create mode 100644 care/facility/tests/test_management_commands.py diff --git a/care/facility/tests/test_management_commands.py b/care/facility/tests/test_management_commands.py new file mode 100644 index 0000000000..79026a4b52 --- /dev/null +++ b/care/facility/tests/test_management_commands.py @@ -0,0 +1,48 @@ +import json +from pathlib import Path + +from django.core.management import call_command +from django.test import TestCase + +from care.facility.models import PatientInvestigation, PatientInvestigationGroup + + +class LoadPrescriptionCommandTest(TestCase): + @classmethod + def setUpTestData(cls): + call_command("populate_investigations", verbosity=0) + + with Path("data/investigations.json").open() as investigations_data: + cls.investigations = json.load(investigations_data) + + with Path("data/investigation_groups.json").open() as investigation_groups_data: + cls.investigation_groups = json.load(investigation_groups_data) + + def test_number_of_entries(self): + self.assertEqual(len(self.investigations), PatientInvestigation.objects.count()) + self.assertEqual( + len(self.investigation_groups), PatientInvestigationGroup.objects.count() + ) + + def test_relation_between_investigations_and_groups(self): + # taking first and last 5 data to test it out + test_investigation_data = self.investigations[:5] + self.investigations[-5:] + + # creating a dictionary to avoid looping of group data for each check + group_dict = { + int(group["id"]): group["name"] for group in self.investigation_groups + } + + for investigation_data in test_investigation_data: + investigation = PatientInvestigation.objects.get( + name=investigation_data["name"] + ) + + group_values = list(investigation.groups.values_list("name", flat=True)) + + expected_groups = [ + group_dict[category_id] + for category_id in investigation_data["category_id"] + ] + + self.assertCountEqual(group_values, expected_groups) diff --git a/care/users/management/commands/populate_investigations.py b/care/users/management/commands/populate_investigations.py index a7dfebf09c..13e536896e 100644 --- a/care/users/management/commands/populate_investigations.py +++ b/care/users/management/commands/populate_investigations.py @@ -99,6 +99,7 @@ def handle(self, *args, **kwargs): investigation_obj.save() investigation_obj.groups.set(groups_to_add) - self.stdout.write( - self.style.SUCCESS("Successfully populated investigation data") - ) + if kwargs.get("verbosity", 1) > 0: + self.stdout.write( + self.style.SUCCESS("Successfully populated investigation data") + ) From 3dba2b5da0989c6f5dde27d160969b37521fedd5 Mon Sep 17 00:00:00 2001 From: prafful Date: Thu, 7 Nov 2024 13:38:16 +0530 Subject: [PATCH 10/11] fixed the typo --- care/facility/tests/test_management_commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/care/facility/tests/test_management_commands.py b/care/facility/tests/test_management_commands.py index 79026a4b52..11f736f2f3 100644 --- a/care/facility/tests/test_management_commands.py +++ b/care/facility/tests/test_management_commands.py @@ -7,7 +7,7 @@ from care.facility.models import PatientInvestigation, PatientInvestigationGroup -class LoadPrescriptionCommandTest(TestCase): +class LoadInvestigationsCommandTest(TestCase): @classmethod def setUpTestData(cls): call_command("populate_investigations", verbosity=0) From 20b6461b6bb70d6c86c55d2517b636fa980843b5 Mon Sep 17 00:00:00 2001 From: prafful Date: Thu, 7 Nov 2024 15:01:36 +0530 Subject: [PATCH 11/11] implemented rabbit changes and reformatted the code --- .../commands/populate_investigations.py | 145 ++++++++++-------- data/investigation_groups.json | 2 +- data/investigations.json | 10 +- 3 files changed, 88 insertions(+), 69 deletions(-) diff --git a/care/users/management/commands/populate_investigations.py b/care/users/management/commands/populate_investigations.py index 13e536896e..7cc2aeb601 100644 --- a/care/users/management/commands/populate_investigations.py +++ b/care/users/management/commands/populate_investigations.py @@ -1,78 +1,98 @@ import json from pathlib import Path -from django.core.management import BaseCommand +from django.core.management.base import BaseCommand from django.db import transaction -from care.facility.models.patient_investigation import ( - PatientInvestigation, - PatientInvestigationGroup, -) +from care.facility.models import PatientInvestigation, PatientInvestigationGroup + + +def load_json(file_path): + with Path(file_path).open() as json_file: + return json.load(json_file) + + +def load_investigation_group_data(investigation_groups): + investigation_group_dict = {} + groups_to_create = [] + + for investigation_group in investigation_groups: + current_obj = PatientInvestigationGroup.objects.filter( + name=investigation_group["name"] + ).first() + if not current_obj: + current_obj = PatientInvestigationGroup(name=investigation_group["name"]) + groups_to_create.append(current_obj) + + investigation_group_dict[str(investigation_group["id"])] = current_obj + + if groups_to_create: + PatientInvestigationGroup.objects.bulk_create(groups_to_create) + + return investigation_group_dict + + +def extract_investigation_data(investigation): + return { + "name": investigation["name"], + "unit": investigation.get("unit", ""), + "ideal_value": investigation.get("ideal_value", ""), + "min_value": parse_float(investigation.get("min")), + "max_value": parse_float(investigation.get("max")), + "investigation_type": investigation.get("type", None), + "choices": investigation.get("choices", ""), + } + + +def parse_float(value): + try: + return float(value) + except (ValueError, TypeError): + return None + + +def update_existing_investigation(existing_obj, data): + for field, value in data.items(): + setattr(existing_obj, field, value) + + +def handle_investigations(investigations, investigation_group_dict): + bulk_create_data = [] + bulk_update_data = [] + investigations_to_update_groups = [] + + for investigation in investigations: + data = extract_investigation_data(investigation) + existing_obj = PatientInvestigation.objects.filter(name=data["name"]).first() + + if existing_obj: + update_existing_investigation(existing_obj, data) + bulk_update_data.append(existing_obj) + investigations_to_update_groups.append( + (existing_obj, investigation["category_id"]) + ) + else: + new_obj = PatientInvestigation(**data) + bulk_create_data.append(new_obj) + investigations_to_update_groups.append( + (new_obj, investigation["category_id"]) + ) + + return bulk_create_data, bulk_update_data, investigations_to_update_groups class Command(BaseCommand): help = "Seed Data for Investigations" def handle(self, *args, **kwargs): - with Path("data/investigations.json").open() as investigations_data: - investigations = json.load(investigations_data) - - with Path("data/investigation_groups.json").open() as investigation_groups_data: - investigation_groups = json.load(investigation_groups_data) + investigation_groups = load_json("data/investigation_groups.json") + investigations = load_json("data/investigations.json") - investigation_group_dict = {} + investigation_group_dict = load_investigation_group_data(investigation_groups) - for investigation_group in investigation_groups: - current_obj = PatientInvestigationGroup.objects.filter( - name=investigation_group["name"] - ).first() - if not current_obj: - current_obj = PatientInvestigationGroup( - name=investigation_group["name"] - ) - current_obj.save() - investigation_group_dict[str(investigation_group["id"])] = current_obj - - bulk_create_data = [] - bulk_update_data = [] - investigations_to_update_groups = [] - - for investigation in investigations: - data = { - "name": investigation["name"], - "unit": investigation.get("unit", ""), - "ideal_value": investigation.get("ideal_value", ""), - "min_value": None, - "max_value": None, - "investigation_type": investigation.get("type", None), - "choices": investigation.get("choices", ""), - } - - try: - data["min_value"] = float(investigation["min"]) - except (ValueError, TypeError, KeyError): - data["min_value"] = None - try: - data["max_value"] = float(investigation["max"]) - except (ValueError, TypeError, KeyError): - data["max_value"] = None - - existing_obj = PatientInvestigation.objects.filter( - name=data["name"] - ).first() - if existing_obj: - for field, value in data.items(): - setattr(existing_obj, field, value) - bulk_update_data.append(existing_obj) - investigations_to_update_groups.append( - (existing_obj, investigation["category_id"]) - ) - else: - new_obj = PatientInvestigation(**data) - bulk_create_data.append(new_obj) - investigations_to_update_groups.append( - (new_obj, investigation["category_id"]) - ) + bulk_create_data, bulk_update_data, investigations_to_update_groups = ( + handle_investigations(investigations, investigation_group_dict) + ) with transaction.atomic(): if bulk_create_data: @@ -96,7 +116,6 @@ def handle(self, *args, **kwargs): investigation_group_dict.get(str(category_id)) for category_id in category_ids ] - investigation_obj.save() investigation_obj.groups.set(groups_to_add) if kwargs.get("verbosity", 1) > 0: diff --git a/data/investigation_groups.json b/data/investigation_groups.json index 694aa1cf8d..423ffabdb1 100644 --- a/data/investigation_groups.json +++ b/data/investigation_groups.json @@ -29,7 +29,7 @@ }, { "id": "8", - "name": "Elecyrolytes" + "name": "Electrolytes" }, { "id": "9", diff --git a/data/investigations.json b/data/investigations.json index ada5bf5e17..e731448eac 100644 --- a/data/investigations.json +++ b/data/investigations.json @@ -1802,7 +1802,7 @@ }, { "name": "Blood Urea Nitrogen (BUN)", - "type": "FLoat", + "type": "Float", "choices": null, "unit": "mg/dL ", "ideal": "Newborn (0-2 days)\t3 - 17 mg/dL\nInfant (3 days - 1 month)\t3 - 19 mg/dL\nInfant (1 - 6 months)\t5 - 20 mg/dL\nInfant (6 - 12 months)\t5 - 13 mg/dL\nToddler (1 - 2 years)\t7 - 20 mg/dL\nChild (3 - 5 years)\t8 - 18 mg/dL\nChild (6 - 11 years)\t8 - 21 mg/dL\nAdolescent (12 - 17 years)\t7 - 20 mg/dL\nAdult (> 18 years)\t7 - 20 mg/dL", @@ -1814,7 +1814,7 @@ }, { "name": "Estimated Glomerular Filtration Rate (eGFR)", - "type": "FLoat", + "type": "Float", "choices": null, "unit": "mL/min/1.73m\u00b2 (milliliters per minute per 1.73 square meters)", "ideal": "> 90 mL/min/1.73m\u00b2 ", @@ -1849,7 +1849,7 @@ }, { "name": "Serum Creatinine Clearance", - "type": "FLoat", + "type": "Float", "choices": null, "unit": "mL/min ", "ideal": "97 to 137mL/min (males)\n88 to 128mL/min (females)", @@ -2665,7 +2665,7 @@ }, { "name": "occult blood", - "type": "string", + "type": "String", "choices": null, "unit": "mlblood/day", "ideal": ": Negative (<2 ml blood /day)", @@ -2741,7 +2741,7 @@ }, { "name": "porphobilinogen\n\n", - "type": "string", + "type": "String", "choices": null, "unit": null, "ideal": "Negative\n\n",