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

SPN7P.m

Go to the documentation of this file.
  1. SPN7P ;ALB/JLG - POST INSTALL FOR Spinal Cord Dysfunction Decommissioning ;Nov 08, 2018@16:13
  1. ;;3.0;Spinal Cord Dysfunction;**7**;Nov 08, 2018;Build 18
  1. ;
  1. ; DBIA# SUPPORTED
  1. ; ----- --------------------------------------
  1. ; 10013 ^DIK
  1. ; 10014 EN^DIU2
  1. ;
  1. ; SCD (SPINAL CORD) REGISTRY (file 154)
  1. ; SCD NLOI CATEGORY (file 154.01)
  1. ; ETIOLOGY (file 154.03)
  1. ; OUTCOMES (file 154.1)
  1. ; FUNCTIONAL STATUS LEVEL (file 154.11)
  1. ; SCD DISPOSITION CODES (file 154.12)
  1. ; SCD KURTZKE-EDSS (file 154.2)
  1. ; OUTCOME SCORE TYPES (file 154.3)
  1. ; PHYSICAL FACILITY (file 154.7)
  1. ; AD HOC MACRO (file 154.8)
  1. ; SCD SITE PARAMETERS (file 154.91)
  1. ; SCD FILTER (file 154.92)
  1. ; SPN ADMISSIONS (file 154.991)
  1. ;
  1. D EN ;
  1. D ROUT ;
  1. Q
  1. EN ; start post install
  1. W !," Starting post-install of SPN*3.0*7",!
  1. N SPNFLST,SPNI,DIU
  1. ;
  1. S SPNFLST="154,154.01,154.03,154.1,154.11,154.12,154.2,154.3,154.7,154.8,154.91,154.92,154.991"
  1. F SPNI=1:1:13 D
  1. .S DIU=$P(SPNFLST,",",SPNI),DIU(0)="DE" D EN^DIU2
  1. .W !,"Removing global..... ^SPNL("_DIU_")" K DIU
  1. ;
  1. Q
  1. ROUT ; remove routines from ^DIC(9.8
  1. N SPNRTN,SPNI,DA,DIK
  1. S SPNRTN="SPN"
  1. F S SPNRTN=$O(^DIC(9.8,"B",SPNRTN)) Q:$E(SPNRTN,1,3)'="SPN" D
  1. .S SPNI=0 S SPNI=$O(^DIC(9.8,"B",SPNRTN,SPNI)) Q:'SPNI
  1. .K DA,DIK S DA=SPNI,DIK="^DIC(9.8," D ^DIK
  1. .W !,"Removing routine..... "_SPNRTN
  1. W !
  1. K DA,DIK
  1. Q
  1. ;