From f6935d11e7600cf79ec77afffe5b083cb914e5b1 Mon Sep 17 00:00:00 2001 From: lucille <lucyjemutai.2019@gmail.com> Date: Mon, 28 Oct 2024 08:58:30 +0300 Subject: [PATCH 1/2] Split the Diogonistic services and the HPT --- pages/api/domains/domains.json | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/pages/api/domains/domains.json b/pages/api/domains/domains.json index 4945d38..02906a3 100755 --- a/pages/api/domains/domains.json +++ b/pages/api/domains/domains.json @@ -30,8 +30,18 @@ } }, { - "id": "diagnostic-services", - "name": "Diagnostic Services (Lab and Imaging)", + "id": "diagnostic-services-lab", + "name": "Diagnostic Services (Lab)", + "apiUrls": ["/orgs/MOH-KENYA/sources/NPHL/"], + "icon": "devices", + "metadata": { + "subdomainQueryParam": "conceptClass=Subdomain", + "cascadeQueryParam": "$cascade/?view=hierarchy&reverse=true&includeRetired=false" + } + }, + { + "id": "diagnostic-services-imagin", + "name": "Diagnostic Services (Imaging)", "apiUrls": ["/orgs/MOH-KENYA/sources/NPHL/"], "icon": "microscope2", "metadata": { @@ -82,21 +92,21 @@ { "id": "hpt-non-pharmaceuticals", "name": "HPT - Medical Devices", - "apiUrls": ["/orgs/MOH-KENYA/sources/PPB_NP/"], + "apiUrls": ["/orgs/MOH-KENYA/sources/PPB/"], "icon": "xray", "metadata": { - "subdomainQueryParam": "conceptClass=Subdomain&limit=500", - "cascadeQueryParam": "$cascade/?view=hierarchy&reverse=true&includeRetired=false" + "subdomainQueryParam": "id=10-00000-02&conceptClass=domain&limit=500", + "cascadeQueryParam": "10-00000-02/cascade/?view=hierarchy&reverse=true&includeRetired=false" } }, { "id": "hpt-pharmaceuticals", "name": "HPT - Pharmaceuticals", - "apiUrls": ["/orgs/MOH-KENYA/sources/PPB_P/"], + "apiUrls": ["/orgs/MOH-KENYA/sources/PPB/"], "icon": "tabs", "metadata": { - "subdomainQueryParam": "conceptClass=Subdomain&limit=500", - "cascadeQueryParam": "$cascade/?view=hierarchy&reverse=true&includeRetired=false" + "subdomainQueryParam": "id=10-00000-01&conceptClass=domain&limit=500", + "cascadeQueryParam": "10-00000-01/cascade/?view=hierarchy&reverse=true&includeRetired=false" } }, { From 96b95fb330da41eeaa1988374bae756538d6d73f Mon Sep 17 00:00:00 2001 From: lucille <lucyjemutai.2019@gmail.com> Date: Mon, 28 Oct 2024 09:16:49 +0300 Subject: [PATCH 2/2] update the metadata --- pages/api/domains/domains.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/api/domains/domains.json b/pages/api/domains/domains.json index 02906a3..e3004e0 100755 --- a/pages/api/domains/domains.json +++ b/pages/api/domains/domains.json @@ -95,8 +95,8 @@ "apiUrls": ["/orgs/MOH-KENYA/sources/PPB/"], "icon": "xray", "metadata": { - "subdomainQueryParam": "id=10-00000-02&conceptClass=domain&limit=500", - "cascadeQueryParam": "10-00000-02/cascade/?view=hierarchy&reverse=true&includeRetired=false" + "subdomainQueryParam": "conceptClass=Subdomain", + "cascadeQueryParam": "$cascade/?view=hierarchy&reverse=true&includeRetired=false" } }, { @@ -105,8 +105,8 @@ "apiUrls": ["/orgs/MOH-KENYA/sources/PPB/"], "icon": "tabs", "metadata": { - "subdomainQueryParam": "id=10-00000-01&conceptClass=domain&limit=500", - "cascadeQueryParam": "10-00000-01/cascade/?view=hierarchy&reverse=true&includeRetired=false" + "subdomainQueryParam": "conceptClass=Subdomain", + "cascadeQueryParam": "$cascade/?view=hierarchy&reverse=true&includeRetired=false" } }, {