Data Model Libraries
    Preparing search index...

    MedicationRequest Class

    An order or request for both supply of the medication and the instructions for administration of the medication to a patient. The resource is called "MedicationRequest" rather than "MedicationPrescription" or "MedicationOrder" to generalize the use across inpatient and outpatient settings, including care plans, etc., and to harmonize with workflow patterns.

    FHIR Specification

    • Short: Ordering of medication for patient or group
    • Definition: An order or request for both supply of the medication and the instructions for administration of the medication to a patient. The resource is called "MedicationRequest" rather than "MedicationPrescription" or "MedicationOrder" to generalize the use across inpatient and outpatient settings, including care plans, etc., and to harmonize with workflow patterns.
    • FHIR Version: 5.0.0

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    Methods

    parse getIdentifier setIdentifier addIdentifier hasIdentifier getBasedOn setBasedOn addBasedOn hasBasedOn getPriorPrescription setPriorPrescription hasPriorPrescription getGroupIdentifier setGroupIdentifier hasGroupIdentifier getStatusEnumType setStatusEnumType hasStatusEnumType getStatusElement setStatusElement hasStatusElement getStatus setStatus hasStatus getStatusReason setStatusReason hasStatusReason getStatusChangedElement setStatusChangedElement hasStatusChangedElement getStatusChanged setStatusChanged hasStatusChanged getIntentEnumType setIntentEnumType hasIntentEnumType getIntentElement setIntentElement hasIntentElement getIntent setIntent hasIntent getCategory setCategory addCategory hasCategory getPriorityEnumType setPriorityEnumType hasPriorityEnumType getPriorityElement setPriorityElement hasPriorityElement getPriority setPriority hasPriority getDoNotPerformElement setDoNotPerformElement hasDoNotPerformElement getDoNotPerform setDoNotPerform hasDoNotPerform getMedication setMedication hasMedication getSubject setSubject hasSubject getInformationSource setInformationSource addInformationSource hasInformationSource getEncounter setEncounter hasEncounter getSupportingInformation setSupportingInformation addSupportingInformation hasSupportingInformation getAuthoredOnElement setAuthoredOnElement hasAuthoredOnElement getAuthoredOn setAuthoredOn hasAuthoredOn getRequester setRequester hasRequester getReportedElement setReportedElement hasReportedElement getReported setReported hasReported getPerformerType setPerformerType hasPerformerType getPerformer setPerformer addPerformer hasPerformer getDevice setDevice addDevice hasDevice getRecorder setRecorder hasRecorder getReason setReason addReason hasReason getCourseOfTherapyType setCourseOfTherapyType hasCourseOfTherapyType getInsurance setInsurance addInsurance hasInsurance getNote setNote addNote hasNote getRenderedDosageInstructionElement setRenderedDosageInstructionElement hasRenderedDosageInstructionElement getRenderedDosageInstruction setRenderedDosageInstruction hasRenderedDosageInstruction getEffectiveDosePeriod setEffectiveDosePeriod hasEffectiveDosePeriod getDosageInstruction setDosageInstruction addDosageInstruction hasDosageInstruction getDispenseRequest setDispenseRequest hasDispenseRequest getSubstitution setSubstitution hasSubstitution getEventHistory setEventHistory addEventHistory hasEventHistory fhirType isEmpty isRequiredFieldsEmpty copy toJSON getText setText hasText getContained setContained addContained hasContained getExtension setExtension hasExtension getExtensionByUrl addExtension removeExtension getModifierExtension setModifierExtension hasModifierExtension getModifierExtensionByUrl addModifierExtension removeModifierExtension resourceType getIdElement setIdElement hasIdElement getId setId hasId getMeta setMeta hasMeta getImplicitRulesElement setImplicitRulesElement hasImplicitRulesElement getImplicitRules setImplicitRules hasImplicitRules getLanguageElement setLanguageElement hasLanguageElement getLanguage setLanguage hasLanguage isResource isDataType isComplexDataType isPrimitive isBooleanPrimitive isStringPrimitive isNumberPrimitive isBigIntPrimitive isDateTimePrimitive copyValues initIdentifier initBasedOn initCategory initInformationSource initSupportingInformation initPerformer initDevice initReason initInsurance initNote initDosageInstruction initEventHistory

    Constructors

    Properties

    identifier?: Identifier[]

    MedicationRequest.identifier Element

    FHIR Specification

    • Short: External ids for this request
    • Definition: Identifiers associated with this medication request that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate. They are business identifiers assigned to this resource by the performer or other systems and remain constant as the resource is updated and propagates from server to server.
    • Comment: This is a business identifier, not a resource identifier.
    • FHIR Type: Identifier
    • Cardinality: 0..*
    • isModifier: false
    • isSummary: false
    basedOn?: Reference[]

    MedicationRequest.basedOn Element

    FHIR Specification

    priorPrescription?: Reference

    MedicationRequest.priorPrescription Element

    FHIR Specification

    • Short: Reference to an order/prescription that is being replaced by this MedicationRequest
    • Definition: Reference to an order/prescription that is being replaced by this MedicationRequest.
    • FHIR Type: Reference
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: false
    groupIdentifier?: Identifier

    MedicationRequest.groupIdentifier Element

    FHIR Specification

    • Short: Composite request this is part of
    • Definition: A shared identifier common to multiple independent Request instances that were activated/authorized more or less simultaneously by a single author. The presence of the same identifier on each request ties those requests together and may have business ramifications in terms of reporting of results, billing, etc. E.g. a requisition number shared by a set of lab tests ordered together, or a prescription number shared by all meds ordered at one time.
    • Requirements: Requests are linked either by a "basedOn" relationship (i.e. one request is fulfilling another) or by having a common requisition. Requests that are part of the same requisition are generally treated independently from the perspective of changing their state or maintaining them after initial creation.
    • FHIR Type: Identifier
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: true
    medicationrequestStatusEnum: MedicationrequestStatusEnum

    FHIR CodeSystem: MedicationrequestStatus

    status: null | EnumCodeType

    MedicationRequest.status Element

    FHIR Specification

    • Short: active | on-hold | ended | stopped | completed | cancelled | entered-in-error | draft | unknown
    • Definition: A code specifying the current state of the order. Generally, this will be active or completed state.
    • Comment: This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid. Clinical decision support systems should take the status into account when determining which medications to include in their algorithms.
    • FHIR Type: code
    • Cardinality: 1..1
    • isModifier: true
    • isModifierReason: This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid
    • isSummary: true

    CodeSystem Enumeration: MedicationrequestStatusEnum

    statusReason?: CodeableConcept

    MedicationRequest.statusReason Element

    FHIR Specification

    • Short: Reason for current status
    • Definition: Captures the reason for the current state of the MedicationRequest.
    • Comment: This is generally only used for "exception" statuses such as "suspended" or "cancelled". The reason why the MedicationRequest was created at all is captured in reasonCode, not here.
    • FHIR Type: CodeableConcept
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: false
    statusChanged?: DateTimeType

    MedicationRequest.statusChanged Element

    FHIR Specification

    • Short: When the status was changed
    • Definition: The date (and perhaps time) when the status was changed.
    • FHIR Type: dateTime
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: false
    medicationrequestIntentEnum: MedicationrequestIntentEnum

    FHIR CodeSystem: MedicationrequestIntent

    intent: null | EnumCodeType

    MedicationRequest.intent Element

    FHIR Specification

    • Short: proposal | plan | order | original-order | reflex-order | filler-order | instance-order | option
    • Definition: Whether the request is a proposal, plan, or an original order.
    • Comment: It is expected that the type of requester will be restricted for different stages of a MedicationRequest. For example, Proposals can be created by a patient, relatedPerson, Practitioner or Device. Plans can be created by Practitioners, Patients, RelatedPersons and Devices. Original orders can be created by a Practitioner only. An instance-order is an instantiation of a request or order and may be used to populate Medication Administration Record. This element is labeled as a modifier because the intent alters when and how the resource is actually applicable.
    • FHIR Type: code
    • Cardinality: 1..1
    • isModifier: true
    • isModifierReason: This element changes the interpretation of all descriptive attributes. For example "the time the request is recommended to occur" vs. "the time the request is authorized to occur" or "who is recommended to perform the request" vs. "who is authorized to perform the request
    • isSummary: true

    CodeSystem Enumeration: MedicationrequestIntentEnum

    category?: CodeableConcept[]

    MedicationRequest.category Element

    FHIR Specification

    • Short: Grouping or category of medication request
    • Definition: An arbitrary categorization or grouping of the medication request. It could be used for indicating where meds are intended to be administered, eg. in an inpatient setting or in a patient's home, or a legal category of the medication.
    • Comment: The category can be used to include where the medication is expected to be consumed or other types of requests. The examplar value set represents where the meds are intended to be administered and is just one example of request categorization.
    • FHIR Type: CodeableConcept
    • Cardinality: 0..*
    • isModifier: false
    • isSummary: false
    requestPriorityEnum: RequestPriorityEnum

    FHIR CodeSystem: RequestPriority

    priority?: EnumCodeType

    MedicationRequest.priority Element

    FHIR Specification

    • Short: routine | urgent | asap | stat
    • Definition: Indicates how quickly the Medication Request should be addressed with respect to other requests.
    • FHIR Type: code
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: true

    CodeSystem Enumeration: RequestPriorityEnum

    doNotPerform?: BooleanType

    MedicationRequest.doNotPerform Element

    FHIR Specification

    • Short: True if patient is to stop taking or not to start taking the medication
    • Definition: If true, indicates that the provider is asking for the patient to either stop taking or to not start taking the specified medication. For example, the patient is taking an existing medication and the provider is changing their medication. They want to create two seperate requests: one to stop using the current medication and another to start the new medication.
    • Comment: If do not perform is not specified, the request is a positive request e.g. "do perform".
    • FHIR Type: boolean
    • Cardinality: 0..1
    • isModifier: true
    • isModifierReason: This element is labeled as a modifier because this element negates the request to occur (ie, this is a request for the medication not to be ordered or prescribed, etc.)
    • isSummary: true
    medication: null | CodeableReference

    MedicationRequest.medication Element

    FHIR Specification

    • Short: Medication to be taken
    • Definition: Identifies the medication being requested. This is a link to a resource that represents the medication which may be the details of the medication or simply an attribute carrying a code that identifies the medication from a known list of medications.
    • Comment: If only a code is specified, then it needs to be a code for a specific product. If more information is required, then the use of the Medication resource is recommended. For example, if you require form or lot number or if the medication is compounded or extemporaneously prepared, then you must reference the Medication resource.
    • FHIR Type: CodeableReference
    • Cardinality: 1..1
    • isModifier: false
    • isSummary: true
    subject: null | Reference

    MedicationRequest.subject Element

    FHIR Specification

    • Short: Individual or group for whom the medication has been requested
    • Definition: The individual or group for whom the medication has been requested.
    • Comment: The subject on a medication request is mandatory. For the secondary use case where the actual subject is not provided, there still must be an anonymized subject specified.
    • FHIR Type: Reference
    • Cardinality: 1..1
    • isModifier: false
    • isSummary: true
    informationSource?: Reference[]

    MedicationRequest.informationSource Element

    FHIR Specification

    encounter?: Reference

    MedicationRequest.encounter Element

    FHIR Specification

    • Short: Encounter created as part of encounter/admission/stay
    • Definition: The Encounter during which this [x] was created or to which the creation of this record is tightly associated.
    • Comment: This will typically be the encounter the event occurred within, but some activities may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter." If there is a need to link to episodes of care they will be handled with an extension.
    • FHIR Type: Reference
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: false
    supportingInformation?: Reference[]

    MedicationRequest.supportingInformation Element

    FHIR Specification

    • Short: Information to support fulfilling of the medication
    • Definition: Information to support fulfilling (i.e. dispensing or administering) of the medication, for example, patient height and weight, a MedicationStatement for the patient).
    • Comment: This attribute can be used to reference a MedicationStatement about the patients' medication use.
    • FHIR Type: Reference
    • Cardinality: 0..*
    • isModifier: false
    • isSummary: false
    authoredOn?: DateTimeType

    MedicationRequest.authoredOn Element

    FHIR Specification

    • Short: When request was initially authored
    • Definition: The date (and perhaps time) when the prescription was initially written or authored on.
    • FHIR Type: dateTime
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: true
    requester?: Reference

    MedicationRequest.requester Element

    FHIR Specification

    reported?: BooleanType

    MedicationRequest.reported Element

    FHIR Specification

    • Short: Reported rather than primary record
    • Definition: Indicates if this record was captured as a secondary 'reported' record rather than as an original primary source-of-truth record. It may also indicate the source of the report.
    • Comment: If not populated, then assume that this is the original record and not reported
    • FHIR Type: boolean
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: true
    performerType?: CodeableConcept

    MedicationRequest.performerType Element

    FHIR Specification

    • Short: Desired kind of performer of the medication administration
    • Definition: Indicates the type of performer of the administration of the medication.
    • Comment: If specified without indicating a performer, this indicates that the performer must be of the specified type. If specified with a performer then it indicates the requirements of the performer if the designated performer is not available.
    • FHIR Type: CodeableConcept
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: true
    performer?: Reference[]

    MedicationRequest.performer Element

    FHIR Specification

    MedicationRequest.device Element

    FHIR Specification

    • Short: Intended type of device for the administration
    • Definition: The intended type of device that is to be used for the administration of the medication (for example, PCA Pump).
    • FHIR Type: CodeableReference
    • Cardinality: 0..*
    • isModifier: false
    • isSummary: false
    recorder?: Reference

    MedicationRequest.recorder Element

    FHIR Specification

    MedicationRequest.reason Element

    FHIR Specification

    courseOfTherapyType?: CodeableConcept

    MedicationRequest.courseOfTherapyType Element

    FHIR Specification

    • Short: Overall pattern of medication administration
    • Definition: The description of the overall pattern of the administration of the medication to the patient.
    • Comment: This attribute should not be confused with the protocol of the medication.
    • FHIR Type: CodeableConcept
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: false
    insurance?: Reference[]

    MedicationRequest.insurance Element

    FHIR Specification

    note?: Annotation[]

    MedicationRequest.note Element

    FHIR Specification

    • Short: Information about the prescription
    • Definition: Extra information about the prescription that could not be conveyed by the other attributes.
    • FHIR Type: Annotation
    • Cardinality: 0..*
    • isModifier: false
    • isSummary: false
    renderedDosageInstruction?: MarkdownType

    MedicationRequest.renderedDosageInstruction Element

    FHIR Specification

    • Short: Full representation of the dosage instructions
    • Definition: The full representation of the dose of the medication included in all dosage instructions. To be used when multiple dosage instructions are included to represent complex dosing such as increasing or tapering doses.
    • Requirements: The content of the renderedDosageInstructions must not be different than the dose represented in the dosageInstruction content.
    • FHIR Type: markdown
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: false
    effectiveDosePeriod?: Period

    MedicationRequest.effectiveDosePeriod Element

    FHIR Specification

    • Short: Period over which the medication is to be taken
    • Definition: The period over which the medication is to be taken. Where there are multiple dosageInstruction lines (for example, tapering doses), this is the earliest date and the latest end date of the dosageInstructions.
    • FHIR Type: Period
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: false
    dosageInstruction?: Dosage[]

    MedicationRequest.dosageInstruction Element

    FHIR Specification

    • Short: Specific instructions for how the medication should be taken
    • Definition: Specific instructions for how the medication is to be used by the patient.
    • Comment: There are examples where a medication request may include the option of an oral dose or an Intravenous or Intramuscular dose. For example, "Ondansetron 8mg orally or IV twice a day as needed for nausea" or "Compazine(R) (prochlorperazine) 5-10mg PO or 25mg PR bid prn nausea or vomiting". In these cases, two medication requests would be created that could be grouped together. The decision on which dose and route of administration to use is based on the patient's condition at the time the dose is needed. In general, each prescribed drug will be a separate Medication Request. When drug orders are grouped together at the time of order entry, but each of the drugs can be manipulated independently e.g. changing the status of one order to "completed" or "cancelled", changing another order status to "on-hold", the method to "group" all of the medication requests together is to use MedicationRequest.groupIdentifier element. All of the orders grouped together in this manner will have the same groupIdentifier, and separately, each order in the group may have a unique identifier. There are cases that require grouping of Medication orders together when it is necessary to specify optionality e.g. order two drugs at one time, but stating either of these drugs may be used to treat the patient. The use of a RequestOrchestration should be used as a parent for the Medication orders that require this type of grouping. An example when it may be necessary to group medication orders together is when you specify timing relationships e.g. order drug "xyz" with dose 123, then taper the same drug to a different dose after some interval of time precedence: e.g. give drug "abc" followed by drug "def" e.g. give drug 30 minutes before some procedure was performed more generically this supports - hierarchical groups of actions, where each specific action references the action to be performed (in terms of a Request resource), and each group describes additional behavior, relationships, and applicable conditions between the actions in the overall group. Note that one should NOT use the List or Composition resource to accomplish the above requirements. You may use List or Composition for other business requirements, but not to address the specific requirements of grouping medication orders.
    • FHIR Type: Dosage
    • Cardinality: 0..*
    • isModifier: false
    • isSummary: false

    MedicationRequest.dispenseRequest Element

    FHIR Specification

    • Short: Medication supply authorization
    • Definition: Indicates the specific details for the dispense or medication supply part of a medication request (also known as a Medication Prescription or Medication Order). Note that this information is not always sent with the order. There may be in some settings (e.g. hospitals) institutional or system support for completing the dispense details in the pharmacy department.
    • FHIR Type: BackboneElement
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: false

    MedicationRequest.substitution Element

    FHIR Specification

    • Short: Any restrictions on medication substitution
    • Definition: Indicates whether or not substitution can or should be part of the dispense. In some cases, substitution must happen, in other cases substitution must not happen. This block explains the prescriber's intent. If nothing is specified substitution may be done.
    • FHIR Type: BackboneElement
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: false
    eventHistory?: Reference[]

    MedicationRequest.eventHistory Element

    FHIR Specification

    • Short: A list of events of interest in the lifecycle
    • Definition: Links to Provenance records for past versions of this resource or fulfilling request or event resources that identify key state transitions or updates that are likely to be relevant to a user looking at the current version of the resource.
    • Comment: This might not include provenances for all versions of the request - only those deemed "relevant" or important. This SHALL NOT include the provenance associated with this current version of the resource. (If that provenance is deemed to be a "relevant" change, it will need to be added as part of a later update. Until then, it can be queried directly as the provenance that points to this version using _revinclude All Provenances should have some historical version of this Request as their subject.).
    • FHIR Type: Reference
    • Cardinality: 0..*
    • isModifier: false
    • isSummary: false

    Methods

    • Parse the provided MedicationRequest JSON to instantiate the MedicationRequest data model.

      Parameters

      • sourceJson: Value

        JSON representing FHIR MedicationRequest

      • OptionaloptSourceField: string

        Optional data source field (e.g. <complexTypeName>.<complexTypeFieldName>); defaults to MedicationRequest

      Returns undefined | MedicationRequest

      MedicationRequest data model or undefined for MedicationRequest

      JsonError if the provided JSON is not a valid JSON object

    • Assigns the provided Reference array value to the informationSource property.

      Parameters

      • value: undefined | Reference[]

        the informationSource array value

      Returns this

      this

      @ReferenceTargets('MedicationRequest.informationSource', ['Patient','Practitioner','PractitionerRole','RelatedPerson','Organization',])

      InvalidTypeError for invalid data type or reference value

    • Add the provided Reference value to the informationSource array property.

      Parameters

      • value: undefined | Reference

        the informationSource value

      Returns this

      this

      @ReferenceTargets('MedicationRequest.informationSource', ['Patient','Practitioner','PractitionerRole','RelatedPerson','Organization',])

      InvalidTypeError for invalid data type or reference value

    • Assigns the provided Requester object value to the requester property.

      Parameters

      • value: undefined | Reference

        the requester object value

      Returns this

      this

      @ReferenceTargets('MedicationRequest.requester', ['Practitioner','PractitionerRole','Organization','Patient','RelatedPerson','Device',])

      InvalidTypeError for invalid data type or reference value

    • Assigns the provided Reference array value to the performer property.

      Parameters

      • value: undefined | Reference[]

        the performer array value

      Returns this

      this

      @ReferenceTargets('MedicationRequest.performer', ['Practitioner','PractitionerRole','Organization','Patient','DeviceDefinition','RelatedPerson','CareTeam','HealthcareService',])

      InvalidTypeError for invalid data type or reference value

    • Add the provided Reference value to the performer array property.

      Parameters

      • value: undefined | Reference

        the performer value

      Returns this

      this

      @ReferenceTargets('MedicationRequest.performer', ['Practitioner','PractitionerRole','Organization','Patient','DeviceDefinition','RelatedPerson','CareTeam','HealthcareService',])

      InvalidTypeError for invalid data type or reference value

    • Assigns the provided value to the text property.

      Parameters

      Returns this

      this

    • Returns boolean

      true if the text property exists and has a value; false otherwise

    • Assigns the provided Resource array value to the contained property.

      Parameters

      • value: undefined | IResource[]

        the contained array value

      Returns this

      this

    • Returns boolean

      true if the contained property exists and has a value; false otherwise

    • Assigns the provided array of Extension values to the extension property.

      Parameters

      • extension: undefined | IExtension[]

        array of Extensions

      Returns this

      this

    • Determines if the extension property exists.

      Parameters

      • Optionalurl: string

        the url that identifies a specific Extension

      Returns boolean

      true if an Extension has the provided url; false otherwise

      If the url is provided, determines if an Extension having the provided url exists. If the url is not provided, determines if the extension property exists and has any values.

      AssertionError for invalid url

    • Adds the provided Extension to the extension property array.

      Parameters

      • extension: undefined | IExtension

        the Extension value to add to the extension property array

      Returns this

      this

    • Removes the Extension having the provided url from the extension property array.

      Parameters

      • url: string

        the url that identifies a specific Extension to remove

      Returns void

      AssertionError for invalid url

    • Determines if the modifierExtension property exists.

      Parameters

      • Optionalurl: string

        the url that identifies a specific Extension

      Returns boolean

      true if an Extension has the provided url

      If the url is provided, determines if an Extension having the provided url exists. If the url is not provided, determines if the modifierExtension property exists and has any values.

      AssertionError for invalid url

    • Assigns the provided PrimitiveType value to the id property.

      Parameters

      • element: undefined | IdType

        the id value

      Returns this

      this

    • Returns undefined | string

      the id property value as a primitive value

    • Assigns the provided primitive value to the id property.

      Parameters

      • value: undefined | string

        the id value

      Returns this

      this

      PrimitiveTypeError for invalid primitive types

    • Returns boolean

      true if the id property exists and has a value; false otherwise

    • Assigns the provided value to the meta property.

      Parameters

      • value: undefined | Meta

        the meta value

      Returns this

      this

    • Returns boolean

      true if the meta property exists and has a value; false otherwise

    • Assigns the provided primitive value to the implicitRules property.

      Parameters

      • value: undefined | string

        the implicitRules value

      Returns this

      this

      PrimitiveTypeError for invalid primitive types

    • Returns undefined | string

      the language property value as a primitive value

    • Assigns the provided primitive value to the language property.

      Parameters

      • value: undefined | string

        the language value

      Returns this

      this

      PrimitiveTypeError for invalid primitive types

    • Returns boolean

      true if the language property exists and has a value; false otherwise

    • Returns boolean

      true if the instance is a FHIR complex or primitive datatype; false otherwise