Setting up a new tmp project: Difference between revisions

From CCMDB Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
The Critical Care and Medicine Database has a flexible method of quickly adding additional values required for temporary [[Projects]]. [[Tmp Project Collection]] explains how or [[data collector]]s collect these.  
This are instructions for setting up a [[Temporary data collection]] project. See [[Projects]] for a list of previous ones.


Here are the pages that document how to run a project:
== Project Initiation ==
* if you don't already understand how our project data works, see  [[Entity–attribute–value model of the L Tmp V2 table]] to understand what your options are in our framework
For external data requests, ask the requestor to fill out [[File:Request for additional collection.pdf]]. Additional start-up instructions and a bit of a checklist of what to consider are at [[Temporary data collection#Information relevant to data users]].
* [[Creating a new project article]] - almost always a good first step, a place to take notes about the details for the project
* Consider if there is data that would benefit from [[Data Integrity Checks]]; if so, they are set up by building a query that will have lines if the test fails and adding that query to [[Function TmpChecker]], which is run as part of [[Pre-send Checker]]
* Add the line(s) for the project to [[s_tmp table]]
** To make them only show up for one [[Program]], eg a CC project, add that program's key to the program column
** To make the project only show up for some sites, enter an (almost) identical line for each site and enter the hospital in the ''hosp'' column
** if the combination doesn't exist in [[s_tmp table]] then [[query s_tmp_project_item_consistent]] will flag the query during [[Pre-send Checker]]


=== "dropdown" functionality ===
When there is serious consideration of a project, follow the instructions in [[Creating a new project article]] to establish a central place to document the project even during the consultation and design phase.
To make "dropdown" functionality available, add a line to [[s_tmp table]]. The "project" will be the same for each dropdown, and the item will be different. See the s_tmp table for examples, and try the dropdown there.  
 
{{Collapsable|always=implementation details
== Project Design ==
|full=This is driven by some code that updates the dropdown source for the item combobox when the project combobox triggers a change event. This happens both in [[Patient Viewer Tab Tmp]] and in [[TmpV2 editor]] form.
* If not already done, [[Creating a new project article | create a wiki page for the project]]
}}
* review and keep in mind [[Checklist when changing or adding a variable or tmp project]]
* review  [[Entity–attribute–value model of the L Tmp V2 table]] and decide which data types you will use
** consider what to label those data types for this project t
* consider [[Data Integrity Checks]]; implement them early as [[Soft checks]] that only create a warning, and turn them into "hard" checks after a week or two if they have not had false positives
* if dropdown-like functionality is desired, decide the required options (see [[Dropdown-like user experience for tmp projects]])
* document these, and specific collection instructions, on the wiki page for the project
** ask for input and feedback from collectors on this early and throughout the project to make sure you get the data you want
* consider if the [[#project will only run at some sites or for one program]]
== Set-up ==
* add records to the [[s_tmp table]] as per [[#Project Design]]; these can be added early and s_tmp.active=false until the day of go-live
** add additional rows with different item/value entries to the [[s_tmp table]] if implementing [[Dropdown-like user experience for tmp projects]]
** add field labels and more in [[s_tmp table]] for use by the [[TmpV2 editor]]
*** labels for how the data type fields in [[L TmpV2 table]] will be used , which drives he field labels in
*** a link to the project's wiki page in s_tmp.instruction_url
*** a very brief reminder how to collect the specific variable in s_tmp.Instruction 
* document which entries were created in under a == Log == section near the bottom of the project page; entry options and definitions often change over the course of a project as we learn more about the thing we are collecting and a detailed log helps with data analysis later
* follow [[Rolling out changes]] to get the project to collectors
 
== Additional info and options ==
If an entry will need to be added programmatically from VBA eg based on other data and a collector input, use [[Function GenerUpdate_tmp_entry]]. For an example of this, consider [[Overstay2 Overview]].  
 
=== project will only run at some sites or for one program ===
* To make the project only show up for some sites, enter an (almost) identical line for each site and enter the hospital in [[s_tmp]].site
* If the project should only be collected for one [[program]], enter that program into [[s_tmp]].program; since we only collect two [[program]]s additional lines should not be required.
 
=== [[Data Integrity Checks]] ===
* If there is data that would benefit from [[Data Integrity Checks]], consider [[Setting up a new CCMDB Data Integrity Check]]
** generically, if the combination of Project/Item has no corresponding Study/Value entry in [[s_tmp table]] then [[query s_tmp_project_item_consistent]] will flag the query during [[Pre-send Checker]]


=== [[Automatic Generation of TMP entries]] ===
=== [[Automatic Generation of TMP entries]] ===
To make it easier for collectors to know what [[projects]] are currently collected, starting entries for projects that require an entry for ''every'' profile (possibly at a given site/program) are automatically created at profile creation through [[Automatic Generation of TMP entries]].
To make it easier for collectors to know what [[projects]] are currently collected, starting entries for projects that require an entry for ''every'' profile (possibly at a given site/program) are automatically created at profile creation through [[Automatic Generation of TMP entries]].
=== [[Checklist when changing or adding a variable or tmp project]] ===
We have had some pitfalls over time in getting started with these, see [[Checklist when changing or adding a variable or tmp project]] to help avoid repeating them.


== Related articles ==  
== Related articles ==  

Latest revision as of 23:41, 23 October 2025

This are instructions for setting up a Temporary data collection project. See Projects for a list of previous ones.

Project Initiation

For external data requests, ask the requestor to fill out File:Request for additional collection.pdf. Additional start-up instructions and a bit of a checklist of what to consider are at Temporary data collection#Information relevant to data users.

When there is serious consideration of a project, follow the instructions in Creating a new project article to establish a central place to document the project even during the consultation and design phase.

Project Design

Set-up

  • add records to the s_tmp table as per #Project Design; these can be added early and s_tmp.active=false until the day of go-live
  • document which entries were created in under a == Log == section near the bottom of the project page; entry options and definitions often change over the course of a project as we learn more about the thing we are collecting and a detailed log helps with data analysis later
  • follow Rolling out changes to get the project to collectors

Additional info and options

If an entry will need to be added programmatically from VBA eg based on other data and a collector input, use Function GenerUpdate_tmp_entry. For an example of this, consider Overstay2 Overview.

project will only run at some sites or for one program

  • To make the project only show up for some sites, enter an (almost) identical line for each site and enter the hospital in s_tmp.site
  • If the project should only be collected for one program, enter that program into s_tmp.program; since we only collect two programs additional lines should not be required.

Data Integrity Checks

Automatic Generation of TMP entries

To make it easier for collectors to know what projects are currently collected, starting entries for projects that require an entry for every profile (possibly at a given site/program) are automatically created at profile creation through Automatic Generation of TMP entries.

Checklist when changing or adding a variable or tmp project

We have had some pitfalls over time in getting started with these, see Checklist when changing or adding a variable or tmp project to help avoid repeating them.

Related articles

Related articles: