MedicationRequest

The FHIR R4 MedicationRequest resource represents a clinician's intent to prescribe a medication to a patient. It includes details about the medication, dosage instructions, prescribing provider, and authorization context. Health Gorilla supports this resource for both historical prescriptions and active orders.

Use Cases

  • View a patient’s prescribed medications across providers
  • Determine whether a medication has been ordered but not yet dispensed
  • Review medication history to avoid adverse drug interactions

Base URLs

Authentication

All requests require OAuth 2.0 authentication using a Bearer Token. Unauthorized requests return 401 Unauthorized responses.

Required Scopes

  • medicationrequest.read for GET
  • medicationrequest.write for POST, PUT, DELETE

For more information, go to: OAuth 2.0 Authentication.

Supported Methods

MethodOperationDescription
GETRead MedicationRequestRetrieves a specific MedicationRequest record by its FHIR ID.
GETSearch MedicationRequestSearches for MedicationRequest records for a specified patient.
POSTCreate MedicationRequestSubmits a new MedicationRequest record to the Health Gorilla FHIR server.
PUTUpdate MedicationRequestUpdates an existing MedicationRequest record by full resource replacement.
DELETEDelete MedicationRequestRemoves an existing MedicationRequest record from the system by full deletion.

Frequently Used Search Parameters

ParameterDescriptionFHIR Value Set / Example ValuesFHIR Data TypeRequired
patientFilters by patient IDPatient/{id}ReferenceYes
statusFilters by the status of the medication orderactive, cancelled, completedtokenNo
intentFilters by order intentorder, plan, proposaltokenNo
authoredonFilters by prescription datege2022-01-01, le2023-12-31dateNo
requesterFilters by prescribing providerPractitioner/{id}ReferenceNo
medicationFilters by medication codeRxNorm code (e.g., 1049630)tokenNo
encounterFilters by the associated encounterEncounter/{id}ReferenceNo

Commonly Returned Resource Attributes

AttributeDescriptionExample ValuesFHIR Data TypeRequired
idUnique FHIR ID for the medication requestmedreq-789012idYes
statusCurrent state of the requestactive, completed, cancelledcodeYes
intentPurpose of the medication requestorder, plancodeYes
medicationCodeableConceptPrescribed medicationLisinopril 10 MG Oral TabletCodeableConceptYes
subjectPatient for whom the medication is prescribedPatient/{id}Reference(Patient)Yes
authoredOnDate the prescription was authored2024-02-01dateTimeYes
requesterPractitioner who authored the prescriptionPractitioner/{id}ReferenceYes
dosageInstructionInstructions on how the medication should be takenTake one tablet daily.Dosage[]No
dispenseRequestParameters for dispensing the medication30 tablets, 3 refills, duration, etc.MedicationRequest.DispenseRequestNo
reasonCodeReason for prescribing the medicationHypertensionCodeableConcept[]No
encounterEncounter during which the prescription was writtenEncounter/{id}Reference(Encounter)No

Webhooks

Clients can subscribe to webhook notifications for new or updated MedicationRequest records. For more information, go to: Webhooks & Polling.

Error Handling

All MedicationRequest operations follow standard Health Gorilla error handling, including use of FHIR OperationOutcome for structured responses.
For more information, go to: Error Handling.

Additional Resources

HL7 FHIR MedicationRequest