clinik.observations namespace manages FHIR Observation resources — the building blocks for recording clinical measurements, vital signs, laboratory values, social history, and exam findings. Observations are always linked to a patient and optionally to an encounter and a performer. For multi-component readings like blood pressure, use the component array.
create
Create a newObservation. The status, code, and patientId fields are required.
Observation status. Accepted values:
registered, preliminary, final, amended, corrected, cancelled.The observation type. Pass a LOINC code object or a plain text string for unmapped codes.
ID of the patient this observation belongs to.
Encounter during which the observation was made.
ID of the practitioner who performed or recorded the observation.
ISO 8601 datetime for when the observation is clinically relevant.
A numeric measurement value with optional unit and coding.
A free-text observation value.
A coded observation value, for example a SNOMED CT concept.
Array of sub-observations for multi-component readings (e.g. systolic and diastolic blood pressure). Each component follows the same structure as the top-level observation.
Observation category. Common values:
vital-signs, laboratory, social-history, exam.Clinical interpretation code. Common values:
H (high), L (low), N (normal), A (abnormal), HH (critically high), LL (critically low).Normal reference range for the observation.
Body site where the observation was recorded.
Method used to collect the observation.
Free-text notes about the observation.
Examples
read
Fetch a single observation by ID.update
Partially update an observation. Only the fields you include are changed.delete
Permanently delete an observation.search
Search observations with optional filters and cursor pagination. Thesort parameter accepts any field name prefixed with - for descending order.
Filter by patient.
Filter by category (e.g.
vital-signs, laboratory).Filter by status.
Return observations on or after this date.
Return observations on or before this date.
Sort field. Prefix with
- for descending order.Results per page.
Pagination cursor from a previous response.