more cross version extensions
This commit is contained in:
parent
64aed90f1e
commit
cc983073cd
|
@ -5,3 +5,10 @@
|
||||||
## Other code changes
|
## Other code changes
|
||||||
|
|
||||||
* no changes
|
* no changes
|
||||||
|
|
||||||
|
more presenting extensions when rendering.
|
||||||
|
4f652bc
|
||||||
|
fix handling of xver extensions with choice sub-extensions
|
||||||
|
|
||||||
|
Get package id from 'package' field when 'npm-package' unavailable
|
||||||
|
|
|
@ -50,9 +50,6 @@ public class XVerExtensionManager {
|
||||||
return XVerExtensionStatus.Invalid;
|
return XVerExtensionStatus.Invalid;
|
||||||
}
|
}
|
||||||
String v = url.substring(20, 23);
|
String v = url.substring(20, 23);
|
||||||
if ("5.0".equals(v)) {
|
|
||||||
v = "4.6"; // for now
|
|
||||||
}
|
|
||||||
String e = url.substring(54);
|
String e = url.substring(54);
|
||||||
if (!lists.containsKey(v)) {
|
if (!lists.containsKey(v)) {
|
||||||
if (context.getBinaries().containsKey("xver-paths-"+v+".json")) {
|
if (context.getBinaries().containsKey("xver-paths-"+v+".json")) {
|
||||||
|
@ -86,9 +83,6 @@ public class XVerExtensionManager {
|
||||||
|
|
||||||
public StructureDefinition makeDefinition(String url) {
|
public StructureDefinition makeDefinition(String url) {
|
||||||
String verSource = url.substring(20, 23);
|
String verSource = url.substring(20, 23);
|
||||||
if ("5.0".equals(verSource)) {
|
|
||||||
verSource = "4.6"; // for now
|
|
||||||
}
|
|
||||||
String verTarget = VersionUtilities.getMajMin(context.getVersion());
|
String verTarget = VersionUtilities.getMajMin(context.getVersion());
|
||||||
String e = url.substring(54);
|
String e = url.substring(54);
|
||||||
JsonObject root = lists.get(verSource);
|
JsonObject root = lists.get(verSource);
|
||||||
|
|
|
@ -3,7 +3,7 @@ package org.hl7.fhir.utilities.npm;
|
||||||
public class CommonPackages {
|
public class CommonPackages {
|
||||||
|
|
||||||
public static final String ID_XVER = "hl7.fhir.xver-extensions";
|
public static final String ID_XVER = "hl7.fhir.xver-extensions";
|
||||||
public static final String VER_XVER = "0.0.8";
|
public static final String VER_XVER = "0.0.9";
|
||||||
|
|
||||||
public static final String ID_PUBPACK = "hl7.fhir.pubpack";
|
public static final String ID_PUBPACK = "hl7.fhir.pubpack";
|
||||||
public static final String VER_PUBPACK = "0.0.9";
|
public static final String VER_PUBPACK = "0.0.9";
|
||||||
|
|
Loading…
Reference in New Issue