Class 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)

    • 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.
        Returns:
        An immutable object of type Boolean or DateTime that may be null.
      • 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).
        Returns:
        An immutable object of type Boolean or Integer that may be null.
      • 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.
      • 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 interface Visitable
        Specified by:
        accept in class AbstractVisitable
        Parameters:
        elementName - the name of the element in the context of this visit
        elementIndex - the index of the element in a list or -1 if it is not contained within a List
        visitor - the visitor to use
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object