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

GMV2PST.m

Go to the documentation of this file.
  1. GMV2PST ;HIOFO/FT-Create Indexes for HDR ;10/7/04 17:06
  1. ;;5.0;GEN. MED. REC. - VITALS;**2**;Oct 31, 2002
  1. ;
  1. ; This routine uses the following IAs:
  1. ; #10141 - ^XPDUTL calls (supported)
  1. ;
  1. EN ; Driver subroutine
  1. D AHDRN,AHDRE
  1. Q
  1. ;
  1. AHDRN ; Create AHDRNEW Index on GMRV Vital Measurement file (#120.5) for use
  1. ; by Health Data Repository (HDR)
  1. ; Calls HDR API whenever a new entry is made in FILE 120.5
  1. N MSG,RESULT,XREF
  1. D BMES^XPDUTL("Creating AHDRNEW Index on GMRV VITAL MEASUREMENT (#120.5) file.")
  1. S XREF("ACTIVITY")=""
  1. S XREF("FILE")=120.5
  1. S XREF("ROOT FILE")=120.5
  1. S XREF("TYPE")="MU"
  1. S XREF("SHORT DESCR")="INDEX for HDR"
  1. S XREF("DESCR",1)="This cross-reference calls a Health Data Repository (HDR) API whenever a"
  1. S XREF("DESCR",2)="new entry is created."
  1. S XREF("DESCR",3)=" "
  1. S XREF("DESCR",4)="No actual cross-reference nodes are set or killed."
  1. S XREF("DESCR",5)=" "
  1. S XREF("DESCR",6)="Calls to the VDEFQM routine are covered by Integration Agreement 4253."
  1. S XREF("USE")="ACTION"
  1. S XREF("EXECUTION")="F"
  1. S XREF("WHOLE KILL")="Q"
  1. S XREF("VAL",1)=.01
  1. S XREF("NAME")="AHDRNEW"
  1. S XREF("SET")="Q:$D(DIU(0)) N ERR,GMVFLAG I $T(QUEUE^VDEFQM)]"""" S GMVFLAG=$$QUEUE^VDEFQM(""ORU^R01"",""SUBTYPE=VTLS^IEN=""_DA,.ERR)"
  1. S XREF("KILL")="Q"
  1. S XREF("SET CONDITION")="S:X1(1)="""" X=1"
  1. D CREIXN^DDMOD(.XREF,"k",.RESULT,"","MSG")
  1. I RESULT="" D
  1. .D BMES^XPDUTL("The AHDRNEW Index was not added to FILE 120.5. Please enter a NOIS.")
  1. .Q
  1. Q
  1. ;
  1. AHDRE ; Create AHDRERR Index on GMRV Vital Measurement file (#120.5) for use
  1. ; by Health Data Repository (HDR)
  1. ; Calls HDR API whenever a FILE 120.5 entry is marked as an error
  1. N MSG,RESULT,XREF
  1. D BMES^XPDUTL("Creating AHDRERR Index on GMRV VITAL MEASUREMENT (#120.5) file.")
  1. S XREF("ACTIVITY")=""
  1. S XREF("FILE")=120.5
  1. S XREF("ROOT FILE")=120.5
  1. S XREF("TYPE")="MU"
  1. S XREF("SHORT DESCR")="INDEX for HDR"
  1. S XREF("DESCR",1)="This cross-reference calls a Health Data Repository (HDR) API whenever a"
  1. S XREF("DESCR",2)="FILE 120.5 entry is marked as entered-in-error."
  1. S XREF("DESCR",3)=" "
  1. S XREF("DESCR",4)="No actual cross-reference nodes are set or killed."
  1. S XREF("DESCR",5)=" "
  1. S XREF("DESCR",6)="Calls to the VDEFQM routine are covered by Integration Agreement 4253."
  1. S XREF("USE")="ACTION"
  1. S XREF("EXECUTION")="F"
  1. S XREF("WHOLE KILL")="Q"
  1. S XREF("VAL",1)=2
  1. S XREF("NAME")="AHDRERR"
  1. S XREF("SET")="Q:$D(DIU(0)) N ERR,GMVFLAG I $T(QUEUE^VDEFQM)]"""" S GMVFLAG=$$QUEUE^VDEFQM(""ORU^R01"",""SUBTYPE=VTLS^IEN=""_DA,.ERR)"
  1. S XREF("KILL")="Q"
  1. S XREF("SET CONDITION")="I X1(1)="""",X2(1)]"""" S X=1"
  1. D CREIXN^DDMOD(.XREF,"k",.RESULT,"","MSG")
  1. I RESULT="" D
  1. .D BMES^XPDUTL("The AHDRERR Index was not added to FILE 120.5. Please enter a NOIS.")
  1. .Q
  1. Q