Instructions for importing a batch of DSM Data: Difference between revisions
Jump to navigation
Jump to search
Line 42: | Line 42: | ||
Move files to their permanent homes. '''Make sure you do all of these!''' | 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 | # 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 | ## '''If any new labs were found even ones that we don't need to import, ''' then '''copy''' (not move) [[DSM_Labs_Consistency_check.accdb]] to that new directory | ||
## '''copy''' (not move) [[DSM Labs data.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) [[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. |
Revision as of 12:39, 29 May 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 filesnot the requestor file.
- 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
- If any of the new ones are identified by Trish or Allan as needing to be counted then you have to ask Tina or Julie to add them to the list; the step to add them is to put the name of the lab they will be counted as into the "Our_Lab_Name" field, but we need to confirm first that this would not result in a double-count.
- If NO additional lab, just close it.
- open the following queries (they are based on labs imported within the last hour)
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. Close the file
Run consistency checks
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 any new labs were found even ones that we don't need to import, 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)
Log import
Update the log at Instructions for requesting a batch of data from DSM#Log.
Integrity checks after import
Data Integrity Checks (automatic list)
App | Status | |
---|---|---|
Query Import request matcher | DSM Labs Consistency check.accdb | needs review |
queries for which we have no page yet
Duplicate RequestNo
Should never happen due to how import works. I am not even sure what that would check for.
Known issues
None at this time
How does it work
Log
Update the log at Instructions for requesting a batch of data from DSM#Log.