fix split-package conflicts with org.hl7.fhir.*.model packages in FHIR (#5109)

Core projects
This commit is contained in:
William Denton 2023-07-20 11:54:43 -07:00 committed by GitHub
parent e02468b552
commit a0c8593ad0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 9 additions and 9 deletions

View File

@ -68,13 +68,13 @@ public class FhirDstu2_1 implements IFhirVersion {
@Override
public InputStream getFhirVersionPropertiesFile() {
InputStream str =
FhirDstu2_1.class.getResourceAsStream("/org/hl7/fhir/dstu2016may/model/fhirversion.properties");
FhirDstu2_1.class.getResourceAsStream("/org/hl7/fhir/dstu2016may/hapi/model/fhirversion.properties");
if (str == null) {
str = FhirDstu2_1.class.getResourceAsStream("/org/hl7/fhir/dstu2016may/model/fhirversion.properties");
str = FhirDstu2_1.class.getResourceAsStream("/org/hl7/fhir/dstu2016may/hapi/model/fhirversion.properties");
}
if (str == null) {
throw new ConfigurationException(Msg.code(467) + "Can not find model property file on classpath: "
+ "/ca/uhn/fhir/model/dstu2016may/fhirversion.properties");
+ "/org/hl7/fhir/dstu2016may/hapi/model/fhirversion.properties");
}
return str;
}

View File

@ -71,13 +71,13 @@ public class FhirDstu3 implements IFhirVersion {
@Override
public InputStream getFhirVersionPropertiesFile() {
InputStream str = FhirDstu3.class.getResourceAsStream("/org/hl7/fhir/dstu3/model/fhirversion.properties");
InputStream str = FhirDstu3.class.getResourceAsStream("/org/hl7/fhir/dstu3/hapi/model/fhirversion.properties");
if (str == null) {
str = FhirDstu3.class.getResourceAsStream("/org/hl7/fhir/dstu3/model/fhirversion.properties");
str = FhirDstu3.class.getResourceAsStream("/org/hl7/fhir/dstu3/hapi/model/fhirversion.properties");
}
if (str == null) {
throw new ConfigurationException(Msg.code(609) + "Can not find model property file on classpath: "
+ "/ca/uhn/fhir/model/dstu3/fhirversion.properties");
+ "/org/hl7/fhir/dstu3/hapi/model/fhirversion.properties");
}
return str;
}

View File

@ -68,7 +68,7 @@ public class FhirR4 implements IFhirVersion {
@Override
public InputStream getFhirVersionPropertiesFile() {
String path = "org/hl7/fhir/r4/model/fhirversion.properties";
String path = "org/hl7/fhir/r4/hapi/model/fhirversion.properties";
InputStream str = FhirR4.class.getResourceAsStream("/" + path);
if (str == null) {
str = FhirR4.class.getResourceAsStream(path);

View File

@ -79,7 +79,7 @@ public class FhirR4B implements IFhirVersion {
@Override
public InputStream getFhirVersionPropertiesFile() {
String path = "org/hl7/fhir/r4b/model/fhirversion.properties";
String path = "org/hl7/fhir/r4b/hapi/model/fhirversion.properties";
InputStream str = FhirR4B.class.getResourceAsStream("/" + path);
if (str == null) {
str = FhirR4B.class.getResourceAsStream(path);

View File

@ -79,7 +79,7 @@ public class FhirR5 implements IFhirVersion {
@Override
public InputStream getFhirVersionPropertiesFile() {
String path = "org/hl7/fhir/r5/model/fhirversion.properties";
String path = "org/hl7/fhir/r5/hapi/model/fhirversion.properties";
InputStream str = FhirR5.class.getResourceAsStream("/" + path);
if (str == null) {
str = FhirR5.class.getResourceAsStream(path);