The CCR functionality on my installation of version 4.1 labeled medications as inactive when in fact they were active. I found the bug in lines 79 asn 125 of the file sql-ccr.inc. The logic looks for an end date of ‘0000-00-00’ or a future enddate. My active medications had a NULL enddate, so I changed the
Thank you. That was kind of any annoying bug if you have to print these before the portal security thing gets worked out. First you had to explain why the government makes you print out useless stuff on paper in order to use an electronic record, then you had to explain to them why their medications listed as inactive. Your fix seems to work perfectly.
This correction seems to fix the patient portal display. It also seems to fix the internal printout of medications (active vs inactive) in the CCR printing. However, CCR printing is still buggy for the problem list. My program prints out problems with ICD9 codes but not codes without ICD9 codes. It prints out all such problems that have ICD9 codes regardless of whether an end date is in effect. Hmm…