The queries below were developed by QIDSS and the EMR Communities of Practice. They will help you extract data to monitor diabetes care, and they can also help you prepare the data for submission to D2D.
Why Diabetes?
There are two reasons to include a diabetes care indicator in D2D. The main reason is to include clinical data in primary care performance measurement, especially considering clinical care remains the core business of AFHTO members. Another reason is the need to show the value of team-based care. EMRs are the only repository of data created and used by teams and therefore are the best source of data to reflect the contribution of the entire team to patient care. As well, EMRs are the most up-to-date source of data about the whole person available in primary care.
A composite indicator
Following the lead of the EMRALD project, the 4 measures used in the diabetes numerator (HbA1C testing done at appropriate interval and appropriate levels of most recent HbA1C, blood pressure, and cardiovascular protection via statin therapy) will be combined into a single composite indicator for diabetic performance. If you want to start monitoring your diabetes care we have a process to help you. This involves running a standard query to identify your diabetic population and cleaning your EMR by coding those patients accordingly. Check out the suggestions on the “Getting started on a diabetes registry” webpage or contact improve@afhto.ca for more information. Please refer to the EMR-specific instructions below to generate data for the Diabetes Care indicator. Once you have tried running these queries, consider sharing your challenges and successes with your EMR CoP or contact us so we can all get better at doing this!
| Telus PS | Accuro | Nightingale | OSCAR | P&P |
| NOTE: All queries are tested and validated prior to release. However, changes that take place after the queries are released may affect how accurate they are. Such changes could include EMR software updates, new medications, and changes to standard clinical definitions. They may result in false positives, that is, patients being flagged who do not have the specified condition. They may also result in false negatives, that is, patients not being flagged who do have the condition. Queries are also limited by the quality of your EMR data. Please exercise judgement when using them, as they are meant to support and complement a chart review, not to replace it. |
Telus PS
CODED: If your diabetic patients are coded with ICD-9, ICD-10, or SNOMED CT – use the D2D Diabetes Care v1 searches (.srx files) to generate data for the diabetes composite indicator. They run quickly! Screenshots of the numerator searches and denominator search can be found in the guide. UNCODED: If you are not sure how your team codes patients with diabetes in your EMR, please use the D2D Diabetes Care uncoded v1 searches (.srx files). They will extract data for all patients identified with diabetes, based on the case definition developed by CPCSSN and translated for EMR use by the QIDSS Algorithm Project. Beware, these comprehensive searches may take a while to run! Screenshots of the numerator searches and denominator search can be found in the guide. Save the searches to your desktop and import them into your EMR. After running the searches, take the list of unique patient ids resulting from each of the 3 numerator searches and the denominator search. Plug these numbers into the Diabetes Care Calculator to generate the composite score for your team. This score is the number to be entered into the D2D submission platform. You might need the help of your QIDSS, IT staff or other person who usually runs queries in your EMR. Consider sharing your challenges and successes with the Telus PS CoP or contact us for more information.
Accuro
CODED: If your patients with diabetes are coded with ICD-9 250 use the 4 queries (D2D- Diabetes Care v1) located on publisher to generate data for the diabetes composite indicator. Once the queries are run, import the patient lists (PHNs) into the Diabetes Care Calculator. You may need the help of your QIDSS, IT staff or any other person who usually runs queries in your EMR. Consider sharing your challenges and with the Accuro CoP or contact us for more information.
Nightingale
CODED: If your patients with diabetes are coded with ICD-9 250 please use the queries illustrated in the links below to generate data for the diabetes composite indicator. Please review this guide before proceeding – it contains instructions and options for calculating your diabetes care score. If you choose to use the Diabetes Care Calculator there are a number of steps involved but it will calculate the diabetes score for you.
- Diabetes Care Denominator v1 (Nightingale)
- Diabetes CareNumerator HbA1C Testing and Level Numerator v1 (Nightingale)
- Diabetes Care Numerator Blood Pressure Numerator v1 (Nightingale)
- Diabetes Care Numerator Statin Numerator v1 (Nightingale)
You may need the help of your QIDSS, IT staff or any other person who usually runs queries in your EMR. Contact us for more information.
OSCAR
CODED: Please review this guide before proceeding – it contains screenshots of the reports. If your patients with diabetes are coded with ICD-9 250 – please use the D2D Diabetes Care v2 queries to generate data for the diabetes composite indicator. Two sets of queries were created as a result of query run time issues. The following set of queries search for diabetic patients for all physicians. If you experience excessive query run time you can use the queries that run for each physician. Once the queries are run, import the list of unique patient id’s from each report into the Diabetes Care Calculator. Although a number of steps are involved, it will calculate the diabetes score for you. Consider sharing your challenges and successes with the OSCAR CoP or contact us for more information.
P&P
NOTE: we are unable to create a query for blood pressure due to global data restrictions. The vendor expects a fix to be deployed with the next release. We will post a query as soon as this issue is resolved. We do have 3 other queries (HBA1c testing, HBA1c levels, and Statin) that you can run to start building the composite indicator, as below. Please download the D2D Diabetes Care v1 queries for the diabetes indicator. The numerator queries are based on patients being coded using ENCODE-FM (ICD9 = 250). The denominator query is based on the CPCSSN case definition and will help you identify patients with diabetes who might not be coded in your EMR. Due to the way the lab results are handled in P&P, the report generated by the numerator queries will need to be exported to excel and filtered to find most recent A1c values and dates. Please see screenshots in this guide for reference. Once the queries are run, import the patient lists (unique IDs only) into the Diabetes Care Calculator. Although a number of steps are involved, it will calculate the diabetes score for you. You might need the help of your QIDSS, IT staff or other person who usually runs queries in your EMR to import and execute this query. Please consider sharing your challenges and successes with the P&P CoP or contact us for more information.
