VRIS - Viljatusravi infosüsteem
0.1.0 - draft

VRIS - Viljatusravi infosüsteem, published by TEHIK. This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/TEHIK-EE/ig-ee-vris/ and changes regularly. See the Directory of published versions

## OperationDefinition: $patient-observations operation (Experimental)

Official URL: https://fhir.ee/vris/OperationDefinition/patient-observations | Version: 0.1.0
Draft as of 2026-07-15 | Computable Name: PatientObservations

TEST Custom operation to retrieve all Observation resources for a specific patient in Estonian VRIS. Supports optional filtering by profile, category, code, and date range. (ee Operatioon kõikide Observation ressursside pärimiseks VRIS-ist. Tagastab Bundle'i kõikide Observationitega, kus subject viitab antud patsiendile.)

URL: [base]/Patient/$patient-observations

URL: [base]/Patient/[id]/$patient-observations

### Parameters

Use | Name | Scope | Cardinality | Type | Binding | Documentation
IN | patient |  | 0..1 | Reference (Patient: EE VRIS Patient, EE MPI Patient Verified, EE MPI Patient Unknown) |  | Reference to the patient whose observations are being requested. Required when invoked at type level; optional (implied) when invoked at instance level.
IN | profile |  | 0..* | canonical |  | Filter results to include only Observations conforming to specified profile(s). Multiple profiles can be provided (OR condition).
IN | category |  | 0..* | CodeableConcept |  | Filter by Observation.category value(s) (e.g., laboratory, exam, procedure, social-history).
IN | code |  | 0..* | CodeableConcept |  | Filter by Observation.code value(s) (e.g., specific LOINC or SNOMED CT codes).
IN | date-from |  | 0..1 | dateTime |  | Include only Observations with effective date on or after this date.
IN | date-to |  | 0..1 | dateTime |  | Include only Observations with effective date on or before this date.
IN | status |  | 0..* | code |  | Filter by Observation.status (e.g., final, amended, corrected, cancelled).
OUT | return |  | 1..1 | Bundle |  | Bundle of type 'searchset' containing all matching Observation resources. Empty Bundle if patient has no observations.

This operation returns all Observation resources associated with a given patient, optionally filtered by profile, category, code, or effective date range.