public class PatientContact extends BackboneElement implements org.jvnet.jaxb2_commons.lang.Equals, org.jvnet.jaxb2_commons.lang.HashCode, org.jvnet.jaxb2_commons.lang.ToString
Java class for Patient.Contact complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Patient.Contact">
<complexContent>
<extension base="{http://hl7.org/fhir}BackboneElement">
<sequence>
<element name="relationship" type="{http://hl7.org/fhir}CodeableConcept" maxOccurs="unbounded" minOccurs="0"/>
<element name="name" type="{http://hl7.org/fhir}HumanName" minOccurs="0"/>
<element name="telecom" type="{http://hl7.org/fhir}ContactPoint" maxOccurs="unbounded" minOccurs="0"/>
<element name="address" type="{http://hl7.org/fhir}Address" minOccurs="0"/>
<element name="gender" type="{http://hl7.org/fhir}AdministrativeGender" minOccurs="0"/>
<element name="organization" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
<element name="period" type="{http://hl7.org/fhir}Period" minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected Address |
address |
protected AdministrativeGender |
gender |
protected HumanName |
name |
protected Reference |
organization |
protected Period |
period |
protected java.util.List<CodeableConcept> |
relationship |
protected java.util.List<ContactPoint> |
telecom |
modifierExtension| Constructor and Description |
|---|
PatientContact() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.StringBuilder |
append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
java.lang.StringBuilder buffer,
org.jvnet.jaxb2_commons.lang.ToStringStrategy strategy) |
java.lang.StringBuilder |
appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
java.lang.StringBuilder buffer,
org.jvnet.jaxb2_commons.lang.ToStringStrategy strategy) |
boolean |
equals(java.lang.Object object) |
boolean |
equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator,
org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator,
java.lang.Object object,
org.jvnet.jaxb2_commons.lang.EqualsStrategy strategy) |
Address |
getAddress()
Gets the value of the address property.
|
AdministrativeGender |
getGender()
Gets the value of the gender property.
|
HumanName |
getName()
Gets the value of the name property.
|
Reference |
getOrganization()
Gets the value of the organization property.
|
Period |
getPeriod()
Gets the value of the period property.
|
java.util.List<CodeableConcept> |
getRelationship()
Gets the value of the relationship property.
|
java.util.List<ContactPoint> |
getTelecom()
Gets the value of the telecom property.
|
int |
hashCode() |
int |
hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy) |
void |
setAddress(Address value)
Sets the value of the address property.
|
void |
setGender(AdministrativeGender value)
Sets the value of the gender property.
|
void |
setName(HumanName value)
Sets the value of the name property.
|
void |
setOrganization(Reference value)
Sets the value of the organization property.
|
void |
setPeriod(Period value)
Sets the value of the period property.
|
java.lang.String |
toString() |
PatientContact |
withAddress(Address value) |
PatientContact |
withExtension(java.util.Collection<Extension> values) |
PatientContact |
withExtension(Extension... values) |
PatientContact |
withGender(AdministrativeGender value) |
PatientContact |
withId(java.lang.String value) |
PatientContact |
withModifierExtension(java.util.Collection<Extension> values) |
PatientContact |
withModifierExtension(Extension... values) |
PatientContact |
withName(HumanName value) |
PatientContact |
withOrganization(Reference value) |
PatientContact |
withPeriod(Period value) |
PatientContact |
withRelationship(CodeableConcept... values) |
PatientContact |
withRelationship(java.util.Collection<CodeableConcept> values) |
PatientContact |
withTelecom(java.util.Collection<ContactPoint> values) |
PatientContact |
withTelecom(ContactPoint... values) |
getModifierExtensiongetExtension, getId, setIdprotected java.util.List<CodeableConcept> relationship
protected HumanName name
protected java.util.List<ContactPoint> telecom
protected Address address
protected AdministrativeGender gender
protected Reference organization
protected Period period
public java.util.List<CodeableConcept> getRelationship()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the relationship property.
For example, to add a new item, do as follows:
getRelationship().add(newItem);
Objects of the following type(s) are allowed in the list
CodeableConcept
public HumanName getName()
HumanNamepublic void setName(HumanName value)
value - allowed object is
HumanNamepublic java.util.List<ContactPoint> getTelecom()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the telecom property.
For example, to add a new item, do as follows:
getTelecom().add(newItem);
Objects of the following type(s) are allowed in the list
ContactPoint
public Address getAddress()
Addresspublic void setAddress(Address value)
value - allowed object is
Addresspublic AdministrativeGender getGender()
AdministrativeGenderpublic void setGender(AdministrativeGender value)
value - allowed object is
AdministrativeGenderpublic Reference getOrganization()
Referencepublic void setOrganization(Reference value)
value - allowed object is
Referencepublic Period getPeriod()
Periodpublic void setPeriod(Period value)
value - allowed object is
Periodpublic PatientContact withRelationship(CodeableConcept... values)
public PatientContact withRelationship(java.util.Collection<CodeableConcept> values)
public PatientContact withName(HumanName value)
public PatientContact withTelecom(ContactPoint... values)
public PatientContact withTelecom(java.util.Collection<ContactPoint> values)
public PatientContact withAddress(Address value)
public PatientContact withGender(AdministrativeGender value)
public PatientContact withOrganization(Reference value)
public PatientContact withPeriod(Period value)
public PatientContact withModifierExtension(Extension... values)
withModifierExtension in class BackboneElementpublic PatientContact withModifierExtension(java.util.Collection<Extension> values)
withModifierExtension in class BackboneElementpublic PatientContact withExtension(Extension... values)
withExtension in class BackboneElementpublic PatientContact withExtension(java.util.Collection<Extension> values)
withExtension in class BackboneElementpublic PatientContact withId(java.lang.String value)
withId in class BackboneElementpublic boolean equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator,
org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator,
java.lang.Object object,
org.jvnet.jaxb2_commons.lang.EqualsStrategy strategy)
equals in interface org.jvnet.jaxb2_commons.lang.Equalsequals in class BackboneElementpublic boolean equals(java.lang.Object object)
equals in class BackboneElementpublic int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy)
hashCode in interface org.jvnet.jaxb2_commons.lang.HashCodehashCode in class BackboneElementpublic int hashCode()
hashCode in class BackboneElementpublic java.lang.String toString()
toString in class BackboneElementpublic java.lang.StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
java.lang.StringBuilder buffer,
org.jvnet.jaxb2_commons.lang.ToStringStrategy strategy)
append in interface org.jvnet.jaxb2_commons.lang.ToStringappend in class BackboneElementpublic java.lang.StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
java.lang.StringBuilder buffer,
org.jvnet.jaxb2_commons.lang.ToStringStrategy strategy)
appendFields in interface org.jvnet.jaxb2_commons.lang.ToStringappendFields in class BackboneElement