Changeset 1077


Ignore:
Timestamp:
Jan 24, 2011, 9:52:50 AM (14 years ago)
Author:
Sam Habiel
Message:

Updates to M routines to support deletion of check-in

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Scheduling/trunk/m/BSDX08.m

    r1076 r1077  
    7373        I $P(^BSDXTMP($J,1),"~")'=-3 W "Error in -3",!
    7474        ;
    75         ; Test 6: for Cancelling walkin and checked-in appointments.
     75        ; Test 6: for Cancelling walkin and checked-in appointments (should fail).
    7676        S BSDXSTART=$E($$NOW^XLFDT,1,12),BSDXEND=BSDXSTART+.0001
    7777        D APPADD^BSDX07(.ZZZ,BSDXSTART,BSDXEND,4,"Dr Office",10,"Sam's Note",1)
     
    8181        B
    8282        D APPDEL^BSDX08(.ZZZ,APPID,"PC",10,"Cancel Note")
     83        B
     84        ;
     85        ; Test 7: for cancelling walkin and checked-in appointments (this should pass)
     86        S BSDXSTART=$E($$NOW^XLFDT,1,12)+.0001,BSDXEND=BSDXSTART+.0001
     87        D APPADD^BSDX07(.ZZZ,BSDXSTART,BSDXEND,4,"Dr Office",10,"Sam's Note",1)
     88        S APPID=+$P(^BSDXTMP($J,1),U)
     89        B
     90        D CHECKIN^BSDX25(.ZZZ,APPID,$$NOW^XLFDT)
     91        S BSDXRES=$O(^BSDXRES("B","Dr Office",""))
     92        S BSDXCLN=$P(^BSDXRES(BSDXRES,0),U,4)
     93        B
     94        S BSDXRESULT=$$RMCI^BSDXAPI(4,BSDXCLN,BSDXSTART)
     95        B
     96        D APPDEL^BSDX08(.ZZZ,APPID,"PC",10,"Cancel Note")
     97        ;
     98       
    8399        QUIT
    84100           ; Lock the node in another job for testing.
Note: See TracChangeset for help on using the changeset viewer.