| 1 | RMPR112P ;VMP/RB - POST INIT FOR PACKAGE FILE (#9.4) UPDATES BY PROSTHETIC BUILDS ;06/17/05
 | 
|---|
| 2 |  ;;3.0;Prosthetics;**112**;06/20/05
 | 
|---|
| 3 |  ;;
 | 
|---|
| 4 |  ;** Cameron Schlehuber created IA 4691 for a single use, private IA with Kernel (
 | 
|---|
| 5 |  ;   the custodian of the Package file)
 | 
|---|
| 6 |  ;Post install to remove erroneous Prosthetics merge nodes set
 | 
|---|
| 7 |  ;into the Package file (#9.4) for merging capabilities.  These
 | 
|---|
| 8 |  ;nodes were set in by accident as Prosthetics builds being sent to sites
 | 
|---|
| 9 |  ;did not have a null response under Install Questions, Edit PACKAGE File
 | 
|---|
| 10 |  ;response Select Affects Record Merge.  These bogus Prosthetics entries
 | 
|---|
| 11 |  ;to the Package file will be located and deleted at the 20 node level.
 | 
|---|
| 12 |  ;The package merge errors occur since the Prosthetics node ^DIC(9.4,D0,20,D1,0)
 | 
|---|
| 13 |  ;has no routine in piece 3 for the merge to execute.
 | 
|---|
| 14 | SRCH N PIEN,MIEN
 | 
|---|
| 15 |  S PIEN=0
 | 
|---|
| 16 |  F  S PIEN=$O(^DIC(9.4,PIEN)) Q:PIEN=""!(PIEN>9999999)  D
 | 
|---|
| 17 |  . ;Check for Prosthetics merge entry
 | 
|---|
| 18 |  . S PACKR=$G(^DIC(9.4,PIEN,0)) Q:PACKR=""!(PACKR>99999)
 | 
|---|
| 19 |  . I PACKR["PROS"!(PACKR["Pros") D
 | 
|---|
| 20 |  .. ;KILL PROS ENTRY 20 NODES IF PIECE 3 EMPTY
 | 
|---|
| 21 |  .. S MIEN=0
 | 
|---|
| 22 |  .. F  S MIEN=$O(^DIC(9.4,PIEN,20,MIEN)) Q:MIEN=""  D
 | 
|---|
| 23 |  ... S MERGREC=$G(^DIC(9.4,PIEN,20,MIEN,0)) Q:MERGREC=""
 | 
|---|
| 24 |  ... I $P(MERGREC,U,3)="" D
 | 
|---|
| 25 |  .... ;DELETE INVALID MERGE REC WITH NO ROUTINE NAME
 | 
|---|
| 26 |  .... S DA(1)=PIEN,DIK="^DIC(9.4,"_PIEN_",20,",DA=MIEN D ^DIK K DA,DIK
 | 
|---|
| 27 |  K MERGREC,PACKR
 | 
|---|
| 28 |  Q
 | 
|---|