canonical helper methods
This commit is contained in:
parent
30ed1bf615
commit
ef401d0fe8
|
@ -77,6 +77,16 @@ public class CanonicalType extends UriType {
|
|||
public String fhirType() {
|
||||
return "canonical";
|
||||
}
|
||||
|
||||
public String baseUrl() {
|
||||
var s = primitiveValue();
|
||||
return s == null || !s.contains("|") ? s : s.substring(0, s.indexOf("|"));
|
||||
}
|
||||
|
||||
public String version() {
|
||||
var s = primitiveValue();
|
||||
return s == null || !s.contains("|") ? null : s.substring(s.indexOf("|")+1);
|
||||
}
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue