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

BMCPCCV.m

Go to the documentation of this file.
BMCPCCV ;IHS/OIT/FCJ - PCC VISIT REFERRED FR
 ;;4.0;REFERRED CARE INFO SYSTEM;**8**;JAN 09, 2006;Build 101
 ;WHEN PCC VISIT IS DELETED OR MERGED THIS ROUTINE IS CALLED
 ;FROM THE MODULE PCC LINK FILE FOR THE VISIT REFERRED FROM
 ;NOT USED FOR VISIT REFERRED TOO.
 ;
 ;BMC*4.0*8 IHS.OIT.FCJ NEW ROUTINE
 ;
 ;
MRG ;EP;WHEN A VISIT IS MERGED
 ;APCDVMF IS THE MERGE FROM VISIT IEN
 ;APCDVMT IS THE MERGE TO VISIT IEN
 ;
 S BMCRIEN=0
 F  S BMCRIEN=$O(^BMCREF("VSTR",APCDVMF,BMCRIEN)) Q:BMCRIEN'?1N.N  D
 .S DA=BMCRIEN,DIE="^BMCREF(",DR="1309////"_APCDVMT
 .D ^DIE K DIE,DA,DR
 K BMCRIEN
 Q
 ;
 ;
DEL ;EP;WHEN A VISIT IS DELETED
 ;
 Q:$G(BMCVFL)=1  ;*9
 S BMCRIEN=0
 F  S BMCRIEN=$O(^BMCREF("VSTR",APCDVDLT,BMCRIEN)) Q:BMCRIEN'?1N.N  D
 .S DA=BMCRIEN,DIE="^BMCREF(",DR="1303////@;1309////@"
 .D ^DIE K DIE,DA,DR
 K BMCRIEN
 Q