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
public class Person extends Hl7v2Based<XCN>
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 benull
. 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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.openehealth.ipf.commons.ihe.xds.core.metadata.Hl7v2Based
MESSAGE
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Identifiable
getId()
Name
getName()
int
hashCode()
void
setId(Identifiable id)
void
setName(Name name)
String
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 Detail
-
Person
public Person()
Constructs a person.
-
Person
public Person(XCN xcn)
Constructs a person.
-
Person
public Person(Identifiable id, Name name)
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 Detail
-
getId
public Identifiable getId()
- Returns:
- the id of the person (XCN.1 and XCN.9).
-
setId
public void setId(Identifiable id)
- Parameters:
id
- the id of the person (XCN.1 and XCN.9).
-
getName
public Name getName()
- Returns:
- the name of the person (XCN.2.1, XCN.3, XCN.4, XCN.5, XCN.6, XCN.7).
-
setName
public void setName(Name name)
- Parameters:
name
- the name of the person (XCN.2.1, XCN.3, XCN.4, XCN.5, XCN.6, XCN.7).
-
-