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:
  • 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

    Constructors
    Constructor
    Description
    Instantiates a new fhir patient.
    Instantiates a new fhir patient based on the org.projecthusky.common.patient
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.hl7.fhir.r4.model.Address
    converts the mdht AD to the fhir address
    convertGender(org.hl7.fhir.r4.model.Enumerations.AdministrativeGender gender)
    Convert the fhir gender to the cda gender.
    static org.hl7.fhir.r4.model.Enumerations.AdministrativeGender
    Convert the cda gender to the fhir gender.
    static org.hl7.fhir.r4.model.HumanName
    Converts the convenience name to the fhir name
    static org.hl7.fhir.r4.model.ContactPoint
    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 name
    org.hl7.fhir.r4.model.CodeableConcept
    Gets the employee occupation.
    convert the fhir birth place to hl7 cda r2 birth place
    convert the fhir identifiers to a list of convenience identificator
    convert the fhir communication to list of hl7 cda r2 languange communication
    org.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/fhir
    org.hl7.fhir.r4.model.CodeableConcept
    Gets the nation.
    convert the fhir managing organization to convenience Organization
    converts the fhir patient resource in the convenience api patient
    org.hl7.fhir.r4.model.CodeableConcept
    Gets the religious Affiliation
    convert the fhir telecoms to a list of convenience telecom
    void
    set addresses of patient
    void
    setBirthPlace(org.hl7.fhir.r4.model.Address address)
    Sets the birth place.
    void
    set deceased from patient deceased indicator or deceased time
    void
    setEmployeeOccupation(String employeeOccupation)
    set employee occupation
    void
    setEmployeeOccupation(org.hl7.fhir.r4.model.CodeableConcept employeeOccupation)
    Sets the employee occupation.
    void
    set IDs of patient
    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
    void
    setNames(List<Name> names)
    set names of patient
    void
    setNation(String nation)
    set nation
    void
    setNation(org.hl7.fhir.r4.model.CodeableConcept nation)
    Sets the nation.
    void
    setReligiousAffiliation(org.hl7.fhir.r4.model.CodeableConcept religiousAffiliation)
    Set the religious Affiliation
    void
     

    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

      public FhirPatient(Patient patient)
      Instantiates a new fhir patient based on the org.projecthusky.common.patient
      Parameters:
      patient - the patient
  • Method Details

    • convertAddress

      public static org.hl7.fhir.r4.model.Address convertAddress(Address mdhtAddr)
      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

      public static org.hl7.fhir.r4.model.HumanName convertName(Name name)
      Converts the convenience name to the fhir name
      Parameters:
      name - the name
      Returns:
      converted name
    • convertTelecom

      public static org.hl7.fhir.r4.model.ContactPoint convertTelecom(Telecom tel)
      Convert telecom from hl7 datatype to fhir datatpye.
      Parameters:
      tel - hl7 data type
      Returns:
      the fhir data type
    • setTelecoms

      public void setTelecoms(List<Telecom> telecoms)
    • setNames

      public void setNames(List<Name> names)
      set names of patient
      Parameters:
      names -
    • setAddresses

      public void setAddresses(List<Address> addresses)
      set addresses of patient
      Parameters:
      addresses -
    • setIds

      public void setIds(List<Identificator> ids)
      set IDs of patient
      Parameters:
      ids - list of id
    • setNation

      public void setNation(String nation)
      set nation
      Parameters:
      nation -
    • setEmployeeOccupation

      public void setEmployeeOccupation(String employeeOccupation)
      set employee occupation
      Parameters:
      employeeOccupation -
    • setDeceased

      public void setDeceased(Patient patient)
      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

      public Patient getPatient()
      converts the fhir patient resource in the convenience api patient
      Returns:
      the patient convenience api patient
    • getIdentificators

      public List<Identificator> getIdentificators()
      convert the fhir identifiers to a list of convenience identificator
      Returns:
      list of convenience identificator
    • getTelecommunications

      public List<Telecom> getTelecommunications()
      convert the fhir telecoms to a list of convenience telecom
      Returns:
      list of convenience telecom
    • getHl7Cdar2Birthplace

      public POCDMT000040Birthplace getHl7Cdar2Birthplace()
      convert the fhir birth place to hl7 cda r2 birth place
      Returns:
      hl7 cda r2 birth place
    • getLanguangeCommunication

      public List<POCDMT000040LanguageCommunication> getLanguangeCommunication()
      convert the fhir communication to list of hl7 cda r2 languange communication
      Returns:
      list of hl7 cda r2 languange communication
    • getConvenienceName

      public Name getConvenienceName()
      convert the fhir patient human name to convenience name
      Returns:
      convenience name
    • getOrganization

      public Organization 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

      public Telecom createTelecom(String value, org.hl7.fhir.r4.model.ContactPoint.ContactPointSystem system, org.hl7.fhir.r4.model.ContactPoint.ContactPointUse usage)
    • 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