Class KbvPatient

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
de.gematik.test.erezept.fhir.r4.kbv.KbvPatient
All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement, ErpFhirResource, 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 KbvPatient extends org.hl7.fhir.r4.model.Patient implements ErpFhirResource
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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.hl7.fhir.r4.model.Reference
     
    static KbvPatient
    fromPatient(org.hl7.fhir.r4.model.Patient adaptee)
     
    static KbvPatient
    fromPatient(org.hl7.fhir.r4.model.Resource adaptee)
     
     
     
     
     
     
     
     
    Optional<de.gematik.bbriccs.fhir.de.value.KVNR>
    Get the GKV-KVNR of the patient
    Optional<org.hl7.fhir.r4.model.Identifier>
     
    de.gematik.bbriccs.fhir.de.valueset.InsuranceTypeDe
     
    de.gematik.bbriccs.fhir.de.value.KVNR
    Get the KVNR of the patient without bothering about the concrete insurance type
     
    Optional<org.hl7.fhir.r4.model.Reference>
     
     
    Optional<de.gematik.bbriccs.fhir.de.value.KVNR>
    Get the PKV-KVNR of the patient
    Optional<org.hl7.fhir.r4.model.Identifier>
     
    boolean
    Check if the patient has an ID for "gesetzliche Krankenversicherung"
    boolean
    Check if the patient has an ID for "private Krankenversicherung"

    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, 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

    fhirType, getFormatCommentsPost, getFormatCommentsPre, hasFormatComment, isEmpty

    Methods inherited from interface org.hl7.fhir.instance.model.api.IBaseResource

    getMeta, getStructureFhirVersionEnum, isDeleted, setId
  • Constructor Details

    • KbvPatient

      public KbvPatient()
  • Method Details

    • getLogicalId

      public String getLogicalId()
    • asReference

      public org.hl7.fhir.r4.model.Reference asReference()
      Specified by:
      asReference in interface ErpFhirResource
    • hasGkvKvnr

      public boolean hasGkvKvnr()
      Check if the patient has an ID for "gesetzliche Krankenversicherung"
      Returns:
      true if the Patient has a GKV ID
    • hasPkvKvnr

      public boolean hasPkvKvnr()
      Check if the patient has an ID for "private Krankenversicherung"
      Returns:
      true if the Patient has a PKV ID
    • getInsuranceKind

      public de.gematik.bbriccs.fhir.de.valueset.InsuranceTypeDe getInsuranceKind()
    • getKvnr

      public de.gematik.bbriccs.fhir.de.value.KVNR getKvnr()
      Get the KVNR of the patient without bothering about the concrete insurance type
      Returns:
      the KVNR of the ptient
    • getGkvId

      public Optional<de.gematik.bbriccs.fhir.de.value.KVNR> getGkvId()
      Get the GKV-KVNR of the patient
      Returns:
      Optional GKV-KVNR
    • getPkvId

      public Optional<de.gematik.bbriccs.fhir.de.value.KVNR> getPkvId()
      Get the PKV-KVNR of the patient
      Returns:
      Optional PKV-KVNR
    • getGkvIdentifier

      public Optional<org.hl7.fhir.r4.model.Identifier> getGkvIdentifier()
    • getPkvIdentifier

      public Optional<org.hl7.fhir.r4.model.Identifier> getPkvIdentifier()
    • getPkvAssigner

      public Optional<org.hl7.fhir.r4.model.Reference> getPkvAssigner()
    • getPkvAssignerName

      public Optional<String> getPkvAssignerName()
    • getFullname

      public String getFullname()
    • getFamilyName

      public String getFamilyName()
    • getGivenName

      public String getGivenName()
    • getAddressCity

      public String getAddressCity()
    • getAddressPostalCode

      public String getAddressPostalCode()
    • getAddressStreet

      public String getAddressStreet()
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface ErpFhirResource
    • fromPatient

      public static KbvPatient fromPatient(org.hl7.fhir.r4.model.Patient adaptee)
    • fromPatient

      public static KbvPatient fromPatient(org.hl7.fhir.r4.model.Resource adaptee)