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