Changeset 1452 for Scheduling/trunk/m/BSDXAPI.m
- Timestamp:
- Jun 20, 2012, 7:42:19 PM (13 years ago)
- 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:42pm1 BSDXAPI ; IHS/ANMC/LJF & VW/SMH - SCHEDULING APIs ; 6/20/12 12:40pm 2 2 ;;1.7T1;BSDX;;Aug 31, 2011;Build 18 3 3 ; Licensed under LGPL 4 4 ; 5 5 ;Orignal routine is BSDAPI by IHS/LJF, HMW, and MAW 6 ; localmods (many) by WV/SMH6 ; mods (many) by WV/SMH 7 7 ;Move to BSDX namespace as BSDXAPI from BSDAPI by WV/SMH 8 8 ; Change History: … … 87 87 . S BSDXFDA(2.98,BSDXIENS,"15")="" 88 88 . S BSDXFDA(2.98,BSDXIENS,"16")="" 89 . S BSDXFDA(2.98,BSDXIENS,"17")="@" ; v 1.7; cancellation remarks were left over 89 90 . S BSDXFDA(2.98,BSDXIENS,"19")="" 90 91 . S BSDXFDA(2.98,BSDXIENS,"20")=$$NOW^XLFDT 91 92 . D FILE^DIE("","BSDXFDA","BSDXMSG") 92 93 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 93 96 ; 94 97 E D ; File new appointment/edit existing appointment in file 2 … … 102 105 Q:$D(BSDXMSG) 1_U_"FileMan add to DPT error: Patient="_BSDR("PAT")_" Appt="_BSDR("ADT")_" Error="_BSDXMSG("DIERR",1,"TEXT",1) 103 106 ; 107 Q:$G(BSDXSIMERR3) 1_U_$NA(BSDXSIMERR3) ; Unit Test line 108 ; 104 109 ; add appt to file 44. This adds it to the FIRST subfile (Appointment) 105 110 N DIC,DA,Y,X,DD,DO,DLAYGO … … 109 114 . S DIC("P")="44.001DA",DIC(0)="L",DLAYGO=44.001 110 115 . S Y=1 I '$D(@(DIC_X_")")) D FILE^DICN 116 ; 117 Q:$G(BSDXSIMERR4) 1_U_$NA(BSDXSIMERR4) ; Unit Test line 111 118 ; 112 119 ; add appt for file 44, second subfile (Appointment/Patient) … … 130 137 ; 131 138 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 132 142 ; 133 143 ; call event driver … … 176 186 NEW DIK,DA 177 187 S DIK="^DPT("_BSDR("PAT")_",""S""," 178 S DA(1)=BSDR("PAT"),DA=BSD X("ADT")188 S DA(1)=BSDR("PAT"),DA=BSDR("ADT") 179 189 D ^DIK 180 190 ;
Note:
See TracChangeset
for help on using the changeset viewer.