Class Patient.Contact
- java.lang.Object
-
- ca.uhn.fhir.model.api.BaseElement
-
- ca.uhn.fhir.model.api.BaseIdentifiableElement
-
- ca.uhn.fhir.model.dstu2.resource.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 Summary
Constructors Constructor Description Contact()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CodeableConceptDtaddRelationship()Adds and returns a new value for relationship ()Patient.ContactaddRelationship(CodeableConceptDt theValue)Adds a given new value for relationship ()ContactPointDtaddTelecom()Adds and returns a new value for telecom ()Patient.ContactaddTelecom(ContactPointDt theValue)Adds a given new value for telecom ()AddressDtgetAddress()Gets the value(s) for address ().<T extends ca.uhn.fhir.model.api.IElement>
List<T>getAllPopulatedChildElementsOfType(Class<T> theType)StringgetGender()Gets the value(s) for gender ().ca.uhn.fhir.model.primitive.BoundCodeDt<AdministrativeGenderEnum>getGenderElement()Gets the value(s) for gender ().HumanNameDtgetName()Gets the value(s) for name ().ResourceReferenceDtgetOrganization()Gets the value(s) for organization ().PeriodDtgetPeriod()Gets the value(s) for period ().List<CodeableConceptDt>getRelationship()Gets the value(s) for relationship ().CodeableConceptDtgetRelationshipFirstRep()Gets the first repetition for relationship (), creating it if it does not already exist.List<ContactPointDt>getTelecom()Gets the value(s) for telecom ().ContactPointDtgetTelecomFirstRep()Gets the first repetition for telecom (), creating it if it does not already exist.booleanisEmpty()Patient.ContactsetAddress(AddressDt theValue)Sets the value(s) for address ()Patient.ContactsetGender(AdministrativeGenderEnum theValue)Sets the value(s) for gender ()Patient.ContactsetGender(ca.uhn.fhir.model.primitive.BoundCodeDt<AdministrativeGenderEnum> theValue)Sets the value(s) for gender ()Patient.ContactsetName(HumanNameDt theValue)Sets the value(s) for name ()Patient.ContactsetOrganization(ResourceReferenceDt theValue)Sets the value(s) for organization ()Patient.ContactsetPeriod(PeriodDt theValue)Sets the value(s) for period ()Patient.ContactsetRelationship(List<CodeableConceptDt> theValue)Sets the value(s) for relationship ()Patient.ContactsetTelecom(List<ContactPointDt> theValue)Sets the value(s) for telecom ()-
Methods inherited from class ca.uhn.fhir.model.api.BaseIdentifiableElement
getElementSpecificId, getId, setElementSpecificId, setId, setId
-
Methods inherited from class ca.uhn.fhir.model.api.BaseElement
addUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getFormatCommentsPost, getFormatCommentsPre, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, getUserData, hasFormatComment, isBaseEmpty, setUserData
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Constructor Detail
-
Contact
public Contact()
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceorg.hl7.fhir.instance.model.api.IBase
-
getAllPopulatedChildElementsOfType
public <T extends ca.uhn.fhir.model.api.IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType)
- Specified by:
getAllPopulatedChildElementsOfTypein interfaceca.uhn.fhir.model.api.ICompositeElement
-
getRelationship
public List<CodeableConceptDt> getRelationship()
Gets the value(s) for relationship (). creating it if it does not exist. Will not returnnull.Definition: The nature of the relationship between the patient and the contact person
-
setRelationship
public Patient.Contact setRelationship(List<CodeableConceptDt> theValue)
Sets the value(s) for relationship ()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 benull)
-
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 returnnull.Definition: A name associated with the contact person
-
setName
public Patient.Contact setName(HumanNameDt theValue)
Sets the value(s) for name ()Definition: A name associated with the contact person
-
getTelecom
public List<ContactPointDt> getTelecom()
Gets the value(s) for telecom (). creating it if it does not exist. Will not returnnull.Definition: A contact detail for the person, e.g. a telephone number or an email address.
-
setTelecom
public Patient.Contact setTelecom(List<ContactPointDt> theValue)
Sets the value(s) for telecom ()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 benull)
-
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 returnnull.Definition: Address for the contact person
-
setAddress
public Patient.Contact setAddress(AddressDt theValue)
Sets the value(s) for address ()Definition: Address for the contact person
-
getGenderElement
public ca.uhn.fhir.model.primitive.BoundCodeDt<AdministrativeGenderEnum> getGenderElement()
Gets the value(s) for gender (). creating it if it does not exist. Will not returnnull.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 returnnull.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 returnnull.Definition: Organization on behalf of which the contact is acting or for which the contact is working.
-
setOrganization
public Patient.Contact setOrganization(ResourceReferenceDt theValue)
Sets the value(s) for organization ()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 returnnull.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
-
-