get oid for canonical resource
This commit is contained in:
parent
d97e2d8534
commit
17adc621d3
org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model
|
@ -559,5 +559,14 @@ public abstract class CanonicalResource extends DomainResource {
|
|||
}
|
||||
// end addition
|
||||
|
||||
public String oid() {
|
||||
for (Identifier id : getIdentifier()) {
|
||||
if (id.getValue().startsWith("urn:oid:")) {
|
||||
return id.getValue().substring(8);
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue