Changes between Version 4 and Version 5 of DAPS
- Timestamp:
- 08/29/13 11:14:02 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DAPS
v4 v5 28 28 29 29 1. Copy the values from the {{{DBS_TRACING}}} table to the {{{PMI_DEMOGRAPHICS}}} table. 30 2. Run the script {{{USP_UPDATE_MATCH_FIELDS}}}. This script runs various matching scripts if successful they update the S Number on the {{{ DBS_TRACING}}} table and assign the record a matching code (the code from the start of the script name). If all these fail, the record is given a code of '6 - NO MATCH'30 2. Run the script {{{USP_UPDATE_MATCH_FIELDS}}}. This script runs various matching scripts if successful they update the S Number on the {{{PMI_DEMOGRAPHICS}}} table and assign the record a matching code (the code from the start of the script name). If all these fail, the record is given a code of '6 - NO MATCH' 31 31 a. {{{USP_UPDATE_MATCH_1A_NHS_NO_MATCH_WITH_SURNAME_AND_DOB}}} 32 32 a. {{{USP_UPDATE_MATCH_1A_S_NUMBER_MATCH_WITH_SURNAME_AND_DOB}}} … … 64 64 a. {{{USP_UPDATE_MATCH_5A_NHS_NO_MATCH}}} 65 65 a. {{{USP_UPDATE_MATCH_5B_CASENOTE_NUMBER_MATCH}}} 66 67 ==== Export Patient 68 69 1. Run script {{{USP_UPDATE_S_NUMBER_AND_INTERNAL_NUMBER_IN_DBS_TRACING_BY_BATCH_ID}}} that updates the S number on the {{{DBS_TRACING}}} table from the {{{PMI_DEMOGRAPHICS}}} table where the match level is not like {{{'%5'}}} (which might never happen anyway). 70 2. Write the output of the stored procedure {{{USP_OUTPUT_NNSTS_BY_BATCH_ID}}} to the batch file to be sent to the Spine. The stored procedure selects data only from the {{{Patient}}} table in the {{{DWREPO}}} that have a matching S Number from the {{{DBS_TRACING}}} table. That is, all data comes from the {{{Patient}}} table and none from the {{{DBS_TRACING}}} table. 71 3. Execute the batch file {{{P:\DataForImport\Demographic Batch Service\RUN_Process_NNITS_auto.bat}}} which presumably export file somewhere to be processed. 66 72 67 73