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)