Template:Data element: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Ttenbergen (talk | contribs) m added link to Auto Data Dictionary |
||
(67 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | |||
To use: | |||
{<nowiki>{</nowiki>Data_element | |||
| field_name = | |||
| CCMDB_label = (label in CCMDB) | |||
| CCMDB_tab = (Top Row Dispo / ADL / Diagnoses / Apache / Temp. Studies / Labs / Pharm) | |||
| element_description = | |||
| in_table = (L_Log L_Como L_Dxs L_Labs_Flowsheet L_Pharm_Flowsheet L_TmpV2 Created_variables_CC Created_variables_common / not stated | |||
| data_type = | |||
| datafield_length = | |||
| program_collecting = (CC / Med / Med and CC) | |||
| created_raw = (Created / Raw) | |||
| data_element_start_date = (date) | |||
| data_element_end_date = (date) | |||
| data_element_sort_index = (row number in table) | |||
<nowiki>}</nowiki>} | |||
===Cargo declaration=== | |||
{{#cargo_declare: | |||
_table = Data_Element | |||
| field_name = String | |||
| CCMDB_label = String | |||
| CCMDB_tab = Wikitext string | |||
| description = Wikitext | |||
| tables = List (,) of Page | |||
| data_type = String | |||
| datafield_length = String | |||
| program_collecting = string | |||
| created_raw = String | |||
| start_date = Date | |||
| end_date = Date | |||
| sort = Integer | |||
}} | |||
---- | |||
</noinclude> | |||
{{#ifeq: | |||
{{#expr: | |||
{{#time:U|{{{data_element_end_date}}}}}<{{#time:U|{{CURRENTTIMESTAMP}}}} | |||
}} | |||
| 1 | |||
| | |||
: | |||
: | |||
: | |||
: | |||
{{LegacyContent | |||
|explanation=This is a legacy data field, its DataElementEndDate is in the past. | |||
| content=}} }}<div style="clear:right;"> | |||
{| class="wikitable" border="1" style="float:right; width:30%" | {| class="wikitable" border="1" style="float:right; width:30%" | ||
| style="text-align: center; background-color:#99c2ff;" colspan="2" | <span style="font-size: larger;">[[Auto Data Dictionary|Data Element]] ({{#formlink:form=Data element|link text=edit|target={{PAGENAME}}}})</span> | |||
|- | |- | ||
| style="background:silver; color:arsenic" align="right"| '''Field Name: ''' | | style="background:silver; color:arsenic" align="right"| '''Field Name: ''' | ||
|[[FieldName::{{{field_name}}}]] | |[[FieldName::{{{field_name|not stated}}}]] | ||
|- | |||
| style="background:silver; color:arsenic" align="right"| '''CCMDB Label: ''' | |||
|{{{CCMDB_label|not stated}}}[[FieldCCMDBLabel::{{{CCMDB_label|not stated}}}| ]] | |||
|- | |||
| style="background:silver; color:arsenic" align="right"| '''CCMDB tab: ''' | |||
|{{{CCMDB_tab|not stated}}}[[FieldCCMDBTab::{{{CCMDB_tab|not stated}}}| ]] | |||
|- | |- | ||
| style="background:silver; color:arsenic" align="right"| '''Table: ''' | | style="background:silver; color:arsenic" align="right"| '''Table: ''' | ||
| | |{{#if:{{{in_table|}}} |{{#arraymap:{{{in_table}}}|,|x|[[x]][[InTable::x| ]][[Category:x]]}} | [[InTable::N/A]]}} | ||
|- | |- | ||
| style="background:silver; color:arsenic" align="right"| '''Data type: ''' | | style="background:silver; color:arsenic" align="right"| '''Data type: ''' | ||
|{{{data_type}}}[[fieldDataType::{{{data_type}}}| ]] | |{{{data_type|not entered}}}[[fieldDataType::{{{data_type|not entered}}}| ]] | ||
|- | |||
| style="background:silver; color:arsenic" align="right"| '''Length: ''' | |||
|{{{datafield_length|not stated}}}[[fieldLength::{{{datafield_length|not entered}}}| ]] | |||
|- | |- | ||
| style="background:silver; color:arsenic" align="right"| '''Program: ''' | | style="background:silver; color:arsenic" align="right"| '''Program: ''' | ||
|{{{program_collecting}}} | |{{{program_collecting|Med and CC}}}[[DataElementProgram::{{{program_collecting|Med and CC}}}| ]] | ||
|- | |- | ||
| style="background:silver; color:arsenic" align="right"| '''Created/Raw: ''' | | style="background:silver; color:arsenic" align="right"| '''Created/Raw: ''' | ||
|{{{created_raw}}} | |{{{created_raw|not entered}}}[[FieldCreatedRaw::{{{created_raw|not entered}}}| ]] | ||
| | |- | ||
{{{ | | style="background:silver; color:arsenic" align="right"| '''Start Date: ''' | ||
|{{{data_element_start_date|1988-07-11}}}[[DataElementStartDate::{{{data_element_start_date|1988-07-11}}}| ]] | |||
|- | |||
| style="background:silver; color:arsenic" align="right"| '''End Date: ''' | |||
|{{{data_element_end_date|2300-01-01}}}[[DataElementEndDate::{{{data_element_end_date|2100-01-01}}}| ]] | |||
< | |- | ||
| style="background:silver; color:arsenic" align="right"| '''Sort Index: ''' | |||
|{{{data_element_sort_index|999}}}[[DataElementSortIndex::{{{data_element_sort_index|999}}}| ]] | |||
|}</div> | |||
[[DataElementDescription::{{{element_description|}}} ]] | |||
<includeonly><div style="display: none;"> | |||
* SMW | |||
Legacy implementation right in the table | |||
| data_type = | * Cargo | ||
{{#cargo_store: | |||
_table = Data_Element | |||
| field_name = {{{field_name|not stated}}} | |||
| CCMDB_label = {{{CCMDB_label|not stated}}} | |||
| CCMDB_tab = {{{CCMDB_tab|not stated}}} | |||
| description = {{{element_description|}}} | |||
| tables = {{{in_table|}}} | |||
| data_type = {{{data_type|not entered}}} | |||
| datafield_length = {{{datafield_length|not stated}}} | |||
| program_collecting = {{{program_collecting|Med and CC}}} | |||
| created_raw = {{{created_raw|not entered}}} | |||
| start_date ={{{data_element_start_date|1988-07-11}}} | |||
| end_date = {{{data_element_end_date|2300-01-01}}} | |||
| sort = {{{data_element_sort_index|999}}} | |||
}} | |||
* Categories | |||
[[Category: Data structure]] | |||
* Forms | |||
{{#default_form:Data element}} | |||
</div></includeonly> | |||
</ |
Latest revision as of 16:14, 2022 January 25
To use:
{{Data_element | field_name = | CCMDB_label = (label in CCMDB) | CCMDB_tab = (Top Row Dispo / ADL / Diagnoses / Apache / Temp. Studies / Labs / Pharm) | element_description = | in_table = (L_Log L_Como L_Dxs L_Labs_Flowsheet L_Pharm_Flowsheet L_TmpV2 Created_variables_CC Created_variables_common / not stated | data_type = | datafield_length = | program_collecting = (CC / Med / Med and CC) | created_raw = (Created / Raw) | data_element_start_date = (date) | data_element_end_date = (date) | data_element_sort_index = (row number in table) }}
Cargo declaration
This template defines the table "Data_Element". View table.
Data Element (edit) | |
Field Name: | not stated |
CCMDB Label: | not stated |
CCMDB tab: | not stated |
Table: | N/A |
Data type: | not entered |
Length: | not stated |
Program: | Med and CC |
Created/Raw: | not entered |
Start Date: | 1988-07-11 |
End Date: | 2300-01-01 |
Sort Index: | 999 |