source: WorldVistAEHR/trunk/r/EVENT_CAPTURE-EC--ECT--ECX/ECUD1.m@ 1147

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

initial load of WorldVistAEHR

File size: 470 bytes
Line 
1ECUD1 ;BIR/DMA-Store data from unit dose package into 728.904 ; 26 Sep 95 / 12:44 PM
2 ;;3.0;DSS EXTRACTS;;Dec 22, 1997
3 ;called from 2 unit dose routines - PSGPLF and PSGAMSA
4 ;load UD data into an EC file for later extract to vendor
5 ;
6 I '$D(^ECX(728.904)) Q
7 L +^ECX(728.904,0):1 Q:'$T
8 N DA,DIK
9 S EC=-$O(^ECX(728.904,"AINV","")) F S EC=EC+1 Q:'$D(^ECX(728.904,EC))
10 S ^ECX(728.904,EC,0)=EC_"^"_ECUD L -^ECX(728.904,0)
11 S DA=EC,DIK="^ECX(728.904," D IX^DIK
12 K EC Q
Note: See TracBrowser for help on using the repository browser.