Class KbvErpMedicationRequest

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.MedicationRequest
de.gematik.test.erezept.fhir.r4.kbv.KbvErpMedicationRequest
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 KbvErpMedicationRequest extends org.hl7.fhir.r4.model.MedicationRequest implements ErpFhirResource
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.hl7.fhir.r4.model.MedicationRequest

    org.hl7.fhir.r4.model.MedicationRequest.MedicationRequestDispenseRequestComponent, org.hl7.fhir.r4.model.MedicationRequest.MedicationRequestDispenseRequestInitialFillComponent, org.hl7.fhir.r4.model.MedicationRequest.MedicationRequestIntent, org.hl7.fhir.r4.model.MedicationRequest.MedicationRequestIntentEnumFactory, org.hl7.fhir.r4.model.MedicationRequest.MedicationRequestPriority, org.hl7.fhir.r4.model.MedicationRequest.MedicationRequestPriorityEnumFactory, org.hl7.fhir.r4.model.MedicationRequest.MedicationRequestStatus, org.hl7.fhir.r4.model.MedicationRequest.MedicationRequestStatusEnumFactory, org.hl7.fhir.r4.model.MedicationRequest.MedicationRequestSubstitutionComponent
  • Field Summary

    Fields inherited from class org.hl7.fhir.r4.model.MedicationRequest

    authoredOn, AUTHOREDON, basedOn, basedOnTarget, category, CATEGORY, CODE, courseOfTherapyType, DATE, detectedIssue, detectedIssueTarget, dispenseRequest, doNotPerform, dosageInstruction, encounter, ENCOUNTER, encounterTarget, eventHistory, eventHistoryTarget, groupIdentifier, identifier, IDENTIFIER, INCLUDE_ENCOUNTER, INCLUDE_INTENDED_DISPENSER, INCLUDE_INTENDED_PERFORMER, INCLUDE_MEDICATION, INCLUDE_PATIENT, INCLUDE_REQUESTER, INCLUDE_SUBJECT, instantiatesCanonical, instantiatesUri, insurance, insuranceTarget, INTENDED_DISPENSER, INTENDED_PERFORMER, INTENDED_PERFORMERTYPE, intent, INTENT, medication, MEDICATION, note, PATIENT, performer, performerTarget, performerType, priority, PRIORITY, priorPrescription, priorPrescriptionTarget, reasonCode, reasonReference, reasonReferenceTarget, recorder, recorderTarget, reported, requester, REQUESTER, requesterTarget, SP_AUTHOREDON, SP_CATEGORY, SP_CODE, SP_DATE, SP_ENCOUNTER, SP_IDENTIFIER, SP_INTENDED_DISPENSER, SP_INTENDED_PERFORMER, SP_INTENDED_PERFORMERTYPE, SP_INTENT, SP_MEDICATION, SP_PATIENT, SP_PRIORITY, SP_REQUESTER, SP_STATUS, SP_SUBJECT, status, STATUS, statusReason, subject, SUBJECT, subjectTarget, substitution, supportingInformation, supportingInformationTarget

    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
    boolean
     
    fromMedicationRequest(org.hl7.fhir.r4.model.MedicationRequest adaptee)
     
    fromMedicationRequest(org.hl7.fhir.r4.model.Resource adaptee)
     
     
     
     
     
     
     
     
    int
     
     
     
     
     
    Optional<org.hl7.fhir.r4.model.Period>
     
    Optional<org.hl7.fhir.r4.model.Ratio>
     
     
     
    getNoteTextOr(String alternative)
     
     
     
    boolean
     
    boolean
     
    boolean
     
    boolean
    check if the medicationrequest is a MVO
    boolean
     
    void
     

    Methods inherited from class org.hl7.fhir.r4.model.MedicationRequest

    addBasedOn, addBasedOn, addCategory, addCategory, addChild, addDetectedIssue, addDetectedIssue, addDetectedIssueTarget, addDosageInstruction, addDosageInstruction, addEventHistory, addEventHistory, addEventHistoryTarget, addIdentifier, addIdentifier, addInstantiatesCanonical, addInstantiatesCanonicalElement, addInstantiatesUri, addInstantiatesUriElement, addInsurance, addInsurance, addNote, addNote, addReasonCode, addReasonCode, addReasonReference, addReasonReference, addSupportingInformation, addSupportingInformation, copy, copyValues, equalsDeep, equalsShallow, fhirType, getAuthoredOn, getAuthoredOnElement, getBasedOn, getBasedOnFirstRep, getBasedOnTarget, getCategory, getCategoryFirstRep, getCourseOfTherapyType, getDetectedIssue, getDetectedIssueFirstRep, getDetectedIssueTarget, getDispenseRequest, getDoNotPerform, getDoNotPerformElement, getDosageInstruction, getDosageInstructionFirstRep, getEncounter, getEncounterTarget, getEventHistory, getEventHistoryFirstRep, getEventHistoryTarget, getGroupIdentifier, getIdentifier, getIdentifierFirstRep, getInstantiatesCanonical, getInstantiatesUri, getInsurance, getInsuranceFirstRep, getInsuranceTarget, getIntent, getIntentElement, getMedication, getMedicationCodeableConcept, getMedicationReference, getNamedProperty, getNote, getNoteFirstRep, getPerformer, getPerformerTarget, getPerformerType, getPriority, getPriorityElement, getPriorPrescription, getPriorPrescriptionTarget, getProperty, getReasonCode, getReasonCodeFirstRep, getReasonReference, getReasonReferenceFirstRep, getReasonReferenceTarget, getRecorder, getRecorderTarget, getReported, getReportedBooleanType, getReportedReference, getRequester, getRequesterTarget, getResourceType, getStatus, getStatusElement, getStatusReason, getSubject, getSubjectTarget, getSubstitution, getSupportingInformation, getSupportingInformationFirstRep, getSupportingInformationTarget, getTypesForProperty, hasAuthoredOn, hasAuthoredOnElement, hasBasedOn, hasCategory, hasCourseOfTherapyType, hasDetectedIssue, hasDispenseRequest, hasDoNotPerform, hasDoNotPerformElement, hasDosageInstruction, hasEncounter, hasEventHistory, hasGroupIdentifier, hasIdentifier, hasInstantiatesCanonical, hasInstantiatesCanonical, hasInstantiatesUri, hasInstantiatesUri, hasInsurance, hasIntent, hasIntentElement, hasMedication, hasMedicationCodeableConcept, hasMedicationReference, hasNote, hasPerformer, hasPerformerType, hasPriority, hasPriorityElement, hasPriorPrescription, hasReasonCode, hasReasonReference, hasRecorder, hasReported, hasReportedBooleanType, hasReportedReference, hasRequester, hasStatus, hasStatusElement, hasStatusReason, hasSubject, hasSubstitution, hasSupportingInformation, isEmpty, listChildren, makeProperty, setAuthoredOn, setAuthoredOnElement, setBasedOn, setCategory, setCourseOfTherapyType, setDetectedIssue, setDispenseRequest, setDoNotPerform, setDoNotPerformElement, setDosageInstruction, setEncounter, setEncounterTarget, setEventHistory, setGroupIdentifier, setIdentifier, setInstantiatesCanonical, setInstantiatesUri, setInsurance, setIntent, setIntentElement, setMedication, setNote, setPerformer, setPerformerTarget, setPerformerType, setPriority, setPriorityElement, setPriorPrescription, setPriorPrescriptionTarget, setProperty, setProperty, setReasonCode, setReasonReference, setRecorder, setRecorderTarget, setReported, setRequester, setRequesterTarget, setStatus, setStatusElement, setStatusReason, setSubject, setSubjectTarget, setSubstitution, setSupportingInformation, 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 de.gematik.test.erezept.fhir.r4.ErpFhirResource

    asReference

    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

    • KbvErpMedicationRequest

      public KbvErpMedicationRequest()
  • Method Details

    • getLogicalId

      public String getLogicalId()
    • getNoteText

      public Optional<String> getNoteText()
    • getDispenseQuantity

      public int getDispenseQuantity()
    • hasAccidentExtension

      public boolean hasAccidentExtension()
    • getAccidentCause

      public Optional<AccidentCauseType> getAccidentCause()
    • getAccidentWorkplace

      public Optional<String> getAccidentWorkplace()
    • getAccidentDate

      public Optional<Date> getAccidentDate()
    • getAccident

      public Optional<AccidentExtension> getAccident()
    • isBvg

      public boolean isBvg()
    • hasEmergencyServiceFee

      public boolean hasEmergencyServiceFee()
    • isMultiple

      public boolean isMultiple()
      check if the medicationrequest is a MVO
      Returns:
      true if MVO, false otherwise
    • getMvoStart

      public Optional<Date> getMvoStart()
    • getMvoEnd

      public Optional<Date> getMvoEnd()
    • getMvoId

      public Optional<String> getMvoId()
    • getNumerator

      public Optional<Integer> getNumerator()
    • getDemoninator

      public Optional<Integer> getDemoninator()
    • getMvoRatio

      public Optional<org.hl7.fhir.r4.model.Ratio> getMvoRatio()
    • updateMvoDates

      public void updateMvoDates()
    • getMvoPeriod

      public Optional<org.hl7.fhir.r4.model.Period> getMvoPeriod()
    • getCoPaymentStatus

      public Optional<StatusCoPayment> getCoPaymentStatus()
    • allowSubstitution

      public boolean allowSubstitution()
    • isSubstitutionAllowed

      public boolean isSubstitutionAllowed()
    • getNoteTextOr

      public String getNoteTextOr(String alternative)
    • getNoteTextOrEmpty

      public String getNoteTextOrEmpty()
    • getDosageInstructionAsText

      public String getDosageInstructionAsText()
    • getDescription

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

      public static KbvErpMedicationRequest fromMedicationRequest(org.hl7.fhir.r4.model.MedicationRequest adaptee)
    • fromMedicationRequest

      public static KbvErpMedicationRequest fromMedicationRequest(org.hl7.fhir.r4.model.Resource adaptee)