IS00029B ;Compiled from script 'Generated: HL IHS IZV04 V03VXR OUT-O' on AUG 15, 2018
;Part 3
;Copyright 2018 SAIC
EN I '$D(INDA(9000003.1)) S INI=0 F S INI=$O(^AUPN3PPH("C",INDA,INI)) Q:'INI S INDA(9000003.1,INI)=""
S INDA0=INDA,INI(1)=0 F S INI(1)=$O(INDA(9000003.1,INI(1))) Q:'INI(1) S INDA=$S(INDA(9000003.1,INI(1)):INDA(9000003.1,INI(1)),1:INI(1)) D
.Q:'$D(^AUPN3PPH(INDA,0))
.;SET GT11 = INSGX\^INTHL7FT(11,3)\\4\"GT1"
.S D0=INDA S X="GT1"
.S X1="^INTHL7FT(11,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,4)
.S @INV@("GT11")=X K DXS,D0
.;SET GT12 = #.04
.S D0=INDA S Y(1)=$S($D(^AUPN3PPH(D0,0)):^(0),1:"") S X=$P(Y(1),U,4)
.S @INV@("GT12")=X K DXS,D0
.;SET GT13 = INSGX\^INTHL7FT(35,3)\\250\#.01
.S D0=INDA S Y(1)=$S($D(^AUPN3PPH(D0,0)):^(0),1:"") S X=$P(Y(1),U,1)
.S X1="^INTHL7FT(35,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,250)
.S @INV@("GT13")=X K DXS,D0
.;SET GT15.1 = $E(#.09,1,106)
.S D0=INDA S Y(1)=$S($D(^AUPN3PPH(D0,0)):^(0),1:"") S X=$P(Y(1),U,9),Y(2)=$G(X) S X=1,Y(3)=$G(X) S X=106,X=$E(Y(2),Y(3),X)
.S @INV@("GT15.1")=X K DXS,D0
.;SET GT15.3 = $E(#.11,1,106)
.S D0=INDA S Y(1)=$S($D(^AUPN3PPH(D0,0)):^(0),1:"") S X=$P(Y(1),U,11),Y(2)=$G(X) S X=1,Y(3)=$G(X) S X=106,X=$E(Y(2),Y(3),X)
.S @INV@("GT15.3")=X K DXS,D0
.;SET GT15.4 = INSGX\^INTHL7F(15192,5)\\106\"OUTPUT TRANSFORM"
.S D0=INDA S X="OUTPUT TRANSFORM"
.S X1="^INTHL7F(15192,5)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,106)
.S @INV@("GT15.4")=X K DXS,D0
.;SET GT15.5 = $E(#.13,1,106)
.S D0=INDA S Y(1)=$S($D(^AUPN3PPH(D0,0)):^(0),1:"") S X=$P(Y(1),U,13),Y(2)=$G(X) S X=1,Y(3)=$G(X) S X=106,X=$E(Y(2),Y(3),X)
.S @INV@("GT15.5")=X K DXS,D0
.;SET GT16 = #.14
.S D0=INDA S Y(1)=$S($D(^AUPN3PPH(D0,0)):^(0),1:"") S X=$P(Y(1),U,14)
.S @INV@("GT16")=X K DXS,D0
.;SET GT18 = INSGX\^INTHL7FT(6,3)\\26\#.19
.S D0=INDA S Y(1)=$S($D(^AUPN3PPH(D0,0)):^(0),1:"") S X=$P(Y(1),U,19)
.S X1="^INTHL7FT(6,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,26)
.S @INV@("GT18")=X K DXS,D0
.;SET GT19 = #.08
.S D0=INDA S Y(2)=$C(59)_$P($G(^DD(9000003.1,.08,0)),U,3),Y(1)=$S($D(^AUPN3PPH(D0,0)):^(0),1:"") S X=$P($P(Y(2),$C(59)_$P(Y(1),U,8)_":",2),$C(59))
.S @INV@("GT19")=X K DXS,D0
.;SET GT113 = INSGX\^INTHL7FT(4,3)\\8\#.17
.S D0=INDA S Y(1)=$S($D(^AUPN3PPH(D0,0)):^(0),1:"") S X=$P(Y(1),U,17)
.S X1="^INTHL7FT(4,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,8)
.S @INV@("GT113")=X K DXS,D0
.;SET GT114 = INSGX\^INTHL7FT(4,3)\\8\#.18
.S D0=INDA S Y(1)=$S($D(^AUPN3PPH(D0,0)):^(0),1:"") S X=$P(Y(1),U,18)
.S X1="^INTHL7FT(4,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,8)
.S @INV@("GT114")=X K DXS,D0
.;SET GT116 = INSGX\^INTHL7FT(35,3)\\130\#.16
.S D0=INDA S Y(1)=$S($D(^AUPN3PPH(D0,0)):^(0),1:"") S X=$P($G(^AUTNEMPL(+$P(Y(1),U,16),0)),U)
.S X1="^INTHL7FT(35,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,130)
.S @INV@("GT116")=X K DXS,D0
.;SET GT117.1 = INSGX\^INTHL7F(15201,5)\\106\"OUTPUT TRANSFORM"
.S D0=INDA S X="OUTPUT TRANSFORM"
.S X1="^INTHL7F(15201,5)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,106)
.S @INV@("GT117.1")=X K DXS,D0
.;SET GT117.3 = INSGX\^INTHL7F(15202,5)\\106\"OUTPUT TRANSFORM"
.S D0=INDA S X="OUTPUT TRANSFORM"
.S X1="^INTHL7F(15202,5)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,106)
.S @INV@("GT117.3")=X K DXS,D0
.;SET GT117.4 = INSGX\^INTHL7F(15203,5)\\106\"OUTPUT TRANSFORM"
.S D0=INDA S X="OUTPUT TRANSFORM"
.S X1="^INTHL7F(15203,5)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,106)
.S @INV@("GT117.4")=X K DXS,D0
.;SET GT117.5 = INSGX\^INTHL7F(15204,5)\\106\"OUTPUT TRANSFORM"
.S D0=INDA S X="OUTPUT TRANSFORM"
.S X1="^INTHL7F(15204,5)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,106)
.S @INV@("GT117.5")=X K DXS,D0
.;SET GT118 = INSGX\^INTHL7F(15205,5)\\40\"OUTPUT TRANSFORM"
.S D0=INDA S X="OUTPUT TRANSFORM"
.S X1="^INTHL7F(15205,5)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,40)
.S @INV@("GT118")=X K DXS,D0
.;SET GT120 = #.15
.S D0=INDA S Y(2)=$C(59)_$P($G(^DD(9000003.1,.15,0)),U,3),Y(1)=$S($D(^AUPN3PPH(D0,0)):^(0),1:"") S X=$P($P(Y(2),$C(59)_$P(Y(1),U,15)_":",2),$C(59))
.S @INV@("GT120")=X K DXS,D0
.D:'INVS MC^INHS
.K LINE S LINE="",CP=0 S L1="GT1" S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,1,L1,.CP) S L1=$G(@INV@("GT11")) S:$TR(L1,$G(SUBDELIM))="" L1=""
.D SETPIECE^INHU(.LINE,DELIM,2,L1,.CP)
.S D0=INDA S X=@INV@("GT12"),Y(1)=$G(X) S X=1,Y(2)=$G(X) S X=250,X=$E(Y(1),Y(2),X) S L1=X
.S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,3,L1,.CP) S L1=$G(@INV@("GT13")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,4,L1,.CP)
.S L1=$G(@INV@("GT15.1"))
.S D0=INDA S X="^" S L1=L1_X
.S L1=L1_$G(@INV@("GT15.3"))
.S D0=INDA S X="^" S L1=L1_X
.S L1=L1_$G(@INV@("GT15.4"))
.S D0=INDA S X="^" S L1=L1_X
.S L1=L1_$G(@INV@("GT15.5")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,6,L1,.CP)
.S D0=INDA S X=@INV@("GT16"),Y(1)=$G(X) S X=1,Y(2)=$G(X) S X=250,X=$E(Y(1),Y(2),X) S L1=X
.S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,7,L1,.CP) S L1=$G(@INV@("GT18")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,9,L1,.CP)
.S D0=INDA S X=@INV@("GT19"),Y(1)=$G(X) S X=1,Y(2)=$G(X) S X=1,X=$E(Y(1),Y(2),X) S L1=X
.S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,10,L1,.CP) S L1=$G(@INV@("GT113")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,14,L1,.CP)
.S L1=$G(@INV@("GT114")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,15,L1,.CP) S L1=$G(@INV@("GT116")) S:$TR(L1,$G(SUBDELIM))="" L1=""
.D SETPIECE^INHU(.LINE,DELIM,17,L1,.CP) S L1=$G(@INV@("GT117.1"))
.S D0=INDA S X="^" S L1=L1_X
.S L1=L1_$G(@INV@("GT117.3"))
.S D0=INDA S X="^" S L1=L1_X
.S L1=L1_$G(@INV@("GT117.4"))
.S D0=INDA S X="^" S L1=L1_X
.S L1=L1_$G(@INV@("GT117.5")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,18,L1,.CP) S L1=$G(@INV@("GT118")) S:$TR(L1,$G(SUBDELIM))="" L1=""
.D SETPIECE^INHU(.LINE,DELIM,19,L1,.CP)
.S D0=INDA S X=@INV@("GT120"),Y(1)=$G(X) S X=1,Y(2)=$G(X) S X=2,X=$E(Y(1),Y(2),X) S L1=X
.S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,21,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
I '$D(INDA(9000003)) S INI=0 F S INI=$O(^AUPNMCR("B",INDA,INI)) Q:'INI S INDA(9000003,INI)=""
S INDA0=INDA,INI(1)=0 F S INI(1)=$O(INDA(9000003,INI(1))) Q:'INI(1) S INDA=$S(INDA(9000003,INI(1)):INDA(9000003,INI(1)),1:INI(1)) D
.Q:'$D(^AUPNMCR(INDA,0))
.Q
S INDA=INDA0 K INDA0
SET INSETID=0
I '$D(INDA(9000004)) S INI=0 F S INI=$O(^AUPNMCD("B",INDA,INI)) Q:'INI S INDA(9000004,INI)=""
S INDA0=INDA,INI(1)=0 F S INI(1)=$O(INDA(9000004,INI(1))) Q:'INI(1) S INDA=$S(INDA(9000004,INI(1)):INDA(9000004,INI(1)),1:INI(1)) D
.Q:'$D(^AUPNMCD(INDA,0))
.Q
S INDA=INDA0 K INDA0
SET INSETID=0
I '$D(INDA(9000003.1)) S INI=0 F S INI=$O(^AUPN3PPH("C",INDA,INI)) Q:'INI S INDA(9000003.1,INI)=""
S INDA0=INDA,INI(1)=0 F S INI(1)=$O(INDA(9000003.1,INI(1))) Q:'INI(1) S INDA=$S(INDA(9000003.1,INI(1)):INDA(9000003.1,INI(1)),1:INI(1)) D
.Q:'$D(^AUPN3PPH(INDA,0))
.;SET IN11 = INSGX\^INTHL7FT(11,3)\\4\"IN1"
.S D0=INDA S X="IN1"
.S X1="^INTHL7FT(11,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,4)
.S @INV@("IN11")=X K DXS,D0
.;SET IN14 = INSGX\^INTHL7FT(32,3)\\250\#.03
.S D0=INDA S Y(1)=$S($D(^AUPN3PPH(D0,0)):^(0),1:"") S X=$P($G(^AUTNINS(+$P(Y(1),U,3),0)),U)
.S X1="^INTHL7FT(32,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,250)
.S @INV@("IN14")=X K DXS,D0
.;SET IN18 = INSGX\^INTHL7FT(1,3)\\12\#.06
.S D0=INDA S Y(1)=$S($D(^AUPN3PPH(D0,0)):^(0),1:"") S X=$P($G(^AUTNEGRP(+$P(Y(1),U,6),0)),U)
.S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,12)
.S @INV@("IN18")=X K DXS,D0
.;SET IN112 = INSGX\^INTHL7FT(4,3)\\8\#.17
.S D0=INDA S Y(1)=$S($D(^AUPN3PPH(D0,0)):^(0),1:"") S X=$P(Y(1),U,17)
.S X1="^INTHL7FT(4,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,8)
.S @INV@("IN112")=X K DXS,D0
.;SET IN113 = INSGX\^INTHL7FT(4,3)\\8\#.18
.S D0=INDA S Y(1)=$S($D(^AUPN3PPH(D0,0)):^(0),1:"") S X=$P(Y(1),U,18)
.S X1="^INTHL7FT(4,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,8)
.S @INV@("IN113")=X K DXS,D0
.;SET IN116 = INSGX\^INTHL7FT(35,3)\\250\#.01
.S D0=INDA S Y(1)=$S($D(^AUPN3PPH(D0,0)):^(0),1:"") S X=$P(Y(1),U,1)
.S X1="^INTHL7FT(35,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,250)
.S @INV@("IN116")=X K DXS,D0
.;SET IN118 = INSGX\^INTHL7FT(6,3)\\26\#.19
.S D0=INDA S Y(1)=$S($D(^AUPN3PPH(D0,0)):^(0),1:"") S X=$P(Y(1),U,19)
.S X1="^INTHL7FT(6,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,26)
.S @INV@("IN118")=X K DXS,D0
.;SET IN119.1 = $E(#.09,1,106)
.S D0=INDA S Y(1)=$S($D(^AUPN3PPH(D0,0)):^(0),1:"") S X=$P(Y(1),U,9),Y(2)=$G(X) S X=1,Y(3)=$G(X) S X=106,X=$E(Y(2),Y(3),X)
.S @INV@("IN119.1")=X K DXS,D0
.;SET IN119.2 = ""
.S D0=INDA S X=""
.S @INV@("IN119.2")=X K DXS,D0
.;SET IN119.3 = $E(#.11,1,106)
.S D0=INDA S Y(1)=$S($D(^AUPN3PPH(D0,0)):^(0),1:"") S X=$P(Y(1),U,11),Y(2)=$G(X) S X=1,Y(3)=$G(X) S X=106,X=$E(Y(2),Y(3),X)
.S @INV@("IN119.3")=X K DXS,D0
.;SET IN119.4 = INSGX\^INTHL7F(14732,5)\\106\#.12
.S D0=INDA S Y(1)=$S($D(^AUPN3PPH(D0,0)):^(0),1:"") S X=$P($G(^DIC(5,+$P(Y(1),U,12),0)),U)
.S X1="^INTHL7F(14732,5)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,106)
.S @INV@("IN119.4")=X K DXS,D0
.;SET IN119.5 = $E(#.13,1,106)
.S D0=INDA S Y(1)=$S($D(^AUPN3PPH(D0,0)):^(0),1:"") S X=$P(Y(1),U,13),Y(2)=$G(X) S X=1,Y(3)=$G(X) S X=106,X=$E(Y(2),Y(3),X)
.S @INV@("IN119.5")=X K DXS,D0
.;SET IN143 = #.08
.S D0=INDA S Y(2)=$C(59)_$P($G(^DD(9000003.1,.08,0)),U,3),Y(1)=$S($D(^AUPN3PPH(D0,0)):^(0),1:"") S X=$P($P(Y(2),$C(59)_$P(Y(1),U,8)_":",2),$C(59))
.S @INV@("IN143")=X K DXS,D0
.;SET IN147 = #.05
.S D0=INDA S Y(1)=$S($D(^AUPN3PPH(D0,0)):^(0),1:"") S X=$P($G(^AUTTPIC(+$P(Y(1),U,5),0)),U)
.S @INV@("IN147")=X K DXS,D0
.;SET IN149 = #.04
.S D0=INDA S Y(1)=$S($D(^AUPN3PPH(D0,0)):^(0),1:"") S X=$P(Y(1),U,4)
.S @INV@("IN149")=X K DXS,D0
.D:'INVS MC^INHS
.K LINE S LINE="",CP=0 S L1="IN1" S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,1,L1,.CP) S L1=$G(@INV@("IN11")) S:$TR(L1,$G(SUBDELIM))="" L1=""
.D SETPIECE^INHU(.LINE,DELIM,2,L1,.CP) S L1=$G(@INV@("IN14")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,5,L1,.CP) S L1=$G(@INV@("IN18"))
.S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,9,L1,.CP) S L1=$G(@INV@("IN112")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,13,L1,.CP)
.S L1=$G(@INV@("IN113")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,14,L1,.CP) S L1=$G(@INV@("IN116")) S:$TR(L1,$G(SUBDELIM))="" L1=""
.D SETPIECE^INHU(.LINE,DELIM,17,L1,.CP) S L1=$G(@INV@("IN118")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,19,L1,.CP) S L1=$G(@INV@("IN119.1"))
.S D0=INDA S X="^" S L1=L1_X
.S L1=L1_$G(@INV@("IN119.2"))
.S D0=INDA S X="^" S L1=L1_X
.S L1=L1_$G(@INV@("IN119.3"))
.S D0=INDA S X="^" S L1=L1_X
.S L1=L1_$G(@INV@("IN119.4"))
.S D0=INDA S X="^" S L1=L1_X
.S L1=L1_$G(@INV@("IN119.5")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,20,L1,.CP)
.S D0=INDA S X=@INV@("IN143"),Y(1)=$G(X) S X=1,Y(2)=$G(X) S X=1,X=$E(Y(1),Y(2),X) S L1=X
.S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,44,L1,.CP)
.S D0=INDA S X=@INV@("IN147"),Y(1)=$G(X) S X=1,Y(2)=$G(X) S X=20,X=$E(Y(1),Y(2),X) S L1=X
.S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,48,L1,.CP)
.S D0=INDA S X=@INV@("IN149"),Y(1)=$G(X) S X=1,Y(2)=$G(X) S X=250,X=$E(Y(1),Y(2),X) S L1=X
.S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,50,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
I '$D(INDA(9000005)) S INI=0 F S INI=$O(^AUPNRRE("B",INDA,INI)) Q:'INI S INDA(9000005,INI)=""
S INDA0=INDA,INI(1)=0 F S INI(1)=$O(INDA(9000005,INI(1))) Q:'INI(1) S INDA=$S(INDA(9000005,INI(1)):INDA(9000005,INI(1)),1:INI(1)) D
.Q:'$D(^AUPNRRE(INDA,0))
.Q
S INDA=INDA0 K INDA0
SET INSETID=0
I '$D(INDA(9000010.11)) S INI=0 F S INI=$O(^AUPNVIMM("AC",INDA,INI)) Q:'INI S INDA(9000010.11,INI)=""
S INDA0=INDA,INI(1)=0 F S INI(1)=$O(INDA(9000010.11,INI(1))) Q:'INI(1) S INDA=$S(INDA(9000010.11,INI(1)):INDA(9000010.11,INI(1)),1:INI(1)) D
.Q:'$D(^AUPNVIMM(INDA,0))
.;SET ORC1 = INSGX\^INTHL7FT(1,3)\\2\"RE"
.S D0=INDA S X="RE"
.S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,2)
.S @INV@("ORC1")=X K DXS,D0
.;SET ORC3 = INSGX\^INTHL7F(17024,5)\\22\"OUTPUT TRANSFORM"
.S D0=INDA S X="OUTPUT TRANSFORM"
.S X1="^INTHL7F(17024,5)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,22)
.S @INV@("ORC3")=X K DXS,D0
.D:'INVS MC^INHS
.K LINE S LINE="",CP=0 S L1="ORC" S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,1,L1,.CP) S L1=$G(@INV@("ORC1")) S:$TR(L1,$G(SUBDELIM))="" L1=""
.D SETPIECE^INHU(.LINE,DELIM,2,L1,.CP) S L1=$G(@INV@("ORC3")) 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
.SET INSETID=0
.;SET RXA1 = INSGX\^INTHL7FT(3,3)\\4\"0"
.S D0=INDA S X="0"
.S X1="^INTHL7FT(3,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,4)
.S @INV@("RXA1")=X K DXS,D0
.;SET RXA2 = INSGX\^INTHL7FT(3,3)\\4\@RXA2
.S D0=INDA S X=$G(INA("RXA2",INI(1)))
.S X1="^INTHL7FT(3,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,4)
.S @INV@("RXA2")=X K DXS,D0
.;SET RXA3 = INSGX\^INTHL7FT(1,3)\\26\@RXA3
.S D0=INDA S X=$G(INA("RXA3",INI(1)))
.S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,26)
.S @INV@("RXA3")=X K DXS,D0
.;SET RXA4 = INSGX\^INTHL7FT(1,3)\\26\@RXA4
.S D0=INDA S X=$G(INA("RXA4",INI(1)))
.S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,26)
.S @INV@("RXA4")=X K DXS,D0
.;SET RXA5 = INSGX\^INTHL7FT(1,3)\\250\@RXA5
.S D0=INDA S X=$G(INA("RXA5",INI(1)))
.S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,250)
.S @INV@("RXA5")=X K DXS,D0
.;SET RXA6 = INSGX\^INTHL7FT(1,3)\\99\@RXA6
.S D0=INDA S X=$G(INA("RXA6",INI(1)))
.S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,99)
.S @INV@("RXA6")=X K DXS,D0
.;SET RXA7 = INSGX\^INTHL7FT(1,3)\\20\@RXA7
.S D0=INDA S X=$G(INA("RXA7",INI(1)))
.S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,20)
.S @INV@("RXA7")=X K DXS,D0
.;SET RXA9 = INSGX\^INTHL7FT(1,3)\\100\@RXA9
.S D0=INDA S X=$G(INA("RXA9",INI(1)))
.S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,100)
.S @INV@("RXA9")=X K DXS,D0
9 .D EN^IS00029C
G L1^IS00029C
IS00029B ;Compiled from script 'Generated: HL IHS IZV04 V03VXR OUT-O' on AUG 15, 2018
+1 ;Part 3
+2 ;Copyright 2018 SAIC
EN IF '$DATA(INDA(9000003.1))
SET INI=0
FOR
SET INI=$ORDER(^AUPN3PPH("C",INDA,INI))
IF 'INI
QUIT
SET INDA(9000003.1,INI)=""
+1 SET INDA0=INDA
SET INI(1)=0
FOR
SET INI(1)=$ORDER(INDA(9000003.1,INI(1)))
IF 'INI(1)
QUIT
SET INDA=$SELECT(INDA(9000003.1,INI(1)):INDA(9000003.1,INI(1)),1:INI(1))
Begin DoDot:1
+2 IF '$DATA(^AUPN3PPH(INDA,0))
QUIT
+3 ;SET GT11 = INSGX\^INTHL7FT(11,3)\\4\"GT1"
+4 SET D0=INDA
SET X="GT1"
+5 SET X1="^INTHL7FT(11,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,4)
+6 SET @INV@("GT11")=X
KILL DXS,D0
+7 ;SET GT12 = #.04
+8 SET D0=INDA
SET Y(1)=$SELECT($DATA(^AUPN3PPH(D0,0)):^(0),1:"")
SET X=$PIECE(Y(1),U,4)
+9 SET @INV@("GT12")=X
KILL DXS,D0
+10 ;SET GT13 = INSGX\^INTHL7FT(35,3)\\250\#.01
+11 SET D0=INDA
SET Y(1)=$SELECT($DATA(^AUPN3PPH(D0,0)):^(0),1:"")
SET X=$PIECE(Y(1),U,1)
+12 SET X1="^INTHL7FT(35,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,250)
+13 SET @INV@("GT13")=X
KILL DXS,D0
+14 ;SET GT15.1 = $E(#.09,1,106)
+15 SET D0=INDA
SET Y(1)=$SELECT($DATA(^AUPN3PPH(D0,0)):^(0),1:"")
SET X=$PIECE(Y(1),U,9)
SET Y(2)=$GET(X)
SET X=1
SET Y(3)=$GET(X)
SET X=106
SET X=$EXTRACT(Y(2),Y(3),X)
+16 SET @INV@("GT15.1")=X
KILL DXS,D0
+17 ;SET GT15.3 = $E(#.11,1,106)
+18 SET D0=INDA
SET Y(1)=$SELECT($DATA(^AUPN3PPH(D0,0)):^(0),1:"")
SET X=$PIECE(Y(1),U,11)
SET Y(2)=$GET(X)
SET X=1
SET Y(3)=$GET(X)
SET X=106
SET X=$EXTRACT(Y(2),Y(3),X)
+19 SET @INV@("GT15.3")=X
KILL DXS,D0
+20 ;SET GT15.4 = INSGX\^INTHL7F(15192,5)\\106\"OUTPUT TRANSFORM"
+21 SET D0=INDA
SET X="OUTPUT TRANSFORM"
+22 SET X1="^INTHL7F(15192,5)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,106)
+23 SET @INV@("GT15.4")=X
KILL DXS,D0
+24 ;SET GT15.5 = $E(#.13,1,106)
+25 SET D0=INDA
SET Y(1)=$SELECT($DATA(^AUPN3PPH(D0,0)):^(0),1:"")
SET X=$PIECE(Y(1),U,13)
SET Y(2)=$GET(X)
SET X=1
SET Y(3)=$GET(X)
SET X=106
SET X=$EXTRACT(Y(2),Y(3),X)
+26 SET @INV@("GT15.5")=X
KILL DXS,D0
+27 ;SET GT16 = #.14
+28 SET D0=INDA
SET Y(1)=$SELECT($DATA(^AUPN3PPH(D0,0)):^(0),1:"")
SET X=$PIECE(Y(1),U,14)
+29 SET @INV@("GT16")=X
KILL DXS,D0
+30 ;SET GT18 = INSGX\^INTHL7FT(6,3)\\26\#.19
+31 SET D0=INDA
SET Y(1)=$SELECT($DATA(^AUPN3PPH(D0,0)):^(0),1:"")
SET X=$PIECE(Y(1),U,19)
+32 SET X1="^INTHL7FT(6,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,26)
+33 SET @INV@("GT18")=X
KILL DXS,D0
+34 ;SET GT19 = #.08
+35 SET D0=INDA
SET Y(2)=$CHAR(59)_$PIECE($GET(^DD(9000003.1,.08,0)),U,3)
SET Y(1)=$SELECT($DATA(^AUPN3PPH(D0,0)):^(0),1:"")
SET X=$PIECE($PIECE(Y(2),$CHAR(59)_$PIECE(Y(1),U,8)_":",2),$CHAR(59))
+36 SET @INV@("GT19")=X
KILL DXS,D0
+37 ;SET GT113 = INSGX\^INTHL7FT(4,3)\\8\#.17
+38 SET D0=INDA
SET Y(1)=$SELECT($DATA(^AUPN3PPH(D0,0)):^(0),1:"")
SET X=$PIECE(Y(1),U,17)
+39 SET X1="^INTHL7FT(4,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,8)
+40 SET @INV@("GT113")=X
KILL DXS,D0
+41 ;SET GT114 = INSGX\^INTHL7FT(4,3)\\8\#.18
+42 SET D0=INDA
SET Y(1)=$SELECT($DATA(^AUPN3PPH(D0,0)):^(0),1:"")
SET X=$PIECE(Y(1),U,18)
+43 SET X1="^INTHL7FT(4,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,8)
+44 SET @INV@("GT114")=X
KILL DXS,D0
+45 ;SET GT116 = INSGX\^INTHL7FT(35,3)\\130\#.16
+46 SET D0=INDA
SET Y(1)=$SELECT($DATA(^AUPN3PPH(D0,0)):^(0),1:"")
SET X=$PIECE($GET(^AUTNEMPL(+$PIECE(Y(1),U,16),0)),U)
+47 SET X1="^INTHL7FT(35,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,130)
+48 SET @INV@("GT116")=X
KILL DXS,D0
+49 ;SET GT117.1 = INSGX\^INTHL7F(15201,5)\\106\"OUTPUT TRANSFORM"
+50 SET D0=INDA
SET X="OUTPUT TRANSFORM"
+51 SET X1="^INTHL7F(15201,5)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,106)
+52 SET @INV@("GT117.1")=X
KILL DXS,D0
+53 ;SET GT117.3 = INSGX\^INTHL7F(15202,5)\\106\"OUTPUT TRANSFORM"
+54 SET D0=INDA
SET X="OUTPUT TRANSFORM"
+55 SET X1="^INTHL7F(15202,5)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,106)
+56 SET @INV@("GT117.3")=X
KILL DXS,D0
+57 ;SET GT117.4 = INSGX\^INTHL7F(15203,5)\\106\"OUTPUT TRANSFORM"
+58 SET D0=INDA
SET X="OUTPUT TRANSFORM"
+59 SET X1="^INTHL7F(15203,5)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,106)
+60 SET @INV@("GT117.4")=X
KILL DXS,D0
+61 ;SET GT117.5 = INSGX\^INTHL7F(15204,5)\\106\"OUTPUT TRANSFORM"
+62 SET D0=INDA
SET X="OUTPUT TRANSFORM"
+63 SET X1="^INTHL7F(15204,5)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,106)
+64 SET @INV@("GT117.5")=X
KILL DXS,D0
+65 ;SET GT118 = INSGX\^INTHL7F(15205,5)\\40\"OUTPUT TRANSFORM"
+66 SET D0=INDA
SET X="OUTPUT TRANSFORM"
+67 SET X1="^INTHL7F(15205,5)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,40)
+68 SET @INV@("GT118")=X
KILL DXS,D0
+69 ;SET GT120 = #.15
+70 SET D0=INDA
SET Y(2)=$CHAR(59)_$PIECE($GET(^DD(9000003.1,.15,0)),U,3)
SET Y(1)=$SELECT($DATA(^AUPN3PPH(D0,0)):^(0),1:"")
SET X=$PIECE($PIECE(Y(2),$CHAR(59)_$PIECE(Y(1),U,15)_":",2),$CHAR(59))
+71 SET @INV@("GT120")=X
KILL DXS,D0
+72 IF 'INVS
DO MC^INHS
+73 KILL LINE
SET LINE=""
SET CP=0
SET L1="GT1"
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,1,L1,.CP)
SET L1=$GET(@INV@("GT11"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
+74 DO SETPIECE^INHU(.LINE,DELIM,2,L1,.CP)
+75 SET D0=INDA
SET X=@INV@("GT12")
SET Y(1)=$GET(X)
SET X=1
SET Y(2)=$GET(X)
SET X=250
SET X=$EXTRACT(Y(1),Y(2),X)
SET L1=X
+76 IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,3,L1,.CP)
SET L1=$GET(@INV@("GT13"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,4,L1,.CP)
+77 SET L1=$GET(@INV@("GT15.1"))
+78 SET D0=INDA
SET X="^"
SET L1=L1_X
+79 SET L1=L1_$GET(@INV@("GT15.3"))
+80 SET D0=INDA
SET X="^"
SET L1=L1_X
+81 SET L1=L1_$GET(@INV@("GT15.4"))
+82 SET D0=INDA
SET X="^"
SET L1=L1_X
+83 SET L1=L1_$GET(@INV@("GT15.5"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,6,L1,.CP)
+84 SET D0=INDA
SET X=@INV@("GT16")
SET Y(1)=$GET(X)
SET X=1
SET Y(2)=$GET(X)
SET X=250
SET X=$EXTRACT(Y(1),Y(2),X)
SET L1=X
+85 IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,7,L1,.CP)
SET L1=$GET(@INV@("GT18"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,9,L1,.CP)
+86 SET D0=INDA
SET X=@INV@("GT19")
SET Y(1)=$GET(X)
SET X=1
SET Y(2)=$GET(X)
SET X=1
SET X=$EXTRACT(Y(1),Y(2),X)
SET L1=X
+87 IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,10,L1,.CP)
SET L1=$GET(@INV@("GT113"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,14,L1,.CP)
+88 SET L1=$GET(@INV@("GT114"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,15,L1,.CP)
SET L1=$GET(@INV@("GT116"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
+89 DO SETPIECE^INHU(.LINE,DELIM,17,L1,.CP)
SET L1=$GET(@INV@("GT117.1"))
+90 SET D0=INDA
SET X="^"
SET L1=L1_X
+91 SET L1=L1_$GET(@INV@("GT117.3"))
+92 SET D0=INDA
SET X="^"
SET L1=L1_X
+93 SET L1=L1_$GET(@INV@("GT117.4"))
+94 SET D0=INDA
SET X="^"
SET L1=L1_X
+95 SET L1=L1_$GET(@INV@("GT117.5"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,18,L1,.CP)
SET L1=$GET(@INV@("GT118"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
+96 DO SETPIECE^INHU(.LINE,DELIM,19,L1,.CP)
+97 SET D0=INDA
SET X=@INV@("GT120")
SET Y(1)=$GET(X)
SET X=1
SET Y(2)=$GET(X)
SET X=2
SET X=$EXTRACT(Y(1),Y(2),X)
SET L1=X
+98 IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,21,L1,.CP)
+99 SET LCT=LCT+1
SET ^UTILITY("INH",$JOB,LCT)=LINE
IF $DATA(LINE)>9
MERGE ^UTILITY("INH",$JOB,LCT)=LINE
+100 QUIT
End DoDot:1
+101 SET INDA=INDA0
KILL INDA0
+102 SET INSETID=0
+103 IF '$DATA(INDA(9000003))
SET INI=0
FOR
SET INI=$ORDER(^AUPNMCR("B",INDA,INI))
IF 'INI
QUIT
SET INDA(9000003,INI)=""
+104 SET INDA0=INDA
SET INI(1)=0
FOR
SET INI(1)=$ORDER(INDA(9000003,INI(1)))
IF 'INI(1)
QUIT
SET INDA=$SELECT(INDA(9000003,INI(1)):INDA(9000003,INI(1)),1:INI(1))
Begin DoDot:1
+105 IF '$DATA(^AUPNMCR(INDA,0))
QUIT
+106 QUIT
End DoDot:1
+107 SET INDA=INDA0
KILL INDA0
+108 SET INSETID=0
+109 IF '$DATA(INDA(9000004))
SET INI=0
FOR
SET INI=$ORDER(^AUPNMCD("B",INDA,INI))
IF 'INI
QUIT
SET INDA(9000004,INI)=""
+110 SET INDA0=INDA
SET INI(1)=0
FOR
SET INI(1)=$ORDER(INDA(9000004,INI(1)))
IF 'INI(1)
QUIT
SET INDA=$SELECT(INDA(9000004,INI(1)):INDA(9000004,INI(1)),1:INI(1))
Begin DoDot:1
+111 IF '$DATA(^AUPNMCD(INDA,0))
QUIT
+112 QUIT
End DoDot:1
+113 SET INDA=INDA0
KILL INDA0
+114 SET INSETID=0
+115 IF '$DATA(INDA(9000003.1))
SET INI=0
FOR
SET INI=$ORDER(^AUPN3PPH("C",INDA,INI))
IF 'INI
QUIT
SET INDA(9000003.1,INI)=""
+116 SET INDA0=INDA
SET INI(1)=0
FOR
SET INI(1)=$ORDER(INDA(9000003.1,INI(1)))
IF 'INI(1)
QUIT
SET INDA=$SELECT(INDA(9000003.1,INI(1)):INDA(9000003.1,INI(1)),1:INI(1))
Begin DoDot:1
+117 IF '$DATA(^AUPN3PPH(INDA,0))
QUIT
+118 ;SET IN11 = INSGX\^INTHL7FT(11,3)\\4\"IN1"
+119 SET D0=INDA
SET X="IN1"
+120 SET X1="^INTHL7FT(11,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,4)
+121 SET @INV@("IN11")=X
KILL DXS,D0
+122 ;SET IN14 = INSGX\^INTHL7FT(32,3)\\250\#.03
+123 SET D0=INDA
SET Y(1)=$SELECT($DATA(^AUPN3PPH(D0,0)):^(0),1:"")
SET X=$PIECE($GET(^AUTNINS(+$PIECE(Y(1),U,3),0)),U)
+124 SET X1="^INTHL7FT(32,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,250)
+125 SET @INV@("IN14")=X
KILL DXS,D0
+126 ;SET IN18 = INSGX\^INTHL7FT(1,3)\\12\#.06
+127 SET D0=INDA
SET Y(1)=$SELECT($DATA(^AUPN3PPH(D0,0)):^(0),1:"")
SET X=$PIECE($GET(^AUTNEGRP(+$PIECE(Y(1),U,6),0)),U)
+128 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,12)
+129 SET @INV@("IN18")=X
KILL DXS,D0
+130 ;SET IN112 = INSGX\^INTHL7FT(4,3)\\8\#.17
+131 SET D0=INDA
SET Y(1)=$SELECT($DATA(^AUPN3PPH(D0,0)):^(0),1:"")
SET X=$PIECE(Y(1),U,17)
+132 SET X1="^INTHL7FT(4,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,8)
+133 SET @INV@("IN112")=X
KILL DXS,D0
+134 ;SET IN113 = INSGX\^INTHL7FT(4,3)\\8\#.18
+135 SET D0=INDA
SET Y(1)=$SELECT($DATA(^AUPN3PPH(D0,0)):^(0),1:"")
SET X=$PIECE(Y(1),U,18)
+136 SET X1="^INTHL7FT(4,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,8)
+137 SET @INV@("IN113")=X
KILL DXS,D0
+138 ;SET IN116 = INSGX\^INTHL7FT(35,3)\\250\#.01
+139 SET D0=INDA
SET Y(1)=$SELECT($DATA(^AUPN3PPH(D0,0)):^(0),1:"")
SET X=$PIECE(Y(1),U,1)
+140 SET X1="^INTHL7FT(35,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,250)
+141 SET @INV@("IN116")=X
KILL DXS,D0
+142 ;SET IN118 = INSGX\^INTHL7FT(6,3)\\26\#.19
+143 SET D0=INDA
SET Y(1)=$SELECT($DATA(^AUPN3PPH(D0,0)):^(0),1:"")
SET X=$PIECE(Y(1),U,19)
+144 SET X1="^INTHL7FT(6,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,26)
+145 SET @INV@("IN118")=X
KILL DXS,D0
+146 ;SET IN119.1 = $E(#.09,1,106)
+147 SET D0=INDA
SET Y(1)=$SELECT($DATA(^AUPN3PPH(D0,0)):^(0),1:"")
SET X=$PIECE(Y(1),U,9)
SET Y(2)=$GET(X)
SET X=1
SET Y(3)=$GET(X)
SET X=106
SET X=$EXTRACT(Y(2),Y(3),X)
+148 SET @INV@("IN119.1")=X
KILL DXS,D0
+149 ;SET IN119.2 = ""
+150 SET D0=INDA
SET X=""
+151 SET @INV@("IN119.2")=X
KILL DXS,D0
+152 ;SET IN119.3 = $E(#.11,1,106)
+153 SET D0=INDA
SET Y(1)=$SELECT($DATA(^AUPN3PPH(D0,0)):^(0),1:"")
SET X=$PIECE(Y(1),U,11)
SET Y(2)=$GET(X)
SET X=1
SET Y(3)=$GET(X)
SET X=106
SET X=$EXTRACT(Y(2),Y(3),X)
+154 SET @INV@("IN119.3")=X
KILL DXS,D0
+155 ;SET IN119.4 = INSGX\^INTHL7F(14732,5)\\106\#.12
+156 SET D0=INDA
SET Y(1)=$SELECT($DATA(^AUPN3PPH(D0,0)):^(0),1:"")
SET X=$PIECE($GET(^DIC(5,+$PIECE(Y(1),U,12),0)),U)
+157 SET X1="^INTHL7F(14732,5)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,106)
+158 SET @INV@("IN119.4")=X
KILL DXS,D0
+159 ;SET IN119.5 = $E(#.13,1,106)
+160 SET D0=INDA
SET Y(1)=$SELECT($DATA(^AUPN3PPH(D0,0)):^(0),1:"")
SET X=$PIECE(Y(1),U,13)
SET Y(2)=$GET(X)
SET X=1
SET Y(3)=$GET(X)
SET X=106
SET X=$EXTRACT(Y(2),Y(3),X)
+161 SET @INV@("IN119.5")=X
KILL DXS,D0
+162 ;SET IN143 = #.08
+163 SET D0=INDA
SET Y(2)=$CHAR(59)_$PIECE($GET(^DD(9000003.1,.08,0)),U,3)
SET Y(1)=$SELECT($DATA(^AUPN3PPH(D0,0)):^(0),1:"")
SET X=$PIECE($PIECE(Y(2),$CHAR(59)_$PIECE(Y(1),U,8)_":",2),$CHAR(59))
+164 SET @INV@("IN143")=X
KILL DXS,D0
+165 ;SET IN147 = #.05
+166 SET D0=INDA
SET Y(1)=$SELECT($DATA(^AUPN3PPH(D0,0)):^(0),1:"")
SET X=$PIECE($GET(^AUTTPIC(+$PIECE(Y(1),U,5),0)),U)
+167 SET @INV@("IN147")=X
KILL DXS,D0
+168 ;SET IN149 = #.04
+169 SET D0=INDA
SET Y(1)=$SELECT($DATA(^AUPN3PPH(D0,0)):^(0),1:"")
SET X=$PIECE(Y(1),U,4)
+170 SET @INV@("IN149")=X
KILL DXS,D0
+171 IF 'INVS
DO MC^INHS
+172 KILL LINE
SET LINE=""
SET CP=0
SET L1="IN1"
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,1,L1,.CP)
SET L1=$GET(@INV@("IN11"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
+173 DO SETPIECE^INHU(.LINE,DELIM,2,L1,.CP)
SET L1=$GET(@INV@("IN14"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,5,L1,.CP)
SET L1=$GET(@INV@("IN18"))
+174 IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,9,L1,.CP)
SET L1=$GET(@INV@("IN112"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,13,L1,.CP)
+175 SET L1=$GET(@INV@("IN113"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,14,L1,.CP)
SET L1=$GET(@INV@("IN116"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
+176 DO SETPIECE^INHU(.LINE,DELIM,17,L1,.CP)
SET L1=$GET(@INV@("IN118"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,19,L1,.CP)
SET L1=$GET(@INV@("IN119.1"))
+177 SET D0=INDA
SET X="^"
SET L1=L1_X
+178 SET L1=L1_$GET(@INV@("IN119.2"))
+179 SET D0=INDA
SET X="^"
SET L1=L1_X
+180 SET L1=L1_$GET(@INV@("IN119.3"))
+181 SET D0=INDA
SET X="^"
SET L1=L1_X
+182 SET L1=L1_$GET(@INV@("IN119.4"))
+183 SET D0=INDA
SET X="^"
SET L1=L1_X
+184 SET L1=L1_$GET(@INV@("IN119.5"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,20,L1,.CP)
+185 SET D0=INDA
SET X=@INV@("IN143")
SET Y(1)=$GET(X)
SET X=1
SET Y(2)=$GET(X)
SET X=1
SET X=$EXTRACT(Y(1),Y(2),X)
SET L1=X
+186 IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,44,L1,.CP)
+187 SET D0=INDA
SET X=@INV@("IN147")
SET Y(1)=$GET(X)
SET X=1
SET Y(2)=$GET(X)
SET X=20
SET X=$EXTRACT(Y(1),Y(2),X)
SET L1=X
+188 IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,48,L1,.CP)
+189 SET D0=INDA
SET X=@INV@("IN149")
SET Y(1)=$GET(X)
SET X=1
SET Y(2)=$GET(X)
SET X=250
SET X=$EXTRACT(Y(1),Y(2),X)
SET L1=X
+190 IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,50,L1,.CP)
+191 SET LCT=LCT+1
SET ^UTILITY("INH",$JOB,LCT)=LINE
IF $DATA(LINE)>9
MERGE ^UTILITY("INH",$JOB,LCT)=LINE
+192 QUIT
End DoDot:1
+193 SET INDA=INDA0
KILL INDA0
+194 SET INSETID=0
+195 IF '$DATA(INDA(9000005))
SET INI=0
FOR
SET INI=$ORDER(^AUPNRRE("B",INDA,INI))
IF 'INI
QUIT
SET INDA(9000005,INI)=""
+196 SET INDA0=INDA
SET INI(1)=0
FOR
SET INI(1)=$ORDER(INDA(9000005,INI(1)))
IF 'INI(1)
QUIT
SET INDA=$SELECT(INDA(9000005,INI(1)):INDA(9000005,INI(1)),1:INI(1))
Begin DoDot:1
+197 IF '$DATA(^AUPNRRE(INDA,0))
QUIT
+198 QUIT
End DoDot:1
+199 SET INDA=INDA0
KILL INDA0
+200 SET INSETID=0
+201 IF '$DATA(INDA(9000010.11))
SET INI=0
FOR
SET INI=$ORDER(^AUPNVIMM("AC",INDA,INI))
IF 'INI
QUIT
SET INDA(9000010.11,INI)=""
+202 SET INDA0=INDA
SET INI(1)=0
FOR
SET INI(1)=$ORDER(INDA(9000010.11,INI(1)))
IF 'INI(1)
QUIT
SET INDA=$SELECT(INDA(9000010.11,INI(1)):INDA(9000010.11,INI(1)),1:INI(1))
Begin DoDot:1
+203 IF '$DATA(^AUPNVIMM(INDA,0))
QUIT
+204 ;SET ORC1 = INSGX\^INTHL7FT(1,3)\\2\"RE"
+205 SET D0=INDA
SET X="RE"
+206 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,2)
+207 SET @INV@("ORC1")=X
KILL DXS,D0
+208 ;SET ORC3 = INSGX\^INTHL7F(17024,5)\\22\"OUTPUT TRANSFORM"
+209 SET D0=INDA
SET X="OUTPUT TRANSFORM"
+210 SET X1="^INTHL7F(17024,5)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,22)
+211 SET @INV@("ORC3")=X
KILL DXS,D0
+212 IF 'INVS
DO MC^INHS
+213 KILL LINE
SET LINE=""
SET CP=0
SET L1="ORC"
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,1,L1,.CP)
SET L1=$GET(@INV@("ORC1"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
+214 DO SETPIECE^INHU(.LINE,DELIM,2,L1,.CP)
SET L1=$GET(@INV@("ORC3"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,4,L1,.CP)
+215 SET LCT=LCT+1
SET ^UTILITY("INH",$JOB,LCT)=LINE
IF $DATA(LINE)>9
MERGE ^UTILITY("INH",$JOB,LCT)=LINE
+216 SET INSETID=0
+217 ;SET RXA1 = INSGX\^INTHL7FT(3,3)\\4\"0"
+218 SET D0=INDA
SET X="0"
+219 SET X1="^INTHL7FT(3,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,4)
+220 SET @INV@("RXA1")=X
KILL DXS,D0
+221 ;SET RXA2 = INSGX\^INTHL7FT(3,3)\\4\@RXA2
+222 SET D0=INDA
SET X=$GET(INA("RXA2",INI(1)))
+223 SET X1="^INTHL7FT(3,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,4)
+224 SET @INV@("RXA2")=X
KILL DXS,D0
+225 ;SET RXA3 = INSGX\^INTHL7FT(1,3)\\26\@RXA3
+226 SET D0=INDA
SET X=$GET(INA("RXA3",INI(1)))
+227 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,26)
+228 SET @INV@("RXA3")=X
KILL DXS,D0
+229 ;SET RXA4 = INSGX\^INTHL7FT(1,3)\\26\@RXA4
+230 SET D0=INDA
SET X=$GET(INA("RXA4",INI(1)))
+231 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,26)
+232 SET @INV@("RXA4")=X
KILL DXS,D0
+233 ;SET RXA5 = INSGX\^INTHL7FT(1,3)\\250\@RXA5
+234 SET D0=INDA
SET X=$GET(INA("RXA5",INI(1)))
+235 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,250)
+236 SET @INV@("RXA5")=X
KILL DXS,D0
+237 ;SET RXA6 = INSGX\^INTHL7FT(1,3)\\99\@RXA6
+238 SET D0=INDA
SET X=$GET(INA("RXA6",INI(1)))
+239 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,99)
+240 SET @INV@("RXA6")=X
KILL DXS,D0
+241 ;SET RXA7 = INSGX\^INTHL7FT(1,3)\\20\@RXA7
+242 SET D0=INDA
SET X=$GET(INA("RXA7",INI(1)))
+243 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,20)
+244 SET @INV@("RXA7")=X
KILL DXS,D0
+245 ;SET RXA9 = INSGX\^INTHL7FT(1,3)\\100\@RXA9
+246 SET D0=INDA
SET X=$GET(INA("RXA9",INI(1)))
+247 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,100)
+248 SET @INV@("RXA9")=X
KILL DXS,D0
9 DO EN^IS00029C
End DoDot:1
+1 GOTO L1^IS00029C