SQL on FHIR
2.1.0-pre - release
SQL on FHIR - Local Development build (v2.1.0-pre) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions
draft |
Generated Narrative: ViewDefinition ConditionFlat
This view acts on the Condition resource to produce a table named "condition_flat
".
The table contains the following columns:
Name | Fhir Type | SQL Type | Collection | Notes |
---|---|---|---|---|
id | string | String | ||
patient_id | string | String | ||
encounter_id | string | String | ||
onset_datetime | dateTime | DateTime | ||
system | uri | String | This column is not defined as a collection, but the path statement 'system' might return multiple values for the column 'system' for some inputs | |
code | string | String | This column is not defined as a collection, but the path statement 'code' might return multiple values for the column 'code' for some inputs | |
category | string | String | This column is not defined as a collection, but the path statement 'code' might return multiple values for the column 'category' for some inputs | |
clinical_status | string | String | This column is not defined as a collection, but the path statement 'code' might return multiple values for the column 'clinical_status' for some inputs | |
verification_status | string | String | This column is not defined as a collection, but the path statement 'code' might return multiple values for the column 'verification_status' for some inputs |
Selection Rules:
Item | Coll | Type | Description |
---|---|---|---|
condition_flat | Condition | ||
Select | |||
id | getResourceKey() | ||
patient_id | subject.getReferenceKey(Patient) | ||
encounter_id | encounter.getReferenceKey(Encounter) | ||
onset_datetime | dateTime | onset.ofType(dateTime) | |
Select | for each code.coding , or null | ||
system | uri | system | |
code | code | ||
Select | for each category.coding , or null | ||
category | code | ||
Select | for each clinicalStatus.coding , or null | ||
clinical_status | code | ||
Select | for each verificationStatus.coding , or null | ||
verification_status | code |