Table 2. Calculations for Sensitivity and Specificity of the Final EHR Phenotype.
Formula | Calculation of Formula Components With Project-Specific Data | Project-Specifi Result | Rate |
---|---|---|---|
Any dementia | |||
Positive predictive value (PPV) = true positive (TP)/(true positive [TP] + false positive [FP]) | TP = EHR phenotype mild dementia and late-stage dementia | 283 | 76.3% |
FP = patients from EHR phenotype with no dementia | 88 | ||
False discovery rate (FDR) = false positive (FP)/(true positive [TP] + false positive [FP]) | FP = patients from EHR phenotype with no dementia | 88 | 23.7% |
TP = EHR phenotype mild dementia and late-stage dementia | 283 | ||
False negative rate = false negative (FN)/(false negative [FN] + true positive [TP]) | FN = mild and late-stage dementia palliative care consults, dementia on geriatrics or family medicine services and not from EHR phenotype | 191 | 40.3% |
TP = EHR phenotype mild dementia and late-stage dementia | 283 | ||
Sensitivity = true positive (TP)/(true positive [TP] + false negative [FN]) | TP = EHR phenotype mild dementia and late-stage dementia | 283 | 59.7% |
FN = mild and late-stage dementia palliative care consults, dementia on geriatrics or family medicine services and not from EHR phenotype | 191 | ||
Late-stage dementia | |||
PPV for late-stage dementia = true positive late stage (TPLS)/(true positive [TP] + false positive [FP]) | TPLS = clinician-confirmed late-stage dementia from EHR phenotype | 91 | 24.5% |
TP = EHR phenotype mild dementia and late-stage dementia | 283 | ||
FP = patients from EHR phenotype with no dementia | 88 | ||
FDR for late-stage dementia = false positive late stage (FPLS)/(true positive [TP] + false positive [FP]) | FPLS = all EHR phenotype patients—clinician-confirmed late-stage dementia | 280 | 75.5% |
TP = EHR phenotype mild dementia and late-stage dementia | 283 | ||
FP = patients from EHR phenotype with no dementia | 88 | ||
False negative late-stage rate = false negative late stage (FNLS)/(false negative [FN] + true positive [TP]) | FNLS = palliative care consults with moderate/severe dementia or on geriatrics or family medicine services and not from EHR phenotype | 51 | 10.8% |
FN = mild and late-stage dementia palliative care consults, dementia on geriatrics or family medicine services and not from EHR phenotype | 191 | ||
TP = EHR phenotype mild dementia and late-stage dementia | 283 | ||
Sensitivity = true positive late stage (TPLS)/(true positive late stage [TPLS] + false negative late stage [FNLS]) | TPLS = clinician-confirmed late-stage dementia from EHR phenotype | 91 | 64.1% |
FNLS = palliative care consults with moderate/severe dementia or on geriatrics or family medicine services and not from EHR phenotype | 51 |
EHR = electronic health record.