source: WorldVistAEHR/trunk/r/CONTROLLED_SUBSTANCES-PSD/PSDORM.m@ 1154

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

initial load of WorldVistAEHR

File size: 567 bytes
Line 
1PSDORM ;BIR/LTL-Send MM about one-time request, PSDORNO (cont'd) ; 20 Jan 95
2 ;;3.0; CONTROLLED SUBSTANCES ;;13 Feb 97
3 N PSD D KILL^XM
4 S XMSUB="One Time Request",XMDUZ="NAOU Monitor" D XMZ^XMA2
5 I XMZ<1 D KILL^XM Q
6 S XMY(DUZ)="",PSD=0
7 F S PSD=$O(^XUSEC("PSDMGR",PSD)) Q:'PSD S XMY(PSD)=""
8 S PSD(1)=$P($P($G(^VA(200,DUZ,0)),U),",",2)_" "_$P($P($G(^(0)),U),",")
9 S PSD(1)=PSD(1)_" has placed a one time request.",(PSD(2),PSD(4))=""
10 S PSD(3)="The drug ordered was "_$G(PSDRN)_"."
11 S PSD(5)="This drug is INACTIVE on "_NAOUN_"."
12 S XMTEXT="PSD(" D ^XMD,KILL^XM Q
Note: See TracBrowser for help on using the repository browser.