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

GMTSP13.m

Go to the documentation of this file.
  1. GMTSP13 ; SLC/SBW - HS Component Installation Routine ;12/31/96
  1. ;;2.7;Health Summary;**13**;Oct 20, 1995
  1. HSCOMP ; Install Health Summary component
  1. Q:+$$VERSION^XPDUTL("GMTS")<2.7 ;Quit if HS 2.7 not installed
  1. N DIC,DLAYGO,DINUM,X,Y
  1. S (DIC,DLAYGO)=142.1,DIC(0)="NXL",X="SPINAL CORD DYSFUNCTION",DINUM=74
  1. S AD=$O(^GMT(142.1,"B",X,0)) I AD=74 W !,X," already exists in Health Summary Component (142.1) File!" Q
  1. D ^DIC
  1. FILE I +Y'>0 W !!,"Could not install ",X," component",! Q
  1. W !,"Adding component to HEALTH SUMMARY COMPONENT (142.1) file."
  1. S DIE=DIC,DA=+Y,DR="1///^S X=""MAIN""_$C(59)_""GMTSSCD"";3///SCD"
  1. S DR=DR_";2///Y;4///Y;9///Spinal Cord Dysfunct"
  1. D ^DIE
  1. S ^GMT(142.1,+DA,3.5,0)="^^7^7^"_DT_"^"
  1. S ^GMT(142.1,+DA,3.5,1,0)="This component provides patient data from the Spinal Cord Dysfuction"
  1. S ^GMT(142.1,+DA,3.5,2,0)="package. A patient's registration status, highest level of injury,"
  1. S ^GMT(142.1,+DA,3.5,3,0)="information source for SCD, completeness of injury and extent of paralysis"
  1. S ^GMT(142.1,+DA,3.5,4,0)="will be displayed. The following data will be displayed with time and maximum"
  1. S ^GMT(142.1,+DA,3.5,5,0)="occurrence limits applied: date of onset, etiology, onset of SCD caused"
  1. S ^GMT(142.1,+DA,3.5,6,0)="by trauma, date recorded, motor score, cognitive score, total score and"
  1. S ^GMT(142.1,+DA,3.5,7,0)="record type."
  1. W !,"Component Installed.",!
  1. W !,"Installing new component in AD HOC Health Summary."
  1. S INCLUDE=0 D ENPOST^GMTSLOAD
  1. K AD,DA,DIE,DR,INCLUDE
  1. D PDXINST
  1. Q
  1. PDXINST ;Set PDX up to use new HS components
  1. N ERR,POINT,COMP,DASHES,DOTS,PDXCOMP
  1. S COMP="SPINAL CORD DYSFUNCTION"
  1. W !,"Adding ",COMP," into PDX Data Segments.",!
  1. S X="VAQUTL50" X ^%ZOSF("TEST") I '$T D Q
  1. . W !!,"Adding this segment requires patch VAQ*1.5*11 (CREATE"
  1. . W !,"SEGMENT USING HLTH SUMM COMP) to be installed."
  1. . W !,"Install VAQ*1.5*11 and then DO PDXINST^GMTSP13"
  1. . W !,"to add the segment to the VAQ - Data Segment file."
  1. . Q
  1. D INSTALL
  1. Q
  1. INSTALL ;Install SCD component in Data Segment (#394.71) file
  1. ;CONVERT TO PDX SEGMENT NAME
  1. S PDXCOMP=$$FIRSTUP^VAQUTL50(COMP)
  1. ;GET POINTER TO COMPONENT
  1. S POINT=+$O(^GMT(142.1,"B",COMP,0))
  1. I ('POINT) D Q
  1. .W !!,$C(7),COMP," not found in HEALTH SUMMARY COMPONENT file."
  1. .W !,PDXCOMP," not added to VAQ - DATA SEGMENT file.",$C(7)
  1. ;CREATE DATA SEGMENT USING DEFAULT TIME & OCCURRENCE LIMITS
  1. S ERR=$$ADDSEG^VAQUTL50(POINT)
  1. I (ERR<0) W !,?5,$P(ERR,"^",2),$C(7) Q
  1. W !?3,PDXCOMP," added to VAQ - DATA SEGMENT file (#394.71)."
  1. W !
  1. Q