Last change
on this file since 1258 was 613, checked in by George Lilly, 15 years ago |
initial load of WorldVistAEHR
|
File size:
896 bytes
|
Rev | Line | |
---|
[613] | 1 | PSJ007 ;BIR/RSB-UTILITY ROUTINE FOR PATCH PSJ*5*7 ; 16 Jun 98 / 12:28 PM
|
---|
| 2 | ;;5.0; INPATIENT MEDICATIONS ;**7**; 16 DEC 97
|
---|
| 3 | ;
|
---|
| 4 | Q
|
---|
| 5 | EN ; QUEUE UP 53.1 CLEANUP
|
---|
| 6 | S ZTIO="",ZTDTH=$$CON(XPDQUES("POS ONE"))
|
---|
| 7 | S ZTDESC="Inpatient Medications Patch PSJ*5*7 Unit Dose Non-Verified Orders File Cleanup"
|
---|
| 8 | S ZTRTN="START^PSJ007" D ^%ZTLOAD
|
---|
| 9 | I $D(ZTSK) D MES^XPDUTL(" ") D MES^XPDUTL("Task #"_ZTSK_" is queued to run"_$S($D(PSJCONV):" NOW",1:" at "_XPDQUES("POS ONE")))
|
---|
| 10 | TEST ; Test text creation.
|
---|
| 11 | N PM S PM="This task will find and delete entries the NON-VERIFIED/PENDING ORDERS" D MES^XPDUTL(PM)
|
---|
| 12 | S PM="file (#53.1) that have no zero node." D MES^XPDUTL(PM)
|
---|
| 13 | Q
|
---|
| 14 | START ;
|
---|
| 15 | N PSJ
|
---|
| 16 | F PSJ=0:0 S PSJ=$O(^PS(53.1,PSJ)) Q:'PSJ K:'$D(^PS(53.1,PSJ,0)) ^PS(53.1,PSJ)
|
---|
| 17 | S ZTREQ="@"
|
---|
| 18 | Q
|
---|
| 19 | ;
|
---|
| 20 | GETDT ; check date/time for job to run
|
---|
| 21 | N %DT,Y S %DT="NRS"
|
---|
| 22 | D ^%DT I Y=-1 K X
|
---|
| 23 | E S X=Y
|
---|
| 24 | Q
|
---|
| 25 | CON(X) ;
|
---|
| 26 | N %DT S %DT="NRS" D ^%DT
|
---|
| 27 | Q Y
|
---|
Note:
See
TracBrowser
for help on using the repository browser.