From 5cc8dd7974dc479ee711ae66b9a7a4a02d4375ed Mon Sep 17 00:00:00 2001 From: dotasek Date: Wed, 23 Feb 2022 19:02:45 -0500 Subject: [PATCH] Fix incorrect fromCode for R4/DSTU2 --- .../src/main/java/org/hl7/fhir/r4/model/FhirPublication.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/FhirPublication.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/FhirPublication.java index bc8dfe581..6ccf8fd4b 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/FhirPublication.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/FhirPublication.java @@ -49,7 +49,7 @@ public enum FhirPublication { R4; public static FhirPublication fromCode(String v) { - if (VersionUtilities.isR4Ver(v)) + if (VersionUtilities.isR2Ver(v)) return FhirPublication.DSTU2; if ("1.0".equals(v)) return FhirPublication.DSTU2;