From 518e5559c723ba6f9f127e3cef4e182803250916 Mon Sep 17 00:00:00 2001 From: Michael Lawley Date: Wed, 30 Nov 2022 10:20:57 +1000 Subject: [PATCH] fix for #1022 --- .../main/java/org/hl7/fhir/r5/context/BaseWorkerContext.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/BaseWorkerContext.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/BaseWorkerContext.java index 6a8394541..c04813a28 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/BaseWorkerContext.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/BaseWorkerContext.java @@ -87,6 +87,7 @@ import org.hl7.fhir.r5.model.OperationOutcome; import org.hl7.fhir.r5.model.Parameters; import org.hl7.fhir.r5.model.Parameters.ParametersParameterComponent; import org.hl7.fhir.r5.model.PlanDefinition; +import org.hl7.fhir.r5.model.PrimitiveType; import org.hl7.fhir.r5.model.Questionnaire; import org.hl7.fhir.r5.model.Reference; import org.hl7.fhir.r5.model.Requirements; @@ -1288,9 +1289,9 @@ public abstract class BaseWorkerContext extends I18nBase implements IWorkerConte } else if (p.getName().equals("display")) { display = ((StringType) p.getValue()).getValue(); } else if (p.getName().equals("system")) { - system = ((StringType) p.getValue()).getValue(); + system = ((PrimitiveType) p.getValue()).asStringValue(); } else if (p.getName().equals("code")) { - code = ((StringType) p.getValue()).getValue(); + code = ((PrimitiveType) p.getValue()).asStringValue(); } else if (p.getName().equals("cause")) { try { IssueType it = IssueType.fromCode(((StringType) p.getValue()).getValue());