API reference
GETServiceRequest
Orders: lab and imaging orders (CPOE), and orders from visits: therapy, consults, procedures and follow-ups.
Conforms to US Core Servicerequest. Scope: system/ServiceRequest.rs (or system/ServiceRequest.read).
GET
[base]/ServiceRequest/{id}Read one ServiceRequest.GET
[base]/ServiceRequest?{parameters}Search ServiceRequest. Returns a Bundle.POST
[base]/ServiceRequest/_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}. |
category | token | Category code, as system|code or code. |
code | token | Code, as system|code or code (ICD-10-CM, SNOMED CT, CPT, LOINC or RxNorm). |
authored | date | Date ordered (FHIR date, with prefixes). |
status | token | Status code; comma-separate for several. |
_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.
ServiceRequest must be searched by patient:
ServiceRequest?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://qa3.somahealth.com/api/fhir/r4/your-practice/ServiceRequest?" \
-H "Authorization: Bearer $TOKEN" \
-H "Accept: application/fhir+json"{}Examples use made-up data. Elements appear only when the practice has recorded them.