Fix for wrong reference to Any in cross version extensions

This commit is contained in:
Grahame Grieve 2020-11-27 10:37:02 +11:00
parent c4a396546a
commit d83d6e54a4
1 changed files with 5 additions and 1 deletions

View File

@ -135,7 +135,11 @@ public class XVerExtensionManager {
if (hasTargets(tr.getCode()) ) {
s = s.substring(t.length()+1);
for (String p : s.substring(0, s.length()-1).split("\\|")) {
tr.addTargetProfile("http://hl7.org/fhir/StructureDefinition/"+p);
if ("Any".equals(p)) {
tr.addTargetProfile("http://hl7.org/fhir/StructureDefinition/Resource");
} else {
tr.addTargetProfile("http://hl7.org/fhir/StructureDefinition/"+p);
}
}
}
} else {