Ignore:
Timestamp:
Sep 28, 2010, 9:37:08 AM (14 years ago)
Author:
Sam Habiel
Message:

Updated files to intelligently deal with mulitple divisions issue

File:
1 edited

Legend:

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

    r951 r963  
    2020HOSPLOC(BSDXY)  ;EP
    2121        ;Called by BSDX HOSPITAL LOCATION
     22    ;Returns all hospital locations that are active AND in the same division as the user
    2223        ;
    2324        N BSDXI,BSDXIEN,BSDXNOD,BSDXNAM,BSDXINA,BSDXREA,BSDXSCOD
     
    3334        . Q:'+BSDXIEN>0
    3435        . Q:'$D(^SC(+BSDXIEN,0))
     36    . Q:'$$INDIV^BSDX01(+BSDXIEN)  ; if not in the same division, quit
    3537        . S BSDXINA=$$GET1^DIQ(44,BSDXIEN_",",2505) ;INACTIVATE
    3638        . S BSDXREA=$$GET1^DIQ(44,BSDXIEN_",",2506) ;REACTIVATE
Note: See TracChangeset for help on using the changeset viewer.