Class MedicationRequest

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 MedicationRequest extends DomainResource
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.
See Also:
  • Field Details

    • identifier

      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.
    • status

      A code specifying the current state of the order. Generally, this will be active or completed state.
    • statusReason

      Captures the reason for the current state of the MedicationRequest.
    • intent

      Whether the request is a proposal, plan, or an original order.
    • category

      Indicates the type of medication request (for example, where the medication is expected to be consumed or administered (i.e. inpatient or outpatient)).
    • priority

      Indicates how quickly the Medication Request should be addressed with respect to other requests.
    • doNotPerform

      If true indicates that the provider is asking for the medication request not to occur.
    • reported

      protected Type reported
      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.
    • medication

      protected Type medication
      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.
    • subject

      protected Reference subject
      A link to a resource representing the person or set of individuals to whom the medication will be given.
    • subjectTarget

      The actual object that is the target of the reference (A link to a resource representing the person or set of individuals to whom the medication will be given.)
    • encounter

      protected Reference encounter
      The Encounter during which this [x] was created or to which the creation of this record is tightly associated.
    • encounterTarget

      The actual object that is the target of the reference (The Encounter during which this [x] was created or to which the creation of this record is tightly associated.)
    • supportingInformation

      Include additional information (for example, patient height and weight) that supports the ordering of the medication.
    • supportingInformationTarget

      The actual objects that are the target of the reference (Include additional information (for example, patient height and weight) that supports the ordering of the medication.)
    • authoredOn

      The date (and perhaps time) when the prescription was initially written or authored on.
    • requester

      protected Reference requester
      The individual, organization, or device that initiated the request and has responsibility for its activation.
    • requesterTarget

      The actual object that is the target of the reference (The individual, organization, or device that initiated the request and has responsibility for its activation.)
    • performer

      protected Reference performer
      The specified desired performer of the medication treatment (e.g. the performer of the medication administration).
    • performerTarget

      The actual object that is the target of the reference (The specified desired performer of the medication treatment (e.g. the performer of the medication administration).)
    • performerType

      Indicates the type of performer of the administration of the medication.
    • recorder

      protected Reference recorder
      The person who entered the order on behalf of another individual for example in the case of a verbal or a telephone order.
    • recorderTarget

      The actual object that is the target of the reference (The person who entered the order on behalf of another individual for example in the case of a verbal or a telephone order.)
    • reasonCode

      The reason or the indication for ordering or not ordering the medication.
    • reasonReference

      Condition or observation that supports why the medication was ordered.
    • reasonReferenceTarget

      The actual objects that are the target of the reference (Condition or observation that supports why the medication was ordered.)
    • instantiatesCanonical

      The URL pointing to a protocol, guideline, orderset, or other definition that is adhered to in whole or in part by this MedicationRequest.
    • instantiatesUri

      The URL pointing to an externally maintained protocol, guideline, orderset or other definition that is adhered to in whole or in part by this MedicationRequest.
    • basedOn

      protected List<Reference> basedOn
      A plan or request that is fulfilled in whole or in part by this medication request.
    • basedOnTarget

      The actual objects that are the target of the reference (A plan or request that is fulfilled in whole or in part by this medication request.)
    • groupIdentifier

      A shared identifier common to all requests that were authorized more or less simultaneously by a single author, representing the identifier of the requisition or prescription.
    • courseOfTherapyType

      The description of the overall patte3rn of the administration of the medication to the patient.
    • insurance

      protected List<Reference> insurance
      Insurance plans, coverage extensions, pre-authorizations and/or pre-determinations that may be required for delivering the requested service.
    • insuranceTarget

      The actual objects that are the target of the reference (Insurance plans, coverage extensions, pre-authorizations and/or pre-determinations that may be required for delivering the requested service.)
    • note

      protected List<Annotation> note
      Extra information about the prescription that could not be conveyed by the other attributes.
    • dosageInstruction

      Indicates how the medication is to be used by the patient.
    • dispenseRequest

      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.
    • substitution

      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.
    • priorPrescription

      A link to a resource representing an earlier order related order or prescription.
    • priorPrescriptionTarget

      The actual object that is the target of the reference (A link to a resource representing an earlier order related order or prescription.)
    • detectedIssue

      Indicates an actual or potential clinical issue with or between one or more active or proposed clinical actions for a patient; e.g. Drug-drug interaction, duplicate therapy, dosage alert etc.
    • detectedIssueTarget

      The actual objects that are the target of the reference (Indicates an actual or potential clinical issue with or between one or more active or proposed clinical actions for a patient; e.g. Drug-drug interaction, duplicate therapy, dosage alert etc.)
    • eventHistory

      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.
    • eventHistoryTarget

      The actual objects that are the target of the reference (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.)
    • SP_REQUESTER

      public static final String SP_REQUESTER
      Search parameter: requester

      Description: Returns prescriptions prescribed by this prescriber
      Type: reference
      Path: MedicationRequest.requester

      See Also:
    • REQUESTER

      public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam REQUESTER
      Fluent Client search parameter constant for requester

      Description: Returns prescriptions prescribed by this prescriber
      Type: reference
      Path: MedicationRequest.requester

    • INCLUDE_REQUESTER

      public static final ca.uhn.fhir.model.api.Include INCLUDE_REQUESTER
      Constant for fluent queries to be used to add include statements. Specifies the path value of "MedicationRequest:requester".
    • SP_DATE

      public static final String SP_DATE
      Search parameter: date

      Description: Returns medication request to be administered on a specific date
      Type: date
      Path: MedicationRequest.dosageInstruction.timing.event

      See Also:
    • DATE

      public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE
      Fluent Client search parameter constant for date

      Description: Returns medication request to be administered on a specific date
      Type: date
      Path: MedicationRequest.dosageInstruction.timing.event

    • SP_IDENTIFIER

      public static final String SP_IDENTIFIER
      Search parameter: identifier

      Description: Return prescriptions with this external identifier
      Type: token
      Path: MedicationRequest.identifier

      See Also:
    • IDENTIFIER

      public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER
      Fluent Client search parameter constant for identifier

      Description: Return prescriptions with this external identifier
      Type: token
      Path: MedicationRequest.identifier

    • SP_INTENDED_DISPENSER

      public static final String SP_INTENDED_DISPENSER
      Search parameter: intended-dispenser

      Description: Returns prescriptions intended to be dispensed by this Organization
      Type: reference
      Path: MedicationRequest.dispenseRequest.performer

      See Also:
    • INTENDED_DISPENSER

      public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam INTENDED_DISPENSER
      Fluent Client search parameter constant for intended-dispenser

      Description: Returns prescriptions intended to be dispensed by this Organization
      Type: reference
      Path: MedicationRequest.dispenseRequest.performer

    • INCLUDE_INTENDED_DISPENSER

      public static final ca.uhn.fhir.model.api.Include INCLUDE_INTENDED_DISPENSER
      Constant for fluent queries to be used to add include statements. Specifies the path value of "MedicationRequest:intended-dispenser".
    • SP_AUTHOREDON

      public static final String SP_AUTHOREDON
      Search parameter: authoredon

      Description: Return prescriptions written on this date
      Type: date
      Path: MedicationRequest.authoredOn

      See Also:
    • AUTHOREDON

      public static final ca.uhn.fhir.rest.gclient.DateClientParam AUTHOREDON
      Fluent Client search parameter constant for authoredon

      Description: Return prescriptions written on this date
      Type: date
      Path: MedicationRequest.authoredOn

    • SP_CODE

      public static final String SP_CODE
      Search parameter: code

      Description: Return prescriptions of this medication code
      Type: token
      Path: MedicationRequest.medicationCodeableConcept

      See Also:
    • CODE

      public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE
      Fluent Client search parameter constant for code

      Description: Return prescriptions of this medication code
      Type: token
      Path: MedicationRequest.medicationCodeableConcept

    • SP_SUBJECT

      public static final String SP_SUBJECT
      Search parameter: subject

      Description: The identity of a patient to list orders for
      Type: reference
      Path: MedicationRequest.subject

      See Also:
    • SUBJECT

      public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUBJECT
      Fluent Client search parameter constant for subject

      Description: The identity of a patient to list orders for
      Type: reference
      Path: MedicationRequest.subject

    • INCLUDE_SUBJECT

      public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECT
      Constant for fluent queries to be used to add include statements. Specifies the path value of "MedicationRequest:subject".
    • SP_MEDICATION

      public static final String SP_MEDICATION
      Search parameter: medication

      Description: Return prescriptions for this medication reference
      Type: reference
      Path: MedicationRequest.medicationReference

      See Also:
    • MEDICATION

      public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam MEDICATION
      Fluent Client search parameter constant for medication

      Description: Return prescriptions for this medication reference
      Type: reference
      Path: MedicationRequest.medicationReference

    • INCLUDE_MEDICATION

      public static final ca.uhn.fhir.model.api.Include INCLUDE_MEDICATION
      Constant for fluent queries to be used to add include statements. Specifies the path value of "MedicationRequest:medication".
    • SP_ENCOUNTER

      public static final String SP_ENCOUNTER
      Search parameter: encounter

      Description: Return prescriptions with this encounter identifier
      Type: reference
      Path: MedicationRequest.encounter

      See Also:
    • ENCOUNTER

      public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENCOUNTER
      Fluent Client search parameter constant for encounter

      Description: Return prescriptions with this encounter identifier
      Type: reference
      Path: MedicationRequest.encounter

    • INCLUDE_ENCOUNTER

      public static final ca.uhn.fhir.model.api.Include INCLUDE_ENCOUNTER
      Constant for fluent queries to be used to add include statements. Specifies the path value of "MedicationRequest:encounter".
    • SP_PRIORITY

      public static final String SP_PRIORITY
      Search parameter: priority

      Description: Returns prescriptions with different priorities
      Type: token
      Path: MedicationRequest.priority

      See Also:
    • PRIORITY

      public static final ca.uhn.fhir.rest.gclient.TokenClientParam PRIORITY
      Fluent Client search parameter constant for priority

      Description: Returns prescriptions with different priorities
      Type: token
      Path: MedicationRequest.priority

    • SP_INTENT

      public static final String SP_INTENT
      Search parameter: intent

      Description: Returns prescriptions with different intents
      Type: token
      Path: MedicationRequest.intent

      See Also:
    • INTENT

      public static final ca.uhn.fhir.rest.gclient.TokenClientParam INTENT
      Fluent Client search parameter constant for intent

      Description: Returns prescriptions with different intents
      Type: token
      Path: MedicationRequest.intent

    • SP_PATIENT

      public static final String SP_PATIENT
      Search parameter: patient

      Description: Returns prescriptions for a specific patient
      Type: reference
      Path: MedicationRequest.subject

      See Also:
    • PATIENT

      public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT
      Fluent Client search parameter constant for patient

      Description: Returns prescriptions for a specific patient
      Type: reference
      Path: MedicationRequest.subject

    • INCLUDE_PATIENT

      public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT
      Constant for fluent queries to be used to add include statements. Specifies the path value of "MedicationRequest:patient".
    • SP_INTENDED_PERFORMER

      public static final String SP_INTENDED_PERFORMER
      Search parameter: intended-performer

      Description: Returns the intended performer of the administration of the medication request
      Type: reference
      Path: MedicationRequest.performer

      See Also:
    • INTENDED_PERFORMER

      public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam INTENDED_PERFORMER
      Fluent Client search parameter constant for intended-performer

      Description: Returns the intended performer of the administration of the medication request
      Type: reference
      Path: MedicationRequest.performer

    • INCLUDE_INTENDED_PERFORMER

      public static final ca.uhn.fhir.model.api.Include INCLUDE_INTENDED_PERFORMER
      Constant for fluent queries to be used to add include statements. Specifies the path value of "MedicationRequest:intended-performer".
    • SP_INTENDED_PERFORMERTYPE

      public static final String SP_INTENDED_PERFORMERTYPE
      Search parameter: intended-performertype

      Description: Returns requests for a specific type of performer
      Type: token
      Path: MedicationRequest.performerType

      See Also:
    • INTENDED_PERFORMERTYPE

      public static final ca.uhn.fhir.rest.gclient.TokenClientParam INTENDED_PERFORMERTYPE
      Fluent Client search parameter constant for intended-performertype

      Description: Returns requests for a specific type of performer
      Type: token
      Path: MedicationRequest.performerType

    • SP_CATEGORY

      public static final String SP_CATEGORY
      Search parameter: category

      Description: Returns prescriptions with different categories
      Type: token
      Path: MedicationRequest.category

      See Also:
    • CATEGORY

      public static final ca.uhn.fhir.rest.gclient.TokenClientParam CATEGORY
      Fluent Client search parameter constant for category

      Description: Returns prescriptions with different categories
      Type: token
      Path: MedicationRequest.category

    • SP_STATUS

      public static final String SP_STATUS
      Search parameter: status

      Description: Status of the prescription
      Type: token
      Path: MedicationRequest.status

      See Also:
    • STATUS

      public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS
      Fluent Client search parameter constant for status

      Description: Status of the prescription
      Type: token
      Path: MedicationRequest.status

  • Constructor Details

  • Method Details