Changes between Version 13 and Version 14 of DAPS


Ignore:
Timestamp:
07/21/16 08:58:49 (8 years ago)
Author:
Richard Bramley
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DAPS

    v13 v14  
    1 = DAPS (Demographics Authentication Processing System)
     1= DAPS
    22
    33Tags: [[Lcbru Software Category]]
    44
    5 DAPS (Digital Audit of Patients Submission) takes a sub-set of patient details and validates them against UHL PMI and the Spine [[Demographics Batch Service]]
     5DAPS takes a sub-set of patient details and validates them against UHL PMI and the Spine [[Demographics Batch Service]]
    66
    7 To submit a file for processing with DAPS (Data Analysis and Partitioning with Spine), copy a CSV file with the correct columns into the folder {{{\\uhldwh\BRICCS_DBS_IN}}}.
     7To submit a file for processing with DAPS, copy a CSV file with the correct columns (see below) into the folder {{{\\uhldwh\BRICCS_DBS_IN}}}.
    88
    9 When processing is complete DAPS (Death date, Address and Phone number Supplementation) will place 3 files for each submitted CSV in the folder {{{V:\Study specific recruitment projects\IT returned files\}}}
     9When processing is complete DAPS place 4 files for each submitted CSV in the folder {{{V:\Study specific recruitment projects\IT returned files\}}}
    1010
    1111I think that the files returned from the spine are in the folder {{{\\uhlieaae01\DBSClient\Data\OUTBOX\DBS\RWE\Processed-Auto}}}.  Maybe we could process them from there!
     
    1818||FORENAMES|| ||
    1919||SURNAME|| ||
    20 ||DOB|| ||
    21 ||SEX|| ||
     20||DOB||YYYY-MM-DD||
     21||SEX||Female or Male||
    2222||POSTCODE|| ||
    2323||NHS_NUMBER|| ||
     
    114114
    115115
    116 == Specific Runs
    117 
    118 === Graphic 2 Extract of S Numbers
    119 
    120 {{{#!sql
    121 WITH demo AS (
    122 SELECT
    123         [SYSTEM_NUMBER_CURRENT]
    124     ,[FORENAMES]
    125     ,[SURNAME]
    126     ,[POSTCODE]
    127     ,[GENDER]
    128     ,[DATE OF BIRTH]
    129     ,[BATCH_ID]
    130     ,[MATCH_DEMOGRAPHIC_LEVEL]
    131   FROM [DWPATMATCH].[dbo].[DBS_TRACING]
    132 )
    133 
    134 SELECT
    135         male.FORENAMES
    136         ,male.SURNAME
    137         ,male.[DATE OF BIRTH]
    138         ,ISNULL(postcode.POSTCODE, '') [PostCode]
    139         ,ISNULL(male.SYSTEM_NUMBER_CURRENT, '') [Male_S_Number]
    140         ,ISNULL(female.SYSTEM_NUMBER_CURRENT, '') [Female_S_Number]
    141         ,ISNULL(postcode.SYSTEM_NUMBER_CURRENT, '') [Postcode_S_Number]
    142     ,COALESCE(male.SYSTEM_NUMBER_CURRENT, female.SYSTEM_NUMBER_CURRENT, postcode.SYSTEM_NUMBER_CURRENT, '') [S Number]
    143     ,CASE WHEN (male.SYSTEM_NUMBER_CURRENT <> female.SYSTEM_NUMBER_CURRENT)
    144                         OR (male.SYSTEM_NUMBER_CURRENT <> postcode.SYSTEM_NUMBER_CURRENT)
    145                         OR (female.SYSTEM_NUMBER_CURRENT <> postcode.SYSTEM_NUMBER_CURRENT)
    146                         THEN 'Yes' ELSE '' END Mismatch
    147 FROM    demo male
    148 LEFT JOIN       demo female ON female.SURNAME = male.SURNAME
    149                                                 and female.FORENAMES = male.FORENAMES
    150                                                 and female.[DATE OF BIRTH] = male.[DATE OF BIRTH]
    151                                                 and female.BATCH_ID = 10930 and female.GENDER = 'f'
    152 LEFT JOIN       demo postcode ON postcode.SURNAME = male.SURNAME
    153                                                 and postcode.FORENAMES = male.FORENAMES
    154                                                 and postcode.[DATE OF BIRTH] = male.[DATE OF BIRTH]
    155                                                 and postcode.BATCH_ID = 10929
    156 WHERE   male.BATCH_ID = 10930 and male.GENDER = 'm'
    157 
    158 }}}
    159 
    160116[[BackLinks]]