RetinaIntegration
0.6.0 - ci-build

RetinaIntegration - Local Development build (v0.6.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

OperationDefinition: Query By Date Operation

Official URL: http://dips.no/fhir/RetinaIntegration/OperationDefinition/retina-by-date Version: 0.6.0
Draft as of 2026-02-03 Computable Name: RetinaQueryByDate

Operation to query for retina diagnostic reports within a specified date range and optionally filter for reports pending AI analysis.

The retina-by-date is a custom query operation that is easier to use than the general FHIR query. (And our general GET does not )

Retrieve all reports between to dates

To retrieve all diagnostic reports for one day regardless of the status of the report use this URL:

[baseurl]/DiagnosticReport/$retina-by-date?start=2025-10-02&end=2025-10-03&_include=DiagnosticReport:result

Retrieve reports pending AI

To retrieve reports where it is possible to do the operation append AI result, add the optional parameter pendingAI.

[baseurl]/DiagnosticReport/$retina-by-date?start=2025-10-02&end=2025-10-03&pendingAI=true&_include=DiagnosticReport:result

URL: [base]/DiagnosticReport?_query=retina-by-date&...

Parameters

UseNameScopeCardinalityTypeBindingDocumentation
INstart0..1dateTime

Optional start of the date range for the query. If not provided, the query will return reports from the earliest available date up to the end date.

INend0..1dateTime

Optional end of the date range for the query. If not provided, the query will return reports from the start date up to the latest available date.

INpendingAI0..1boolean

Optional parameter. If present, the query will only return reports that are pending AI analysis. In a GET request, the parameter can be provided without a value (e.g., &pendingAI).

Notes:

Only GET works through the DIPS FHIR facade (the fhirr4-service).

Passing the query parameters in the body in a POST only works directly at retinaintegration-service.

There is no need to specify the profile _profile=RetinaDiagnosticReport when using this query operation.