clean up handling of xml_name
This commit is contained in:
parent
ca694588b6
commit
bb020dd739
|
@ -72,9 +72,9 @@ public class Property {
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getXmlName() {
|
public String getXmlName() {
|
||||||
if (definition.hasExtension("http://hl7.org/fhir/StructureDefinition/elementdefinition-xml-name")) {
|
if (definition.hasExtension(ToolingExtensions.EXT_XML_NAME)) {
|
||||||
return ToolingExtensions.readStringExtension(definition,
|
return ToolingExtensions.readStringExtension(definition,
|
||||||
"http://hl7.org/fhir/StructureDefinition/elementdefinition-xml-name");
|
ToolingExtensions.EXT_XML_NAME);
|
||||||
} else {
|
} else {
|
||||||
return getName();
|
return getName();
|
||||||
}
|
}
|
||||||
|
|
|
@ -145,7 +145,7 @@ public abstract class ParserBase {
|
||||||
|
|
||||||
protected StructureDefinition getDefinition(List<ValidationMessage> errors, int line, int col, String ns, String name) throws FHIRFormatError {
|
protected StructureDefinition getDefinition(List<ValidationMessage> errors, int line, int col, String ns, String name) throws FHIRFormatError {
|
||||||
if (logical != null) {
|
if (logical != null) {
|
||||||
String expectedName = ToolingExtensions.readStringExtension(logical, "http://hl7.org/fhir/StructureDefinition/elementdefinition-xml-name");
|
String expectedName = ToolingExtensions.readStringExtension(logical, ToolingExtensions.EXT_XML_NAME);
|
||||||
if (expectedName == null) {
|
if (expectedName == null) {
|
||||||
expectedName = logical.getType();
|
expectedName = logical.getType();
|
||||||
if (Utilities.isAbsoluteUrl(expectedName)) {
|
if (Utilities.isAbsoluteUrl(expectedName)) {
|
||||||
|
|
Loading…
Reference in New Issue