mirror of
https://github.com/hapifhir/org.hl7.fhir.core.git
synced 2025-03-09 14:31:17 +00:00
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…
x
Reference in New Issue
Block a user