Class Person
- java.lang.Object
-
- org.hl7.fhir.Resource
-
- org.hl7.fhir.DomainResource
-
- org.hl7.fhir.Person
-
- All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals2,org.jvnet.jaxb2_commons.lang.HashCode2,org.jvnet.jaxb2_commons.lang.ToString2
public class Person 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 Person complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Person"> <complexContent> <extension base="{http://hl7.org/fhir}DomainResource"> <sequence> <element name="identifier" type="{http://hl7.org/fhir}Identifier" maxOccurs="unbounded" minOccurs="0"/> <element name="name" type="{http://hl7.org/fhir}HumanName" maxOccurs="unbounded" 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" minOccurs="0"/> <element name="managingOrganization" type="{http://hl7.org/fhir}Reference" minOccurs="0"/> <element name="active" type="{http://hl7.org/fhir}boolean" minOccurs="0"/> <element name="link" type="{http://hl7.org/fhir}Person.Link" maxOccurs="unbounded" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected Booleanactiveprotected java.util.List<Address>addressprotected DatebirthDateprotected AdministrativeGendergenderprotected java.util.List<Identifier>identifierprotected java.util.List<PersonLink>linkprotected ReferencemanagingOrganizationprotected java.util.List<HumanName>nameprotected Attachmentphotoprotected 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 Person()
-
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)BooleangetActive()Gets the value of the active property.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.java.util.List<PersonLink>getLink()Gets the value of the link property.ReferencegetManagingOrganization()Gets the value of the managingOrganization property.java.util.List<HumanName>getName()Gets the value of the name property.AttachmentgetPhoto()Gets the value of the photo 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)voidsetActive(Boolean value)Sets the value of the active property.voidsetBirthDate(Date value)Sets the value of the birthDate property.voidsetGender(AdministrativeGender value)Sets the value of the gender property.voidsetManagingOrganization(Reference value)Sets the value of the managingOrganization property.voidsetPhoto(Attachment value)Sets the value of the photo property.java.lang.StringtoString()PersonwithActive(Boolean value)PersonwithAddress(java.util.Collection<Address> values)PersonwithAddress(Address... values)PersonwithBirthDate(Date value)PersonwithContained(java.util.Collection<ResourceContainer> values)PersonwithContained(ResourceContainer... values)PersonwithExtension(java.util.Collection<Extension> values)PersonwithExtension(Extension... values)PersonwithGender(AdministrativeGender value)PersonwithId(Id value)PersonwithIdentifier(java.util.Collection<Identifier> values)PersonwithIdentifier(Identifier... values)PersonwithImplicitRules(Uri value)PersonwithLanguage(Code value)PersonwithLink(java.util.Collection<PersonLink> values)PersonwithLink(PersonLink... values)PersonwithManagingOrganization(Reference value)PersonwithMeta(Meta value)PersonwithModifierExtension(java.util.Collection<Extension> values)PersonwithModifierExtension(Extension... values)PersonwithName(java.util.Collection<HumanName> values)PersonwithName(HumanName... values)PersonwithPhoto(Attachment value)PersonwithTelecom(java.util.Collection<ContactPoint> values)PersonwithTelecom(ContactPoint... values)PersonwithText(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
-
name
protected java.util.List<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 Attachment photo
-
managingOrganization
protected Reference managingOrganization
-
active
protected Boolean active
-
link
protected java.util.List<PersonLink> link
-
-
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
-
getName
public java.util.List<HumanName> getName()
Gets the value of the name 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 name property.For example, to add a new item, do as follows:
getName().add(newItem);Objects of the following type(s) are allowed in the list
HumanName
-
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 Attachment getPhoto()
Gets the value of the photo property.- Returns:
- possible object is
Attachment
-
setPhoto
public void setPhoto(Attachment value)
Sets the value of the photo property.- Parameters:
value- allowed object isAttachment
-
getManagingOrganization
public Reference getManagingOrganization()
Gets the value of the managingOrganization property.- Returns:
- possible object is
Reference
-
setManagingOrganization
public void setManagingOrganization(Reference value)
Sets the value of the managingOrganization property.- Parameters:
value- allowed object isReference
-
getActive
public Boolean getActive()
Gets the value of the active property.- Returns:
- possible object is
Boolean
-
setActive
public void setActive(Boolean value)
Sets the value of the active property.- Parameters:
value- allowed object isBoolean
-
getLink
public java.util.List<PersonLink> getLink()
Gets the value of the link 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 link property.For example, to add a new item, do as follows:
getLink().add(newItem);Objects of the following type(s) are allowed in the list
PersonLink
-
withIdentifier
public Person withIdentifier(Identifier... values)
-
withIdentifier
public Person withIdentifier(java.util.Collection<Identifier> values)
-
withTelecom
public Person withTelecom(ContactPoint... values)
-
withTelecom
public Person withTelecom(java.util.Collection<ContactPoint> values)
-
withGender
public Person withGender(AdministrativeGender value)
-
withPhoto
public Person withPhoto(Attachment value)
-
withLink
public Person withLink(PersonLink... values)
-
withLink
public Person withLink(java.util.Collection<PersonLink> values)
-
withText
public Person withText(Narrative value)
- Overrides:
withTextin classDomainResource
-
withContained
public Person withContained(ResourceContainer... values)
- Overrides:
withContainedin classDomainResource
-
withContained
public Person withContained(java.util.Collection<ResourceContainer> values)
- Overrides:
withContainedin classDomainResource
-
withExtension
public Person withExtension(Extension... values)
- Overrides:
withExtensionin classDomainResource
-
withExtension
public Person withExtension(java.util.Collection<Extension> values)
- Overrides:
withExtensionin classDomainResource
-
withModifierExtension
public Person withModifierExtension(Extension... values)
- Overrides:
withModifierExtensionin classDomainResource
-
withModifierExtension
public Person withModifierExtension(java.util.Collection<Extension> values)
- Overrides:
withModifierExtensionin classDomainResource
-
withId
public Person withId(Id value)
- Overrides:
withIdin classDomainResource
-
withMeta
public Person withMeta(Meta value)
- Overrides:
withMetain classDomainResource
-
withImplicitRules
public Person withImplicitRules(Uri value)
- Overrides:
withImplicitRulesin classDomainResource
-
withLanguage
public Person 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
-
-