Hack workaround for R4 issue with ProcessPriority

This commit is contained in:
Grahame Grieve 2024-08-16 06:46:15 +08:00
parent fe2a8e6d11
commit 6e5d5cdf40
1 changed files with 12 additions and 0 deletions

View File

@ -62,6 +62,18 @@ public class StructureDefinitionHacker {
} }
} }
} }
if (VersionUtilities.isR4Ver(version) && "http://hl7.org/fhir/StructureDefinition/ExplanationOfBenefit".equals(sd.getUrl())) {
for (ElementDefinition ed : sd.getSnapshot().getElement()) {
if (ed.hasBinding() && "http://terminology.hl7.org/CodeSystem/processpriority".equals(ed.getBinding().getValueSet())) {
ed.getBinding().setValueSet("http://hl7.org/fhir/ValueSet/process-priority");
}
}
for (ElementDefinition ed : sd.getDifferential().getElement()) {
if (ed.hasBinding() && "http://terminology.hl7.org/CodeSystem/processpriority".equals(ed.getBinding().getValueSet())) {
ed.getBinding().setValueSet("http://hl7.org/fhir/ValueSet/process-priority");
}
}
}
if (sd.getUrl().startsWith("http://hl7.org/fhir/uv/subscriptions-backport")) { if (sd.getUrl().startsWith("http://hl7.org/fhir/uv/subscriptions-backport")) {
for (ElementDefinition ed : sd.getDifferential().getElement()) { for (ElementDefinition ed : sd.getDifferential().getElement()) {
fixMarkdownR4BURLs(ed); fixMarkdownR4BURLs(ed);