From 9c8cffc149fb3c2530dac99f9028d058ee703dc0 Mon Sep 17 00:00:00 2001 From: rithviknishad Date: Thu, 5 Oct 2023 22:18:17 +0530 Subject: [PATCH] patch --- care/facility/static_data/icd11.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/care/facility/static_data/icd11.py b/care/facility/static_data/icd11.py index 9aaf193475..dc987eae43 100644 --- a/care/facility/static_data/icd11.py +++ b/care/facility/static_data/icd11.py @@ -15,7 +15,9 @@ def fetch_from_db(): "id": str(diagnosis["id"]), "label": diagnosis["label"], } - for diagnosis in ICD11Diagnosis.objects.all().values("id", "label") + for diagnosis in ICD11Diagnosis.objects.filter(is_leaf=True).values( + "id", "label" + ) ] return []