Merge pull request #800 from hapifhir/gg-202204-xver
fix problem with non-new data types on xver extensions
This commit is contained in:
commit
f8d869172c
|
@ -146,6 +146,7 @@ public class XVerExtensionManager {
|
|||
public void populateTypes(JsonObject path, ElementDefinition val, String verSource, String verTarget) {
|
||||
for (JsonElement i : path.getAsJsonArray("types")) {
|
||||
String s = i.getAsString();
|
||||
if (!s.startsWith("!")) {
|
||||
if (s.contains("(")) {
|
||||
String t = s.substring(0, s.indexOf("("));
|
||||
TypeRefComponent tr = val.addType().setCode(translateDataType(verTarget, t));
|
||||
|
@ -168,6 +169,7 @@ public class XVerExtensionManager {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private boolean hasTargets(String dt) {
|
||||
return Utilities.existsInList(dt, "canonical", "Reference", "CodeableReference");
|
||||
|
|
Loading…
Reference in New Issue