source: WorldVistAEHR/trunk/r/ORDER_ENTRY_RESULTS_REPORTING-OR-OCX--ORRC--ORRJ/ORY38.m@ 813

Last change on this file since 813 was 613, checked in by George Lilly, 15 years ago

initial load of WorldVistAEHR

File size: 643 bytes
Line 
1ORY38 ;SLC/MKB-Postinit for patch OR*3*38 ;11/20/98 09:24
2 ;;3.0;ORDER ENTRY/RESULTS REPORTING;**38**;Dec 17, 1997
3 ;
4EN ; -- Clear default value for SC prompt in Outpt Med quick orders
5 ;
6 N ORDLG,OR0,ORSC,DA,DIK
7 S ORSC=+$O(^ORD(101.41,"AB","OR GTX SERVICE CONNECTED",0)) Q:ORSC'>0
8 S ORDG=+$O(^ORD(100.98,"B","O RX",0)) Q:ORDG'>0 S ORDLG=0
9 W !!,"Clearing SC default from Outpatient Medication quick orders ..."
10 F S ORDLG=$O(^ORD(101.41,ORDLG)) Q:ORDLG'>0 S OR0=$G(^(ORDLG,0)) I $P(OR0,U,4)="Q",$P(OR0,U,5)=ORDG D
11 . S DA=$O(^ORD(101.41,ORDLG,6,"D",ORSC,0)),DA(1)=ORDLG
12 . I DA>0 S DIK="^ORD(101.41,"_ORDLG_",6," D ^DIK
13 W " done."
14 Q
Note: See TracBrowser for help on using the repository browser.