Get Medication List
get_medication_listRetrieve a patient's active FHIR R4 MedicationRequest resources to see current prescriptions, excluding stopped, completed, or inactive orders. Returns status, intent, medication code and authoredOn in a read-only JSON array.
Instructions
List the active FHIR R4 MedicationRequest resources for one patient. Use it to see what is currently prescribed; inactive, stopped and completed requests are excluded. Read only. Returns a JSON array of MedicationRequests with status, intent, subject, the medication code or reference and authoredOn, at most 200 results. Every call writes one hashed audit record. Other failures return the fixed text "FHIR request failed" with no server detail. Access is checked first against the server patient policy: a patient outside the caller grant returns "Patient access not authorized" before any FHIR request.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"patient_id": "<patient_id>"
},
"name": "get_medication_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| patient_id | Yes | FHIR logical id of the Patient, 1 to 64 letters, digits, dots or hyphens, for example a sandbox id returned by the FHIR server. Not a name, MRN or other identifier. |