Class RelatedPerson
- All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals2,org.jvnet.jaxb2_commons.lang.HashCode2,org.jvnet.jaxb2_commons.lang.ToString2
public class RelatedPerson extends DomainResource implements org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
Java class for RelatedPerson complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="RelatedPerson">
<complexContent>
<extension base="{http://hl7.org/fhir}DomainResource">
<sequence>
<element name="identifier" type="{http://hl7.org/fhir}Identifier" maxOccurs="unbounded" minOccurs="0"/>
<element name="patient" type="{http://hl7.org/fhir}Reference"/>
<element name="relationship" type="{http://hl7.org/fhir}CodeableConcept" 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="gender" type="{http://hl7.org/fhir}AdministrativeGender" minOccurs="0"/>
<element name="birthDate" type="{http://hl7.org/fhir}date" minOccurs="0"/>
<element name="address" type="{http://hl7.org/fhir}Address" maxOccurs="unbounded" minOccurs="0"/>
<element name="photo" type="{http://hl7.org/fhir}Attachment" maxOccurs="unbounded" minOccurs="0"/>
<element name="period" type="{http://hl7.org/fhir}Period" minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<Address>addressprotected DatebirthDateprotected AdministrativeGendergenderprotected java.util.List<Identifier>identifierprotected HumanNamenameprotected Referencepatientprotected Periodperiodprotected java.util.List<Attachment>photoprotected CodeableConceptrelationshipprotected java.util.List<ContactPoint>telecomFields inherited from class org.hl7.fhir.DomainResource
contained, extension, modifierExtension, text -
Constructor Summary
Constructors Constructor Description RelatedPerson() -
Method Summary
Modifier and Type Method Description java.lang.StringBuilderappend(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)java.lang.StringBuilderappendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)booleanequals(java.lang.Object object)booleanequals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, java.lang.Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)java.util.List<Address>getAddress()Gets the value of the address property.DategetBirthDate()Gets the value of the birthDate property.AdministrativeGendergetGender()Gets the value of the gender property.java.util.List<Identifier>getIdentifier()Gets the value of the identifier property.HumanNamegetName()Gets the value of the name property.ReferencegetPatient()Gets the value of the patient property.PeriodgetPeriod()Gets the value of the period property.java.util.List<Attachment>getPhoto()Gets the value of the photo property.CodeableConceptgetRelationship()Gets the value of the relationship property.java.util.List<ContactPoint>getTelecom()Gets the value of the telecom property.inthashCode()inthashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)voidsetBirthDate(Date value)Sets the value of the birthDate property.voidsetGender(AdministrativeGender value)Sets the value of the gender property.voidsetName(HumanName value)Sets the value of the name property.voidsetPatient(Reference value)Sets the value of the patient property.voidsetPeriod(Period value)Sets the value of the period property.voidsetRelationship(CodeableConcept value)Sets the value of the relationship property.java.lang.StringtoString()RelatedPersonwithAddress(java.util.Collection<Address> values)RelatedPersonwithAddress(Address... values)RelatedPersonwithBirthDate(Date value)RelatedPersonwithContained(java.util.Collection<ResourceContainer> values)RelatedPersonwithContained(ResourceContainer... values)RelatedPersonwithExtension(java.util.Collection<Extension> values)RelatedPersonwithExtension(Extension... values)RelatedPersonwithGender(AdministrativeGender value)RelatedPersonwithId(Id value)RelatedPersonwithIdentifier(java.util.Collection<Identifier> values)RelatedPersonwithIdentifier(Identifier... values)RelatedPersonwithImplicitRules(Uri value)RelatedPersonwithLanguage(Code value)RelatedPersonwithMeta(Meta value)RelatedPersonwithModifierExtension(java.util.Collection<Extension> values)RelatedPersonwithModifierExtension(Extension... values)RelatedPersonwithName(HumanName value)RelatedPersonwithPatient(Reference value)RelatedPersonwithPeriod(Period value)RelatedPersonwithPhoto(java.util.Collection<Attachment> values)RelatedPersonwithPhoto(Attachment... values)RelatedPersonwithRelationship(CodeableConcept value)RelatedPersonwithTelecom(java.util.Collection<ContactPoint> values)RelatedPersonwithTelecom(ContactPoint... values)RelatedPersonwithText(Narrative value)Methods inherited from class org.hl7.fhir.DomainResource
getContained, getExtension, getModifierExtension, getText, setTextMethods inherited from class org.hl7.fhir.Resource
getId, getImplicitRules, getLanguage, getMeta, setId, setImplicitRules, setLanguage, setMeta
-
Field Details
-
Constructor Details
-
RelatedPerson
public RelatedPerson()
-
-
Method Details
-
getIdentifier
Gets the value of the identifier property.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
setmethod for the identifier property.For example, to add a new item, do as follows:
getIdentifier().add(newItem);Objects of the following type(s) are allowed in the list
Identifier -
getPatient
Gets the value of the patient property.- Returns:
- possible object is
Reference
-
setPatient
Sets the value of the patient property.- Parameters:
value- allowed object isReference
-
getRelationship
Gets the value of the relationship property.- Returns:
- possible object is
CodeableConcept
-
setRelationship
Sets the value of the relationship property.- Parameters:
value- allowed object isCodeableConcept
-
getName
Gets the value of the name property.- Returns:
- possible object is
HumanName
-
setName
Sets the value of the name property.- Parameters:
value- allowed object isHumanName
-
getTelecom
Gets the value of the telecom property.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
setmethod 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 -
getGender
Gets the value of the gender property.- Returns:
- possible object is
AdministrativeGender
-
setGender
Sets the value of the gender property.- Parameters:
value- allowed object isAdministrativeGender
-
getBirthDate
Gets the value of the birthDate property.- Returns:
- possible object is
Date
-
setBirthDate
Sets the value of the birthDate property.- Parameters:
value- allowed object isDate
-
getAddress
Gets the value of the address property.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
setmethod for the address property.For example, to add a new item, do as follows:
getAddress().add(newItem);Objects of the following type(s) are allowed in the list
Address -
getPhoto
Gets the value of the photo property.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
setmethod for the photo property.For example, to add a new item, do as follows:
getPhoto().add(newItem);Objects of the following type(s) are allowed in the list
Attachment -
getPeriod
Gets the value of the period property.- Returns:
- possible object is
Period
-
setPeriod
Sets the value of the period property.- Parameters:
value- allowed object isPeriod
-
withIdentifier
-
withIdentifier
-
withPatient
-
withRelationship
-
withName
-
withTelecom
-
withTelecom
-
withGender
-
withBirthDate
-
withAddress
-
withAddress
-
withPhoto
-
withPhoto
-
withPeriod
-
withText
- Overrides:
withTextin classDomainResource
-
withContained
- Overrides:
withContainedin classDomainResource
-
withContained
- Overrides:
withContainedin classDomainResource
-
withExtension
- Overrides:
withExtensionin classDomainResource
-
withExtension
- Overrides:
withExtensionin classDomainResource
-
withModifierExtension
- Overrides:
withModifierExtensionin classDomainResource
-
withModifierExtension
- Overrides:
withModifierExtensionin classDomainResource
-
withId
- Overrides:
withIdin classDomainResource
-
withMeta
- Overrides:
withMetain classDomainResource
-
withImplicitRules
- Overrides:
withImplicitRulesin classDomainResource
-
withLanguage
- Overrides:
withLanguagein classDomainResource
-
equals
public 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.EqualsStrategy2 strategy)- Specified by:
equalsin interfaceorg.jvnet.jaxb2_commons.lang.Equals2- Overrides:
equalsin classDomainResource
-
equals
public boolean equals(java.lang.Object object)- Overrides:
equalsin classDomainResource
-
hashCode
public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)- Specified by:
hashCodein interfaceorg.jvnet.jaxb2_commons.lang.HashCode2- Overrides:
hashCodein classDomainResource
-
hashCode
public int hashCode()- Overrides:
hashCodein classDomainResource
-
toString
public java.lang.String toString()- Overrides:
toStringin classDomainResource
-
append
public java.lang.StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)- Specified by:
appendin interfaceorg.jvnet.jaxb2_commons.lang.ToString2- Overrides:
appendin classDomainResource
-
appendFields
public java.lang.StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)- Specified by:
appendFieldsin interfaceorg.jvnet.jaxb2_commons.lang.ToString2- Overrides:
appendFieldsin classDomainResource
-