Class Patient
- java.lang.Object
-
- org.linuxforhealth.fhir.model.visitor.AbstractVisitable
-
- org.linuxforhealth.fhir.model.resource.Resource
-
- org.linuxforhealth.fhir.model.resource.DomainResource
-
- org.linuxforhealth.fhir.model.resource.Patient
-
- All Implemented Interfaces:
Visitable
@Generated("org.linuxforhealth.fhir.tools.CodeGenerator") public class Patient extends DomainResource
Demographics and other administrative information about an individual or animal receiving care or other health-related services.Maturity level: FMM5 (Normative)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Patient.Builder
static class
Patient.Communication
A language which may be used to communicate with the patient about his or her health.static class
Patient.Contact
A contact party (e.g.static class
Patient.Link
Link to another patient resource that concerns the same actual patient.
-
Field Summary
-
Fields inherited from class org.linuxforhealth.fhir.model.resource.DomainResource
contained, extension, modifierExtension, text
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(java.lang.String elementName, int elementIndex, Visitor visitor)
Accept a Visitor and invoke the appropriate visit methods.static Patient.Builder
builder()
boolean
equals(java.lang.Object obj)
Boolean
getActive()
Whether this patient record is in active use.java.util.List<Address>
getAddress()
An address for the individual.Date
getBirthDate()
The date of birth for the individual.java.util.List<Patient.Communication>
getCommunication()
A language which may be used to communicate with the patient about his or her health.java.util.List<Patient.Contact>
getContact()
A contact party (e.g.Element
getDeceased()
Indicates if the individual is deceased or not.AdministrativeGender
getGender()
Administrative Gender - the gender that the patient is considered to have for administration and record keeping purposes.java.util.List<Reference>
getGeneralPractitioner()
Patient's nominated care provider.java.util.List<Identifier>
getIdentifier()
An identifier for this patient.java.util.List<Patient.Link>
getLink()
Link to another patient resource that concerns the same actual patient.Reference
getManagingOrganization()
Organization that is the custodian of the patient record.CodeableConcept
getMaritalStatus()
This field contains a patient's most recent marital (civil) status.Element
getMultipleBirth()
Indicates whether the patient is part of a multiple (boolean) or indicates the actual birth order (integer).java.util.List<HumanName>
getName()
A name associated with the individual.java.util.List<Attachment>
getPhoto()
Image of the patient.java.util.List<ContactPoint>
getTelecom()
A contact detail (e.g.boolean
hasChildren()
int
hashCode()
Patient.Builder
toBuilder()
Create a new Builder from the contents of this Resource-
Methods inherited from class org.linuxforhealth.fhir.model.resource.DomainResource
getContained, getExtension, getModifierExtension, getText
-
Methods inherited from class org.linuxforhealth.fhir.model.resource.Resource
as, getId, getImplicitRules, getLanguage, getMeta, is
-
-
-
-
Method Detail
-
getIdentifier
public java.util.List<Identifier> getIdentifier()
An identifier for this patient.- Returns:
- An unmodifiable list containing immutable objects of type
Identifier
that may be empty.
-
getActive
public Boolean getActive()
Whether this patient record is in active use. Many systems use this property to mark as non-current patients, such as those that have not been seen for a period of time based on an organization's business rules.It is often used to filter patient lists to exclude inactive patients
Deceased patients may also be marked as inactive for the same reasons, but may be active for some time after death.
- Returns:
- An immutable object of type
Boolean
that may be null.
-
getName
public java.util.List<HumanName> getName()
A name associated with the individual.- Returns:
- An unmodifiable list containing immutable objects of type
HumanName
that may be empty.
-
getTelecom
public java.util.List<ContactPoint> getTelecom()
A contact detail (e.g. a telephone number or an email address) by which the individual may be contacted.- Returns:
- An unmodifiable list containing immutable objects of type
ContactPoint
that may be empty.
-
getGender
public AdministrativeGender getGender()
Administrative Gender - the gender that the patient is considered to have for administration and record keeping purposes.- Returns:
- An immutable object of type
AdministrativeGender
that may be null.
-
getBirthDate
public Date getBirthDate()
The date of birth for the individual.- Returns:
- An immutable object of type
Date
that may be null.
-
getDeceased
public Element getDeceased()
Indicates if the individual is deceased or not.
-
getAddress
public java.util.List<Address> getAddress()
An address for the individual.- Returns:
- An unmodifiable list containing immutable objects of type
Address
that may be empty.
-
getMaritalStatus
public CodeableConcept getMaritalStatus()
This field contains a patient's most recent marital (civil) status.- Returns:
- An immutable object of type
CodeableConcept
that may be null.
-
getMultipleBirth
public Element getMultipleBirth()
Indicates whether the patient is part of a multiple (boolean) or indicates the actual birth order (integer).
-
getPhoto
public java.util.List<Attachment> getPhoto()
Image of the patient.- Returns:
- An unmodifiable list containing immutable objects of type
Attachment
that may be empty.
-
getContact
public java.util.List<Patient.Contact> getContact()
A contact party (e.g. guardian, partner, friend) for the patient.- Returns:
- An unmodifiable list containing immutable objects of type
Patient.Contact
that may be empty.
-
getCommunication
public java.util.List<Patient.Communication> getCommunication()
A language which may be used to communicate with the patient about his or her health.- Returns:
- An unmodifiable list containing immutable objects of type
Patient.Communication
that may be empty.
-
getGeneralPractitioner
public java.util.List<Reference> getGeneralPractitioner()
Patient's nominated care provider.- Returns:
- An unmodifiable list containing immutable objects of type
Reference
that may be empty.
-
getManagingOrganization
public Reference getManagingOrganization()
Organization that is the custodian of the patient record.- Returns:
- An immutable object of type
Reference
that may be null.
-
getLink
public java.util.List<Patient.Link> getLink()
Link to another patient resource that concerns the same actual patient.- Returns:
- An unmodifiable list containing immutable objects of type
Patient.Link
that may be empty.
-
hasChildren
public boolean hasChildren()
- Overrides:
hasChildren
in classDomainResource
-
accept
public void accept(java.lang.String elementName, int elementIndex, Visitor visitor)
Description copied from interface:Visitable
Accept a Visitor and invoke the appropriate visit methods. A typical implementation would look like this:if (visitor.preVisit(this)) { visitor.visitStart(elementName, elementIndex, this); if (visitor.visit(elementName, elementIndex, this)) { // visit children } visitor.visitEnd(elementName, elementIndex, this); visitor.postVisit(this); }
- Specified by:
accept
in interfaceVisitable
- Specified by:
accept
in classAbstractVisitable
- Parameters:
elementName
- the name of the element in the context of this visitelementIndex
- the index of the element in a list or -1 if it is not contained within a Listvisitor
- the visitor to use
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toBuilder
public Patient.Builder toBuilder()
Description copied from class:Resource
Create a new Builder from the contents of this Resource- Specified by:
toBuilder
in classDomainResource
-
builder
public static Patient.Builder builder()
-
-