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

BTIUPOS3.m

Go to the documentation of this file.
  1. BTIUPOS3 ; IHS/ITSC/LJF - Continuation of post install process ;
  1. ;;1.0;TEXT INTEGRATION UTILITIES;;NOV 04, 2004
  1. ;
  1. Q
  1. ;
  1. OBJCHK ;EP; clean up object description file .01 pointers
  1. NEW IEN,DIE,PNAME,SNAME,PTR,DR,DA
  1. S DIE="^BTIUOD("
  1. S IEN=0 F S IEN=$O(^BTIUOD(IEN)) Q:'IEN D
  1. . S PNAME=$$GET1^DIQ(9003130.1,IEN,.01) ;name based on pointer
  1. . S SNAME=$$GET1^DIQ(9003130.1,IEN,.02) ;name as stored in .02 field
  1. . I PNAME=SNAME Q ;skip if names match - installed ok
  1. . ;
  1. . S PTR=$O(^TIU(8925.1,"B",SNAME,0)) I PTR D ;find correct pointer
  1. . . I $$GET1^DIQ(8925.1,PTR,.04)'="OBJECT" Q ;make sure it is an object
  1. . . S DR=".01///`"_PTR,DA=IEN
  1. . . D ^DIE ;then fix it
  1. Q