don't raise needless and wrong exceptions about extension definitions when rendering

This commit is contained in:
Grahame Grieve 2024-06-13 12:12:42 +10:00
parent ebedced511
commit 2f2c7be2ed
1 changed files with 1 additions and 6 deletions

View File

@ -1076,11 +1076,6 @@ public class ProfileDrivenRenderer extends ResourceRenderer {
PropertyWrapper pe = map.get(p.getName()+"["+url+"]"); PropertyWrapper pe = map.get(p.getName()+"["+url+"]");
if (pe == null) { if (pe == null) {
if (ed == null) { if (ed == null) {
if (url != null && url.startsWith("http://hl7.org/fhir") && !url.startsWith("http://hl7.org/fhir/us")) {
if (!ProfileUtilities.isSuppressIgnorableExceptions()) {
throw new DefinitionException("unknown extension "+url);
}
}
// System.out.println("unknown extension "+url); // System.out.println("unknown extension "+url);
pe = new PropertyWrapperDirect(this.context, new Property(p.getName()+"["+url+"]", p.getTypeCode(), p.getDefinition(), p.getMinCardinality(), p.getMaxCardinality(), ex), null); pe = new PropertyWrapperDirect(this.context, new Property(p.getName()+"["+url+"]", p.getTypeCode(), p.getDefinition(), p.getMinCardinality(), p.getMaxCardinality(), ex), null);
} else { } else {