API reference
GETMedicationRequest
Prescriptions written in Soma and the medications the patient reports taking.
Conforms to US Core Medicationrequest. Scope: system/MedicationRequest.rs (or system/MedicationRequest.read).
GET
[base]/MedicationRequest/{id}Read one MedicationRequest.GET
[base]/MedicationRequest?{parameters}Search MedicationRequest. Returns a Bundle.POST
[base]/MedicationRequest/_searchSearch with the parameters in a form body.Search parameters
| Parameter | Type | Description |
|---|---|---|
_id | token | The resource id. Comma-separate for several. |
patient | reference | Patient/{id}. |
intent | token | order (prescriptions) or plan (reported medications). |
status | token | Status code; comma-separate for several. |
authoredon | date | Date written (FHIR date, with prefixes). |
encounter | reference | Encounter/{id}. |
_count | number | Results per page (default 50, at most 200). See paging. |
Repeat a parameter to AND its values; separate values with commas to OR them.
MedicationRequest must be searched by patient:
MedicationRequest?patient=Patient/{id} (or by _id).Ids start with the patient's key, so reads work directly. Add _revinclude=Provenance:target to get each resource's Provenance.
Example
curl "https://dev3.somahealth.com/api/fhir/r4/your-practice/MedicationRequest?" \
-H "Authorization: Bearer $TOKEN" \
-H "Accept: application/fhir+json"{}Examples use made-up data. Elements appear only when the practice has recorded them.