Class RelatedPerson
- java.lang.Object
-
- org.hl7.fhir.Resource
-
- org.hl7.fhir.DomainResource
-
- org.hl7.fhir.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
If the element is present, it must have either a @value, an @id, or extensionsJava 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>telecom-
Fields inherited from class org.hl7.fhir.DomainResource
contained, extension, modifierExtension, text
-
Fields inherited from class org.hl7.fhir.Resource
id, implicitRules, language, meta
-
-
Constructor Summary
Constructors Constructor Description RelatedPerson()
-
Method Summary
All Methods Instance Methods Concrete Methods 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, setText
-
Methods inherited from class org.hl7.fhir.Resource
getId, getImplicitRules, getLanguage, getMeta, setId, setImplicitRules, setLanguage, setMeta
-
-
-
-
Field Detail
-
identifier
protected java.util.List<Identifier> identifier
-
patient
protected Reference patient
-
relationship
protected CodeableConcept relationship
-
name
protected HumanName name
-
telecom
protected java.util.List<ContactPoint> telecom
-
gender
protected AdministrativeGender gender
-
birthDate
protected Date birthDate
-
address
protected java.util.List<Address> address
-
photo
protected java.util.List<Attachment> photo
-
period
protected Period period
-
-
Method Detail
-
getIdentifier
public java.util.List<Identifier> 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
public Reference getPatient()
Gets the value of the patient property.- Returns:
- possible object is
Reference
-
setPatient
public void setPatient(Reference value)
Sets the value of the patient property.- Parameters:
value- allowed object isReference
-
getRelationship
public CodeableConcept getRelationship()
Gets the value of the relationship property.- Returns:
- possible object is
CodeableConcept
-
setRelationship
public void setRelationship(CodeableConcept value)
Sets the value of the relationship property.- Parameters:
value- allowed object isCodeableConcept
-
getName
public HumanName getName()
Gets the value of the name property.- Returns:
- possible object is
HumanName
-
setName
public void setName(HumanName value)
Sets the value of the name property.- Parameters:
value- allowed object isHumanName
-
getTelecom
public java.util.List<ContactPoint> 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
public AdministrativeGender getGender()
Gets the value of the gender property.- Returns:
- possible object is
AdministrativeGender
-
setGender
public void setGender(AdministrativeGender value)
Sets the value of the gender property.- Parameters:
value- allowed object isAdministrativeGender
-
getBirthDate
public Date getBirthDate()
Gets the value of the birthDate property.- Returns:
- possible object is
Date
-
setBirthDate
public void setBirthDate(Date value)
Sets the value of the birthDate property.- Parameters:
value- allowed object isDate
-
getAddress
public java.util.List<Address> 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
public java.util.List<Attachment> 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
public Period getPeriod()
Gets the value of the period property.- Returns:
- possible object is
Period
-
setPeriod
public void setPeriod(Period value)
Sets the value of the period property.- Parameters:
value- allowed object isPeriod
-
withIdentifier
public RelatedPerson withIdentifier(Identifier... values)
-
withIdentifier
public RelatedPerson withIdentifier(java.util.Collection<Identifier> values)
-
withPatient
public RelatedPerson withPatient(Reference value)
-
withRelationship
public RelatedPerson withRelationship(CodeableConcept value)
-
withName
public RelatedPerson withName(HumanName value)
-
withTelecom
public RelatedPerson withTelecom(ContactPoint... values)
-
withTelecom
public RelatedPerson withTelecom(java.util.Collection<ContactPoint> values)
-
withGender
public RelatedPerson withGender(AdministrativeGender value)
-
withBirthDate
public RelatedPerson withBirthDate(Date value)
-
withAddress
public RelatedPerson withAddress(Address... values)
-
withAddress
public RelatedPerson withAddress(java.util.Collection<Address> values)
-
withPhoto
public RelatedPerson withPhoto(Attachment... values)
-
withPhoto
public RelatedPerson withPhoto(java.util.Collection<Attachment> values)
-
withPeriod
public RelatedPerson withPeriod(Period value)
-
withText
public RelatedPerson withText(Narrative value)
- Overrides:
withTextin classDomainResource
-
withContained
public RelatedPerson withContained(ResourceContainer... values)
- Overrides:
withContainedin classDomainResource
-
withContained
public RelatedPerson withContained(java.util.Collection<ResourceContainer> values)
- Overrides:
withContainedin classDomainResource
-
withExtension
public RelatedPerson withExtension(Extension... values)
- Overrides:
withExtensionin classDomainResource
-
withExtension
public RelatedPerson withExtension(java.util.Collection<Extension> values)
- Overrides:
withExtensionin classDomainResource
-
withModifierExtension
public RelatedPerson withModifierExtension(Extension... values)
- Overrides:
withModifierExtensionin classDomainResource
-
withModifierExtension
public RelatedPerson withModifierExtension(java.util.Collection<Extension> values)
- Overrides:
withModifierExtensionin classDomainResource
-
withId
public RelatedPerson withId(Id value)
- Overrides:
withIdin classDomainResource
-
withMeta
public RelatedPerson withMeta(Meta value)
- Overrides:
withMetain classDomainResource
-
withImplicitRules
public RelatedPerson withImplicitRules(Uri value)
- Overrides:
withImplicitRulesin classDomainResource
-
withLanguage
public RelatedPerson withLanguage(Code value)
- 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
-
-