Changeset 1187 for Scheduling/trunk/m


Ignore:
Timestamp:
May 16, 2011, 7:39:02 AM (14 years ago)
Author:
Sam Habiel
Message:

Changes to BSDX01 to prevent Scheduled,dc'ed,completed radiology appointments from being cancelled. Updated files to T2.

Location:
Scheduling/trunk/m
Files:
37 edited

Legend:

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

    r1177 r1187  
    1 BSDX01  ; IHS/OIT/HMW - WINDOWS SCHEDULING RPCS ; 4/28/11 10:14am
    2         ;;1.6T1;BSDX;;May 11, 2011
     1BSDX01  ; IHS/OIT/HMW - WINDOWS SCHEDULING RPCS ; 5/16/11 2:46pm
     2        ;;1.6T2;BSDX;;May 16, 2011
    33        ; Licensed under LGPL
    44        ;
     
    377377        ;
    378378HOLDRAEX(BSDXY,RADFN,RAOIFN)    ; Hold a Radiology Exam; RPC EP; UJO/SMH new in v 1.6
    379         ; RPC: BSDX HOLD RAD EXAM; Return: Single Vale
     379        ; RPC: BSDX HOLD RAD EXAM; Return: Single Value
    380380        ;
    381381        ; Input:
    382382        ; - RADFN -> DFN
    383383        ; - RAOIFN -> Radiology Order IEN in file 75.1
    384         ; Output: Always "1"
     384        ; Output: 1 OR 0 for success or failure.
     385        ; Can we hold?
     386        N CANHOLD
     387        D CANHOLD(.CANHOLD,RAOIFN)
     388        I 'CANHOLD S BSDXY=0 QUIT
     389        ;
    385390        N RAOSTS S RAOSTS=3  ; Status of Hold
    386         N RAOREA S RAOREA=20 ; Reason: Exam Cancelled
     391        N RAOREA ; Reason, stored in file 75.2
     392        I $D(^RA(75.2,100)) S RAOREA=100  ; Custom site Reason
     393        E  I $D(^RA(75.2,20))  S RAOREA=20 ; Reason: Exam Cancelled
     394        E   ; Else is empty. I won't set RAOREA at all.
    387395        D ^RAORDU
    388396        S BSDXY=1 ; Success
    389397        QUIT
     398        ;
     399CANHOLD(BSDXY,RAOIFN)   ; Can we hold this Exam? RPC EP; UJO/SMH new in 1.6
     400        ; RPC: BSDX CAN HOLD RAD EXAM; Return: Single Value
     401        ;
     402        ; Input:
     403        ; - RAOIFN -> Radiology Order IEN in file 75.1
     404        ; Output: 0 or 1 for false or true
     405        ;
     406        N STATUS S STATUS=$$GET1^DIQ(75.1,RAOIFN,"REQUEST STATUS","I")
     407        ; 1 = discontinued; 2 = Complete; 6 = Active
     408        ; if any one of these, cannot hold exam; otherwise, we can
     409        I 126[STATUS S BSDXY=0 QUIT
     410        ELSE  S BSDXY=1 QUIT
     411        QUIT
  • Scheduling/trunk/m/BSDX02.m

    r1177 r1187  
    1 BSDX02  ; IHS/OIT/HMW - WINDOWS SCHEDULING RPCS ; 5/11/11 11:33am
    2         ;;1.6T1;BSDX;;May 11, 2011
     1BSDX02  ; IHS/OIT/HMW - WINDOWS SCHEDULING RPCS ; 5/16/11 2:47pm
     2        ;;1.6T2;BSDX;;May 16, 2011
    33        ;Licensed under LGPL
    44        ; Change Log
  • Scheduling/trunk/m/BSDX03.m

    r1177 r1187  
    11BSDX03  ; IHS/OIT/HMW - WINDOWS SCHEDULING RPCS ; 4/28/11 10:14am
    2         ;;1.6T1;BSDX;;May 11, 2011
     2        ;;1.6T2;BSDX;;May 16, 2011
    33        ;Licensed under LGPL
    44        ;
  • Scheduling/trunk/m/BSDX04.m

    r1177 r1187  
    11BSDX04  ; IHS/OIT/HMW - WINDOWS SCHEDULING RPCS ;  ; 4/28/11 10:15am
    2         ;;1.6T1;BSDX;;May 11, 2011
     2        ;;1.6T2;BSDX;;May 16, 2011
    33        ; Licensed under LGPL
    44        ; Change Log:
  • Scheduling/trunk/m/BSDX05.m

    r1177 r1187  
    11BSDX05   ; IHS/OIT/HMW - WINDOWS SCHEDULING RPCS ; 4/28/11 10:16am
    2            ;;1.6T1;BSDX;;May 11, 2011
     2           ;;1.6T2;BSDX;;May 16, 2011
    33           ; Licensed under LGPL
    44           ;
  • Scheduling/trunk/m/BSDX06.m

    r1177 r1187  
    11BSDX06  ; IHS/OIT/HMW - WINDOWS SCHEDULING RPCS ; 4/28/11 10:16am
    2         ;;1.6T1;BSDX;;May 11, 2011
     2        ;;1.6T2;BSDX;;May 16, 2011
    33        ; Licensed under LGPL
    44        ; Change Log:
  • Scheduling/trunk/m/BSDX07.m

    r1177 r1187  
    11BSDX07  ; VW/UJO/SMH - WINDOWS SCHEDULING RPCS  ; 4/28/11 10:17am
    2            ;;1.6T1;BSDX;;May 11, 2011
     2           ;;1.6T2;BSDX;;May 16, 2011
    33           ; Licensed under LGPL
    44           ;
  • Scheduling/trunk/m/BSDX08.m

    r1177 r1187  
    11BSDX08  ; VW/UJO/SMH - WINDOWS SCHEDULING RPCS ; 4/28/11 10:17am
    2         ;;1.6T1;BSDX;;May 11, 2011
     2        ;;1.6T2;BSDX;;May 16, 2011
    33        ;
    44        ; Original by HMW. New Written by Sam Habiel. Licensed under LGPL.
  • Scheduling/trunk/m/BSDX09.m

    r1177 r1187  
    11BSDX09  ; IHS/OIT/HMW - WINDOWS SCHEDULING RPCS ;  ; 4/28/11 10:18am
    2         ;;1.6T1;BSDX;;May 11, 2011;Build 7
     2        ;;1.6T2;BSDX;;May 16, 2011;Build 7
    33        ; Licensed under LGPL
    44        ;
  • Scheduling/trunk/m/BSDX11.m

    r1177 r1187  
    11BSDX11  ; IHS/OIT/HMW - WINDOWS SCHEDULING RPCS ; 4/28/11 10:18am
    2         ;;1.6T1;BSDX;;May 11, 2011
     2        ;;1.6T2;BSDX;;May 16, 2011
    33        ; Licensed under LGPL
    44        ;
  • Scheduling/trunk/m/BSDX12.m

    r1177 r1187  
    11BSDX12  ; IHS/OIT/HMW - WINDOWS SCHEDULING RPCS ; 4/28/11 10:18am
    2         ;;1.6T1;BSDX;;May 11, 2011
     2        ;;1.6T2;BSDX;;May 16, 2011
    33        ; Licensed under LGPL
    44        ;
  • Scheduling/trunk/m/BSDX13.m

    r1177 r1187  
    11BSDX13  ; IHS/OIT/HMW - WINDOWS SCHEDULING RPCS ; 4/28/11 10:19am
    2         ;;1.6T1;BSDX;;May 11, 2011
     2        ;;1.6T2;BSDX;;May 16, 2011
    33        ; Licensed under LGPL
    44        ;
  • Scheduling/trunk/m/BSDX14.m

    r1177 r1187  
    11BSDX14  ; IHS/OIT/HMW - WINDOWS SCHEDULING RPCS ; 4/28/11 10:19am
    2         ;;1.6T1;BSDX;;May 11, 2011
     2        ;;1.6T2;BSDX;;May 16, 2011
    33        ; Licensed under LGPL
    44        ;
  • Scheduling/trunk/m/BSDX15.m

    r1177 r1187  
    11BSDX15  ; IHS/OIT/HMW - WINDOWS SCHEDULING RPCS ; 4/28/11 10:19am
    2         ;;1.6T1;BSDX;;May 11, 2011
     2        ;;1.6T2;BSDX;;May 16, 2011
    33        ; Licensed under LGPL
    44        ;
  • Scheduling/trunk/m/BSDX16.m

    r1177 r1187  
    11BSDX16  ; IHS/OIT/HMW - WINDOWS SCHEDULING RPCS ;  ; 4/28/11 10:20am
    2         ;;1.6T1;BSDX;;May 11, 2011
     2        ;;1.6T2;BSDX;;May 16, 2011
    33        ; Licensed under LGPL
    44        ;
  • Scheduling/trunk/m/BSDX17.m

    r1177 r1187  
    11BSDX17  ; IHS/OIT/HMW - WINDOWS SCHEDULING RPCS ; 4/28/11 10:20am
    2         ;;1.6T1;BSDX;;May 11, 2011
     2        ;;1.6T2;BSDX;;May 16, 2011
    33        ; Licensed under LGPL
    44        ;
  • Scheduling/trunk/m/BSDX18.m

    r1177 r1187  
    11BSDX18  ; IHS/OIT/HMW - WINDOWS SCHEDULING RPCS ; 4/28/11 10:20am
    2         ;;1.6T1;BSDX;;May 11, 2011
     2        ;;1.6T2;BSDX;;May 16, 2011
    33        ; Licensed under LGPL
    44        ;
  • Scheduling/trunk/m/BSDX19.m

    r1177 r1187  
    11BSDX19  ; IHS/OIT/HMW - WINDOWS SCHEDULING RPCS ; 4/28/11 10:21am
    2         ;;1.6T1;BSDX;;May 11, 2011
     2        ;;1.6T2;BSDX;;May 16, 2011
    33        ; Licensed under LGPL
    44        ;
  • Scheduling/trunk/m/BSDX20.m

    r1177 r1187  
    11BSDX20  ; IHS/OIT/HMW - WINDOWS SCHEDULING RPCS ; 4/28/11 10:21am
    2         ;;1.6T1;BSDX;;May 11, 2011
     2        ;;1.6T2;BSDX;;May 16, 2011
    33        ; Licensed under LGPL
    44        ;
  • Scheduling/trunk/m/BSDX21.m

    r1177 r1187  
    11BSDX21  ; IHS/OIT/HMW - WINDOWS SCHEDULING RPCS ; 4/28/11 10:22am
    2         ;;1.6T1;BSDX;;May 11, 2011
     2        ;;1.6T2;BSDX;;May 16, 2011
    33        ; Licensed under LGPL
    44        ;
  • Scheduling/trunk/m/BSDX22.m

    r1177 r1187  
    11BSDX22  ; IHS/OIT/HMW - WINDOWS SCHEDULING RPCS ; 4/28/11 10:22am
    2         ;;1.6T1;BSDX;;May 11, 2011
     2        ;;1.6T2;BSDX;;May 16, 2011
    33        ; Licensed under LGPL
    44        ;
  • Scheduling/trunk/m/BSDX23.m

    r1177 r1187  
    11BSDX23  ; IHS/OIT/HMW - WINDOWS SCHEDULING RPCS ; 4/28/11 10:22am
    2         ;;1.6T1;BSDX;;May 11, 2011
     2        ;;1.6T2;BSDX;;May 16, 2011
    33        ; Licensed under LGPL
    44        ;
  • Scheduling/trunk/m/BSDX24.m

    r1177 r1187  
    11BSDX24  ; IHS/OIT/HMW - WINDOWS SCHEDULING RPCS ; 4/28/11 10:22am
    2         ;;1.6T1;BSDX;;May 11, 2011
     2        ;;1.6T2;BSDX;;May 16, 2011
    33        ; Licensed under LGPL
    44        ;
  • Scheduling/trunk/m/BSDX25.m

    r1177 r1187  
    11BSDX25  ; VW/UJO/SMH - WINDOWS SCHEDULING RPCS ; 4/28/11 10:24am
    2         ;;1.6T1;BSDX;;May 11, 2011
     2        ;;1.6T2;BSDX;;May 16, 2011
    33        ; Licensed under LGPL
    44        ;
  • Scheduling/trunk/m/BSDX26.m

    r1177 r1187  
    11BSDX26   ; IHS/OIT/HMW - WINDOWS SCHEDULING RPCS ; 4/28/11 10:24am
    2            ;;1.6T1;BSDX;;May 11, 2011
     2           ;;1.6T2;BSDX;;May 16, 2011
    33           ; Licensed under LGPL
    44           ; Change History:
  • Scheduling/trunk/m/BSDX27.m

    r1177 r1187  
    11BSDX27   ; IHS/OIT/HMW - WINDOWS SCHEDULING RPCS ; 4/28/11 10:24am
    2            ;;1.6T1;BSDX;;May 11, 2011
     2           ;;1.6T2;BSDX;;May 16, 2011
    33           ; Licensed under LGPL
    44           ;
  • Scheduling/trunk/m/BSDX28.m

    r1177 r1187  
    11BSDX28  ; IHS/OIT/HMW - WINDOWS SCHEDULING RPCS ; 4/28/11 10:25am
    2         ;;1.6T1;BSDX;;May 11, 2011
     2        ;;1.6T2;BSDX;;May 16, 2011
    33        ; Licensed under LGPL
    44        ; Change Log:
  • Scheduling/trunk/m/BSDX29.m

    r1177 r1187  
    11BSDX29  ; IHS/OIT/HMW - WINDOWS SCHEDULING RPCS ; 4/28/11 10:25am
    2         ;;1.6T1;BSDX;;May 11, 2011
     2        ;;1.6T2;BSDX;;May 16, 2011
    33        ; Licensed under LGPL
    44        ;
  • Scheduling/trunk/m/BSDX2E.m

    r1177 r1187  
    11BSDX2E  ;IHS/OIT/MJL - ENVIRONMENT CHECK FOR WINDOWS SCHEDULING [4/28/11 10:28am]
    2         ;;1.6T1;BSDX;;May 11, 2011
     2        ;;1.6T2;BSDX;;May 16, 2011
    33        ; Licensed under LGPL
    44        ;
  • Scheduling/trunk/m/BSDX30.m

    r1177 r1187  
    11BSDX30  ; IHS/OIT/HMW - WINDOWS SCHEDULING RPCS ; [4/28/11 10:28am]
    2         ;;1.6T1;BSDX;;May 11, 2011
     2        ;;1.6T2;BSDX;;May 16, 2011
    33        ; Licensed under LGPL
    44        ;
  • Scheduling/trunk/m/BSDX31.m

    r1177 r1187  
    11BSDX31   ; IHS/OIT/HMW - WINDOWS SCHEDULING RPCS ; 4/28/11 10:28am
    2            ;;1.6T1;BSDX;;May 11, 2011
     2           ;;1.6T2;BSDX;;May 16, 2011
    33           ; Licensed under LGPL
    44           ; Change Log:
  • Scheduling/trunk/m/BSDX32.m

    r1177 r1187  
    11BSDX32  ; IHS/OIT/HMW - WINDOWS SCHEDULING RPCS ; 5/11/11 10:39am
    2         ;;1.6T1;BSDX;;May 11, 2011
     2        ;;1.6T2;BSDX;;May 16, 2011
    33        ; Licensed under LGPL
    44        ;
  • Scheduling/trunk/m/BSDX33.m

    r1177 r1187  
    11BSDX33  ; IHS/OIT/HMW - WINDOWS SCHEDULING RPCS ; 4/28/11 10:29am
    2         ;;1.6T1;BSDX;;May 11, 2011
     2        ;;1.6T2;BSDX;;May 16, 2011
    33        ; Licensed under LGPL
    44        ; Mods by WV/STAR
  • Scheduling/trunk/m/BSDX34.m

    r1177 r1187  
    11BSDX34  ; IHS/OIT/HMW - WINDOWS SCHEDULING RPCS ; 4/28/11 10:29am
    2         ;;1.6T1;BSDX;;May 11, 2011
     2        ;;1.6T2;BSDX;;May 16, 2011
    33        ; Licensed under LGPL 
    44        ;
  • Scheduling/trunk/m/BSDX35.m

    r1177 r1187  
    11BSDX35  ; IHS/OIT/HMW - WINDOWS SCHEDULING RPCS ; 4/28/11 10:29am
    2         ;;1.6T1;BSDX;;May 11, 2011
     2        ;;1.6T2;BSDX;;May 16, 2011
    33        ; Licensed under LGPL 
    44        ;
  • Scheduling/trunk/m/BSDXAPI.m

    r1177 r1187  
    11BSDXAPI ; IHS/ANMC/LJF & VW/SMH - SCHEDULING APIs ; 4/28/11 10:30am
    2         ;;1.6T1;BSDX;;May 11, 2011;Build 7
     2        ;;1.6T2;BSDX;;May 16, 2011;Build 7
    33        ; Licensed under LGPL 
    44        ;
  • Scheduling/trunk/m/BSDXGPRV.m

    r1177 r1187  
    11BSDXGPRV        ; WV/SMH - WINDOWS SCHEDULING RPCS ; 4/28/11 10:31am
    2         ;;1.6T1;BSDX;;May 11, 2011
     2        ;;1.6T2;BSDX;;May 16, 2011
    33        ; Licensed under LGPL 
    44        ;
Note: See TracChangeset for help on using the changeset viewer.