MedicationRequest
A resident's medication orders, mapped to FHIR MedicationRequest. The drug identity is a First DataBank (FDB) drug id surfaced in the coding system uri — never a PCC/internal drug id.
FHIR MedicationRequestRequires clinical.read
Read-only
This resource is read-only. Clinical and financial writes are confirmed by a human inside the product and are not exposed on the integration API.
Endpoints
GET
/api/v1/ofctx/{org_id}/{facility_id}/clinical/MedicationRequestList medication requests (FHIR search)
Requires scope clinical.read
Base URL
https://medflo-pcc-vendor-api-eez5kqwsxa-uw.a.run.app
| Parameter | In | Type | Description |
|---|---|---|---|
org_idrequired | path | string (uuid) | Your organization id. Must match the org bound to your credentials — mismatches are rejected (403). |
facility_idrequired | path | string (uuid) | A facility within your org that your credentials are granted. Out-of-scope facilities are rejected (403). |
resident_id | query | string (uuid) | Filter to a single resident. |
page | query | integer | 1-based page number. Default 1. |
page_size | query | integer | Rows per page (1–200). Default 50. |
Example response 200 OK
json
{
"data": [
{
"resourceType": "MedicationRequest",
"id": "a1b2c3d4-...",
"subject": {
"reference": "Patient/8f2c1e4a-..."
},
"status": "active",
"medicationCodeableConcept": {
"system": "urn:medflo:fdb-drug-id",
"code": "451892",
"display": "metFORMIN 500 mg tablet"
},
"authoredOn": "2026-02-05"
}
],
"meta": {
"page": {
"page": 1,
"page_size": 50,
"total": 12
}
},
"error": null
}GET
/api/v1/ofctx/{org_id}/{facility_id}/clinical/MedicationRequest/{resource_id}Read a medication request (FHIR read)
Requires scope clinical.read
Base URL
https://medflo-pcc-vendor-api-eez5kqwsxa-uw.a.run.app
| Parameter | In | Type | Description |
|---|---|---|---|
org_idrequired | path | string (uuid) | Your organization id. Must match the org bound to your credentials — mismatches are rejected (403). |
facility_idrequired | path | string (uuid) | A facility within your org that your credentials are granted. Out-of-scope facilities are rejected (403). |
resource_idrequired | path | string (uuid) | The medication request id. |
Example response 200 OK
json
{
"data": {
"resourceType": "MedicationRequest",
"id": "a1b2c3d4-...",
"subject": {
"reference": "Patient/8f2c1e4a-..."
},
"status": "active",
"medicationCodeableConcept": {
"system": "urn:medflo:fdb-drug-id",
"code": "451892",
"display": "metFORMIN 500 mg tablet"
},
"authoredOn": "2026-02-05"
},
"meta": null,
"error": null
}Notes
- All responses use the
{ data, meta, error }envelope. List responses carry pagination inmeta.page. - Identifiers and codes are returned exactly as the system of record provides them — identifier values stay masked; the API never unmasks.
- See Errors for the failure envelope and Rate limits for throttling headers.