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

BTIULINK.m

Go to the documentation of this file.
  1. BTIULINK ; IHS/ITSC/LJF - UPDATE TIU DOC UPON VISIT MERGE ;
  1. ;;1.0;TEXT INTEGRATION UTILITIES;;NOV 04, 2004
  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. ;This routine finds the patient involved, scans for this merged visit
  1. ;among the occurrences for this patient, and updates the visit.
  1. ;
  1. MRG ;PEP >> PRIVATE ENTRY POINT between TIU and PCC
  1. N DIE,DA,DR,TIUN,X,Y
  1. Q:'$D(APCDVMF) Q:'$D(APCDVMT)
  1. S TIUN=0
  1. F S TIUN=$O(^TIU(8925,"V",APCDVMF,TIUN)) Q:TIUN="" D
  1. .S DR=".03////"_APCDVMT,DA=TIUN,DIE="^TIU(8925," D ^DIE
  1. ;
  1. EXIT Q