public class Person extends Hl7v2Based<ca.uhn.hl7v2.model.v25.datatype.XCN>
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.
MESSAGE
Constructor and Description |
---|
Person()
Constructs a person.
|
Person(Identifiable id,
Name name)
Constructs a person.
|
Person(ca.uhn.hl7v2.model.v25.datatype.XCN xcn)
Constructs a person.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Identifiable |
getId() |
Name |
getName() |
int |
hashCode() |
void |
setId(Identifiable id) |
void |
setName(Name name) |
String |
toString() |
getHapiObject, getIntegerValue, getLongValue, isEmpty, parse, rawRender, render, render, setAssigningAuthority, setValue, setValue
public Person()
public Person(ca.uhn.hl7v2.model.v25.datatype.XCN xcn)
public Person(Identifiable id, Name name)
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).public Identifiable getId()
public void setId(Identifiable id)
id
- the id of the person (XCN.1 and XCN.9).public Name getName()
public void setName(Name name)
name
- the name of the person (XCN.2.1, XCN.3, XCN.4, XCN.5, XCN.6, XCN.7).Copyright © 2018 Open eHealth Foundation. All rights reserved.