From 2a37fb93514dd2c1665e4c11a32a74b3f7b5b99e Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Tue, 16 Jul 2024 06:15:32 +0800 Subject: [PATCH] Fix for validator using wrong property for list determination when parsing json --- .../src/main/java/org/hl7/fhir/r5/elementmodel/Property.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/elementmodel/Property.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/elementmodel/Property.java index 4440ca536..891b1944b 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/elementmodel/Property.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/elementmodel/Property.java @@ -280,7 +280,7 @@ public class Property { } public boolean isList() { - return !"1".equals(definition.getMax()); + return !"1".equals(definition.getBase().hasMax() ? definition.getBase().getMax() : definition.getMax()); } public boolean isBaseList() {