public interface IIdType
Concrete Implementations: This interface is often returned and/or accepted by methods in HAPI's API
where either IdDt (the HAPI structure ID type) or
org.hl7.fhir.instance.model.IdType (the RI structure ID type) will be used, depending on
which version of the strctures your application is using.
| Modifier and Type | Method and Description |
|---|---|
void |
applyTo(IBaseResource theResource) |
String |
getBaseUrl()
Returns the server base URL if this ID contains one.
|
String |
getIdPart()
Returns only the logical ID part of this ID.
|
Long |
getIdPartAsLong()
Returns the ID part of this ID (e.g.
|
String |
getResourceType() |
String |
getValue()
Returns the value of this ID.
|
String |
getVersionIdPart() |
Long |
getVersionIdPartAsLong()
Returns the version ID part of this ID (e.g.
|
boolean |
hasBaseUrl() |
boolean |
hasIdPart()
Returns
true if this ID contains an actual ID part. |
boolean |
hasResourceType() |
boolean |
hasVersionIdPart() |
boolean |
isAbsolute()
Returns
true if this ID contains an absolute URL (in other words, a URL starting with "http://" or "https://" |
boolean |
isEmpty() |
boolean |
isIdPartValid()
Returns
true if the ID part of this object is valid according to the FHIR rules for valid IDs. |
boolean |
isIdPartValidLong()
Returns
true if the ID part of this object contains
only numbers |
boolean |
isLocal()
Returns
true if the ID is a local reference (in other words, it begins with the '#' character) |
boolean |
isVersionIdPartValidLong()
Returns
true if the version ID part of this object contains
only numbers |
IIdType |
setValue(String theString) |
IIdType |
toUnqualified() |
IIdType |
toUnqualifiedVersionless() |
IIdType |
toVersionless() |
IIdType |
withResourceType(String theResName) |
IIdType |
withServerBase(String theServerBase,
String theResourceName) |
IIdType |
withVersion(String theVersion) |
void applyTo(IBaseResource theResource)
String getBaseUrl()
http://example.com/fhir/Patient/123/_history/55String getIdPart()
Long getIdPartAsLong()
Long.NumberFormatException - If the value can't be parsed as a longString getResourceType()
String getValue()
getIdPart() to get just the ID portion.getIdPart()String getVersionIdPart()
Long getVersionIdPartAsLong()
Long.NumberFormatException - If the value can't be parsed as a longboolean hasBaseUrl()
boolean hasIdPart()
true if this ID contains an actual ID part. For example, the ID part is
the '123' in the following ID: http://example.com/fhir/Patient/123/_history/55boolean hasResourceType()
boolean hasVersionIdPart()
boolean isAbsolute()
true if this ID contains an absolute URL (in other words, a URL starting with "http://" or "https://"boolean isEmpty()
boolean isIdPartValid()
true if the ID part of this object is valid according to the FHIR rules for valid IDs.
The FHIR specification states:
Any combination of upper or lower case ASCII letters ('A'..'Z', and 'a'..'z', numerals ('0'..'9'), '-' and '.', with a length limit of 64 characters. (This might be an integer, an un-prefixed OID, UUID or any other identifier pattern that meets these constraints.) regex: [A-Za-z0-9\-\.]{1,64}
boolean isIdPartValidLong()
true if the ID part of this object contains
only numbersboolean isLocal()
true if the ID is a local reference (in other words, it begins with the '#' character)boolean isVersionIdPartValidLong()
true if the version ID part of this object contains
only numbersIIdType toUnqualified()
IIdType toUnqualifiedVersionless()
IIdType toVersionless()
IIdType withResourceType(String theResName)
IIdType withServerBase(String theServerBase, String theResourceName)
IIdType withVersion(String theVersion)
Copyright © 2014–2018 University Health Network. All rights reserved.