Skip to content

Commit

Permalink
remove non-recommended abbreviations (openemr#7863)
Browse files Browse the repository at this point in the history
  • Loading branch information
somerob authored Jan 14, 2025
1 parent 5a6ce59 commit 2736cad
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 6 deletions.
24 changes: 24 additions & 0 deletions sql/7_0_2-to-7_0_3_upgrade.sql
Original file line number Diff line number Diff line change
Expand Up @@ -303,3 +303,27 @@ ALTER TABLE `oauth_clients` ADD `dsi_type` TINYINT UNSIGNED NOT NULL DEFAULT '1'
#IfMissingColumn clinical_rules_log facility_id
ALTER TABLE `clinical_rules_log` ADD `facility_id` INT(11) DEFAULT '0' COMMENT 'facility where the rule was executed, 0 if unknown';
#EndIf

#IfRow2D list_options list_id drug_form title ml
UPDATE list_options SET title='mL' WHERE list_id='drug_form' AND title='ml';
#EndIf

#IfRow2D list_options list_id drug_route title OS
UPDATE list_options SET title='Left Eye' WHERE list_id='drug_route' AND title='OS';
#EndIf

#IfRow2D list_options list_id drug_route title OD
UPDATE list_options SET title='Right Eye' WHERE list_id='drug_route' AND title='OD';
#EndIf

#IfRow2D list_options list_id drug_route title OU
UPDATE list_options SET title='Each Eye' WHERE list_id='drug_route' AND title='OU';
#EndIf

#IfRow2D list_options list_id drug_route title SQ
UPDATE list_options SET title='Subcutaneous' WHERE list_id='drug_route' AND title='SQ';
#EndIf

#IfRow2D list_options list_id drug_interval title q.d.
UPDATE list_options SET title='Daily' WHERE list_id='drug_interval' AND title='q.d.';
#EndIf
12 changes: 6 additions & 6 deletions sql/database.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4104,7 +4104,7 @@ INSERT INTO list_options ( list_id, option_id, title, seq, is_default, codes ) V
INSERT INTO list_options ( list_id, option_id, title, seq, is_default, codes ) VALUES ('drug_form','3','capsule' ,3,0,'NCI-CONCEPT-ID:C25158');
INSERT INTO list_options ( list_id, option_id, title, seq, is_default, codes ) VALUES ('drug_form','4','solution' ,4,0,'NCI-CONCEPT-ID:C42986');
INSERT INTO list_options ( list_id, option_id, title, seq, is_default, codes ) VALUES ('drug_form','5','tsp' ,5,0,'NCI-CONCEPT-ID:C48544');
INSERT INTO list_options ( list_id, option_id, title, seq, is_default, codes ) VALUES ('drug_form','6','ml' ,6,0,'NCI-CONCEPT-ID:C28254');
INSERT INTO list_options ( list_id, option_id, title, seq, is_default, codes ) VALUES ('drug_form','6','mL' ,6,0,'NCI-CONCEPT-ID:C28254');
INSERT INTO list_options ( list_id, option_id, title, seq, is_default, codes ) VALUES ('drug_form','7','units' ,7,0,'NCI-CONCEPT-ID:C44278');
INSERT INTO list_options ( list_id, option_id, title, seq, is_default, codes ) VALUES ('drug_form','8','inhalations',8,0,'NCI-CONCEPT-ID:C42944');
INSERT INTO list_options ( list_id, option_id, title, seq, is_default, codes ) VALUES ('drug_form','9','gtts(drops)',9,0,'NCI-CONCEPT-ID:C48491');
Expand All @@ -4127,10 +4127,10 @@ INSERT INTO list_options ( list_id, option_id, title, seq, is_default, notes ) V
INSERT INTO list_options ( list_id, option_id, title, seq, is_default, notes ) VALUES ('drug_route', '3','To Skin' , 3,0, 'OTH');
INSERT INTO list_options ( list_id, option_id, title, seq, is_default, notes ) VALUES ('drug_route', '4','To Affected Area' , 4,0, 'OTH');
INSERT INTO list_options ( list_id, option_id, title, seq, is_default, notes ) VALUES ('drug_route', '5','Sublingual' , 5,0, 'OTH');
INSERT INTO list_options ( list_id, option_id, title, seq, is_default, notes ) VALUES ('drug_route', '6','OS' , 6,0, 'OTH');
INSERT INTO list_options ( list_id, option_id, title, seq, is_default, notes ) VALUES ('drug_route', '7','OD' , 7,0, 'OTH');
INSERT INTO list_options ( list_id, option_id, title, seq, is_default, notes ) VALUES ('drug_route', '8','OU' , 8,0, 'OTH');
INSERT INTO list_options ( list_id, option_id, title, seq, is_default, notes ) VALUES ('drug_route', '9','SQ' , 9,0, 'OTH');
INSERT INTO list_options ( list_id, option_id, title, seq, is_default, notes ) VALUES ('drug_route', '6','Left Eye' , 6,0, 'OTH');
INSERT INTO list_options ( list_id, option_id, title, seq, is_default, notes ) VALUES ('drug_route', '7','Right Eye' , 7,0, 'OTH');
INSERT INTO list_options ( list_id, option_id, title, seq, is_default, notes ) VALUES ('drug_route', '8','Each Eye' , 8,0, 'OTH');
INSERT INTO list_options ( list_id, option_id, title, seq, is_default, notes ) VALUES ('drug_route', '9','Subcutaneous' , 9,0, 'OTH');
INSERT INTO list_options ( list_id, option_id, title, seq, is_default, notes, codes ) VALUES ('drug_route','10','IM' ,10,0, 'IM', 'NCI-CONCEPT-ID:C28161');
INSERT INTO list_options ( list_id, option_id, title, seq, is_default, notes ) VALUES ('drug_route','11','IV' ,11,0, 'IV');
INSERT INTO list_options ( list_id, option_id, title, seq, is_default, notes ) VALUES ('drug_route','12','Per Nostril' ,12,0, 'NS');
Expand All @@ -4152,7 +4152,7 @@ INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES (
INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_interval','6','q.5h' ,6,0);
INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_interval','7','q.6h' ,7,0);
INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_interval','8','q.8h' ,8,0);
INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_interval','9','q.d.' ,9,0);
INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_interval','9','Daily' ,9,0);
INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_interval','10','a.c.' ,10,0);
INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_interval','11','p.c.' ,11,0);
INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_interval','12','a.m.' ,12,0);
Expand Down

0 comments on commit 2736cad

Please sign in to comment.