get oid for canonical resource

This commit is contained in:
Grahame Grieve 2022-08-29 12:45:42 +10:00
parent d97e2d8534
commit 17adc621d3
1 changed files with 9 additions and 0 deletions

View File

@ -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;
}
} }