source: FOIAVistA/trunk/r/NURSING_SERVICE-NUR/NURSAWCK.m@ 794

Last change on this file since 794 was 628, checked in by George Lilly, 15 years ago

initial load of FOIAVistA 6/30/08 version

File size: 796 bytes
Line 
1NURSAWCK ;HIRMFO/RM-CHECK SO EVERY MAS WARD HAS A NURSING LOCATION ;AUGUST 1986
2 ;;4.0;NURSING SERVICE;;Apr 25, 1997
3EN1 ; CALLED BY ROUTINE NURSCPL & NURSCPLU, RETURNS NURSBAD (1 if MAS Ward has no
4 ; Nursing equivalent, 0 if it does.), and BADWARD("MAS Ward") for
5 ; the ward in question.
6 S NURSX=$O(^DIC(42,"B",X,"")),NURSBAD=1 I NURSX'="" F NURSZLOC=0:0 S NURSZLOC=$O(^NURSF(211.4,"C",NURSX,NURSZLOC)) Q:NURSZLOC'>0 I $S('$D(^NURSF(211.4,NURSZLOC,"I")):1,$P(^("I"),"^")="A":1,1:0) S NURSBAD=0
7 K NURSX,NURSZLOC I NURSBAD S BADWARD(X)=""
8 Q
9BADWARD ; ERROR MESSAGE IF THERE IS AN INVALID WARD
10 W $C(7),!!!,"The following MAS Wards do not have corresponding NURSING Locations: "
11 S NURSWR42="" F NURSZ=0:0 S NURSWR42=$O(BADWARD(NURSWR42)) Q:NURSWR42="" W !,?20,NURSWR42
12 K NURSWR42,NURSZ
13 Q
Note: See TracBrowser for help on using the repository browser.