SQL on FHIR
2.0.0-pre - ci-build International flag

SQL on FHIR, published by HL7. This guide is not an authorized publication; it is the continuous build for version 2.0.0-pre built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/FHIR/sql-on-fhir-v2/ and changes regularly. See the Directory of published versions

Logical Model: Tabular View Definition

Official URL: http://hl7.org/fhir/uv/sql-on-fhir/StructureDefinition/TabularViewDefinition Version: 2.0.0-pre
Draft as of 2024-10-03 Computable Name: TabularViewDefinition

A profile for View Definitions where each resulting field must contain only a simple scalar value. This is sometimes referred to as 'CSV Mode', but applies to any system that explicitly constrains its views or tables to tabular data.

Usage:

  • This Logical Model is not used by any profiles in this Implementation Guide

Formal Views of Profile Content

Description of Profiles, Differentials, Snapshots and how the different presentations work.

This structure is derived from ViewDefinition

NameFlagsCard.TypeDescription & Constraintsdoco
.. ViewDefinition 0..* ViewDefinition
Elements defined in Ancestors:url, identifier, name, title, meta, status, experimental, publisher, contact, description, useContext, copyright, resource, fhirVersion, constant, select, where
View Definition
Instances of this logical model are not marked to be the target of a Reference
... select
.... column C 0..* BackboneElement A column to be produced in the resulting table.
no-collections: Tabular view columns must not be collections.
primitives-only: Tabular view columns only contain primitive values.

doco Documentation for this format

Constraints

IdGradePath(s)DetailsRequirements
no-collectionserrorViewDefinition.select.columnTabular view columns must not be collections.
: collection.empty() or collection = false
primitives-onlyerrorViewDefinition.select.columnTabular view columns only contain primitive values.
: type in ('base64Binary' | 'boolean' | 'canonical' | 'code' | 'dateTime' | 'decimal' | 'id' | 'instant' | 'integer' | 'integer64' | 'markdown' | 'oid' | 'string' | 'positiveInt' | 'time' | 'unsignedInt' | 'url' | 'uuid')

 

Other representations of profile: CSV, Excel