Class Patient.Contact

  • All Implemented Interfaces:
    ca.uhn.fhir.model.api.ICompositeElement, ca.uhn.fhir.model.api.IElement, ca.uhn.fhir.model.api.IIdentifiableElement, ca.uhn.fhir.model.api.IResourceBlock, ca.uhn.fhir.model.api.ISupportsUndeclaredExtensions, Serializable, org.hl7.fhir.instance.model.api.IBase
    Enclosing class:
    Patient

    public static class Patient.Contact
    extends ca.uhn.fhir.model.api.BaseIdentifiableElement
    implements ca.uhn.fhir.model.api.IResourceBlock
    Block class for child element: Patient.contact ()

    Definition: A contact party (e.g. guardian, partner, friend) for the patient

    See Also:
    Serialized Form
    • Constructor Detail

    • Method Detail

      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface org.hl7.fhir.instance.model.api.IBase
      • getAllPopulatedChildElementsOfType

        public <T extends ca.uhn.fhir.model.api.IElement> List<T> getAllPopulatedChildElementsOfType​(Class<T> theType)
        Specified by:
        getAllPopulatedChildElementsOfType in interface ca.uhn.fhir.model.api.ICompositeElement
      • getRelationship

        public List<CodeableConceptDtgetRelationship()
        Gets the value(s) for relationship (). creating it if it does not exist. Will not return null.

        Definition: The nature of the relationship between the patient and the contact person

      • addRelationship

        public CodeableConceptDt addRelationship()
        Adds and returns a new value for relationship ()

        Definition: The nature of the relationship between the patient and the contact person

      • addRelationship

        public Patient.Contact addRelationship​(CodeableConceptDt theValue)
        Adds a given new value for relationship ()

        Definition: The nature of the relationship between the patient and the contact person

        Parameters:
        theValue - The relationship to add (must not be null)
      • getRelationshipFirstRep

        public CodeableConceptDt getRelationshipFirstRep()
        Gets the first repetition for relationship (), creating it if it does not already exist.

        Definition: The nature of the relationship between the patient and the contact person

      • getName

        public HumanNameDt getName()
        Gets the value(s) for name (). creating it if it does not exist. Will not return null.

        Definition: A name associated with the contact person

      • getTelecom

        public List<ContactPointDtgetTelecom()
        Gets the value(s) for telecom (). creating it if it does not exist. Will not return null.

        Definition: A contact detail for the person, e.g. a telephone number or an email address.

      • addTelecom

        public ContactPointDt addTelecom()
        Adds and returns a new value for telecom ()

        Definition: A contact detail for the person, e.g. a telephone number or an email address.

      • addTelecom

        public Patient.Contact addTelecom​(ContactPointDt theValue)
        Adds a given new value for telecom ()

        Definition: A contact detail for the person, e.g. a telephone number or an email address.

        Parameters:
        theValue - The telecom to add (must not be null)
      • getTelecomFirstRep

        public ContactPointDt getTelecomFirstRep()
        Gets the first repetition for telecom (), creating it if it does not already exist.

        Definition: A contact detail for the person, e.g. a telephone number or an email address.

      • getAddress

        public AddressDt getAddress()
        Gets the value(s) for address (). creating it if it does not exist. Will not return null.

        Definition: Address for the contact person

      • getGenderElement

        public ca.uhn.fhir.model.primitive.BoundCodeDt<AdministrativeGenderEnumgetGenderElement()
        Gets the value(s) for gender (). creating it if it does not exist. Will not return null.

        Definition: Administrative Gender - the gender that the contact person is considered to have for administration and record keeping purposes.

      • getGender

        public String getGender()
        Gets the value(s) for gender (). creating it if it does not exist. This method may return null.

        Definition: Administrative Gender - the gender that the contact person is considered to have for administration and record keeping purposes.

      • setGender

        public Patient.Contact setGender​(ca.uhn.fhir.model.primitive.BoundCodeDt<AdministrativeGenderEnum> theValue)
        Sets the value(s) for gender ()

        Definition: Administrative Gender - the gender that the contact person is considered to have for administration and record keeping purposes.

      • setGender

        public Patient.Contact setGender​(AdministrativeGenderEnum theValue)
        Sets the value(s) for gender ()

        Definition: Administrative Gender - the gender that the contact person is considered to have for administration and record keeping purposes.

      • getOrganization

        public ResourceReferenceDt getOrganization()
        Gets the value(s) for organization (). creating it if it does not exist. Will not return null.

        Definition: Organization on behalf of which the contact is acting or for which the contact is working.

      • getPeriod

        public PeriodDt getPeriod()
        Gets the value(s) for period (). creating it if it does not exist. Will not return null.

        Definition: The period during which this contact person or organization is valid to be contacted relating to this patient

      • setPeriod

        public Patient.Contact setPeriod​(PeriodDt theValue)
        Sets the value(s) for period ()

        Definition: The period during which this contact person or organization is valid to be contacted relating to this patient