StructureDefinition-ViewDefinition

Sourcehl7.fhir.uv.sql-on-fhir#current:SQL on FHIR (v5.0.0)
resourceTypeStructureDefinition
idViewDefinition
canonicalhttp://hl7.org/fhir/uv/sql-on-fhir/StructureDefinition/ViewDefinition
version0.0.1-pre
statusdraft
publisherHL7
nameViewDefinition
titleView Definition
date2023-09-06T00:41:51+00:00
descriptionView definitions are a tabular projection of a FHIR resource, where the columns and inclusion criteria are defined by FHIRPath expressions.
jurisdictionsuv
fhirVersion5.0.0
kindlogical
abstractfalse
sdTtypehttp://hl7.org/fhir/uv/sql-on-fhir/StructureDefinition/ViewDefinition
derivationspecialization
basehttp://hl7.org/fhir/StructureDefinition/Base
Usages(none)
Name Flags Card. Type Description & Constraints doco
. . ViewDefinition Base View Definition
This logical model cannot be the target of a reference
. . . url 0..1 uri Canonical identifier for this view definition, represented as a URI (globally unique)
. . . identifier 0..1 Identifier Additional identifier for the view definition
. . . name C 1..1 string Name of view definition (computer and database friendly)
sql-name: Name is limited to letters, numbers, or underscores and cannot start with an underscore -- i.e. with a regular expression of: ^[^_][A-Za-z][A-Za-z0-9_]+$ This makes it usable as table names in a wide variety of databases.
. . . version 0..1 string Business version of the view definition
. . . title 0..1 string Name for this view definition (human friendly)
. . . status 1..1 code draft | active | retired | unknown
Binding: PublicationStatus ( required )
. . . experimental 0..1 boolean For testing purposes, not real usage
. . . date 0..1 dateTime Date last changed
. . . publisher 0..1 string Name of the publisher/steward (organization or individual)
. . . contact 0..* ContactDetail Contact details for the publisher
. . . description 0..1 markdown Natural language description of the view definition
. . . useContext 0..* UsageContext The context that the content is intended to support
. . . copyright 0..1 markdown Use and/or publishing restrictions
. . . resource 1..1 code FHIR resource for the ViewDefinition
Binding: Resource Types ( required )
. . . resourceVersion 0..* code FHIR version(s) of the resource for the ViewDefinition
Binding: FHIRVersion ( required )
. . . constant 0..* BackboneElement Constant that can be used in FHIRPath expressions
. . . . name C 1..1 string Name of constant (referred to in FHIRPath as %[name])
sql-name: Name is limited to letters, numbers, or underscores and cannot start with an underscore -- i.e. with a regular expression of: ^[^_][A-Za-z][A-Za-z0-9_]+$ This makes it usable as table names in a wide variety of databases.
. . . . value 1..1 string Value of constant
. . . select C 0..* BackboneElement Defines the content of a column within the view
sql-expressions: Can only have only one of `path`, `from`, `forEach`, `forEachOrNull`, and `union`
. . . . name C 0..1 string Name of column produced in the output
sql-name: Name is limited to letters, numbers, or underscores and cannot start with an underscore -- i.e. with a regular expression of: ^[^_][A-Za-z][A-Za-z0-9_]+$ This makes it usable as table names in a wide variety of databases.
. . . . (Choice of one) 1..1
. . . . . path 0..1 string FHIRPath expression that creates a column and defines its content
. . . . . from 0..1 string Creates a scope for selection relative to a parent FHIRPath expression
. . . . . forEach 0..1 string Same as from, but unnests a new row for each item in the collection
. . . . . forEachOrNull 0..1 string Same as forEach, but produces a single row with a null value if the collection is empty
. . . . . union 0..1 string Same as from, but creates a union of the results of the selection
. . . . description 0..1 markdown Description of the column
. . . . tag 0..* BackboneElement Additional metadata describing the column
. . . . . name 1..1 string Name of tag
. . . . . value 1..1 string Value of tag
. . . . select 0..* See select Nested select relative to a parent from, forEach, or forEachOrNull expression
. . . where 0..1 string FHIRPath expression defining a filter condition

doco Documentation for this format

Produced 08 Sep 2023