From 6c5b3f69d2e5e1bd061c8044ab677bd44acd26fb Mon Sep 17 00:00:00 2001 From: Paul-Christian Volkmer Date: Wed, 11 Dec 2024 10:29:38 +0100 Subject: [PATCH] Set status to "final" --- .../ume/obdstofhir/mapper/mii/ResidualstatusMapper.java | 5 ++--- ...CreateValidProcedure.Testpatient_1.xml.approved.fhir.json | 2 +- ...CreateValidProcedure.Testpatient_2.xml.approved.fhir.json | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/miracum/streams/ume/obdstofhir/mapper/mii/ResidualstatusMapper.java b/src/main/java/org/miracum/streams/ume/obdstofhir/mapper/mii/ResidualstatusMapper.java index cd4f35fa..d0a24517 100644 --- a/src/main/java/org/miracum/streams/ume/obdstofhir/mapper/mii/ResidualstatusMapper.java +++ b/src/main/java/org/miracum/streams/ume/obdstofhir/mapper/mii/ResidualstatusMapper.java @@ -47,9 +47,8 @@ public Observation map(ResidualstatusTyp rs, Reference patient) { code.addCoding().setCode(fhirProperties.getSystems().getLoinc()).setCode("84892-9"); observation.setCode(value); - // Status - // TODO: Correct status - observation.setStatus(Observation.ObservationStatus.UNKNOWN); + // Status - always final + observation.setStatus(Observation.ObservationStatus.FINAL); return observation; } diff --git a/src/test/java/snapshots/org/miracum/streams/ume/obdstofhir/mapper/mii/ResidualstatusMapperTest.map_withGivenObds_shouldCreateValidProcedure.Testpatient_1.xml.approved.fhir.json b/src/test/java/snapshots/org/miracum/streams/ume/obdstofhir/mapper/mii/ResidualstatusMapperTest.map_withGivenObds_shouldCreateValidProcedure.Testpatient_1.xml.approved.fhir.json index 5793f3fc..edd2dbd2 100644 --- a/src/test/java/snapshots/org/miracum/streams/ume/obdstofhir/mapper/mii/ResidualstatusMapperTest.map_withGivenObds_shouldCreateValidProcedure.Testpatient_1.xml.approved.fhir.json +++ b/src/test/java/snapshots/org/miracum/streams/ume/obdstofhir/mapper/mii/ResidualstatusMapperTest.map_withGivenObds_shouldCreateValidProcedure.Testpatient_1.xml.approved.fhir.json @@ -1,6 +1,6 @@ { "resourceType": "Observation", - "status": "unknown", + "status": "final", "code": { "coding": [ { "system": "https://www.medizininformatik-initiative.de/fhir/ext/modul-onko/CodeSystem/mii-cs-onko-residualstatus", diff --git a/src/test/java/snapshots/org/miracum/streams/ume/obdstofhir/mapper/mii/ResidualstatusMapperTest.map_withGivenObds_shouldCreateValidProcedure.Testpatient_2.xml.approved.fhir.json b/src/test/java/snapshots/org/miracum/streams/ume/obdstofhir/mapper/mii/ResidualstatusMapperTest.map_withGivenObds_shouldCreateValidProcedure.Testpatient_2.xml.approved.fhir.json index fa785a20..19f0ede2 100644 --- a/src/test/java/snapshots/org/miracum/streams/ume/obdstofhir/mapper/mii/ResidualstatusMapperTest.map_withGivenObds_shouldCreateValidProcedure.Testpatient_2.xml.approved.fhir.json +++ b/src/test/java/snapshots/org/miracum/streams/ume/obdstofhir/mapper/mii/ResidualstatusMapperTest.map_withGivenObds_shouldCreateValidProcedure.Testpatient_2.xml.approved.fhir.json @@ -1,6 +1,6 @@ { "resourceType": "Observation", - "status": "unknown", + "status": "final", "code": { "coding": [ { "system": "https://www.medizininformatik-initiative.de/fhir/ext/modul-onko/CodeSystem/mii-cs-onko-residualstatus",