Class Person
java.lang.Object
org.openehealth.ipf.commons.ihe.xds.core.metadata.Hl7v2Based<XCN>
org.openehealth.ipf.commons.ihe.xds.core.metadata.Person
- All Implemented Interfaces:
Serializable
Represents an identifiable person.
This class contains members from the HL7v2 XCN data type. The XDS profile
imposes some limitations on the XCN type. Most notably the XCN.9
component has the same restrictions as the CX.4 component (as described
in Identifiable
.
All 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
-
Method Summary
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
-
Person
public Person()Constructs a person. -
Person
Constructs a person. -
Person
Constructs a person.- Parameters:
id
- the id of the person (XCN.1 and XCN.9).name
- the name of the person (XCN.2.1, XCN.3, XCN.4, XCN.5, XCN.6, XCN.7).
-
-
Method Details
-
getId
- Returns:
- the id of the person (XCN.1 and XCN.9).
-
setId
- Parameters:
id
- the id of the person (XCN.1 and XCN.9).
-
getName
- Returns:
- the name of the person (XCN.2.1, XCN.3, XCN.4, XCN.5, XCN.6, XCN.7).
-
setName
- Parameters:
name
- the name of the person (XCN.2.1, XCN.3, XCN.4, XCN.5, XCN.6, XCN.7).
-
equals
-
hashCode
public int hashCode() -
toString
-