From 4ee34182ea68e8739d32a1b523c719b39c5b06c6 Mon Sep 17 00:00:00 2001 From: Josephat Mwakyusa Date: Thu, 12 Dec 2024 14:50:05 +0300 Subject: [PATCH] Update views definitions --- views/diagnosticreport_flat_view.json | 35 +++++++++++++++++++++++++++ views/immunization_flat_view.json | 5 ++++ views/observation_flat_view.json | 20 +++++++-------- views/procedure_flat_view.json | 5 ++++ 4 files changed, 55 insertions(+), 10 deletions(-) diff --git a/views/diagnosticreport_flat_view.json b/views/diagnosticreport_flat_view.json index 4313907..b583e6d 100644 --- a/views/diagnosticreport_flat_view.json +++ b/views/diagnosticreport_flat_view.json @@ -9,6 +9,41 @@ "path": "getResourceKey()", "name": "id", "type": "string" + }, + { + "path": "encounter.getReferenceKey(Encounter)", + "name": "encounter_id", + "type": "string" + } + ] + }, + { + "forEachOrNull": "category.coding", + "column": [ + { + "path": "code", + "name": "category", + "type": "string" + } + ] + }, + { + "forEachOrNull": "code.coding", + "column": [ + { + "path": "code", + "name": "code", + "type": "string" + }, + { + "path": "system", + "name": "code_system", + "type": "string" + }, + { + "path": "display", + "name": "code_display", + "type": "string" } ] } diff --git a/views/immunization_flat_view.json b/views/immunization_flat_view.json index a337973..c931c37 100644 --- a/views/immunization_flat_view.json +++ b/views/immunization_flat_view.json @@ -9,6 +9,11 @@ "path": "getResourceKey()", "name": "id", "type": "string" + }, + { + "path": "encounter.getReferenceKey(Encounter)", + "name": "encounter_id", + "type": "string" } ] } diff --git a/views/observation_flat_view.json b/views/observation_flat_view.json index 840c03a..ccf9893 100644 --- a/views/observation_flat_view.json +++ b/views/observation_flat_view.json @@ -25,16 +25,6 @@ "name": "status", "type": "string" }, - { - "forEachOrNull": "category.coding", - "column": [ - { - "path": "code", - "name": "category", - "type": "string" - } - ] - }, { "path": "effective.ofType(dateTime)", "name": "obs_date", @@ -92,6 +82,16 @@ } ] }, + { + "forEachOrNull": "category.coding", + "column": [ + { + "path": "code", + "name": "category", + "type": "string" + } + ] + }, { "forEachOrNull": "code.coding", "column": [ diff --git a/views/procedure_flat_view.json b/views/procedure_flat_view.json index 7351bc1..f3ab15e 100644 --- a/views/procedure_flat_view.json +++ b/views/procedure_flat_view.json @@ -9,6 +9,11 @@ "path": "getResourceKey()", "name": "id", "type": "string" + }, + { + "path": "encounter.getReferenceKey(Encounter)", + "name": "encounter_id", + "type": "string" } ] }