autofix slice names

This commit is contained in:
Grahame Grieve 2020-01-27 21:13:02 +11:00
parent 9e0e8fec3b
commit ab0f3f0996
2 changed files with 3 additions and 3 deletions

View File

@ -1310,7 +1310,7 @@ public class ValidationEngine implements IValidatorResourceFetcher {
StructureDefinition sd = (StructureDefinition) res;
StructureDefinition base = context.fetchResource(StructureDefinition.class, sd.getBaseDefinition());
new ProfileUtilities(context, null, null).generateSnapshot(base, sd, sd.getUrl(), null, sd.getName());
new ProfileUtilities(context, null, null).setAutoFixSliceNames(true).generateSnapshot(base, sd, sd.getUrl(), null, sd.getName());
return sd;
}
@ -1364,7 +1364,7 @@ public class ValidationEngine implements IValidatorResourceFetcher {
StructureDefinition sdb = context.fetchResource(StructureDefinition.class, sd.getBaseDefinition());
if (sdb != null) {
makeSnapshot(sdb);
new ProfileUtilities(context, null, null).generateSnapshot(sdb, sd, sd.getUrl(), null, sd.getName());
new ProfileUtilities(context, null, null).setAutoFixSliceNames(true).generateSnapshot(sdb, sd, sd.getUrl(), null, sd.getName());
}
}

View File

@ -17,7 +17,7 @@
<properties>
<hapi_fhir_version>4.1.0</hapi_fhir_version>
<validator_test_case_version>1.0.34-SNAPSHOT</validator_test_case_version>
<validator_test_case_version>1.0.35-SNAPSHOT</validator_test_case_version>
</properties>
<artifactId>org.hl7.fhir.core</artifactId>