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/BSDXAPI.m

    r1466 r1467  
    1 BSDXAPI ; IHS/ANMC/LJF & VW/SMH - SCHEDULING APIs ; 7/3/12 12:30pm
     1BSDXAPI ; IHS/LJF,HMW,MAW & VEN/SMH - SCHEDULING APIs ; 7/5/12 12:52pm
    22        ;;1.7T1;BSDX;;Aug 31, 2011;Build 18
    33        ; Licensed under LGPL 
     
    110110        ;Q:$G(BSDXSIMERR5) 1_U_$NA(BSDXSIMERR5) ; Unit Test line
    111111        S:$G(BSDXSIMERR5) X=1/0
     112        ;
     113        ; Update the Availablilities ; Doesn't fail. Global reads and sets.
     114        D AVUPDTMK^BSDXAPI1(BSDR("CLN"),BSDR("ADT"),BSDR("LEN"))
    112115        ;
    113116        ; call event driver
     
    327330        ; get user who made appt and date appt made from ^SC
    328331        ;    because data in ^SC will be deleted
     332        ; Appointment Length: ditto
    329333        NEW USER,DATE
    330334        S USER=$P($G(^SC(SDCL,"S",SDT,1,IEN,0)),U,6)
    331335        S DATE=$P($G(^SC(SDCL,"S",SDT,1,IEN,0)),U,7)
     336        N BSDXLEN S BSDXLEN=$$APPLEN(DFN,SDCL,SDT) ; appt length
    332337        ;
    333338        ; update file 2 info --old code; keep for reference
     
    350355        I $D(BSDXERR) Q 1_U_"Cannot cancel appointment in File 2"
    351356        ; Failure point 1: If we fail here, nothing has happened yet.
    352         ; No rollback needed in ^BSDXAPPT
    353357        ;
    354358        ; delete data in ^SC -- this does not (typically) fail. Fileman won't stop
     
    359363        ; Failure point 2: not expected to happen here
    360364        ;
     365        ; Update PIMS availability -- this doesn't fail. Global gets/sets only.
     366        D AVUPDTCN^BSDXAPI1(SDCL,SDT,BSDXLEN)
     367        ;
    361368        ; call event driver -- point of no return
    362369        D CANCEL^SDAMEVT(.SDATA,DFN,SDT,SDCL,SDDA,SDMODE,SDCPHDL)
     370        ;
    363371        Q 0
    364372        ;
Note: See TracChangeset for help on using the changeset viewer.