Class AssigningAuthority
- java.lang.Object
-
- org.openehealth.ipf.commons.ihe.xds.core.metadata.Hl7v2Based<org.openehealth.ipf.commons.ihe.xds.core.metadata.Hl7v2Based.Holder<HD>>
-
- org.openehealth.ipf.commons.ihe.xds.core.metadata.AssigningAuthority
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CXiAssigningAuthority
public class AssigningAuthority extends Hl7v2Based<org.openehealth.ipf.commons.ihe.xds.core.metadata.Hl7v2Based.Holder<HD>>
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 constructorAssigningAuthority(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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.openehealth.ipf.commons.ihe.xds.core.metadata.Hl7v2Based
MESSAGE
-
-
Constructor Summary
Constructors Constructor Description AssigningAuthority()
AssigningAuthority(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(org.openehealth.ipf.commons.ihe.xds.core.metadata.Hl7v2Based.Holder<HD> hdHolder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getUniversalId()
String
getUniversalIdType()
int
hashCode()
void
setUniversalId(String universalId)
void
setUniversalIdType(String universalIdType)
String
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 Detail
-
AssigningAuthority
public AssigningAuthority()
-
AssigningAuthority
public AssigningAuthority(org.openehealth.ipf.commons.ihe.xds.core.metadata.Hl7v2Based.Holder<HD> hdHolder)
-
AssigningAuthority
public AssigningAuthority(HD hd)
-
AssigningAuthority
public AssigningAuthority(String universalId, String universalIdType)
Constructs an assigning authority.- Parameters:
universalId
- the universal ID (HD.2).universalIdType
- the type of the universal ID (HD.3).
-
AssigningAuthority
public AssigningAuthority(String universalId)
Constructs an assigning authority that complies with the rules of the XDS profile.- Parameters:
universalId
- the universal ID (HD.2).
-
AssigningAuthority
public AssigningAuthority(Oid universalId)
Constructs an assigning authority that complies with the rules of the XDS profile.- Parameters:
universalId
- the universal ID (HD.2).
-
-
Method Detail
-
getUniversalId
public String getUniversalId()
- Returns:
- the universal ID (HD.2).
-
setUniversalId
public void setUniversalId(String universalId)
- Parameters:
universalId
- the universal ID (HD.2).
-
getUniversalIdType
public String getUniversalIdType()
- Returns:
- the universal type ID (HD.3).
-
setUniversalIdType
public void setUniversalIdType(String universalIdType)
- Parameters:
universalIdType
- the universal type ID (HD.3).
-
-