Class FhirPatient
java.lang.Object
org.hl7.fhir.r4.model.Base
org.hl7.fhir.r4.model.BaseResource
org.hl7.fhir.r4.model.Resource
org.hl7.fhir.r4.model.DomainResource
org.hl7.fhir.r4.model.Patient
org.projecthusky.fhir.structures.gen.FhirPatient
- All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement
,Serializable
,org.hl7.fhir.instance.model.api.IAnyResource
,org.hl7.fhir.instance.model.api.IBase
,org.hl7.fhir.instance.model.api.IBaseHasExtensions
,org.hl7.fhir.instance.model.api.IBaseHasModifierExtensions
,org.hl7.fhir.instance.model.api.IBaseResource
,org.hl7.fhir.instance.model.api.IDomainResource
public class FhirPatient
extends org.hl7.fhir.r4.model.Patient
The Class FhirPatient. FHIRPatient extends from the FHIR HAPI Patient
Resource and provides convenience methods to translate between the
convenience patient in the ehealthconeector and back
- See Also:
-
- "http://jamesagnew.github.io/hapi-fhir/index.html"
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from class org.hl7.fhir.r4.model.Patient
org.hl7.fhir.r4.model.Patient.ContactComponent, org.hl7.fhir.r4.model.Patient.LinkType, org.hl7.fhir.r4.model.Patient.LinkTypeEnumFactory, org.hl7.fhir.r4.model.Patient.PatientCommunicationComponent, org.hl7.fhir.r4.model.Patient.PatientLinkComponent
-
Field Summary
Fields inherited from class org.hl7.fhir.r4.model.Patient
active, ACTIVE, address, ADDRESS, ADDRESS_CITY, ADDRESS_COUNTRY, ADDRESS_POSTALCODE, ADDRESS_STATE, ADDRESS_USE, birthDate, BIRTHDATE, communication, contact, DEATH_DATE, deceased, DECEASED, EMAIL, FAMILY, gender, GENDER, GENERAL_PRACTITIONER, generalPractitioner, generalPractitionerTarget, GIVEN, identifier, IDENTIFIER, INCLUDE_GENERAL_PRACTITIONER, INCLUDE_LINK, INCLUDE_ORGANIZATION, LANGUAGE, link, LINK, managingOrganization, managingOrganizationTarget, maritalStatus, multipleBirth, name, NAME, ORGANIZATION, PHONE, PHONETIC, photo, SP_ACTIVE, SP_ADDRESS, SP_ADDRESS_CITY, SP_ADDRESS_COUNTRY, SP_ADDRESS_POSTALCODE, SP_ADDRESS_STATE, SP_ADDRESS_USE, SP_BIRTHDATE, SP_DEATH_DATE, SP_DECEASED, SP_EMAIL, SP_FAMILY, SP_GENDER, SP_GENERAL_PRACTITIONER, SP_GIVEN, SP_IDENTIFIER, SP_LANGUAGE, SP_LINK, SP_NAME, SP_ORGANIZATION, SP_PHONE, SP_PHONETIC, SP_TELECOM, telecom, TELECOM
Fields inherited from class org.hl7.fhir.r4.model.DomainResource
contained, extension, modifierExtension, text
Fields inherited from class org.hl7.fhir.r4.model.Resource
id, implicitRules, language, meta
Fields inherited from interface org.hl7.fhir.instance.model.api.IAnyResource
RES_ID, SP_RES_ID
Fields inherited from interface org.hl7.fhir.instance.model.api.IBaseResource
INCLUDE_ALL, WILDCARD_ALL_SET
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new fhir patient.FhirPatient
(Patient patient) Instantiates a new fhir patient based on the org.projecthusky.common.patient -
Method Summary
Modifier and TypeMethodDescriptionstatic org.hl7.fhir.r4.model.Address
convertAddress
(Address mdhtAddr) converts the mdht AD to the fhir addressconvertGender
(org.hl7.fhir.r4.model.Enumerations.AdministrativeGender gender) Convert the fhir gender to the cda gender.static org.hl7.fhir.r4.model.Enumerations.AdministrativeGender
convertGender
(AdministrativeGender gender) Convert the cda gender to the fhir gender.static org.hl7.fhir.r4.model.HumanName
convertName
(Name name) Converts the convenience name to the fhir namestatic org.hl7.fhir.r4.model.ContactPoint
convertTelecom
(Telecom tel) Convert telecom from hl7 datatype to fhir datatpye.createTelecom
(String value, org.hl7.fhir.r4.model.ContactPoint.ContactPointSystem system, org.hl7.fhir.r4.model.ContactPoint.ContactPointUse usage) org.hl7.fhir.r4.model.Address
Gets the birth place.convert the fhir patient human name to convenience nameorg.hl7.fhir.r4.model.CodeableConcept
Gets the employee occupation.convert the fhir birth place to hl7 cda r2 birth placeconvert the fhir identifiers to a list of convenience identificatorconvert the fhir communication to list of hl7 cda r2 languange communicationorg.hl7.fhir.r4.model.HumanName
Gets the maiden name, implementation might change, because it is yet an open issue how it is stored in pdqm/fhirorg.hl7.fhir.r4.model.CodeableConcept
Gets the nation.convert the fhir managing organization to convenience Organizationconverts the fhir patient resource in the convenience api patientorg.hl7.fhir.r4.model.CodeableConcept
Gets the religious Affiliationconvert the fhir telecoms to a list of convenience telecomvoid
setAddresses
(List<Address> addresses) set addresses of patientvoid
setBirthPlace
(org.hl7.fhir.r4.model.Address address) Sets the birth place.void
setDeceased
(Patient patient) set deceased from patient deceased indicator or deceased timevoid
setEmployeeOccupation
(String employeeOccupation) set employee occupationvoid
setEmployeeOccupation
(org.hl7.fhir.r4.model.CodeableConcept employeeOccupation) Sets the employee occupation.void
setIds
(List<Identificator> ids) set IDs of patientvoid
setMothersMaidenName
(org.hl7.fhir.r4.model.HumanName maidenName) Sets the maiden name, implementation might change, because it is yet an open issue how it is stored in pdqm/fhirvoid
set names of patientvoid
set nationvoid
setNation
(org.hl7.fhir.r4.model.CodeableConcept nation) Sets the nation.void
setReligiousAffiliation
(org.hl7.fhir.r4.model.CodeableConcept religiousAffiliation) Set the religious Affiliationvoid
setTelecoms
(List<Telecom> telecoms) Methods inherited from class org.hl7.fhir.r4.model.Patient
addAddress, addAddress, addChild, addCommunication, addCommunication, addContact, addContact, addGeneralPractitioner, addGeneralPractitioner, addIdentifier, addIdentifier, addLink, addLink, addName, addName, addPhoto, addPhoto, addTelecom, addTelecom, copy, copyValues, equalsDeep, equalsShallow, fhirType, getActive, getActiveElement, getAddress, getAddressFirstRep, getBirthDate, getBirthDateElement, getCommunication, getCommunicationFirstRep, getContact, getContactFirstRep, getDeceased, getDeceasedBooleanType, getDeceasedDateTimeType, getGender, getGenderElement, getGeneralPractitioner, getGeneralPractitionerFirstRep, getGeneralPractitionerTarget, getIdentifier, getIdentifierFirstRep, getLink, getLinkFirstRep, getManagingOrganization, getManagingOrganizationTarget, getMaritalStatus, getMultipleBirth, getMultipleBirthBooleanType, getMultipleBirthIntegerType, getName, getNamedProperty, getNameFirstRep, getPhoto, getPhotoFirstRep, getProperty, getResourceType, getTelecom, getTelecomFirstRep, getTypesForProperty, hasActive, hasActiveElement, hasAddress, hasBirthDate, hasBirthDateElement, hasCommunication, hasContact, hasDeceased, hasDeceasedBooleanType, hasDeceasedDateTimeType, hasGender, hasGenderElement, hasGeneralPractitioner, hasIdentifier, hasLink, hasManagingOrganization, hasMaritalStatus, hasMultipleBirth, hasMultipleBirthBooleanType, hasMultipleBirthIntegerType, hasName, hasPhoto, hasTelecom, isEmpty, listChildren, makeProperty, removeChild, setActive, setActiveElement, setAddress, setBirthDate, setBirthDateElement, setCommunication, setContact, setDeceased, setGender, setGenderElement, setGeneralPractitioner, setIdentifier, setLink, setManagingOrganization, setManagingOrganizationTarget, setMaritalStatus, setMultipleBirth, setName, setPhoto, setProperty, setProperty, setTelecom, typedCopy
Methods inherited from class org.hl7.fhir.r4.model.DomainResource
addContained, addExtension, addExtension, addExtension, addModifierExtension, addModifierExtension, checkNoModifiers, copyValues, getContained, getExtension, getExtensionByUrl, getExtensionsByUrl, getModifierExtension, getModifierExtensionsByUrl, getText, hasContained, hasExtension, hasExtension, hasModifierExtension, hasText, setContained, setExtension, setModifierExtension, setText
Methods inherited from class org.hl7.fhir.r4.model.Resource
copyValues, getId, getIdBase, getIdElement, getIdPart, getImplicitRules, getImplicitRulesElement, getLanguage, getLanguage, getLanguageElement, getMeta, hasId, hasIdElement, hasImplicitRules, hasImplicitRulesElement, hasLanguage, hasLanguageElement, hasMeta, setId, setIdBase, setIdElement, setImplicitRules, setImplicitRulesElement, setLanguage, setLanguageElement, setMeta
Methods inherited from class org.hl7.fhir.r4.model.BaseResource
getStructureFhirVersionEnum, isResource, setId
Methods inherited from class org.hl7.fhir.r4.model.Base
castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCanonical, castToCode, castToCodeableConcept, castToCoding, castToContactDetail, castToContactPoint, castToContributor, castToDataRequirement, castToDate, castToDateTime, castToDecimal, castToDosage, castToDuration, castToElementDefinition, castToExpression, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMarketingStatus, castToMeta, castToMoney, castToNarrative, castToOid, castToParameterDefinition, castToPeriod, castToPopulation, castToPositiveInt, castToProdCharacteristic, castToProductShelfLife, castToQuantity, castToRange, castToRatio, castToReference, castToRelatedArtifact, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToSubstanceAmount, castToTime, castToTiming, castToTriggerDefinition, castToType, castToUnsignedInt, castToUri, castToUrl, castToUsageContext, castToXhtml, castToXhtmlString, children, clearUserData, compareDeep, compareDeep, compareDeep, compareDeep, compareValues, compareValues, copyValues, dateTimeValue, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getNamedProperty, getUserData, getUserInt, getUserString, getXhtml, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isBooleanPrimitive, isDateTime, isMetadataBased, isPrimitive, listChildrenByName, listChildrenByName, primitiveValue, setUserData, setUserDataINN
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.IAnyResource
getId, getIdElement, getLanguageElement, getUserData, setId, setUserData
Methods inherited from interface org.hl7.fhir.instance.model.api.IBase
getFormatCommentsPost, getFormatCommentsPre, hasFormatComment
Methods inherited from interface org.hl7.fhir.instance.model.api.IBaseResource
getMeta, getStructureFhirVersionEnum, isDeleted, setId
-
Constructor Details
-
FhirPatient
public FhirPatient()Instantiates a new fhir patient. -
FhirPatient
Instantiates a new fhir patient based on the org.projecthusky.common.patient- Parameters:
patient
- the patient
-
-
Method Details
-
convertAddress
converts the mdht AD to the fhir address- Parameters:
mdhtAddr
- address object- Returns:
- fhir address
-
convertGender
public static org.hl7.fhir.r4.model.Enumerations.AdministrativeGender convertGender(AdministrativeGender gender) Convert the cda gender to the fhir gender.- Parameters:
gender
- the gender- Returns:
- the administrative gender enum
-
convertName
Converts the convenience name to the fhir name- Parameters:
name
- the name- Returns:
- converted name
-
convertTelecom
Convert telecom from hl7 datatype to fhir datatpye.- Parameters:
tel
- hl7 data type- Returns:
- the fhir data type
-
setTelecoms
-
setNames
set names of patient- Parameters:
names
-
-
setAddresses
set addresses of patient- Parameters:
addresses
-
-
setIds
set IDs of patient- Parameters:
ids
- list of id
-
setNation
set nation- Parameters:
nation
-
-
setEmployeeOccupation
set employee occupation- Parameters:
employeeOccupation
-
-
setDeceased
set deceased from patient deceased indicator or deceased time- Parameters:
patient
-
-
getBirthPlace
public org.hl7.fhir.r4.model.Address getBirthPlace()Gets the birth place.- Returns:
- the birth place
-
getEmployeeOccupation
public org.hl7.fhir.r4.model.CodeableConcept getEmployeeOccupation()Gets the employee occupation.- Returns:
- the employee occupation
-
getMothersMaidenName
public org.hl7.fhir.r4.model.HumanName getMothersMaidenName()Gets the maiden name, implementation might change, because it is yet an open issue how it is stored in pdqm/fhir- Returns:
- mothers maiden name
-
getNation
public org.hl7.fhir.r4.model.CodeableConcept getNation()Gets the nation.- Returns:
- the nation
-
getPatient
converts the fhir patient resource in the convenience api patient- Returns:
- the patient convenience api patient
-
getIdentificators
convert the fhir identifiers to a list of convenience identificator- Returns:
- list of convenience identificator
-
getTelecommunications
convert the fhir telecoms to a list of convenience telecom- Returns:
- list of convenience telecom
-
getHl7Cdar2Birthplace
convert the fhir birth place to hl7 cda r2 birth place- Returns:
- hl7 cda r2 birth place
-
getLanguangeCommunication
convert the fhir communication to list of hl7 cda r2 languange communication- Returns:
- list of hl7 cda r2 languange communication
-
getConvenienceName
convert the fhir patient human name to convenience name- Returns:
- convenience name
-
getOrganization
convert the fhir managing organization to convenience Organization- Returns:
- convenience organization
-
convertGender
public AdministrativeGender convertGender(org.hl7.fhir.r4.model.Enumerations.AdministrativeGender gender) Convert the fhir gender to the cda gender.- Parameters:
gender
- the gender- Returns:
- the administrative gender enum
-
createTelecom
-
getReligiousAffiliation
public org.hl7.fhir.r4.model.CodeableConcept getReligiousAffiliation()Gets the religious Affiliation- Returns:
- religious affiliation
-
setBirthPlace
public void setBirthPlace(org.hl7.fhir.r4.model.Address address) Sets the birth place.- Parameters:
address
- the new birth place
-
setEmployeeOccupation
public void setEmployeeOccupation(org.hl7.fhir.r4.model.CodeableConcept employeeOccupation) Sets the employee occupation.- Parameters:
employeeOccupation
- the new employee occupation
-
setMothersMaidenName
public void setMothersMaidenName(org.hl7.fhir.r4.model.HumanName maidenName) Sets the maiden name, implementation might change, because it is yet an open issue how it is stored in pdqm/fhir- Parameters:
maidenName
- sets the mothers maiden name
-
setNation
public void setNation(org.hl7.fhir.r4.model.CodeableConcept nation) Sets the nation.- Parameters:
nation
- the new nation
-
setReligiousAffiliation
public void setReligiousAffiliation(org.hl7.fhir.r4.model.CodeableConcept religiousAffiliation) Set the religious Affiliation- Parameters:
religiousAffiliation
- the religious affiliation
-