Ignore:
Timestamp:
Jul 5, 2012, 7:42:34 PM (12 years ago)
Author:
Sam Habiel
Message:

BSDX25 refactoring is done; moved PIMS availability change logic from BSDX07 and BSDX08 to BSDXAPI*.m. Calling these has moved from BSDX07 and BSDX08 to 1926MAKE and 1926CANCELBSDXAPI.

File:
1 edited

Legend:

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

    r1466 r1467  
    1 BSDXUT2 ; VEN/SMH - Unit Tests for Scheduling GUI - cont. ; 7/3/12 12:03pm
     1BSDXUT2 ; VEN/SMH - Unit Tests for Scheduling GUI - cont. ; 7/5/12 11:39am
    22        ;;1.7T1;BSDX;;Aug 31, 2011;Build 18
    33        ;
     
    6565        IF +^BSDXTMP($J,1)'=-100 WRITE "ERROR IN Etest 9",!
    6666        K BSDXDIE2
     67        ; M Error in $$RMCI^BSDXAPI1
     68        N BSDXDIE2 S BSDXDIE2=1
     69        D RMCI^BSDX25(.ZZZ,APPTID)
     70        IF +^BSDXTMP($J,1)'=-100 WRITE "ERROR IN Etest 13",!
     71        K BSDXDIE2
    6772        ;
    6873        ; Get start and end times
     
    100105        IF $P(^BSDXAPPT(APPTID,0),U,3) WRITE "ERROR IN CHECKIN 115",!
    101106        IF +$G(^SC(HL,"S",APPTTIME,1,1,"C")) WRITE "ERROR IN CHECKIN 116",!
     107        K BSDXSIMERR3
     108        ;
     109        ; Check-in for real for the subsequent tests
     110        D CHECKIN^BSDX25(.ZZZ,APPTID,$$NOW^XLFDT()) ; Check-in first!
     111        IF '$P(^BSDXAPPT(APPTID,0),U,3) WRITE "ERROR IN CHECKIN 1110",!
     112        IF '+$G(^SC(HL,"S",APPTTIME,1,1,"C")) WRITE "ERROR IN RMCI 1120",!
     113        ;
     114        ; Simulated Error in $$BSDXCHK^BSDX25; This time for remove check-in
     115        N BSDXSIMERR1 S BSDXSIMERR1=1
     116        D RMCI^BSDX25(.ZZZ,APPTID)
     117        IF +^BSDXTMP($J,1)'=-6 WRITE "ERROR in Etest 14",!
     118        IF '$P(^BSDXAPPT(APPTID,0),U,3) WRITE "ERROR IN RMCI 111",!
     119        IF '+$G(^SC(HL,"S",APPTTIME,1,1,"C")) WRITE "ERROR IN RMCI 112",!
     120        K BSDXSIMERR1
     121        ;
     122        ; Simulated Error in $$RMCICK^BSDXAPI1
     123        N BSDXSIMERR2 S BSDXSIMERR2=1
     124        D RMCI^BSDX25(.ZZZ,APPTID)
     125        IF +^BSDXTMP($J,1)'=-5 WRITE "ERROR in Etest 15",!
     126        IF '$P(^BSDXAPPT(APPTID,0),U,3) WRITE "ERROR IN RMCI 113",!
     127        IF '+$G(^SC(HL,"S",APPTTIME,1,1,"C")) WRITE "ERROR IN RMCI 114",!
     128        K BSDXSIMERR2
     129        ;
     130        ; Simulated Error in $$RMCI^BSDXAPI1
     131        N BSDXSIMERR3 S BSDXSIMERR3=1
     132        D RMCI^BSDX25(.ZZZ,APPTID)
     133        IF +^BSDXTMP($J,1)'=-5 WRITE "ERROR in Etest 16",!
     134        IF '$P(^BSDXAPPT(APPTID,0),U,3) WRITE "ERROR IN RMCI 115",!
     135        IF '+$G(^SC(HL,"S",APPTTIME,1,1,"C")) WRITE "ERROR IN RMCI 116",!
    102136        K BSDXSIMERR3
    103137        ;
Note: See TracChangeset for help on using the changeset viewer.