fix fragile handling of URLs in XVerExtensionManager
This commit is contained in:
parent
4339299b27
commit
dd5f204797
|
@ -40,7 +40,15 @@ public class XVerExtensionManager {
|
||||||
this.context = context;
|
this.context = context;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isR5(String url) {
|
||||||
|
String v = url.substring(20, 23);
|
||||||
|
return "5.0".equals(v);
|
||||||
|
}
|
||||||
|
|
||||||
public XVerExtensionStatus status(String url) throws FHIRException {
|
public XVerExtensionStatus status(String url) throws FHIRException {
|
||||||
|
if (url.length() < 24) {
|
||||||
|
return XVerExtensionStatus.Invalid;
|
||||||
|
}
|
||||||
String v = url.substring(20, 23);
|
String v = url.substring(20, 23);
|
||||||
if ("5.0".equals(v)) {
|
if ("5.0".equals(v)) {
|
||||||
v = "4.6"; // for now
|
v = "4.6"; // for now
|
||||||
|
|
Loading…
Reference in New Issue