Hey all,
We are wondering if there is an easy method of determining how many of our patients speak English, versus any other languages. This is not specifically talking about the "Preferred Language" that's built into the inquiries module, since that does not render proper results. This is for the submission of our CPC+ application. I do believe that we can use an estimate on the application, but for good measure I'd like to be as accurate as possible, especially with a database of well over 55k patients.
Any help would be much appreciated. Thanks.
You could run a simple sql query to find this data. The Preferred Language field is freetext. You need to use the language table in the database. Below is a simple query that returns each language along with the number of patients that have that language assigned to them.Keep in mind that the specific language was not always required in EMR so you may have a bunch of patients with a NULL language. Null is actually our largest result when I ran the query.
SELECT COUNT(*) CNT, LANGUAGE.SHORTDESCRIPTION FROM PERSON
LEFT JOIN LANGUAGE ON LANGUAGE.LANGUAGEID = PERSON.LANGUAGEID
WHERE PERSON.ISPATIENT ='Y'
--ONLY SHOW ACTIVE PATIENTS (NOT DECEASED)
AND PERSON.PSTATUS = 'A'
GROUP BY LANGUAGE.SHORTDESCRIPTION
ORDER BY 1 DESC;
If you want to run it on the preflang field you can use this query:
SELECT COUNT(*) CNT, PREFLANG FROM PERSON
where person.ispatient = 'Y' and person.pstatus = 'A'
GROUP BY PREFLANG
ORDER BY 1 DESC;
If you need some data other than the total number of patients in each language or if you need to filter out more patients just let me know the criteria and I will try and assist as best as possible.