From a86e3d2bdc0a304148074529edfe38638650dfb2 Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Fri, 24 Nov 2023 07:05:50 +1100 Subject: [PATCH] ips builder fix --- .../src/main/java/org/hl7/fhir/r4/ips/IPSBuilder.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/ips/IPSBuilder.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/ips/IPSBuilder.java index 02dcf5bca..69e6a72cd 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/ips/IPSBuilder.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/ips/IPSBuilder.java @@ -84,6 +84,7 @@ public class IPSBuilder { dev.setId("java"); dev.addDeviceName().setName("Java Core Library"); dev.addVersion().setValue(VersionUtil.getVersion()); + bnd.addEntry().setResource(dev).setFullUrl(Utilities.pathURL(url, "Device", dev.getIdBase())); return cmp; } @@ -210,7 +211,7 @@ public class IPSBuilder { } private static void addConditions(Bundle bnd, Composition cmp, FHIRToolingClient server, String patientId) { - Bundle sb = server.search("Condition", "?patient="+patientId); //+"&_include=MedicationStatement:asserter"); + Bundle sb = server.search("Condition", "?patient="+patientId+"&_include=Condition:asserter"); SectionComponent sct = cmp.addSection(); sct.setTitle("Problems"); sct.getCode().addCoding().setSystem("http://loinc.org").setCode("11450-4");