This commit is contained in:
parent
58c0e216e8
commit
a9abd8f824
|
@ -4291,11 +4291,11 @@ public class FHIRPathEngine {
|
||||||
focus = sd.getSnapshot().getElementFirstRep();
|
focus = sd.getSnapshot().getElementFirstRep();
|
||||||
} else if ("extension".equals(expr.getName())) {
|
} else if ("extension".equals(expr.getName())) {
|
||||||
String targetUrl = expr.getParameters().get(0).getConstant().primitiveValue();
|
String targetUrl = expr.getParameters().get(0).getConstant().primitiveValue();
|
||||||
// targetUrl = targetUrl.substring(1,targetUrl.length()-1);
|
|
||||||
List<ElementDefinition> childDefinitions = ProfileUtilities.getChildMap(sd, element);
|
List<ElementDefinition> childDefinitions = ProfileUtilities.getChildMap(sd, element);
|
||||||
for (ElementDefinition t : childDefinitions) {
|
for (ElementDefinition t : childDefinitions) {
|
||||||
if (t.getPath().endsWith(".extension") && t.hasSliceName()) {
|
if (t.getPath().endsWith(".extension") && t.hasSliceName()) {
|
||||||
StructureDefinition exsd = worker.fetchResource(StructureDefinition.class, t.getType().get(0).getProfile().get(0).getValue());
|
StructureDefinition exsd = (t.getType() == null || t.getType().isEmpty()) ?
|
||||||
|
null : worker.fetchResource(StructureDefinition.class, t.getType().get(0).getProfile().get(0).getValue());
|
||||||
while (exsd!=null && !exsd.getBaseDefinition().equals("http://hl7.org/fhir/StructureDefinition/Extension"))
|
while (exsd!=null && !exsd.getBaseDefinition().equals("http://hl7.org/fhir/StructureDefinition/Extension"))
|
||||||
exsd = worker.fetchResource(StructureDefinition.class, exsd.getBaseDefinition());
|
exsd = worker.fetchResource(StructureDefinition.class, exsd.getBaseDefinition());
|
||||||
if (exsd.getUrl().equals(targetUrl)) {
|
if (exsd.getUrl().equals(targetUrl)) {
|
||||||
|
|
|
@ -5493,12 +5493,12 @@ public class FHIRPathEngine {
|
||||||
focus = sd.getSnapshot().getElementFirstRep();
|
focus = sd.getSnapshot().getElementFirstRep();
|
||||||
} else if ("extension".equals(expr.getName())) {
|
} else if ("extension".equals(expr.getName())) {
|
||||||
String targetUrl = expr.getParameters().get(0).getConstant().primitiveValue();
|
String targetUrl = expr.getParameters().get(0).getConstant().primitiveValue();
|
||||||
// targetUrl = targetUrl.substring(1,targetUrl.length()-1);
|
|
||||||
List<ElementDefinition> childDefinitions = profileUtilities.getChildMap(sd, element);
|
List<ElementDefinition> childDefinitions = profileUtilities.getChildMap(sd, element);
|
||||||
for (ElementDefinition t : childDefinitions) {
|
for (ElementDefinition t : childDefinitions) {
|
||||||
if (t.getPath().endsWith(".extension") && t.hasSliceName()) {
|
if (t.getPath().endsWith(".extension") && t.hasSliceName()) {
|
||||||
StructureDefinition exsd = worker.fetchResource(StructureDefinition.class, t.getType().get(0).getProfile().get(0).getValue());
|
StructureDefinition exsd = (t.getType() == null || t.getType().isEmpty()) ?
|
||||||
while (exsd!=null && !exsd.getBaseDefinition().equals("http://hl7.org/fhir/StructureDefinition/Extension")) {
|
null : worker.fetchResource(StructureDefinition.class, t.getType().get(0).getProfile().get(0).getValue());
|
||||||
|
while (exsd != null && !exsd.getBaseDefinition().equals("http://hl7.org/fhir/StructureDefinition/Extension")) {
|
||||||
exsd = worker.fetchResource(StructureDefinition.class, exsd.getBaseDefinition());
|
exsd = worker.fetchResource(StructureDefinition.class, exsd.getBaseDefinition());
|
||||||
}
|
}
|
||||||
if (exsd != null && exsd.getUrl().equals(targetUrl)) {
|
if (exsd != null && exsd.getUrl().equals(targetUrl)) {
|
||||||
|
|
Loading…
Reference in New Issue