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

BLRPCCVM.m

Go to the documentation of this file.
  1. BLRPCCVM ; IHS/ITSC/MKK - UPDATE LAB VA-IHS LINK LOG UPON VISIT MERGE [ 04/15/2004 1:15 PM ]
  1. ;;5.2;BLR;**1019**;MAR 25, 2005
  1. ;
  1. ; This routine is called by the PCC Visit Merge Utility.
  1. ; The input variables are: APCDVMF - Merge from visit ifn
  1. ; APCDVMT - Merge to visit ifn
  1. ;
  1. ; Finds the patient involved, scans for the merged visit among the
  1. ; the occurrences for this patient, and updates the visit.
  1. ;
  1. MRG ; PEP >> PRIVATE ENTRY POINT between BLR and PCC
  1. NEW BLRN,DIE,DA,DR,X,Y
  1. ;
  1. D:$G(SNAPSHOT) ENTRYAUD^BLRUTIL("ENTER MRG^BLRPCCVM")
  1. ;
  1. Q:'$G(APCDVMF) Q:'$G(APCDVMT) ; Quit if variables non-existent
  1. ;
  1. S BLRN=0
  1. F S BLRN=$O(^LRO(68.999999901,"AC",APCDVMF,BLRN)) Q:'BLRN D
  1. . S DA=BLRN
  1. . S DIE="^LRO(68.999999901,",DR=".02////"_APCDVMT
  1. . D ^DIE
  1. ;
  1. D:$G(SNAPSHOT) ENTRYAUD^BLRUTIL("EXIT MRG^BLRPCCVM")
  1. ;
  1. EXIT Q