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

IS00007I.m

Go to the documentation of this file.
  1. IS00007I ;Compiled from script 'Generated: HL IHS DW1 A08-O' on SEP 08, 2008
  1. ;Part 10
  1. ;Copyright 2008 SAIC
  1. EN S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
  1. S @INV@("ZDP1")=X K DXS,D0
  1. ;SET ZDP2 = INSGX\^INTHL7FT(1,3)\\999\@BDW1ZDP2
  1. S D0=INDA S X=$G(INA("BDW1ZDP2",INI(1)))
  1. S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
  1. S @INV@("ZDP2")=X K DXS,D0
  1. ;SET ZDP3 = INSGX\^INTHL7FT(1,3)\\999\@BDW1ZDP3
  1. S D0=INDA S X=$G(INA("BDW1ZDP3",INI(1)))
  1. S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
  1. S @INV@("ZDP3")=X K DXS,D0
  1. D:'INVS MC^INHS
  1. K LINE S LINE="",CP=0 S L1="ZDP" S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,1,L1,.CP) S L1=$G(@INV@("ZDP1")) S:$TR(L1,$G(SUBDELIM))="" L1=""
  1. D SETPIECE^INHU(.LINE,DELIM,2,L1,.CP) S L1=$G(@INV@("ZDP2")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,3,L1,.CP) S L1=$G(@INV@("ZDP3"))
  1. S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,4,L1,.CP)
  1. S LCT=LCT+1,^UTILITY("INH",$J,LCT)=LINE I $D(LINE)>9 M ^UTILITY("INH",$J,LCT)=LINE
  1. Q
  1. F1 S INDA=INDA0 K INDA0
  1. SET INSETID=0
  1. S INDA0=INDA,INI(1)=0 F S INI(1)=$O(INDA("ZIM",INI(1))) Q:'INI(1) S INDA=$S(INDA("ZIM",INI(1)):INDA("ZIM",INI(1)),1:INI(1)) D
  1. .;SET ZIM1 = INSGX\^INTHL7FT(1,3)\\999\@BDW1ZIM1
  1. .S D0=INDA S X=$G(INA("BDW1ZIM1",INI(1)))
  1. .S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
  1. .S @INV@("ZIM1")=X K DXS,D0
  1. .;SET ZIM2 = INSGX\^INTHL7FT(1,3)\\999\@BDW1ZIM2
  1. .S D0=INDA S X=$G(INA("BDW1ZIM2",INI(1)))
  1. .S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
  1. .S @INV@("ZIM2")=X K DXS,D0
  1. .;SET ZIM3 = INSGX\^INTHL7FT(1,3)\\999\@BDW1ZIM3
  1. .S D0=INDA S X=$G(INA("BDW1ZIM3",INI(1)))
  1. .S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
  1. .S @INV@("ZIM3")=X K DXS,D0
  1. .;SET ZIM4 = INSGX\^INTHL7FT(1,3)\\999\@BDW1ZIM4
  1. .S D0=INDA S X=$G(INA("BDW1ZIM4",INI(1)))
  1. .S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
  1. .S @INV@("ZIM4")=X K DXS,D0
  1. .;SET ZIM5 = INSGX\^INTHL7FT(1,3)\\999\@BDW1ZIM5
  1. .S D0=INDA S X=$G(INA("BDW1ZIM5",INI(1)))
  1. .S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
  1. .S @INV@("ZIM5")=X K DXS,D0
  1. .;SET ZIM6 = INSGX\^INTHL7FT(1,3)\\999\@BDW1ZIM6
  1. .S D0=INDA S X=$G(INA("BDW1ZIM6",INI(1)))
  1. .S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
  1. .S @INV@("ZIM6")=X K DXS,D0
  1. .D:'INVS MC^INHS
  1. .K LINE S LINE="",CP=0 S L1="ZIM" S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,1,L1,.CP) S L1=$G(@INV@("ZIM1")) S:$TR(L1,$G(SUBDELIM))="" L1=""
  1. .D SETPIECE^INHU(.LINE,DELIM,2,L1,.CP) S L1=$G(@INV@("ZIM2")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,3,L1,.CP) S L1=$G(@INV@("ZIM3"))
  1. .S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,4,L1,.CP) S L1=$G(@INV@("ZIM4")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,5,L1,.CP)
  1. .S L1=$G(@INV@("ZIM5")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,6,L1,.CP) S L1=$G(@INV@("ZIM6")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,7,L1,.CP)
  1. .S LCT=LCT+1,^UTILITY("INH",$J,LCT)=LINE I $D(LINE)>9 M ^UTILITY("INH",$J,LCT)=LINE
  1. .Q
  1. S INDA=INDA0 K INDA0
  1. SET INSETID=0
  1. S INDA0=INDA,INI(1)=0 F S INI(1)=$O(INDA("ZMD",INI(1))) Q:'INI(1) S INDA=$S(INDA("ZMD",INI(1)):INDA("ZMD",INI(1)),1:INI(1)) D
  1. .;SET ZMD1 = INSGX\^INTHL7FT(1,3)\\999\@BDW1ZMD1
  1. .S D0=INDA S X=$G(INA("BDW1ZMD1",INI(1)))
  1. .S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
  1. .S @INV@("ZMD1")=X K DXS,D0
  1. .;SET ZMD2 = INSGX\^INTHL7FT(1,3)\\999\@BDW1ZMD2
  1. .S D0=INDA S X=$G(INA("BDW1ZMD2",INI(1)))
  1. .S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
  1. .S @INV@("ZMD2")=X K DXS,D0
  1. .;SET ZMD3 = INSGX\^INTHL7FT(1,3)\\999\@BDW1ZMD3
  1. .S D0=INDA S X=$G(INA("BDW1ZMD3",INI(1)))
  1. .S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
  1. .S @INV@("ZMD3")=X K DXS,D0
  1. .;SET ZMD4 = INSGX\^INTHL7FT(1,3)\\999\@BDW1ZMD4
  1. .S D0=INDA S X=$G(INA("BDW1ZMD4",INI(1)))
  1. .S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
  1. .S @INV@("ZMD4")=X K DXS,D0
  1. .;SET ZMD5 = INSGX\^INTHL7FT(1,3)\\999\@BDW1ZMD5
  1. .S D0=INDA S X=$G(INA("BDW1ZMD5",INI(1)))
  1. .S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
  1. .S @INV@("ZMD5")=X K DXS,D0
  1. .D:'INVS MC^INHS
  1. .K LINE S LINE="",CP=0 S L1="ZMD" S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,1,L1,.CP) S L1=$G(@INV@("ZMD1")) S:$TR(L1,$G(SUBDELIM))="" L1=""
  1. .D SETPIECE^INHU(.LINE,DELIM,2,L1,.CP) S L1=$G(@INV@("ZMD2")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,3,L1,.CP) S L1=$G(@INV@("ZMD3"))
  1. .S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,4,L1,.CP) S L1=$G(@INV@("ZMD4")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,5,L1,.CP)
  1. .S L1=$G(@INV@("ZMD5")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,6,L1,.CP)
  1. .S LCT=LCT+1,^UTILITY("INH",$J,LCT)=LINE I $D(LINE)>9 M ^UTILITY("INH",$J,LCT)=LINE
  1. .Q
  1. S INDA=INDA0 K INDA0
  1. SET INSETID=0
  1. S INDA0=INDA,INI(1)=0 F S INI(1)=$O(INDA("HEF",INI(1))) Q:'INI(1) S INDA=$S(INDA("HEF",INI(1)):INDA("HEF",INI(1)),1:INI(1)) D
  1. .;SET OBX1 = INSGX\^INTHL7FT(1,3)\\999\@BDW1HEF1
  1. .S D0=INDA S X=$G(INA("BDW1HEF1",INI(1)))
  1. .S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
  1. .S @INV@("OBX1")=X K DXS,D0
  1. .;SET OBX2 = INSGX\^INTHL7FT(1,3)\\999\@BDW1HEF2
  1. .S D0=INDA S X=$G(INA("BDW1HEF2",INI(1)))
  1. .S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
  1. .S @INV@("OBX2")=X K DXS,D0
  1. .;SET OBX3 = INSGX\^INTHL7FT(1,3)\\999\@BDW1HEF3
  1. .S D0=INDA S X=$G(INA("BDW1HEF3",INI(1)))
  1. .S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
  1. .S @INV@("OBX3")=X K DXS,D0
  1. .;SET OBX4 = INSGX\^INTHL7FT(1,3)\\999\@BDW1HEF4
  1. .S D0=INDA S X=$G(INA("BDW1HEF4",INI(1)))
  1. .S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
  1. .S @INV@("OBX4")=X K DXS,D0
  1. .;SET OBX5 = ""
  1. .S D0=INDA S X=""
  1. .S @INV@("OBX5")=X K DXS,D0
  1. .;SET OBX6 = ""
  1. .S D0=INDA S X=""
  1. .S @INV@("OBX6")=X K DXS,D0
  1. .;SET OBX7 = ""
  1. .S D0=INDA S X=""
  1. .S @INV@("OBX7")=X K DXS,D0
  1. .;SET OBX8 = ""
  1. .S D0=INDA S X=""
  1. .S @INV@("OBX8")=X K DXS,D0
  1. .;SET OBX9 = ""
  1. .S D0=INDA S X=""
  1. .S @INV@("OBX9")=X K DXS,D0
  1. .;SET OBX10 = ""
  1. .S D0=INDA S X=""
  1. .S @INV@("OBX10")=X K DXS,D0
  1. .;SET OBX11 = ""
  1. .S D0=INDA S X=""
  1. .S @INV@("OBX11")=X K DXS,D0
  1. .;SET OBX12 = ""
  1. .S D0=INDA S X=""
  1. .S @INV@("OBX12")=X K DXS,D0
  1. .;SET OBX13 = ""
  1. .S D0=INDA S X=""
  1. .S @INV@("OBX13")=X K DXS,D0
  1. .;SET OBX14 = ""
  1. .S D0=INDA S X=""
  1. .S @INV@("OBX14")=X K DXS,D0
  1. .;SET OBX15 = ""
  1. .S D0=INDA S X=""
  1. .S @INV@("OBX15")=X K DXS,D0
  1. .;SET OBX16 = ""
  1. .S D0=INDA S X=""
  1. .S @INV@("OBX16")=X K DXS,D0
  1. .;SET OBX17 = ""
  1. .S D0=INDA S X=""
  1. .S @INV@("OBX17")=X K DXS,D0
  1. .;SET OBX18 = ""
  1. .S D0=INDA S X=""
  1. .S @INV@("OBX18")=X K DXS,D0
  1. .;SET OBX19 = ""
  1. .S D0=INDA S X=""
  1. .S @INV@("OBX19")=X K DXS,D0
  1. .D:'INVS MC^INHS
  1. .K LINE S LINE="",CP=0 S L1="OBX" S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,1,L1,.CP) S L1=$G(@INV@("OBX1")) S:$TR(L1,$G(SUBDELIM))="" L1=""
  1. .D SETPIECE^INHU(.LINE,DELIM,2,L1,.CP) S L1=$G(@INV@("OBX2")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,3,L1,.CP) S L1=$G(@INV@("OBX3"))
  1. .S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,4,L1,.CP) S L1=$G(@INV@("OBX4")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,5,L1,.CP)
  1. 9 .D EN^IS00007J
  1. G I1^IS00007J