From ab0f3f09965d55d98d0637efd2e579e61d759e00 Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Mon, 27 Jan 2020 21:13:02 +1100 Subject: [PATCH] autofix slice names --- .../java/org/hl7/fhir/r5/validation/ValidationEngine.java | 4 ++-- pom.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/r5/validation/ValidationEngine.java b/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/r5/validation/ValidationEngine.java index 38ab4646a..17ef385f0 100644 --- a/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/r5/validation/ValidationEngine.java +++ b/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/r5/validation/ValidationEngine.java @@ -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()); } } diff --git a/pom.xml b/pom.xml index 1fdb99239..cf51fe1c9 100644 --- a/pom.xml +++ b/pom.xml @@ -17,7 +17,7 @@ 4.1.0 - 1.0.34-SNAPSHOT + 1.0.35-SNAPSHOT org.hl7.fhir.core