Class ReferenceId
java.lang.Object
org.openehealth.ipf.commons.ihe.xds.core.metadata.Hl7v2Based<ca.uhn.hl7v2.model.v25.datatype.CX>
org.openehealth.ipf.commons.ihe.xds.core.metadata.ReferenceId
- All Implemented Interfaces:
Serializable
Represents a reference ID.
This class is derived from an HL7v2 CX data type ("CXi" in IHE ITI TF-3).
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 ca.uhn.hl7v2.model.Type> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.openehealth.ipf.commons.ihe.xds.core.metadata.Hl7v2Based
MESSAGE -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a reference ID.ReferenceId(ca.uhn.hl7v2.model.v25.datatype.CX cx) Constructs a reference ID.ReferenceId(String id, CXiAssigningAuthority assigningAuthority, String idTypeCode) Constructs a reference ID. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetId()inthashCode()static ReferenceIdParses an HL7v2 string into a ReferenceId object.voidsetAssigningAuthority(CXiAssigningAuthority assigningAuthority) voidvoidsetIdTypeCode(String idTypeCode) 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
-
Field Details
-
ID_TYPE_CODE_UNIQUE_ID
- See Also:
-
ID_TYPE_CODE_ACCESSION
- See Also:
-
ID_TYPE_CODE_REFERRAL
- See Also:
-
ID_TYPE_CODE_ORDER
- See Also:
-
ID_TYPE_WORKFLOW_INSTANCE_ID
- See Also:
-
ID_TYPE_ENCOUNTER_ID
- See Also:
-
ID_TYPE_STUDY_INSTANCE_ID
- See Also:
-
-
Constructor Details
-
ReferenceId
public ReferenceId()Constructs a reference ID. -
ReferenceId
public ReferenceId(ca.uhn.hl7v2.model.v25.datatype.CX cx) Constructs a reference ID. -
ReferenceId
Constructs a reference ID.- Parameters:
id- the value of the id (CX.1).assigningAuthority- the assigning authority (CX.4).idTypeCode- the ID type code (CX.5).
-
-
Method Details
-
parse
Parses an HL7v2 string into a ReferenceId object.- Parameters:
hl7String- HL7v2 representation of a ReferenceId object.- Returns:
- parsed ReferenceId object.
-
getId
- Returns:
- the value of the id (CX.1).
-
setId
- Parameters:
id- the value of the id (CX.1).
-
getAssigningAuthority
- Returns:
- the assigning authority (CX.4).
-
setAssigningAuthority
- Parameters:
assigningAuthority- the assigning authority (CX.4).
-
getIdTypeCode
- Returns:
- ID type code (CX.5).
-
setIdTypeCode
- Parameters:
idTypeCode- ID type code (CX.5).
-
equals
-
hashCode
public int hashCode() -
toString
-