Merge pull request #720 from glichtner/fix-fhir-r5-detection

fixed detection of FHIR R5 from version string
This commit is contained in:
Grahame Grieve 2022-01-30 07:56:39 +11:00 committed by GitHub
commit f7c146f1ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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";
}