Presentation is loading. Please wait.

Presentation is loading. Please wait.

Dead Patients Visiting

Similar presentations


Presentation on theme: "Dead Patients Visiting"— Presentation transcript:

1 Dead Patients Visiting
Farrokh Alemi, PhD

2 Conversion of Text to Double
If text “Null” appears Convert to Double Replace with true Null

3 Query in Graphical View
Check for age at diagnosis > age at death No Duplicate ID

4 SQL View SELECT DxAge_1.id FROM DxAge_1 WHERE DxAge_1.AgeAtDx >
IIf([AgeAtDeath] = "Null", Null, CDbl([AgeAtDeath])) GROUP BY DxAge_1.id;

5 43 Patients Visit after Death in File 1
Repeat for four different data files. Then, create a union of the result.

6 Exclude Dead Patients in File 1

7 Exclude Dead Patients in File 1
SELECT DxAge_1.id , DxAge_1.icd9 , DxAge_1.AgeAtDx , DxAge_1.AgeAtFirstDM , DxAge_1.AgeAtDeath , VisitAfterDeath.id FROM VisitAfterDeath RIGHT JOIN DxAge_1 ON VisitAfterDeath.id = DxAge_1.id WHERE VisitAfterDeath.id Is Null;

8 Reduced Rows of Data in File 1 Repeat for All Four Files
From 4,233,546 To 4,231,775 Reduced Rows of Data in File 1 Repeat for All Four Files


Download ppt "Dead Patients Visiting"

Similar presentations


Ads by Google