Workaround issue where R5 build wrongly adds ele-1 to base

This commit is contained in:
Grahame Grieve 2023-10-09 17:41:59 +11:00
parent f860af857d
commit f598ade02c
1 changed files with 7 additions and 0 deletions

View File

@ -107,6 +107,13 @@ public class R5ToR5Loader extends BaseLoaderR5 {
if (patchUrls) {
doPatchUrls(r5);
}
if (r5 instanceof StructureDefinition) {
StructureDefinition sd = (StructureDefinition) r5;
if ("http://hl7.org/fhir/StructureDefinition/Base".equals(sd.getUrl())) {
sd.getSnapshot().getElementFirstRep().getConstraint().clear();
}
}
return r5;
}