added support for issues-and-encounters
[openemr.git] / sql / 2_7_0-to-2_7_2_upgrade.sql
blob19c2c266a1adacda56caba09ddd5168c5f2bfce8
1 CREATE TABLE issue_encounter (
2   pid       int(11)    NOT NULL, -- pid from patient_data table
3   list_id   int(11)    NOT NULL, -- id from lists table
4   encounter int(11)    NOT NULL, -- encounter from form_encounters table
5   resolved  tinyint(1) NOT NULL, -- if problem seems resolved with this encounter
6   PRIMARY KEY (pid, list_id, encounter)
7 );