Hicdep_1.50/QaChecks: QA.csv

File QA.csv, 15.0 KB (added by stels, 7 years ago)

unmodified QA checks from June 23rd

Line 
1Tablename,WithinTable or CrossTable,Error Code,Description of inconsistency,Study Specific,HICDEP
2AllTables,CrossTable,ATC001,any date in database after DEATH_D in tblLTFU,,YES
3AllTables,CrossTable,ATC002,any date in database after DROP_D in tblLTFU,,YES
4AllTables,CrossTable,ATC003,any date in database before BIRTH_D in tblBAS,,YES
5AllTables,CrossTable,ATC004,any date in database in the future,,YES
6AllTables,CrossTable,ATC005,patients submitted previously who have been missed out,,YES
7AllTables,CrossTable,ATC006,Any fields not coded as coding lists on table definition,,YES
8Appendix,CrossTable,GC001,New patients who were not submitted last time we did this merger,EPPICC  ,NO
9Appendix,CrossTable,GC002,Patients left out who were submitted last time we did this merger,EPPICC  ,NO
10tblAE_NEW,CrossTable,ANC001,"tblBAS says AE_FPV=1, yet records in tblAE_NEW whilst on FPV",EPPICC  ,NO
11tblAE_NEW,CrossTable,ANC002,AE_DRUG not reported in tblART or tblMED ,EPPICC  ,NO
12tblART,WithinTable,AW001,"ART_RS not 0, but end date NULL",,YES
13tblART,WithinTable,AW002,ART_RS=0  but end-date non NULL,,YES
14tblART,WithinTable,AW003,ART_RS=98 yet ART_OTH is null,,YES
15tblART,WithinTable,AW004,"Duplicate records for same cohort, patient, art_id and art_sd",,YES
16tblART,WithinTable,AW005,Dose out of range for those dose units and frequency,PaediatricOnly,YES
17tblART,WithinTable,AW006,Missing art_fr ,PaediatricOnly,YES
18tblART,WithinTable,AW007,Missing art_do ,PaediatricOnly,YES
19tblART,WithinTable,AW008,Missing patient ,,YES
20tblART,WithinTable,AW009,Missing art_id  ,,YES
21tblART,WithinTable,AW010,Missing art_sd,,YES
22tblART,WithinTable,AW011,Overlapping periods of same drug,,YES
23tblART,WithinTable,AW012,Double reporting - records reported for both combination drugs and their components  ,,YES
24tblART,WithinTable,AW013,Periods of overlap of contra-indicated drugs,,YES
25tblART,WithinTable,AW014,Restart of same drug without a stop ,,YES
26tblART,WithinTable,AW015,ART_SD greater than or equal to ART_ED,,YES
27tblART,CrossTable,AC001,Patient has no record in table BAS,,YES
28tblART,CrossTable,AC002,Records exist in tblART yet RECART_Y=0 in tblBAS,,YES
29tblBAS,WithinTable,BW001,AIDS date < SEROCO_D,,YES
30tblBAS,WithinTable,BW002,Duplicate patients,,YES
31tblBAS,WithinTable,BW003,First 3 chars of PATIENT don't form valid cohort code,CascadeOnly,YES
32tblBAS,WithinTable,BW004,Missing patient ,,YES
33tblBAS,WithinTable,BW005,Missing CENTER,,YES
34tblBAS,WithinTable,BW006,Missing BIRTH_D,,YES
35tblBAS,WithinTable,BW007,Missing FRSVIS_D,,YES
36tblBAS,WithinTable,BW008,Missing ENROL_D,,YES
37tblBAS,WithinTable,BW009,Missing GENDER,,YES
38tblBAS,WithinTable,BW010,Missing HEIGH,,YES
39tblBAS,WithinTable,BW011,Missing MODE,,YES
40tblBAS,WithinTable,BW012,Missing MODE_OTH if MODE=90,,YES
41tblBAS,WithinTable,BW013,Missing Origin,,YES
42tblBAS,WithinTable,BW014,Missing ETHNIC,,YES
43tblBAS,WithinTable,BW015,Missing SEROCO_D,,YES
44tblBAS,WithinTable,BW016,Missing RECART_Y,,YES
45tblBAS,WithinTable,BW017,Missing AIDS_Y,,YES
46tblBAS,WithinTable,BW018,Missing AIDS_D if AIDS_Y=1,,YES
47tblBAS,WithinTable,BW019,BIRTH_D out of range (15-85 yrs),CascadeOnly,YES
48tblBAS,WithinTable,BW020,BIRTH_D out of range (<18),PENTA,YES
49tblBAS,CrossTable,BC001,AIDS_Y=1 but no records in tblART ,,YES
50tblBAS,CrossTable,BC002,"AIDS_Y=0, but AIDS-defining records in tblDIS",,YES
51tblBAS,CrossTable,BC003,AIDS_Y=1 but no AIDS-defining records in tblDIS table,,YES
52tblDIS,WithinTable,DW001,Duplicate records for same DIS_ID and same DIS_D,,YES
53tblDIS,WithinTable,DW002,Miscoded DIS_WD as codes on table definition,,YES
54tblDIS,WithinTable,DW003,Miscoded DIS_ID - as in code list attached to table definition,,YES
55tblDIS,WithinTable,DW004,DIS_D missing,,YES
56tblDIS,WithinTable,DW005,DIS_ID missing,,YES
57tblDIS,WithinTable,DW006,"Same event recorded twice - 2 records, same DIS_ID, DIS_D within 6 months",,YES
58tblDIS,CrossTable,DC001,Patient has no record in BAS,,YES
59tblDIS,CrossTable,DC002,"AIDS-defining records, yet AIDS=0 in tblBAS",,YES
60tblDIS,CrossTable,DC003,First AIDS-defining DIS_D not equal to AIDS_D in tblBAS,,YES
61tblLAB,WithinTable,LW001,Duplicate records,,YES
62tblLAB,WithinTable,LW002,Missing LAB_D,,YES
63tblLAB,WithinTable,LW003,Missing LAB_V,,YES
64tblLAB,WithinTable,LW004,Missing LAB_U,,YES
65tblLAB,WithinTable,LW005,Missing LAB_ID,,YES
66tblLAB,WithinTable,LW006,Missing LAB_LLN,,YES
67tblLAB,WithinTable,LW007,Missing LAB_ULN,,YES
68tblLAB,WithinTable,LW008,Missing LAB_FA,,YES
69tblLAB,WithinTable,LW009,Missing LAB_ST,,YES
70tblLAB,WithinTable,LW010,LAB_V out of range for unit LAB_U,,YES
71tblLAB,CrossTable,LC001,Patient has no record in BAS table,,YES
72tblLAB_CD4,WithinTable,CW001,CD4 value out of range,,YES
73tblLAB_CD4,WithinTable,CW002,Duplicate records for same date,,YES
74tblLAB_CD4,WithinTable,CW003,Missing CD4_D,,YES
75tblLAB_CD4,WithinTable,CW004,Missing CD4_V,,YES
76tblLAB_CD4,WithinTable,CW005,Missing CD4_U,,YES
77tblLAB_CD4,WithinTable,CW006,Miscoded CD4_U as coding list on table definition,,YES
78tblLAB_CD4,WithinTable,CW007,CD4_U=2 (percentage) and CD4_V>100,,YES
79tblLAB_CD4,WithinTable,CW008,CD4_U=(1 or 3)   and CD4_V>3000,,YES
80tblLAB_CD4,WithinTable,CW009,CD4 counts spike up or down suddenly (large change in less than a year),,YES
81tblLAB_CD4,CrossTable,CC001,Patient has no record in BAS,,YES
82tblLAB_RES,WithinTable,LRW001,Duplicate records for same patient on same date,,YES
83tblLAB_RES,WithinTable,LRW002,Missing PATIENT,,YES
84tblLAB_RES,WithinTable,LRW003,Missing SAMP_ID,,YES
85tblLAB_RES,WithinTable,LRW004,Missing SAMPLE_D,,YES
86tblLAB_RES,WithinTable,LRW005,Missing SEQ_DT,,YES
87tblLAB_RES,WithinTable,LRW006,Missing LAB,,YES
88tblLAB_RES,WithinTable,LRW007,Missing LIBRARY,,YES
89tblLAB_RES,WithinTable,LRW008,Missing REFSEQ,,YES
90tblLAB_RES,WithinTable,LRW009,Missing KIT,,YES
91tblLAB_RES,WithinTable,LRW010,Missing SOFTWARE,,YES
92tblLAB_RES,WithinTable,LRW011,Missing TESTTYPE,,YES
93tblLAB_RES,WithinTable,LRW012,Missing SUBTYPE,,YES
94tblLAB_RES,WithinTable,LRW013,SEQ_DT has no time part,,YES
95tblLAB_RES,CrossTable,LRC001,PATIENT has no record in tblBAS,,YES
96tblLAB_RES,CrossTable,LRC002,This SAMP_ID has both  LVL_1 and  LVL_2 records,,YES
97tblLAB_RES ,CrossTable,LRC003,"TESTTYPE in (1,9) (i.e. not phenotype) yet no records in LVL_1 or LVL_2",,YES
98tblLAB_RES_LVL_1,WithinTable,L1W001,Duplicate records per SAMP_ID,,YES
99tblLAB_RES_LVL_1,WithinTable,L1W002,SEQ_START > SEQ_STOP,,YES
100tblLAB_RES_LVL_1,WithinTable,L1W003,SEQ_NUC contains invalid IUPAC character,,YES
101tblLAB_RES_LVL_1,WithinTable,L1W004,Missing SAMP_ID,,YES
102tblLAB_RES_LVL_1,WithinTable,L1W005,Missing SEQ_START,,YES
103tblLAB_RES_LVL_1,WithinTable,L1W006,Missing SEQ_STOP,,YES
104tblLAB_RES_LVL_1,WithinTable,L1W007,Missing SEQ_NUC,,YES
105tblLAB_RES_LVL_1,CrossTable,L1C001,SAMP_ID not in tblLAB_RES.SAMPLE_ID,,YES
106tblLAB_RES_LVL_2,WithinTable,L2W001,AA_FOUND_x but nothing in AA_FOUND(x-1),,YES
107tblLAB_RES_LVL_2,WithinTable,L2W002,Duplicate records per SAMP_ID,,YES
108tblLAB_RES_LVL_2,WithinTable,L2W003,Missing SAMP_ID,,YES
109tblLAB_RES_LVL_2,WithinTable,L2W004,Missing GENE,,YES
110tblLAB_RES_LVL_2,WithinTable,L2W005,Missing AA_POS,,YES
111tblLAB_RES_LVL_2,WithinTable,L2W006,Missing AA_POS_SUB,,YES
112tblLAB_RES_LVL_2,WithinTable,L2W007,Missing AA_FOUND_1,,YES
113tblLAB_RES_LVL_2,CrossTable,L2C001,SAMP_ID not in tblLAB_RES.SAMPLE_ID,,YES
114tblLAB_RNA,WithinTable,RW001,Duplicate records for same RNA_D,,YES
115tblLAB_RNA,WithinTable,RW002,RNA_V=-1 and RNA_L missing,,YES
116tblLAB_RNA,WithinTable,RW003,RNA_V=+1 and RNA_U missing,,YES
117tblLAB_RNA,WithinTable,RW004,Missing RNA_D ,,YES
118tblLAB_RNA,WithinTable,RW005,Missing RNA_V ,,YES
119tblLAB_RNA,WithinTable,RW006,RNA_V > 10 million,,YES
120tblLAB_RNA,WithinTable,RW007,RNA_V < RNA_L,,YES
121tblLAB_RNA,WithinTable,RW008,RNA_V > RNA_U,,YES
122tblLAB_RNA,WithinTable,RW009,RNA_V < 0,,YES
123tblLAB_RNA,CrossTable,RC001,Patient has no record in BAS,,YES
124tblLAB_VIRO,WithinTable,LVW001,Patient doesn't have a record in BAS,,YES
125tblLAB_VIRO,WithinTable,LVW002,Missing patient ,,YES
126tblLAB_VIRO,WithinTable,LVW003,Missing VS_ID,,YES
127tblLAB_VIRO,WithinTable,LVW004,Missing VS_D,,YES
128tblLAB_VIRO,WithinTable,LVW005,Missing VS_R,,YES
129tblLAB_VIRO,WithinTable,LVW006,Missing VS_V,,YES
130tblLAB_VIRO,WithinTable,LVW007,Missing VS_U,,YES
131tblLAB_VIRO,WithinTable,LVW008,More or less than  exactly 1 positive HIV test per patient,,YES
132tblLAB_VIRO,WithinTable,LVW009,More than 1 negative HIV test for a patient,,YES
133tblLAB_VIRO,WithinTable,LVW010,Date of negative test after date of positive test,,YES
134tblLAB_VIRO,WithinTable,LVW011,Duplicate records,,YES
135tblLTFU,WithinTable,LFW001,DROP_Y and DEATH_Y both non-null,,YES
136tblLTFU,WithinTable,LFW002,DEATH_Y and DROP_RS both non-null ,,YES
137tblLTFU,WithinTable,LFW003,Any of DEATH_Rx or DEATH_RCx non-null but DEATH_Y=0,,YES
138tblLTFU,WithinTable,LFW004,R2/RC2 non-null but R1/RC1 null,,YES
139tblLTFU,WithinTable,LFW005,R3/RC3 non-null but R2/RC2 null,,YES
140tblLTFU,WithinTable,LFW006,Duplicate patients,,YES
141tblLTFU,WithinTable,LFW007,Missing DROP_Y,,YES
142tblLTFU,WithinTable,LFW008,Missing DROP_D if DROP_Y=1,,YES
143tblLTFU,WithinTable,LFW009,Missing DROP_RS if DROP_Y=1,,YES
144tblLTFU,WithinTable,LFW010,Missing DEATH_Y,,YES
145tblLTFU,WithinTable,LFW011,Missing DEATH_D if DEATH_Y=1,,YES
146tblLTFU,WithinTable,LFW012,DEATH_D non null but DEATH_Y=0,,YES
147tblLTFU,CrossTable,LFC001,Patient not found in tblBAS,,YES
148tblLTFU,CrossTable,LFC002,patient in tblBAS hasn't got a record in tblLTFU,,YES
149tblLTFU,CrossTable,LFC003,tblBAS has AIDS=0 but DEATHRx =8.1 ,,YES
150tblMED,WithinTable,MW001,Duplicate records,,YES
151tblMED,WithinTable,MW002,MED_ONG=0 and MED_ED null  ,,YES
152tblMED,WithinTable,MW003,MED_ONG=1  and MED_ED non-null ,,YES
153tblMED,WithinTable,MW004,Missing MED_ID,,YES
154tblMED,WithinTable,MW005,Missing MED_SD,,YES
155tblMED,WithinTable,MW006,Misisng MED_ED,,YES
156tblMED,WithinTable,MW007,Overlapping periods of same drug,,YES
157tblMED,WithinTable,MW008,MED_ED < MED_SD,,YES
158tblMED,CrossTable,MC001,Patient has no records in tblBAS,,YES
159tblOVERLAP,WithinTable,OW001,Invalid other cohort,,YES
160tblOVERLAP,CrossTable,OC001,PATIENT not found in tblBAS for that cohort,,YES
161tblOVERLAP,CrossTable,OC002,PAT_OTH not found in tblBAS for that overlapping cohort,,YES
162tblVIS,WithinTable,VW001,"Duplicate records, same VIS_D",,YES
163tblVIS,WithinTable,VW002,Height decreasing over time ,,YES
164tblVIS,WithinTable,VW003,Height out of acceptable range,,YES
165tblVIS,WithinTable,VW004,Weight out of acceptable range,,YES
166tblVIS,CrossTable,VC001,patient has no record in BAS table,,YES
167tblVIS,CrossTable,VC002,No weights within 3 mths of starting FPV/DRV,EPPICC  ,YES
168Appendix,CrossTable,GC003,Spot-check dates to ensure no Excel date-zero errors,EPPICC  ,NO
169tblAE_NADM,WithinTable,ANDW001,Duplicate records for same EVENT_ID,EPPICC  ,NO
170tblAE_NADM,CrossTable,ANDC001,EVENT_ID doesn't exist in tblAE_NEW,EPPICC  ,NO
171tblAE_NADM,WithinTable,ANDW002,Missing Patient,EPPICC  ,NO
172tblAE_NADM,WithinTable,ANDW003,Missing EVENT_ID,EPPICC  ,NO
173tblAE_NADM,WithinTable,ANDW004,Missing CANTYP_T,EPPICC  ,NO
174tblAE_NADM,WithinTable,ANDW005,Missing PATREP_S,EPPICC  ,NO
175tblAE_NADM,WithinTable,ANDW006,DIAOTH_Y=1 and DIA_S is missing,EPPICC  ,NO
176tblAE_NADM,CrossTable,ANDC002,PATIENT doesn't exist in tblBAS,EPPICC  ,NO
177tblAE_NEW,CrossTable,ANC003,PATIENT has no record in BAS,EPPICC  ,NO
178tblAE_NEW,CrossTable,ANC004,AE happened before that drug was started,EPPICC  ,NO
179tblAE_NEW,WithinTable,ANW001,More than one record for same patient on same date with same AE_ID,EPPICC  ,NO
180tblAE_NEW,WithinTable,ANW002,More than one record for same patient with same EVENT_ID,EPPICC  ,NO
181tblAE_NEW,WithinTable,ANW003,Missing PATIENT,EPPICC  ,NO
182tblAE_NEW,WithinTable,ANW004,Missing AE_D,EPPICC  ,NO
183tblAE_NEW,WithinTable,ANW005,Missing AE_ID,EPPICC  ,NO
184tblAE_NEW,WithinTable,ANW006,Missing EVENT_ID,EPPICC  ,NO
185tblAE_NEW,WithinTable,ANW007,Missing AE_RES,EPPICC  ,NO
186tblAE_NEW,WithinTable,ANW008,Missing AE_TEXT,EPPICC  ,NO
187tblAE_NEW,WithinTable,ANW009,Missing AE_DRUG,EPPICC  ,NO
188tblAE_NEW,CrossTable,ANC005,AE_ART=1 but doesn't agree with records in ART table,EPPICC  ,NO
189tblDELIVERY_CHILD,CrossTable,DCC001,MOTHER_ID doesn't exist in tblPREG,,
190tblDELIVERY_CHILD,CrossTable,DCC002,CHILD_ID doesn't exist in tblPREG_OUT,,
191tblDELIVERY_CHILD,WithinTable,DCW001,"Duplicate records for same Mother_ID, CHILD_ID ",,
192tblDELIVERY_CHILD,WithinTable,DCW002,B_SEQ >4,,
193tblDELIVERY_CHILD,WithinTable,DCW003,"B_SEQ>1, but no record exists for same Mother, Child with B_SEQ=1"
194tblDELIVERY_CHILD,WithinTable,DCW005,DELIV_D < MEMRUP_D
195tblDELIVERY_CHILD,WithinTable,DCW004,LABOUR_P >72
196tblDELIVERY_CHILD,WithinTable,DCW006,"2 children, same mother, same MEMRUP_D, DELIV_D >DELIV_D , yet B_SEQ< B_SEQ"
197tblDELIVERY_MUM,CrossTable,DMC001,MOTHER_ID doesn't exist in tblPREG
198tblDELIVERY_MUM,CrossTable,DMC002,MOTHER_ID doesn't exist in tblDELIVERY_CHILD with same MEMRUP_D
199tblDELIVERY_MUM,WithinTable,DMW001,"PREG_SEQ invalid (PREG_SEQ>1 and PREG_SEQ=x, but PREG_SEQ=x-1 doesn't exist)"
200tblDELIVERY_MUM,WithinTable,DMW002,DISCHA_D < MEMRUP_D
201tblDELIVERY_MUM,WithinTable,DMW004,INTERV=0-3 but INTERV_O non null
202tblDELIVERY_MUM,WithinTable,DMW003,"INTERV=90,91, 92 or 93 but INTERV_O null"
203tblNEWBORN,CrossTable,NC001,CHILD_ID doesn't exist in tblDELIVERY_CHILD
204tblNEWBORN,CrossTable,NC002,"ABNORM_Y = 1, yet no records in tblNEWBORN_ABNORM"
205tblNEWBORN,CrossTable,NC003,"ABNORM_Y = 0 or 9, yet records in tblNEWBORN_ABNORM"
206tblNEWBORN,WithinTable,NW001,BRFEED_SD>BRFEED_ED
207tblNEWBORN,WithinTable,NW002,APGARM_x's out of order (e.g APGARM_3 < APGARM_2)
208tblNEWBORN,WithinTable,NW003,"ICU_Y=1, but ICU_S or ICS_D null"
209tblNEWBORN,WithinTable,NW004,"ICU_Y=0 or 9, but ICU_S or ICU_D non null"
210tblNEWBORN_ABNORM,CrossTable,NAC001,CHILD_ID doesn't exist in NEWBORN
211tblNEWBORN_ABNORM,WithinTable,NAW001,ABNORM_T=90 but ABNORM_S null
212tblPREG_OBS,CrossTable,POC001,MOTHER_ID+PREG_SEQ doesn't exist in tblPREG
213tblPREG_OBS,WithinTable,POW001,PROB_T=99 but PROB_S null
214tblPREG_OBS,WithinTable,POW002,PROB_T<>99 but PROB_S non null
215tblPREG_OBS,WithinTable,POW003,PROB_T=2 but CERVIX_S null
216tblPREG_OBS,WithinTable,POW003,PROB_T<>2 but CERVIX_S non null
217tblPREG_OUT,CrossTable,PTC001,MOTHER_ID+PREG_SEQ doesn't exist in tblPREG
218tblPREG_OUT,CrossTable,PTC002,"OUTCOM=1,2 or 3 and CHILD_ID doesn't exisit in tblNEWBORN or tblDELIVERYCHILD"
219tblPREG_OUT,CrossTable,PTC002,"OUTCOM=10,11,20 or 21 and CHILD_ID exists in tblNEWBORN or tblDELIVERYCHILD"
220tblPREG_OUT,WithinTable,PTW001,OUTCOME=20 or 21 and OUTCOM_R null
221tblPREG_OUT,WithinTable,PTW001,OUTCOME not 20 or 21 and OUTCOM_R non null
222tblPREG,WithinTable,PW001,ANC_D <MENS_D
223tblPREG,WithinTable,PW002,"INPREG_Y=2,3,4 but INHIST_Y null"
224tblPREG,WithinTable,PW003,INPREG_Y=1 but INHIST_Y non null
225tblPREG,WithinTable,PW004,INHIST_Y=1 but INHIST_S null
226tblPREG,WithinTable,PW004,INHIST_Y=0 or 9 but INHIST_S non null
227tblPREG,WithinTable,PW005,KARYO_T=2 but KARYO_A null
228tblPREG,WithinTable,PW006,KARYO_T<>2 but KARYO_A non null
229tblPREG,WithinTable,PW007,"ULTRA_x =2, but ULTR_A_x null"
230tblPREG,WithinTable,PW008,"ULTRA_x <>2, but ULTR_A_x non null"
231tblPREG,CrossTable,PC001,PROB_Y = 1 but no records in tblPREG_OBS
232tblPREG,CrossTable,PC001,PROB_Y = 0 or 9 but records in tblPREG_OBS