Changeset 1452 for Scheduling/trunk/m/BSDX08.m
- Timestamp:
- Jun 20, 2012, 7:42:19 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Scheduling/trunk/m/BSDX08.m
r1187 r1452 1 BSDX08 ; VW/UJO/SMH - WINDOWS SCHEDULING RPCS ; 4/28/11 10:17am2 ;;1.6 T2;BSDX;;May 16, 20111 BSDX08 ; VW/UJO/SMH - WINDOWS SCHEDULING RPCS ; 6/20/12 3:52pm 2 ;;1.6;BSDX;;Aug 31, 2011;Build 18 3 3 ; 4 4 ; Original by HMW. New Written by Sam Habiel. Licensed under LGPL. … … 35 35 APPDELD(BSDXY,BSDXAPTID,BSDXTYP,BSDXCR,BSDXNOT) ;EP 36 36 ;Entry point for debugging 37 D DEBUG^%Serenji("APPDEL^BSDX08(.BSDXY,BSDXAPTID,BSDXTYP,BSDXCR,BSDXNOT)")37 ;D DEBUG^%Serenji("APPDEL^BSDX08(.BSDXY,BSDXAPTID,BSDXTYP,BSDXCR,BSDXNOT)") 38 38 Q 39 39 ; 40 40 UT ; Unit Tests 41 N RESNAM S RESNAM="UTCLINIC" 42 N HLRESIENS ; holds output of UTCR^BSDX35 - HL IEN^Resource IEN 43 D 44 . N $ET S $ET="D ^%ZTER B" 45 . S HLRESIENS=$$UTCR^BSDX35(RESNAM) 46 . I HLRESIENS<0 S $EC=",U1," ; not supposed to happen - hard crash if so 47 ; 48 N HLIEN,RESIEN 49 S HLIEN=$P(HLRESIENS,U) 50 S RESIEN=$P(HLRESIENS,U,2) 51 ; 52 ; Get start and end times 53 N TIMES S TIMES=$$TIMES^BSDX35 ; appt time^end time 54 N APPTTIME S APPTTIME=$P(TIMES,U) 55 N ENDTIME S ENDTIME=$P(TIMES,U,2) 56 ; 41 57 ; Test 1: Make normal appointment and cancel it. See if every thing works 42 N ZZZ 43 D APPADD^BSDX07(.ZZZ,3110123.2,3110123.3,4,"Dr Office",10,"Sam's Note",1) 58 N ZZZ,DFN 59 S DFN=3 60 D APPADD^BSDX07(.ZZZ,APPTTIME,ENDTIME,DFN,RESNAM,30,"Sam's Note",1) 44 61 S APPID=+$P(^BSDXTMP($J,1),U) 45 62 D APPDEL^BSDX08(.ZZZ,APPID,"PC",1,"Sam's Cancel Note") 46 63 I $P(^BSDXAPPT(APPID,0),U,12)'>0 W "Error in Cancellation-1" 47 I $O(^SC(2,"S", 3110123.2,1,0))]"" W "Error in Cancellation-2"48 I $P(^DPT(4,"S", 3110123.2,0),U,2)'="PC" W "Error in Cancellation-3"64 I $O(^SC(2,"S",APPTTIME,1,0))]"" W "Error in Cancellation-2" 65 I $P(^DPT(4,"S",APPTTIME,0),U,2)'="PC" W "Error in Cancellation-3" 49 66 I ^DPT(4,"S",3110123.2,"R")'="Sam's Cancel Note" W "Error in Cancellation-4" 50 67 ;
Note:
See TracChangeset
for help on using the changeset viewer.