Class ReferenceId
java.lang.Object
org.openehealth.ipf.commons.ihe.xds.core.metadata.Hl7v2Based<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 Type>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from class org.openehealth.ipf.commons.ihe.xds.core.metadata.Hl7v2Based
MESSAGE
-
Constructor Summary
ConstructorDescriptionConstructs a reference ID.ReferenceId
(CX cx) Constructs a reference ID.ReferenceId
(String id, CXiAssigningAuthority assigningAuthority, String idTypeCode) Constructs a reference ID. -
Method Summary
Modifier and TypeMethodDescriptionboolean
getId()
int
hashCode()
void
setAssigningAuthority
(CXiAssigningAuthority assigningAuthority) void
void
setIdTypeCode
(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
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
-
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
-