mirror of
https://github.com/hapifhir/org.hl7.fhir.core.git
synced 2025-02-08 13:54:44 +00:00
fix problem parsing logical model cda fragments
This commit is contained in:
parent
104973a1d9
commit
a22923f193
@ -143,9 +143,12 @@ public abstract class ParserBase {
|
||||
|
||||
protected StructureDefinition getDefinition(List<ValidationMessage> errors, int line, int col, String ns, String name) throws FHIRFormatError {
|
||||
if (logical != null) {
|
||||
String expectedName = ToolingExtensions.readStringExtension(logical, "http://hl7.org/fhir/StructureDefinition/elementdefinition-name");
|
||||
String expectedName = ToolingExtensions.readStringExtension(logical, "http://hl7.org/fhir/StructureDefinition/elementdefinition-xml-name");
|
||||
if (expectedName == null) {
|
||||
expectedName = logical.getType();
|
||||
if (Utilities.isAbsoluteUrl(expectedName)) {
|
||||
expectedName = expectedName.substring(expectedName.lastIndexOf("/")+1);
|
||||
}
|
||||
}
|
||||
String expectedNamespace = ToolingExtensions.readStringExtension(logical, "http://hl7.org/fhir/StructureDefinition/elementdefinition-namespace");
|
||||
if (matchesNamespace(expectedNamespace, ns) && matchesName(expectedName, name)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user