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
Definition: A contact party (e.g. guardian, partner, friend) for the patient
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdds and returns a new value for relationship ()addRelationship
(CodeableConceptDt theValue) Adds a given new value for relationship ()Adds and returns a new value for telecom ()addTelecom
(ContactPointDt theValue) Adds a given new value for telecom ()Gets the value(s) for address ().<T extends ca.uhn.fhir.model.api.IElement>
List<T> getAllPopulatedChildElementsOfType
(Class<T> theType) Gets the value(s) for gender ().ca.uhn.fhir.model.primitive.BoundCodeDt
<AdministrativeGenderEnum> Gets the value(s) for gender ().getName()
Gets the value(s) for name ().Gets the value(s) for organization ().Gets the value(s) for period ().Gets the value(s) for relationship ().Gets the first repetition for relationship (), creating it if it does not already exist.Gets the value(s) for telecom ().Gets the first repetition for telecom (), creating it if it does not already exist.boolean
isEmpty()
setAddress
(AddressDt theValue) Sets the value(s) for address ()setGender
(AdministrativeGenderEnum theValue) Sets the value(s) for gender ()setGender
(ca.uhn.fhir.model.primitive.BoundCodeDt<AdministrativeGenderEnum> theValue) Sets the value(s) for gender ()setName
(HumanNameDt theValue) Sets the value(s) for name ()setOrganization
(ResourceReferenceDt theValue) Sets the value(s) for organization ()Sets the value(s) for period ()setRelationship
(List<CodeableConceptDt> theValue) Sets the value(s) for relationship ()setTelecom
(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
Methods inherited from interface org.hl7.fhir.instance.model.api.IBase
fhirType, getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserData
Methods inherited from interface ca.uhn.fhir.model.api.IIdentifiableElement
getElementSpecificId, getId, setElementSpecificId, setId, setId
-
Constructor Details
-
Contact
public Contact()
-
-
Method Details
-
isEmpty
- Specified by:
isEmpty
in 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:
getAllPopulatedChildElementsOfType
in interfaceca.uhn.fhir.model.api.ICompositeElement
-
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
Sets the value(s) for relationship ()Definition: The nature of the relationship between the patient and the contact person
-
addRelationship
Adds and returns a new value for relationship ()Definition: The nature of the relationship between the patient and the contact person
-
addRelationship
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
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
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
Sets the value(s) for name ()Definition: A name associated with the contact person
-
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
Sets the value(s) for telecom ()Definition: A contact detail for the person, e.g. a telephone number or an email address.
-
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
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
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
Gets the value(s) for address (). creating it if it does not exist. Will not returnnull
.Definition: Address for the contact person
-
setAddress
Sets the value(s) for address ()Definition: Address for the contact person
-
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
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
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
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
Sets the value(s) for organization ()Definition: Organization on behalf of which the contact is acting or for which the contact is working.
-
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
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
-