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

RGPRPST.m

Go to the documentation of this file.
RGPRPST ;SLC/NCG-CIRN CMOR POPULATE 991.8 ;4-15-1998
 ;;0.5; CLINICAL INFO RESOURCE NETWORK ;;30 Sep 98
EN ;
 D PCC
 K RGI,PCC
 Q
PCC ;set primary care clinics into 991.8
 N PCC,RGI,RGPCC,X,Y
 S PCC(1)="PRIMARY CARE/MEDICINE"
 S PCC(2)="PRIMARY CARE/SURGERY"
 S PCC(3)="GERIATRIC PRIMARY CARE"
 D BMES^XPDUTL("Adding Clinics to File 991.8")
 F RGI=1:1:3 D
 . S RGPCC=+$$FIND1^DIC(40.7,,"OX",PCC(RGI)) I RGPCC>0 D
 . . S DIC("P")=$P(^DD(991.8,17,0),U,2),DIC(0)="ML",DLAYGO=991.817,DIC="^RGSITE(991.8,1,""PC"",",X=PCC(RGI),DA(1)=1 D ^DIC I +Y>0 S DA=+Y,DA(1)=1,DIE=DIC,DR="1///2971001" D ^DIE
 . . K DIE,DIC,DA,DR,D0,DLAYGO
 Q