fixed detection of FHIR R5 from version string

This commit is contained in:
Gregor Lichtner 2022-01-24 12:53:26 +01:00
parent f69a30421f
commit abcaea9d53
1 changed files with 7 additions and 0 deletions

View File

@ -75,6 +75,10 @@ public class VersionUtilities {
if (isR4BVer(v)) {
return "hl7.fhir.r4b.core";
}
if (isR5Ver(v)) {
return "hl7.fhir.r5.core";
}
if ("current".equals(v)) {
return "hl7.fhir.r5.core";
@ -101,6 +105,9 @@ public class VersionUtilities {
if (isR4Ver(v)) {
return "4.0.1";
}
if (isR5Ver(v)) {
return "5.0.0";
}
if (v != null && v.startsWith(CURRENT_VERSION)) {
return "current";
}