Support R4B when loading

This commit is contained in:
Grahame Grieve 2023-05-22 17:12:59 +10:00
parent bd41c69021
commit 3cab5f5ae3
1 changed files with 2 additions and 0 deletions

View File

@ -75,6 +75,8 @@ public abstract class BaseLoaderR5 implements IContextResourceLoader {
protected BaseLoaderR5 loaderFactory(NpmPackage npm) throws JsonSyntaxException, IOException {
if (VersionUtilities.isR5Plus(npm.fhirVersion())) {
return new R5ToR5Loader(types, lkp.forNewPackage(npm));
} else if (VersionUtilities.isR4BVer(npm.fhirVersion())) {
return new R4BToR5Loader(types, lkp.forNewPackage(npm), npm.version());
} else if (VersionUtilities.isR4Ver(npm.fhirVersion())) {
return new R4ToR5Loader(types, lkp.forNewPackage(npm), npm.version());
} else if (VersionUtilities.isR3Ver(npm.fhirVersion())) {