From 56c52ab7dd86ca8c4dc5c7455aaa3817b7107d16 Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Fri, 11 Mar 2022 10:34:18 +1100 Subject: [PATCH] make fhir version code case independent --- .../src/main/java/org/hl7/fhir/r5/model/Enumerations.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Enumerations.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Enumerations.java index 64de74462..38d4a4a8b 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Enumerations.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Enumerations.java @@ -7293,9 +7293,9 @@ public String toCode(int len) { return new Enumeration(this, FHIRVersion._4_1_0); if ("4.2.0".equals(codeString)) return new Enumeration(this, FHIRVersion._4_2_0); - if ("4.3.0-snapshot1".equals(codeString)) + if ("4.3.0-snapshot1".equalsIgnoreCase(codeString)) return new Enumeration(this, FHIRVersion._4_3_0SNAPSHOT1); - if ("4.3.0-cibuild".equals(codeString)) + if ("4.3.0-cibuild".equalsIgnoreCase(codeString)) return new Enumeration(this, FHIRVersion._4_3_0CIBUILD); if ("4.4.0".equals(codeString)) return new Enumeration(this, FHIRVersion._4_4_0); @@ -7303,9 +7303,9 @@ public String toCode(int len) { return new Enumeration(this, FHIRVersion._4_5_0); if ("4.6.0".equals(codeString)) return new Enumeration(this, FHIRVersion._4_6_0); - if ("5.0.0-snapshot1".equals(codeString)) + if ("5.0.0-snapshot1".equalsIgnoreCase(codeString)) return new Enumeration(this, FHIRVersion._5_0_0SNAPSHOT1); - if ("5.0.0-cibuild".equals(codeString)) + if ("5.0.0-cibuild".equalsIgnoreCase(codeString)) return new Enumeration(this, FHIRVersion._5_0_0CIBUILD); throw new FHIRException("Unknown FHIRVersion code '"+codeString+"'"); }