get oid for canonical resource
This commit is contained in:
parent
d97e2d8534
commit
17adc621d3
|
@ -559,5 +559,14 @@ public abstract class CanonicalResource extends DomainResource {
|
||||||
}
|
}
|
||||||
// end addition
|
// 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