fixes for https://github.com/hapifhir/hapi-fhir/issues/4277 and https… (#4291)
* fixes for https://github.com/hapifhir/hapi-fhir/issues/4277 and https://github.com/hapifhir/hapi-fhir/issues/4276 * Credit for #4291 Co-authored-by: James Agnew <jamesagnew@gmail.com>
This commit is contained in:
parent
6c4283e930
commit
61579aae7e
|
@ -309,6 +309,8 @@ public enum FhirVersionEnum {
|
||||||
return FhirVersionEnum.DSTU3;
|
return FhirVersionEnum.DSTU3;
|
||||||
case "R4":
|
case "R4":
|
||||||
return FhirVersionEnum.R4;
|
return FhirVersionEnum.R4;
|
||||||
|
case "R4B":
|
||||||
|
return FhirVersionEnum.R4B;
|
||||||
case "R5":
|
case "R5":
|
||||||
return FhirVersionEnum.R5;
|
return FhirVersionEnum.R5;
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,8 +19,11 @@ public class FhirVersionEnumTest {
|
||||||
assertEquals(FhirVersionEnum.R4, FhirVersionEnum.forVersionString("4.0.0"));
|
assertEquals(FhirVersionEnum.R4, FhirVersionEnum.forVersionString("4.0.0"));
|
||||||
assertEquals(FhirVersionEnum.R4, FhirVersionEnum.forVersionString("4.0.1"));
|
assertEquals(FhirVersionEnum.R4, FhirVersionEnum.forVersionString("4.0.1"));
|
||||||
assertEquals(FhirVersionEnum.R4, FhirVersionEnum.forVersionString("R4"));
|
assertEquals(FhirVersionEnum.R4, FhirVersionEnum.forVersionString("R4"));
|
||||||
|
assertEquals(FhirVersionEnum.R4B, FhirVersionEnum.forVersionString("R4B"));
|
||||||
|
assertEquals(FhirVersionEnum.R4B, FhirVersionEnum.forVersionString("4.3.0"));
|
||||||
|
|
||||||
assertEquals(FhirVersionEnum.R5, FhirVersionEnum.forVersionString("R5"));
|
assertEquals(FhirVersionEnum.R5, FhirVersionEnum.forVersionString("R5"));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
type: add
|
||||||
|
issue: 4291
|
||||||
|
title: "The NPM package installer did not support installing on R4B repositories. Thanks to Jens Kristian Villadsen
|
||||||
|
for the pull request!"
|
|
@ -128,6 +128,7 @@ public class PackageInstallerSvcImpl implements IPackageInstallerSvc {
|
||||||
public void initialize() {
|
public void initialize() {
|
||||||
switch (myFhirContext.getVersion().getVersion()) {
|
switch (myFhirContext.getVersion().getVersion()) {
|
||||||
case R5:
|
case R5:
|
||||||
|
case R4B:
|
||||||
case R4:
|
case R4:
|
||||||
case DSTU3:
|
case DSTU3:
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue