Class AssigningAuthority
java.lang.Object
org.openehealth.ipf.commons.ihe.xds.core.metadata.Hl7v2Based<Hl7v2Based.Holder<HD>>
org.openehealth.ipf.commons.ihe.xds.core.metadata.AssigningAuthority
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CXiAssigningAuthority
Represents an authority that assigns IDs.
This class is based on the HL7 HD data type.
Note that most assigning authorities used in XSD only allow the definition of the
universal ID. The ID type must be ISO
and the namespace ID has to be empty.
The constructor AssigningAuthority(String)
can be used to create such
authorities.
All members of this class are allowed to be null
. When transforming
to HL7 this indicates that the values are empty. Trailing empty values are
removed from the HL7 string.
- Author:
- Jens Riemschneider, Dmytro Rud
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.openehealth.ipf.commons.ihe.xds.core.metadata.Hl7v2Based
Hl7v2Based.Holder<T extends Type>
-
Field Summary
Fields inherited from class org.openehealth.ipf.commons.ihe.xds.core.metadata.Hl7v2Based
MESSAGE
-
Constructor Summary
ConstructorDescriptionAssigningAuthority
(HD hd) AssigningAuthority
(String universalId) Constructs an assigning authority that complies with the rules of the XDS profile.AssigningAuthority
(String universalId, String universalIdType) Constructs an assigning authority.AssigningAuthority
(Oid universalId) Constructs an assigning authority that complies with the rules of the XDS profile.AssigningAuthority
(Hl7v2Based.Holder<HD> hdHolder) -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
void
setUniversalId
(String universalId) void
setUniversalIdType
(String universalIdType) toString()
Methods inherited from class org.openehealth.ipf.commons.ihe.xds.core.metadata.Hl7v2Based
getHapiObject, getIntegerValue, getLongValue, isEmpty, parse, rawRender, render, render, setAssigningAuthority, setValue, setValue
-
Constructor Details
-
AssigningAuthority
public AssigningAuthority() -
AssigningAuthority
-
AssigningAuthority
-
AssigningAuthority
Constructs an assigning authority.- Parameters:
universalId
- the universal ID (HD.2).universalIdType
- the type of the universal ID (HD.3).
-
AssigningAuthority
Constructs an assigning authority that complies with the rules of the XDS profile.- Parameters:
universalId
- the universal ID (HD.2).
-
AssigningAuthority
Constructs an assigning authority that complies with the rules of the XDS profile.- Parameters:
universalId
- the universal ID (HD.2).
-
-
Method Details
-
getUniversalId
- Returns:
- the universal ID (HD.2).
-
setUniversalId
- Parameters:
universalId
- the universal ID (HD.2).
-
getUniversalIdType
- Returns:
- the universal type ID (HD.3).
-
setUniversalIdType
- Parameters:
universalIdType
- the universal type ID (HD.3).
-
equals
-
hashCode
public int hashCode() -
toString
-