Skip to main content

Module output

Module output 

Source
Expand description

Output formatting for $sqlquery-run.

Non-FHIR formats (csv/json/ndjson/parquet) reuse helios_sof::format_output via rows_to_processed_result. This module owns the _format=fhir path: emit a Parameters resource whose value[X] choices are driven by the query result’s per-column FHIR type (recorded during materialization / query execution), not by JSON shape.

Functions§

format_fhir_parameters
Render a QueryResult as a FHIR Parameters resource per the SoF v2 spec. One top-level parameter per row (name row), with one part per non-NULL column. NULL columns are omitted entirely.