SSoma HealthFHIR API
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

ParameterTypeDescription
_idtokenThe resource id. Comma-separate for several.
patientreferencePatient/{id}.
intenttokenorder (prescriptions) or plan (reported medications).
statustokenStatus code; comma-separate for several.
authoredondateDate written (FHIR date, with prefixes).
encounterreferenceEncounter/{id}.
_countnumberResults 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

Search request
curl "https://qa3.somahealth.com/api/fhir/r4/your-practice/MedicationRequest?" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Accept: application/fhir+json"
MedicationRequest (an entry in the response Bundle)
{}

Examples use made-up data. Elements appear only when the practice has recorded them.