Class Identifiable
java.lang.Object
org.openehealth.ipf.commons.ihe.xds.core.metadata.Hl7v2Based<CX>
org.openehealth.ipf.commons.ihe.xds.core.metadata.Identifiable
- All Implemented Interfaces:
Serializable
Represents a person ID (HL7v2 CX field where only CX.1, CX.4.2 and CX.4.3
are allowed), or an XDS "Coded String".
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
ConstructorDescriptionConstructs an identifiable.Identifiable
(CX cx) Constructs an identifiable.Identifiable
(String id) Constructs an identifiable.Identifiable
(String id, Oid assigningAuthorityOid) Constructs an identifiable, where the assigningAuthority is expected to an OidIdentifiable
(String id, AssigningAuthority assigningAuthority) Constructs an identifiable. -
Method Summary
Modifier and TypeMethodDescriptionboolean
getId()
int
hashCode()
void
setAssigningAuthority
(AssigningAuthority assigningAuthority) void
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
-
Identifiable
public Identifiable()Constructs an identifiable. -
Identifiable
Constructs an identifiable. -
Identifiable
Constructs an identifiable.- Parameters:
id
- person ID (CX.1) / Code.
-
Identifiable
Constructs an identifiable.- Parameters:
id
- person ID (CX.1) / Code.assigningAuthority
- assigning authority (CX.4) / Code System.
-
Identifiable
Constructs an identifiable, where the assigningAuthority is expected to an Oid- Parameters:
id
-assigningAuthorityOid
-
-
-
Method Details
-
getId
- Returns:
- person ID (CX.1) / Code.
-
setId
- Parameters:
id
- person ID (CX.1) / Code.
-
getAssigningAuthority
- Returns:
- assigning authority (CX.4) / Code System.
-
setAssigningAuthority
- Parameters:
assigningAuthority
- assigning authority (CX.4) / Code System.
-
equals
-
hashCode
public int hashCode() -
toString
-