Ignore:
Timestamp:
Jun 20, 2012, 7:42:19 PM (12 years ago)
Author:
Sam Habiel
Message:

done with BSDX07

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:17am
    2         ;;1.6T2;BSDX;;May 16, 2011
     1BSDX08  ; VW/UJO/SMH - WINDOWS SCHEDULING RPCS ; 6/20/12 3:52pm
     2        ;;1.6;BSDX;;Aug 31, 2011;Build 18
    33        ;
    44        ; Original by HMW. New Written by Sam Habiel. Licensed under LGPL.
     
    3535APPDELD(BSDXY,BSDXAPTID,BSDXTYP,BSDXCR,BSDXNOT) ;EP
    3636        ;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)")
    3838        Q
    3939        ;
    4040UT      ; 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        ;
    4157        ; 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)
    4461        S APPID=+$P(^BSDXTMP($J,1),U)
    4562        D APPDEL^BSDX08(.ZZZ,APPID,"PC",1,"Sam's Cancel Note")
    4663        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"
    4966        I ^DPT(4,"S",3110123.2,"R")'="Sam's Cancel Note" W "Error in Cancellation-4"
    5067        ;
Note: See TracChangeset for help on using the changeset viewer.