public class AssigningAuthority extends Hl7v2Based<org.openehealth.ipf.commons.ihe.xds.core.metadata.Hl7v2Based.Holder<ca.uhn.hl7v2.model.v25.datatype.HD>>
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.
MESSAGE
Constructor and Description |
---|
AssigningAuthority() |
AssigningAuthority(ca.uhn.hl7v2.model.v25.datatype.HD hd) |
AssigningAuthority(org.openehealth.ipf.commons.ihe.xds.core.metadata.Hl7v2Based.Holder<ca.uhn.hl7v2.model.v25.datatype.HD> hdHolder) |
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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getUniversalId() |
String |
getUniversalIdType() |
int |
hashCode() |
void |
setUniversalId(String universalId) |
void |
setUniversalIdType(String universalIdType) |
String |
toString() |
getHapiObject, getIntegerValue, getLongValue, isEmpty, parse, rawRender, render, render, setAssigningAuthority, setValue, setValue
public AssigningAuthority()
public AssigningAuthority(org.openehealth.ipf.commons.ihe.xds.core.metadata.Hl7v2Based.Holder<ca.uhn.hl7v2.model.v25.datatype.HD> hdHolder)
public AssigningAuthority(ca.uhn.hl7v2.model.v25.datatype.HD hd)
public AssigningAuthority(String universalId, String universalIdType)
universalId
- the universal ID (HD.2).universalIdType
- the type of the universal ID (HD.3).public AssigningAuthority(String universalId)
universalId
- the universal ID (HD.2).public String getUniversalId()
public void setUniversalId(String universalId)
universalId
- the universal ID (HD.2).public String getUniversalIdType()
public void setUniversalIdType(String universalIdType)
universalIdType
- the universal type ID (HD.3).Copyright © 2018 Open eHealth Foundation. All rights reserved.