Fix handling of cross version extensions on choice types

This commit is contained in:
Grahame Grieve 2022-02-12 08:27:56 +11:00
parent fb1a08dca8
commit e4d886dfec
1 changed files with 6 additions and 0 deletions

View File

@ -67,6 +67,9 @@ public class XVerExtensionManager {
} }
JsonObject root = lists.get(v); JsonObject root = lists.get(v);
JsonObject path = root.getAsJsonObject(e); JsonObject path = root.getAsJsonObject(e);
if (path == null) {
path = root.getAsJsonObject(e+"[x]");
}
if (path == null) { if (path == null) {
return XVerExtensionStatus.Unknown; return XVerExtensionStatus.Unknown;
} }
@ -90,6 +93,9 @@ public class XVerExtensionManager {
String e = url.substring(54); String e = url.substring(54);
JsonObject root = lists.get(verSource); JsonObject root = lists.get(verSource);
JsonObject path = root.getAsJsonObject(e); JsonObject path = root.getAsJsonObject(e);
if (path == null) {
path = root.getAsJsonObject(e+"[x]");
}
StructureDefinition sd = new StructureDefinition(); StructureDefinition sd = new StructureDefinition();
sd.setUserData(XVER_EXT_MARKER, "true"); sd.setUserData(XVER_EXT_MARKER, "true");