Class Patient
- java.lang.Object
-
- org.hl7.fhir.Resource
-
- org.hl7.fhir.DomainResource
-
- org.hl7.fhir.Patient
-
- All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals2,org.jvnet.jaxb2_commons.lang.HashCode2,org.jvnet.jaxb2_commons.lang.ToString2
public class Patient 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 Patient complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Patient"> <complexContent> <extension base="{http://hl7.org/fhir}DomainResource"> <sequence> <element name="identifier" type="{http://hl7.org/fhir}Identifier" maxOccurs="unbounded" minOccurs="0"/> <element name="active" type="{http://hl7.org/fhir}boolean" 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"/> <choice minOccurs="0"> <element name="deceasedBoolean" type="{http://hl7.org/fhir}boolean"/> <element name="deceasedDateTime" type="{http://hl7.org/fhir}dateTime"/> </choice> <element name="address" type="{http://hl7.org/fhir}Address" maxOccurs="unbounded" minOccurs="0"/> <element name="maritalStatus" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/> <choice minOccurs="0"> <element name="multipleBirthBoolean" type="{http://hl7.org/fhir}boolean"/> <element name="multipleBirthInteger" type="{http://hl7.org/fhir}integer"/> </choice> <element name="photo" type="{http://hl7.org/fhir}Attachment" maxOccurs="unbounded" minOccurs="0"/> <element name="contact" type="{http://hl7.org/fhir}Patient.Contact" maxOccurs="unbounded" minOccurs="0"/> <element name="animal" type="{http://hl7.org/fhir}Patient.Animal" minOccurs="0"/> <element name="communication" type="{http://hl7.org/fhir}Patient.Communication" maxOccurs="unbounded" minOccurs="0"/> <element name="careProvider" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/> <element name="managingOrganization" type="{http://hl7.org/fhir}Reference" minOccurs="0"/> <element name="link" type="{http://hl7.org/fhir}Patient.Link" maxOccurs="unbounded" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected Booleanactiveprotected java.util.List<Address>addressprotected PatientAnimalanimalprotected DatebirthDateprotected java.util.List<Reference>careProviderprotected java.util.List<PatientCommunication>communicationprotected java.util.List<PatientContact>contactprotected BooleandeceasedBooleanprotected DateTimedeceasedDateTimeprotected AdministrativeGendergenderprotected java.util.List<Identifier>identifierprotected java.util.List<PatientLink>linkprotected ReferencemanagingOrganizationprotected CodeableConceptmaritalStatusprotected BooleanmultipleBirthBooleanprotected IntegermultipleBirthIntegerprotected java.util.List<HumanName>nameprotected java.util.List<Attachment>photoprotected 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 Patient()
-
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.PatientAnimalgetAnimal()Gets the value of the animal property.DategetBirthDate()Gets the value of the birthDate property.java.util.List<Reference>getCareProvider()Gets the value of the careProvider property.java.util.List<PatientCommunication>getCommunication()Gets the value of the communication property.java.util.List<PatientContact>getContact()Gets the value of the contact property.BooleangetDeceasedBoolean()Gets the value of the deceasedBoolean property.DateTimegetDeceasedDateTime()Gets the value of the deceasedDateTime property.AdministrativeGendergetGender()Gets the value of the gender property.java.util.List<Identifier>getIdentifier()Gets the value of the identifier property.java.util.List<PatientLink>getLink()Gets the value of the link property.ReferencegetManagingOrganization()Gets the value of the managingOrganization property.CodeableConceptgetMaritalStatus()Gets the value of the maritalStatus property.BooleangetMultipleBirthBoolean()Gets the value of the multipleBirthBoolean property.IntegergetMultipleBirthInteger()Gets the value of the multipleBirthInteger property.java.util.List<HumanName>getName()Gets the value of the name property.java.util.List<Attachment>getPhoto()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.voidsetAnimal(PatientAnimal value)Sets the value of the animal property.voidsetBirthDate(Date value)Sets the value of the birthDate property.voidsetDeceasedBoolean(Boolean value)Sets the value of the deceasedBoolean property.voidsetDeceasedDateTime(DateTime value)Sets the value of the deceasedDateTime property.voidsetGender(AdministrativeGender value)Sets the value of the gender property.voidsetManagingOrganization(Reference value)Sets the value of the managingOrganization property.voidsetMaritalStatus(CodeableConcept value)Sets the value of the maritalStatus property.voidsetMultipleBirthBoolean(Boolean value)Sets the value of the multipleBirthBoolean property.voidsetMultipleBirthInteger(Integer value)Sets the value of the multipleBirthInteger property.java.lang.StringtoString()PatientwithActive(Boolean value)PatientwithAddress(java.util.Collection<Address> values)PatientwithAddress(Address... values)PatientwithAnimal(PatientAnimal value)PatientwithBirthDate(Date value)PatientwithCareProvider(java.util.Collection<Reference> values)PatientwithCareProvider(Reference... values)PatientwithCommunication(java.util.Collection<PatientCommunication> values)PatientwithCommunication(PatientCommunication... values)PatientwithContact(java.util.Collection<PatientContact> values)PatientwithContact(PatientContact... values)PatientwithContained(java.util.Collection<ResourceContainer> values)PatientwithContained(ResourceContainer... values)PatientwithDeceasedBoolean(Boolean value)PatientwithDeceasedDateTime(DateTime value)PatientwithExtension(java.util.Collection<Extension> values)PatientwithExtension(Extension... values)PatientwithGender(AdministrativeGender value)PatientwithId(Id value)PatientwithIdentifier(java.util.Collection<Identifier> values)PatientwithIdentifier(Identifier... values)PatientwithImplicitRules(Uri value)PatientwithLanguage(Code value)PatientwithLink(java.util.Collection<PatientLink> values)PatientwithLink(PatientLink... values)PatientwithManagingOrganization(Reference value)PatientwithMaritalStatus(CodeableConcept value)PatientwithMeta(Meta value)PatientwithModifierExtension(java.util.Collection<Extension> values)PatientwithModifierExtension(Extension... values)PatientwithMultipleBirthBoolean(Boolean value)PatientwithMultipleBirthInteger(Integer value)PatientwithName(java.util.Collection<HumanName> values)PatientwithName(HumanName... values)PatientwithPhoto(java.util.Collection<Attachment> values)PatientwithPhoto(Attachment... values)PatientwithTelecom(java.util.Collection<ContactPoint> values)PatientwithTelecom(ContactPoint... values)PatientwithText(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
-
active
protected Boolean active
-
name
protected java.util.List<HumanName> name
-
telecom
protected java.util.List<ContactPoint> telecom
-
gender
protected AdministrativeGender gender
-
birthDate
protected Date birthDate
-
deceasedBoolean
protected Boolean deceasedBoolean
-
deceasedDateTime
protected DateTime deceasedDateTime
-
address
protected java.util.List<Address> address
-
maritalStatus
protected CodeableConcept maritalStatus
-
multipleBirthBoolean
protected Boolean multipleBirthBoolean
-
multipleBirthInteger
protected Integer multipleBirthInteger
-
photo
protected java.util.List<Attachment> photo
-
contact
protected java.util.List<PatientContact> contact
-
animal
protected PatientAnimal animal
-
communication
protected java.util.List<PatientCommunication> communication
-
careProvider
protected java.util.List<Reference> careProvider
-
managingOrganization
protected Reference managingOrganization
-
link
protected java.util.List<PatientLink> 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
-
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
-
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
-
getDeceasedBoolean
public Boolean getDeceasedBoolean()
Gets the value of the deceasedBoolean property.- Returns:
- possible object is
Boolean
-
setDeceasedBoolean
public void setDeceasedBoolean(Boolean value)
Sets the value of the deceasedBoolean property.- Parameters:
value- allowed object isBoolean
-
getDeceasedDateTime
public DateTime getDeceasedDateTime()
Gets the value of the deceasedDateTime property.- Returns:
- possible object is
DateTime
-
setDeceasedDateTime
public void setDeceasedDateTime(DateTime value)
Sets the value of the deceasedDateTime property.- Parameters:
value- allowed object isDateTime
-
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
-
getMaritalStatus
public CodeableConcept getMaritalStatus()
Gets the value of the maritalStatus property.- Returns:
- possible object is
CodeableConcept
-
setMaritalStatus
public void setMaritalStatus(CodeableConcept value)
Sets the value of the maritalStatus property.- Parameters:
value- allowed object isCodeableConcept
-
getMultipleBirthBoolean
public Boolean getMultipleBirthBoolean()
Gets the value of the multipleBirthBoolean property.- Returns:
- possible object is
Boolean
-
setMultipleBirthBoolean
public void setMultipleBirthBoolean(Boolean value)
Sets the value of the multipleBirthBoolean property.- Parameters:
value- allowed object isBoolean
-
getMultipleBirthInteger
public Integer getMultipleBirthInteger()
Gets the value of the multipleBirthInteger property.- Returns:
- possible object is
Integer
-
setMultipleBirthInteger
public void setMultipleBirthInteger(Integer value)
Sets the value of the multipleBirthInteger property.- Parameters:
value- allowed object isInteger
-
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
-
getContact
public java.util.List<PatientContact> getContact()
Gets the value of the contact 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 contact property.For example, to add a new item, do as follows:
getContact().add(newItem);Objects of the following type(s) are allowed in the list
PatientContact
-
getAnimal
public PatientAnimal getAnimal()
Gets the value of the animal property.- Returns:
- possible object is
PatientAnimal
-
setAnimal
public void setAnimal(PatientAnimal value)
Sets the value of the animal property.- Parameters:
value- allowed object isPatientAnimal
-
getCommunication
public java.util.List<PatientCommunication> getCommunication()
Gets the value of the communication 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 communication property.For example, to add a new item, do as follows:
getCommunication().add(newItem);Objects of the following type(s) are allowed in the list
PatientCommunication
-
getCareProvider
public java.util.List<Reference> getCareProvider()
Gets the value of the careProvider 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 careProvider property.For example, to add a new item, do as follows:
getCareProvider().add(newItem);Objects of the following type(s) are allowed in the list
Reference
-
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
-
getLink
public java.util.List<PatientLink> 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
PatientLink
-
withIdentifier
public Patient withIdentifier(Identifier... values)
-
withIdentifier
public Patient withIdentifier(java.util.Collection<Identifier> values)
-
withTelecom
public Patient withTelecom(ContactPoint... values)
-
withTelecom
public Patient withTelecom(java.util.Collection<ContactPoint> values)
-
withGender
public Patient withGender(AdministrativeGender value)
-
withMaritalStatus
public Patient withMaritalStatus(CodeableConcept value)
-
withPhoto
public Patient withPhoto(Attachment... values)
-
withPhoto
public Patient withPhoto(java.util.Collection<Attachment> values)
-
withContact
public Patient withContact(PatientContact... values)
-
withContact
public Patient withContact(java.util.Collection<PatientContact> values)
-
withAnimal
public Patient withAnimal(PatientAnimal value)
-
withCommunication
public Patient withCommunication(PatientCommunication... values)
-
withCommunication
public Patient withCommunication(java.util.Collection<PatientCommunication> values)
-
withLink
public Patient withLink(PatientLink... values)
-
withLink
public Patient withLink(java.util.Collection<PatientLink> values)
-
withText
public Patient withText(Narrative value)
- Overrides:
withTextin classDomainResource
-
withContained
public Patient withContained(ResourceContainer... values)
- Overrides:
withContainedin classDomainResource
-
withContained
public Patient withContained(java.util.Collection<ResourceContainer> values)
- Overrides:
withContainedin classDomainResource
-
withExtension
public Patient withExtension(Extension... values)
- Overrides:
withExtensionin classDomainResource
-
withExtension
public Patient withExtension(java.util.Collection<Extension> values)
- Overrides:
withExtensionin classDomainResource
-
withModifierExtension
public Patient withModifierExtension(Extension... values)
- Overrides:
withModifierExtensionin classDomainResource
-
withModifierExtension
public Patient withModifierExtension(java.util.Collection<Extension> values)
- Overrides:
withModifierExtensionin classDomainResource
-
withId
public Patient withId(Id value)
- Overrides:
withIdin classDomainResource
-
withMeta
public Patient withMeta(Meta value)
- Overrides:
withMetain classDomainResource
-
withImplicitRules
public Patient withImplicitRules(Uri value)
- Overrides:
withImplicitRulesin classDomainResource
-
withLanguage
public Patient 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
-
-