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

    r1451 r1452  
    1 BSDXAPI ; IHS/ANMC/LJF & VW/SMH - SCHEDULING APIs ; 6/19/12 5:42pm
     1BSDXAPI ; IHS/ANMC/LJF & VW/SMH - SCHEDULING APIs ; 6/20/12 12:40pm
    22        ;;1.7T1;BSDX;;Aug 31, 2011;Build 18
    33        ; Licensed under LGPL 
    44        ;
    55        ;Orignal routine is BSDAPI by IHS/LJF, HMW, and MAW
    6         ;local mods (many) by WV/SMH
     6        ; mods (many) by WV/SMH
    77        ;Move to BSDX namespace as BSDXAPI from BSDAPI by WV/SMH
    88        ; Change History:
     
    8787        . S BSDXFDA(2.98,BSDXIENS,"15")=""
    8888        . S BSDXFDA(2.98,BSDXIENS,"16")=""
     89        . S BSDXFDA(2.98,BSDXIENS,"17")="@" ; v 1.7; cancellation remarks were left over
    8990        . S BSDXFDA(2.98,BSDXIENS,"19")=""
    9091        . S BSDXFDA(2.98,BSDXIENS,"20")=$$NOW^XLFDT
    9192        . D FILE^DIE("","BSDXFDA","BSDXMSG")
    9293        Q:$D(BSDXMSG) 1_U_"Fileman edit to DPT error: Patient="_BSDR("PAT")_" Appt="_BSDR("ADT")_" Error="_BSDXMSG("DIERR",1,"TEXT",1)
     94        ;
     95        Q:$G(BSDXSIMERR2) 1_U_$NA(BSDXSIMERR2) ; Unit Test line
    9396        ;
    9497        E  D  ; File new appointment/edit existing appointment in file 2
     
    102105        Q:$D(BSDXMSG) 1_U_"FileMan add to DPT error: Patient="_BSDR("PAT")_" Appt="_BSDR("ADT")_" Error="_BSDXMSG("DIERR",1,"TEXT",1)
    103106        ;
     107        Q:$G(BSDXSIMERR3) 1_U_$NA(BSDXSIMERR3) ; Unit Test line
     108        ;
    104109        ; add appt to file 44. This adds it to the FIRST subfile (Appointment)
    105110        N DIC,DA,Y,X,DD,DO,DLAYGO
     
    109114        . S DIC("P")="44.001DA",DIC(0)="L",DLAYGO=44.001
    110115        . S Y=1 I '$D(@(DIC_X_")")) D FILE^DICN
     116        ;
     117        Q:$G(BSDXSIMERR4) 1_U_$NA(BSDXSIMERR4) ; Unit Test line
    111118        ;
    112119        ; add appt for file 44, second subfile (Appointment/Patient)
     
    130137        ;
    131138        I $D(BSDXERR) Q 1_U_"Error adding appt to file 44: Clinic="_BSDR("CLN")_" Date="_BSDR("ADT")_" Patient="_BSDR("PAT")_" Error: "_BSDXERR("DIERR",1,"TEXT",1)
     139        ;
     140        ;Q:$G(BSDXSIMERR5) 1_U_$NA(BSDXSIMERR5) ; Unit Test line
     141        S:$G(BSDXSIMERR5) X=1/0
    132142        ;
    133143        ; call event driver
     
    176186        NEW DIK,DA
    177187        S DIK="^DPT("_BSDR("PAT")_",""S"","
    178         S DA(1)=BSDR("PAT"),DA=BSDX("ADT")
     188        S DA(1)=BSDR("PAT"),DA=BSDR("ADT")
    179189        D ^DIK
    180190        ;
Note: See TracChangeset for help on using the changeset viewer.