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

GMTSP8.m

Go to the documentation of this file.
  1. GMTSP8 ;SLC/SBW - HS Component Installation Routine ; 8/4/96 18:06
  1. ;;2.7;Health Summary;**8**;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,INCLUDE
  1. D COMP1,COMP2
  1. W !,"Installing new components in AD HOC Health Summary."
  1. S INCLUDE=0 D ENPOST^GMTSLOAD
  1. Q
  1. COMP1 ;VITAL SIGNS OUTPATIENT component
  1. N AD,DA,DIE,DR,GMX
  1. S (DIC,DLAYGO)=142.1,DIC(0)="NXL",(X,GMX)="VITAL SIGNS OUTPATIENT",DINUM=75
  1. S AD=$O(^GMT(142.1,"B",GMX,0)) I AD=75 W !,GMX," already exists in Health Summary Component (142.1) File!" Q
  1. D ^DIC
  1. FILE1 I +Y'>0 W !!,"Could not install ",GMX," component",! Q
  1. W !,"Adding "_GMX_" component to HEALTH SUMMARY COMPONENT (142.1) file."
  1. S DIE=DIC,DA=+Y,DR="1///^S X=""OUTPAT""_$C(59)_""GMTSVS"";3///VSO"
  1. S DR=DR_";2///Y;4///Y;9///Vital Signs Outpat."
  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 contains outpatient vital measurements extracted"
  1. S ^GMT(142.1,+DA,3.5,2,0)="from the Vital/Measurements (Gen. Med. Rec. - Vitals) package. Time and maximum"
  1. S ^GMT(142.1,+DA,3.5,3,0)="occurrence limits apply. Data presented includes: measurement"
  1. S ^GMT(142.1,+DA,3.5,4,0)="date/time, blood pressure, (as SBP/DBP), pulse, temperature,"
  1. S ^GMT(142.1,+DA,3.5,5,0)="height, weight, and respiratory rate."
  1. S ^GMT(142.1,+DA,3.5,6,0)="Metric values will be displayed for temperature, height and weight."
  1. S ^GMT(142.1,+DA,3.5,7,0)="If there are no outpatient measurements, a message will be displayed and"
  1. S ^GMT(142.1,+DA,3.5,8,0)="the last non-outpatient measurements will be shown."
  1. W !,"Component Installed.",!
  1. D PDXINST(GMX)
  1. Q
  1. COMP2 ;VITAL SIGNS SELECTED OUTPATIENT component
  1. N AD,DA,DIE,DR,GMX
  1. S (DIC,DLAYGO)=142.1,DIC(0)="NXL",(X,GMX)="VITAL SIGNS SELECTED OUTPAT.",DINUM=76
  1. S AD=$O(^GMT(142.1,"B",GMX,0)) I AD=76 W !,GMX," already exists in Health Summary Component (142.1) File!" Q
  1. D ^DIC
  1. FILE2 I +Y'>0 W !!,"Could not install ",GMX," component",! Q
  1. W !,"Adding "_GMX_" component to HEALTH SUMMARY COMPONENT (142.1) file."
  1. S DIE=DIC,DA=+Y,DR="1///^S X=""OUTPAT""_$C(59)_""GMTSVSS"";3///SVSO"
  1. S DR=DR_";2///Y;4///Y;7///120.51;9///Vital Select Outpat."
  1. S DR(2,142.17)=".01"
  1. D ^DIE
  1. S ^GMT(142.1,+DA,3.5,0)="^^10^10^"_DT_"^"
  1. S ^GMT(142.1,+DA,3.5,1,0)="This component contains selected outpatient vital measurements"
  1. S ^GMT(142.1,+DA,3.5,2,0)="extracted from the Vital/Measurements (Gen. Med. Rec. - Vitals) package."
  1. S ^GMT(142.1,+DA,3.5,3,0)="Time and maximum occurrence limits apply and the user is allowed"
  1. S ^GMT(142.1,+DA,3.5,4,0)="to select any of the vital measurement types defined in the"
  1. S ^GMT(142.1,+DA,3.5,5,0)="GMRV Vital Type file (e.g., pulse, blood pressure, temperature, height,"
  1. S ^GMT(142.1,+DA,3.5,6,0)="weight, and respiration rate). Data presented includes: measurement"
  1. S ^GMT(142.1,+DA,3.5,7,0)="date/time, measurement type and measurement value,"
  1. S ^GMT(142.1,+DA,3.5,8,0)="and metric values for temperature, height and weight."
  1. S ^GMT(142.1,+DA,3.5,9,0)="If there is no outpatient measurements, a message will be shown and"
  1. S ^GMT(142.1,+DA,3.5,10,0)="the last selected non-outpatient measurements will be shown."
  1. S ^GMT(142.1,+DA,3.5,11,0)="Note: Formatted display is horizontal."
  1. W !,"Component Installed.",!
  1. ;SELECTED COMPONENTS CAN'T BE USED IN PDX
  1. Q
  1. PDXINST(COMP) ;Set PDX up to use new HS components
  1. N ERR,POINT,DASHES,DOTS,PDXCOMP
  1. W !,"Installing ",COMP," into PDX Data Segments.",!
  1. D INSTALL(COMP)
  1. Q
  1. INSTALL(COMP) ;Install 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