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

MPIFPST1.m

Go to the documentation of this file.
  1. MPIFPST1 ;CMC/SF-MPI VISTA build post-init ;JAN 13, 2000
  1. ;;1.0; MASTER PATIENT INDEX VISTA ;**1**;30 Apr 99
  1. ;
  1. EN ;This post init will correct any exiting problems with the setting of
  1. ; the ^DPT("AICNL" cross reference for local ICNs or the field Locally
  1. ; assigned ICN in the patient file for local ICNs.
  1. ;
  1. D BMES^XPDUTL("Updating 'AICNL' Cross Reference. This may take some time")
  1. N EN,LOCAL,ICN,SITE
  1. S ICN=0,SITE=$P($$SITE^VASITE(),"^",3)
  1. F S ICN=$O(^DPT("AICN",ICN)) Q:ICN="" D
  1. .S EN=""
  1. .F S EN=$O(^DPT("AICN",ICN,EN)) Q:EN="" D
  1. ..I $E(ICN,1,3)=SITE D
  1. ...I $P($G(^DPT(EN,"MPI")),"^")=ICN S LOCAL=$$SETLOC^MPIF001(EN,1),^DPT("AICNL",1,EN)=""
  1. Q
  1. ;