Setting up a new tmp project: Difference between revisions

From CCMDB Wiki
Jump to navigation Jump to search
No edit summary
 
Line 15: Line 15:
* document these, and specific collection instructions, on the wiki page for the project
* 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
** 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 ==
== 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 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
Line 28: Line 28:
== Additional info and options ==
== 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]].  
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]] ===
=== [[Data Integrity Checks]] ===
* If there is data that would benefit from [[Data Integrity Checks]], consider [[Setting up a new CCMDB Data Integrity Check]]
* 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]]
 
** 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]]


=== [[Automatic Generation of TMP entries]] ===
=== [[Automatic Generation of TMP entries]] ===

Latest revision as of 00:41, 24 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.

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.

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: