Instructions for importing a batch of DSM Data: Difference between revisions
Ttenbergen (talk | contribs) |
|||
Line 28: | Line 28: | ||
#** s_group_ListNewlyAdded | #** s_group_ListNewlyAdded | ||
#** s_mapping_lab_ListNewlyAdded | #** s_mapping_lab_ListNewlyAdded | ||
{{DT | There is a newly found and new added query for each; why are there two and can I delete one set? }} | |||
#* If Trish or Allan says any of them need to be added talk to Tina, we can document that process when it next happens. It involves editing table s_mapping_labs or s_group to accommodate the new data. | #* If Trish or Allan says any of them need to be added talk to Tina, we can document that process when it next happens. It involves editing table s_mapping_labs or s_group to accommodate the new data. | ||
#** Essentially it's a matter of mapping the right entry in the column that matches the reference tables to the records we want to count. If you look at it it will be pretty intuitive. | #** Essentially it's a matter of mapping the right entry in the column that matches the reference tables to the records we want to count. If you look at it it will be pretty intuitive. |
Revision as of 10:56, 10 April 2019
Preliminary information, this is not active yet
see Instructions for requesting a batch of data from DSM for counterpart
We receive data from DSM that needs to be imported into our main repository.
Instructions
Prep
- copy files to local, they are large and won't work well on a share.
- make a new local directory
- Put the following into the directory
- Centralized_data.mdb
- DSM_Labs_Consistency_check.accdb
- DSM Labs data.accdb
- PHI not needed - PHI.mdb is not needed during import because it matches by D_ID
- copy the newly received batch of data from DSM_Lab_Extract#File_Share to a different local directory that contains only those files
- open DSM_Labs_Consistency_check.accdb and follow the instructions in Instructions for requesting a batch of data from DSM#Instruction/steps for requesting data to reconnect the tables
Check for new labs
- Open DSM_Labs_Consistency_check.accdb
- Click the "Check DSM .csv for new labs " button
- pick the directory with the new data files
- wait for the check to complete, about half an hour
- if the program tells you there are new labs, review them and ask Trish or Allan if any of them should be considered as part of our counts; click "No" for this
- open the following queries (they are based on labs imported within the last hour)
- s_group_ListNewlyAdded
- s_mapping_lab_ListNewlyAdded
- open the following queries (they are based on labs imported within the last hour)
- If Trish or Allan says any of them need to be added talk to Tina, we can document that process when it next happens. It involves editing table s_mapping_labs or s_group to accommodate the new data.
- Essentially it's a matter of mapping the right entry in the column that matches the reference tables to the records we want to count. If you look at it it will be pretty intuitive.
- If Trish or Allan says any of them need to be added talk to Tina, we can document that process when it next happens. It involves editing table s_mapping_labs or s_group to accommodate the new data.
actual data import
If the above listed no new labs, or the new labs were resolved, click the "Import DSM .csv" button and follow essentially the same steps as above to import the actual data.
Cleanup
Move files to their permanent homes. Make sure you do all of these!
- Make a new directory in \\Hsc1msfp0001\med_ccmed\CCMDB\DSM Labs Imports\archive_processed and call it e.g. DSM_2019-03-27
- If labs were found, then copy (not move) DSM_Labs_Consistency_check.accdb to that new directory
- copy (not move) DSM Labs data.accdb to that new directory
- move (not copy) DSM_Labs_Consistency_check.accdb and DSM Labs data.accdb from your computer to \\Hsc1msfp0001\med_ccmed\CCMDB\DSM Labs Imports\ (not the archive) - this is the master version.
- move (not copy) the folder of data you processed from the directory it arrived where we share with DSM to the archive_raw directory in the same folder (these are big so they really should be moved, not copied and left in two places)
- enter import date in log below
Integrity checks after import
Please note here if any are needed.
D_IDs in CFE for which no DSM labs exist
This could happen if
- we have a bad MRN / PHIN
- we change/fix a D_ID after we request data
D_IDs in DSM data for which no CFE record exists
Could happen if we change/fix a D_ID after requesting. Problem is, we can find if one doesn’t exist, but not if one was changed, but the one that was in the export is actually in present now. Not sure how we would catch that.
Duplicate RequestNo
Should never happen due to how import works, but can check anyway.
Known issues
None at this time
How does it work
Log
eg copy/paste and fill in the following: * ~~~~~ - imported batch
- 2019 March 09 - imported data for 2018-07-11, 2018-10-31, 2019-01-23
- 14:01, 2019 February 14 (CST) - tried to import 2018-06-19_request but there was no data there
- imported batches
- 11:34, 2018 May 18 (CDT) - imported batch 2018-04-05
- 17:47, 2018 April 9 (CDT) - imported batch 2017-10-26 and 2018-01-25