I updated the installer to show failed SQL statements.
In testing locally, it shows that in addition to the event categories being missing, there is a problem with insert statements into the lists table.
Medications are missing as a result from the patient records. (As an example, compare Ralph Abbot on the nhanes instance and the nku instance.)
Haven’t had a chance to dig more deeply into why queries are failing in the cloning process. It doesn’t make sense as they are generated by MySQL dump. However, it is happening.
Given that there has been some activity on the other instances replacing them with clean copies doesn’t seem like a good option at the moment.
Hi all,
I am getting ready for my students to use the EHR in class next Wednesday. I was going back to login and run through the scavenger hunt again this morning. It worked fine when I tried it a few months ago, but today when I click on the patient last name, I get an error message. I am using the link for UMD. Can you help me with this?
Also–I thought I remembered seeing instructions for creating user accounts for the students in my class, but I can’t seem to find them. Can someone please point me to that, if it exists?
looks like the upgrade script needs to be run. @yehster can you look at the tables and make sure they are there. It is really difficult to work with out tools.
Running sql_upgrade.php for (1.0.1 - > 2.0) did not resolve the issue for the default ehr site. There seems to be at least one missing column.
This is the error when trying to select patients:
ERROR: query failed: SELECT * FROM clinical_rules WHERE pid=0 AND active = 1 ORDER BY id
Error: Unknown column ‘active’ in ‘where clause’
and this is the output from the upgrade script. There doesn’t seem to be any reference to the new “active” column in clinical rules. It looks like the upgrade scripts had been run prior, but the needed column isn’t part of the patch.
All the below stuff has to get changed in two months anyway. Basically
all rules get re-written annually, and usually the name of the whole
government program etc…
DROP TABLE IF EXISTS clinical_rules;
CREATE TABLE clinical_rules (
id varchar(35) NOT NULL DEFAULT ‘’,
pid bigint(20) NOT NULL DEFAULT ‘0’ COMMENT ‘0 is default for all
patients, while > 0 is id from patient_data table’,
active_alert_flag tinyint(1) DEFAULT NULL COMMENT ‘Active Alert
Widget Module flag - note not yet utilized’,
passive_alert_flag tinyint(1) DEFAULT NULL COMMENT ‘Passive Alert
Widget Module flag’,
patient_reminder_flag tinyint(1) DEFAULT NULL COMMENT ‘Clinical
Reminder Module flag’,
release_version varchar(255) NOT NULL DEFAULT ‘’ COMMENT ‘Clinical
Rule Release Version’,
web_reference varchar(255) NOT NULL DEFAULT ‘’ COMMENT ‘Clinical
Rule Web Reference’,
access_control varchar(255) NOT NULL DEFAULT ‘patients:med’ COMMENT
’ACO link for access control’,
pqrs_code varchar(35) DEFAULT NULL COMMENT ‘Measure number’,
pqrs_individual_2016_flag tinyint(4) DEFAULT NULL COMMENT ‘Is MIPS
flag’,
pqrs_group_type varchar(2) DEFAULT ‘X’ COMMENT ‘XML output scheme
type’,
active tinyint(4) DEFAULT NULL COMMENT ‘Is this measure turned on?’);