Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: NURAPROD

NURAPROD.m

Go to the documentation of this file.
NURAPROD ;HIRMFO/MD-POPULATE POSITION CONTROL PRODUCT LINE
 ;;4.0;NURSING SERVICE;;Apr 25, 1997
EN1 ;
 S NPROD=$P($G(^DIC(213.9,1,0)),U,11) G:'+NPROD QUIT
 W !!,"DO YOU WANT TO ASSIGN THE NURSING PRODUCT LINE ENTRY TO ALL EMPLOYEES",!,"WITH NO DATA IN THE PRODUCT LINE FIELD" S %=1 D YN^DICN
 I %=0 W !!,$C(7),"ANSWER 'YES' or 'NO'" G EN1
 I %'=1 G QUIT
 S DA(1)=0 F  S DA(1)=$O(^NURSF(211.8,DA(1))) Q:DA(1)'>0  S DA=0 F  S DA=$O(^NURSF(211.8,DA(1),1,DA)) Q:DA'>0  I $D(^NURSF(211.8,DA(1),1,DA,0)) W:$R(100) "." D
 . I '$P($G(^NURSF(211.8,DA(1),1,DA,0)),U,5) S $P(^(0),U,5)=+NPROD
 . Q
QUIT ;
 K DA,NPROD
 Q