Changeset 1438 for qrda/C0Q/trunk/p/C0QIMMUN.m
- Timestamp:
- May 25, 2012, 5:55:11 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
qrda/C0Q/trunk/p/C0QIMMUN.m
r1364 r1438 1 C0QIMMUN ;Prep Immunization Order data for HL7 Message creation ; 2 ;; 0.1;C0Q;nopatch;noreleasedate;Build 271 C0QIMMUN ;Prep Immunization Order data for HL7 Message creation ; 5/23/12 5:40pm 2 ;;1.0;C0Q;;May 21, 2012;Build 43 3 3 ; ^XTMP("C0QIMMUN",0)=purge date^create date 4 4 ; ^XTMP("C0QIMMUN",order_date,order#,item_name)=item_value 5 5 ; ^XTMP("C0QIMMUN","LASTORDR")=last order processed 6 ; Changed by VEN/SMH to add timeout to the locks on May 23 2012 6 7 FIND ; Find the next set of immunization orders 7 8 N X1,X2,X,%,%DT,%H,%T,NOW,ORDER,LASTORDR,SUBSC,DIR 8 9 S LASTORDR=+$G(^XTMP("C0QIMMUN","LASTORDR")) 10 N C0QFAIL S C0QFAIL=0 ; Lock fail flag 9 11 W !,"The ""Last Order"" from which to begin checking for Immunization orders is: ",LASTORDR 10 12 S DIR("A")="Do you want to reset that value" … … 15 17 . D:Y>0 16 18 . . S LASTORDR=+Y 17 . . L +^XTMP("C0QIMMUN") 19 . . L +^XTMP("C0QIMMUN"):0 20 . . E S C0QFAIL=1 QUIT 18 21 . . S X1=DT,X2=365 D C^%DTC 19 22 . . S ^XTMP("C0QIMMUN",0)=X_U_DT … … 22 25 . . Q 23 26 . Q 27 I C0QFAIL W !,"Failed to acquire lock, exiting..." QUIT 24 28 S DIR("A")="Ready to prep more immunization orders for HL7 messages" 25 29 S DIR(0)="Y",DIR("B")="YES" D ^DIR Q:Y'=1 26 L +^XTMP("C0QIMMUN") 30 L +^XTMP("C0QIMMUN"):0 31 E W !,"Failed to acquire lock; exiting..." QUIT 27 32 I '$D(^XTMP("C0QIMMUN",0)) D 28 33 . S X1=DT,X2=365 D C^%DTC
Note:
See TracChangeset
for help on using the changeset viewer.