API reference
GETSpecimen
The specimen each lab report was run on.
Conforms to US Core Specimen. Scope: system/Specimen.rs (or system/Specimen.read).
GET
[base]/Specimen/{id}Read one Specimen.GET
[base]/Specimen?{parameters}Search Specimen. Returns a Bundle.POST
[base]/Specimen/_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}. |
type | token | prov (the practice) or pay (insurance payers). |
identifier | token | An identifier, as system|value or just value (MRN for Patient, NPI for Practitioner, Location and Organization). |
_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.
Specimen must be searched by patient:
Specimen?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/Specimen?" \
-H "Authorization: Bearer $TOKEN" \
-H "Accept: application/fhir+json"{}Examples use made-up data. Elements appear only when the practice has recorded them.