When running in Eclipse, the version comes in as upper-case, and the enum comparison needs it to be lower-case, so fold it to be that way.
This commit is contained in:
parent
a5302b8934
commit
ca91cfad1a
|
@ -6874,6 +6874,7 @@ The primary difference between a medicationusage and a medicationadministration
|
||||||
public static FHIRVersion fromCode(String codeString) throws FHIRException {
|
public static FHIRVersion fromCode(String codeString) throws FHIRException {
|
||||||
if (codeString == null || "".equals(codeString))
|
if (codeString == null || "".equals(codeString))
|
||||||
return null;
|
return null;
|
||||||
|
codeString = codeString.toLowerCase();
|
||||||
if ("0.01".equals(codeString))
|
if ("0.01".equals(codeString))
|
||||||
return _0_01;
|
return _0_01;
|
||||||
if ("0.05".equals(codeString))
|
if ("0.05".equals(codeString))
|
||||||
|
@ -7104,6 +7105,7 @@ public String toCode(int len) {
|
||||||
public static boolean isValidCode(String codeString) {
|
public static boolean isValidCode(String codeString) {
|
||||||
if (codeString == null || "".equals(codeString))
|
if (codeString == null || "".equals(codeString))
|
||||||
return false;
|
return false;
|
||||||
|
codeString = codeString.toLowerCase();
|
||||||
if ("0.01".equals(codeString))
|
if ("0.01".equals(codeString))
|
||||||
return true;
|
return true;
|
||||||
if ("0.05".equals(codeString))
|
if ("0.05".equals(codeString))
|
||||||
|
@ -7169,6 +7171,7 @@ public String toCode(int len) {
|
||||||
if (codeString == null || "".equals(codeString))
|
if (codeString == null || "".equals(codeString))
|
||||||
if (codeString == null || "".equals(codeString))
|
if (codeString == null || "".equals(codeString))
|
||||||
return null;
|
return null;
|
||||||
|
codeString = codeString.toLowerCase();
|
||||||
if ("0.01".equals(codeString))
|
if ("0.01".equals(codeString))
|
||||||
return FHIRVersion._0_01;
|
return FHIRVersion._0_01;
|
||||||
if ("0.05".equals(codeString))
|
if ("0.05".equals(codeString))
|
||||||
|
|
Loading…
Reference in New Issue