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

VPRP28.m

Go to the documentation of this file.
  1. VPRP28 ;SLC/BLJ -- SDA utilities for patch 28 ;8/18/21 14:21
  1. ;;1.0;VIRTUAL PATIENT RECORD;**28**;Aug 18, 2021;Build 6
  1. ;;Per VHA Directive 6402, this routine should not be modified.
  1. ;
  1. Q
  1. ;
  1. POST ; -- Post install for VPR*1.0*28
  1. D CONT
  1. D PCMM^VPRIDX
  1. ;
  1. Q
  1. ;
  1. CONT ; -- link new entities to Container file
  1. N DA,DR,DIE,X0,MSG
  1. S DA(1)=+$O(^VPRC(560.1,"B","VACCINATION",0)) Q:DA(1)<1
  1. S DA=+$O(^VPRC(560.1,"F",9000010.707,DA(1),0)) Q:DA<1
  1. ; already linked?
  1. S X0=$G(^VPRC(560.1,DA(1),1,DA,0))
  1. I $P(X0,U,2)>0,$P(X0,U,3)>0 Q ;ok
  1. ; update, add message to Install log
  1. S DIE="^VPRC(560.1,"_DA(1)_",1,"
  1. S DR=".02///VPR ICR EVENT;.03///VPR DEL ICR" D ^DIE
  1. S X0=$G(^VPRC(560.1,DA(1),1,DA,0)),MSG="Pointer resolution "
  1. S MSG=MSG_$S($P(X0,U,2)<1:"UN",$P(X0,U,3)<1:"UN",1:"")_"SUCCESSFUL."
  1. D BMES^XPDUTL(MSG)
  1. Q