From 0df4d24cf8182ba1785c08d07ff9eb2358571056 Mon Sep 17 00:00:00 2001 From: josephatJ Date: Tue, 3 Dec 2024 16:24:06 +0300 Subject: [PATCH] Fix identifier type issue and add identifiers for encounter --- views/encounter_flat_view.json | 15 +++++++++++++++ views/patient_flat_view.json | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/views/encounter_flat_view.json b/views/encounter_flat_view.json index 23be609..ebf1f31 100644 --- a/views/encounter_flat_view.json +++ b/views/encounter_flat_view.json @@ -54,6 +54,21 @@ } ] }, + { + "forEachOrNull": "identifier", + "column": [ + { + "path": "type.coding[0].code", + "name": "identifier_type", + "type": "string" + }, + { + "path": "value", + "name": "identifier_value", + "type": "string" + } + ] + }, { "forEachOrNull": "category.coding", "column": [ diff --git a/views/patient_flat_view.json b/views/patient_flat_view.json index f59f16e..26bb1d8 100644 --- a/views/patient_flat_view.json +++ b/views/patient_flat_view.json @@ -51,7 +51,7 @@ "forEachOrNull": "identifier", "column": [ { - "path": "type", + "path": "type.coding[0].code", "name": "identifier_type", "type": "string" },