Class Identifiable
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.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 ca.uhn.hl7v2.model.Type> -
Field Summary
Fields inherited from class org.openehealth.ipf.commons.ihe.xds.core.metadata.Hl7v2Based
MESSAGE -
Constructor Summary
ConstructorsConstructorDescriptionConstructs an identifiable.Identifiable(ca.uhn.hl7v2.model.v25.datatype.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 TypeMethodDescriptionbooleangetId()inthashCode()static IdentifiableParses an HL7v2 string into an Identifiable object.voidsetAssigningAuthority(AssigningAuthority assigningAuthority) voidtoString()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
public Identifiable(ca.uhn.hl7v2.model.v25.datatype.CX cx) 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- identifierassigningAuthorityOid- oid of the identifier authority
-
-
Method Details
-
parse
Parses an HL7v2 string into an Identifiable object.- Parameters:
hl7String- HL7v2 representation of an Identifiable object.- Returns:
- parsed Identifiable object.
-
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
-