IS00011B ;Compiled from script 'Generated: HL IHS IZV04 OUT-O' on AUG 15, 2018
;Part 3
;Copyright 2018 SAIC
EN 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@("IN12")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,3,L1,.CP) S L1=$G(@INV@("IN13"))
S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,4,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
SET INSETID=0
;SET IN21 = INSGX\^INTHL7FT(1,3)\\1\@PV12
S D0=INDA S X=$G(INA("PV12",INI(1)))
S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,1)
S @INV@("IN21")=X K DXS,D0
D:'INVS MC^INHS
K LINE S LINE="",CP=0 S L1="IN2" S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,1,L1,.CP) S L1=$G(@INV@("IN21")) S:$TR(L1,$G(SUBDELIM))="" L1=""
D SETPIECE^INHU(.LINE,DELIM,2,L1,.CP)
S LCT=LCT+1,^UTILITY("INH",$J,LCT)=LINE I $D(LINE)>9 M ^UTILITY("INH",$J,LCT)=LINE
Q
G1 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))
.D IN1RRE^BYIMSEG1
.SET INSETID=0
.S MULT=MULT+1,INDA(0)=INDA,INDA=0 F I=MULT:-1:1 S INDA(I)=INDA(I-1)
.K INDA(0) S INDA=0
.I '$D(INDA(9000005.11)) S INI=0 F S INI=$O(^AUPNRRE(INDA(1),11,INI)) Q:'INI S INDA(9000005.11,INI)=""
.S INI(2)=0 F S INI(2)=$O(INDA(9000005.11,INI(2))) Q:'INI(2) S INDA=$S(INDA(9000005.11,INI(2)):INDA(9000005.11,INI(2)),1:INI(2)) D
..Q:'$D(^AUPNRRE(INDA(1),11,INDA,0))
..D IN1RRE^BYIMSEG1
..;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\^INTHL7F(15178,5)\\250\"OUTPUT TRANSFORM"
..S D0=INDA S X="OUTPUT TRANSFORM"
..S X1="^INTHL7F(15178,5)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,250)
..S @INV@("IN14")=X K DXS,D0
..;SET IN18 = INSGX\^INTHL7F(15179,5)\\12\"OUTPUT TRANSFORM"
..S D0=INDA S X="OUTPUT TRANSFORM"
..S X1="^INTHL7F(15179,5)" 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\#.01
..S D0=INDA S Y(1)=$S($D(^AUPNRRE(INDA(1),11,D0,0)):^(0),1:"") S X=$P(Y(1),U,1)
..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\#.02
..S D0=INDA S Y(1)=$S($D(^AUPNRRE(INDA(1),11,D0,0)):^(0),1:"") S X=$P(Y(1),U,2)
..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 IN143 = INSGX\^INTHL7F(15184,5)\\1\"OUTPUT TRANSFORM"
..S D0=INDA S X="OUTPUT TRANSFORM"
..S X1="^INTHL7F(15184,5)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,1)
..S @INV@("IN143")=X K DXS,D0
..;SET IN147 = #.03
..S D0=INDA S Y(2)=$C(59)_$P($G(^DD(9000005.11,.03,0)),U,3),Y(1)=$S($D(^AUPNRRE(INDA(1),11,D0,0)):^(0),1:"") S X=$P($P(Y(2),$C(59)_$P(Y(1),U,3)_":",2),$C(59))
..S @INV@("IN147")=X K DXS,D0
..;SET IN149 = INSGX\^INTHL7FT(1,3)\\99\@IN1RRE49
..S D0=INDA S X=$G(INA("IN1RRE49",INI(1),INI(2)))
..S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,99)
..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@("IN143")) 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=3,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 L1=$G(@INV@("IN149")) 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
.F I=1:1:MULT S INDA(I-1)=INDA(I)
.S INDA=INDA(0) K INDA(0) S MULT=MULT-1
.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))
.;SCREEN=I $$SCRN^BYIMIMM6(.INDA)
.I $D(^AUPNVIMM(INDA,0)) X "I $$SCRN^BYIMIMM6(.INDA)" E Q
.D ORC^BYIMSEGS
.;SET ORC1 = INSGX\^INTHL7FT(1,3)\\2\@ORC1
.S D0=INDA S X=$G(INA("ORC1",INI(1)))
.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 ORC2 = INSGX\^INTHL7FT(1,3)\\50\@ORC2
.S D0=INDA S X=$G(INA("ORC2",INI(1)))
.S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,50)
.S @INV@("ORC2")=X K DXS,D0
.;SET ORC3 = INSGX\^INTHL7FT(1,3)\\48\@ORC3
.S D0=INDA S X=$G(INA("ORC3",INI(1)))
.S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,48)
.S @INV@("ORC3")=X K DXS,D0
.;SET ORC5 = INSGX\^INTHL7FT(1,3)\\2\@ORC5
.S D0=INDA S X=$G(INA("ORC5",INI(1)))
.S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,2)
.S @INV@("ORC5")=X K DXS,D0
.;SET ORC10 = @ORC10
.S D0=INDA S X=$G(INA("ORC10",INI(1)))
.S @INV@("ORC10")=X K DXS,D0
.;SET ORC12 = @ORC12
.S D0=INDA S X=$G(INA("ORC12",INI(1)))
.S @INV@("ORC12")=X K DXS,D0
.;SET ORC17 = INSGX\^INTHL7FT(1,3)\\250\@ORC17
.S D0=INDA S X=$G(INA("ORC17",INI(1)))
.S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,250)
.S @INV@("ORC17")=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@("ORC2")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,3,L1,.CP) S L1=$G(@INV@("ORC3"))
.S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,4,L1,.CP) S L1=$G(@INV@("ORC5")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,6,L1,.CP)
.S D0=INDA S X=@INV@("ORC10"),Y(1)=$G(X) S X=1,Y(2)=$G(X) S X=99,X=$E(Y(1),Y(2),X) S L1=X
.S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,11,L1,.CP)
.S D0=INDA S X=@INV@("ORC12"),Y(1)=$G(X) S X=1,Y(2)=$G(X) S X=99,X=$E(Y(1),Y(2),X) S L1=X
.S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,13,L1,.CP) S L1=$G(@INV@("ORC17")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,18,L1,.CP)
.S LCT=LCT+1,^UTILITY("INH",$J,LCT)=LINE I $D(LINE)>9 M ^UTILITY("INH",$J,LCT)=LINE
.SET INSETID=0
.D RXA^BYIMSEGS
.;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
.;SET RXA10 = INSGX\^INTHL7F(17035,5)\\99\@RXA10
.S D0=INDA S X=$G(INA("RXA10",INI(1)))
.S X1="^INTHL7F(17035,5)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,99)
.S @INV@("RXA10")=X K DXS,D0
.;SET RXA11 = INSGX\^INTHL7FT(1,3)\\250\@RXA11
.S D0=INDA S X=$G(INA("RXA11",INI(1)))
.S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,250)
.S @INV@("RXA11")=X K DXS,D0
.;SET RXA15 = INSGX\^INTHL7FT(1,3)\\20\@RXA15
.S D0=INDA S X=$G(INA("RXA15",INI(1)))
.S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,20)
.S @INV@("RXA15")=X K DXS,D0
.;SET RXA16 = INSGX\^INTHL7FT(1,3)\\8\@RXA16
.S D0=INDA S X=$G(INA("RXA16",INI(1)))
.S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,8)
.S @INV@("RXA16")=X K DXS,D0
.;SET RXA17 = INSGX\^INTHL7FT(1,3)\\250\@RXA17
.S D0=INDA S X=$G(INA("RXA17",INI(1)))
.S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,250)
.S @INV@("RXA17")=X K DXS,D0
.;SET RXA20 = INSGX\^INTHL7FT(1,3)\\10\"CP"
.S D0=INDA S X="CP"
.S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,10)
.S @INV@("RXA20")=X K DXS,D0
.;SET RXA21 = INSGX\^INTHL7FT(1,3)\\10\@RXA21
.S D0=INDA S X=$G(INA("RXA21",INI(1)))
.S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,10)
.S @INV@("RXA21")=X K DXS,D0
.;SET RXA22 = INSGX\^INTHL7FT(1,3)\\50\@RXA22
.S D0=INDA S X=$G(INA("RXA22",INI(1)))
.S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,50)
.S @INV@("RXA22")=X K DXS,D0
.D:'INVS MC^INHS
.K LINE S LINE="",CP=0 S L1="RXA" S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,1,L1,.CP) S L1=$G(@INV@("RXA1")) S:$TR(L1,$G(SUBDELIM))="" L1=""
.D SETPIECE^INHU(.LINE,DELIM,2,L1,.CP) S L1=$G(@INV@("RXA2")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,3,L1,.CP) S L1=$G(@INV@("RXA3"))
.S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,4,L1,.CP) S L1=$G(@INV@("RXA4")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,5,L1,.CP)
.S L1=$G(@INV@("RXA5")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,6,L1,.CP) S L1=$G(@INV@("RXA6")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,7,L1,.CP)
.S L1=$G(@INV@("RXA7")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,8,L1,.CP) S L1=$G(@INV@("RXA9")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,10,L1,.CP)
.S L1=$G(@INV@("RXA10")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,11,L1,.CP) S L1=$G(@INV@("RXA11")) S:$TR(L1,$G(SUBDELIM))="" L1=""
.D SETPIECE^INHU(.LINE,DELIM,12,L1,.CP) S L1=$G(@INV@("RXA15")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,16,L1,.CP) S L1=$G(@INV@("RXA16"))
.S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,17,L1,.CP) S L1=$G(@INV@("RXA17")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,18,L1,.CP)
.S L1=$G(@INV@("RXA20")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,21,L1,.CP) S L1=$G(@INV@("RXA21")) S:$TR(L1,$G(SUBDELIM))="" L1=""
.D SETPIECE^INHU(.LINE,DELIM,22,L1,.CP) S L1=$G(@INV@("RXA22")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,23,L1,.CP)
.S LCT=LCT+1,^UTILITY("INH",$J,LCT)=LINE I $D(LINE)>9 M ^UTILITY("INH",$J,LCT)=LINE
.SET INSETID=0
9 .D EN^IS00011C
G I1^IS00011C
IS00011B ;Compiled from script 'Generated: HL IHS IZV04 OUT-O' on AUG 15, 2018
+1 ;Part 3
+2 ;Copyright 2018 SAIC
EN 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)
+1 SET @INV@("IN119.1")=X
KILL DXS,D0
+2 ;SET IN119.2 = ""
+3 SET D0=INDA
SET X=""
+4 SET @INV@("IN119.2")=X
KILL DXS,D0
+5 ;SET IN119.3 = $E(#.11,1,106)
+6 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)
+7 SET @INV@("IN119.3")=X
KILL DXS,D0
+8 ;SET IN119.4 = INSGX\^INTHL7F(14732,5)\\106\#.12
+9 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)
+10 SET X1="^INTHL7F(14732,5)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,106)
+11 SET @INV@("IN119.4")=X
KILL DXS,D0
+12 ;SET IN119.5 = $E(#.13,1,106)
+13 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)
+14 SET @INV@("IN119.5")=X
KILL DXS,D0
+15 ;SET IN143 = #.08
+16 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))
+17 SET @INV@("IN143")=X
KILL DXS,D0
+18 ;SET IN147 = #.05
+19 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)
+20 SET @INV@("IN147")=X
KILL DXS,D0
+21 ;SET IN149 = #.04
+22 SET D0=INDA
SET Y(1)=$SELECT($DATA(^AUPN3PPH(D0,0)):^(0),1:"")
SET X=$PIECE(Y(1),U,4)
+23 SET @INV@("IN149")=X
KILL DXS,D0
+24 IF 'INVS
DO MC^INHS
+25 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=""
+26 DO SETPIECE^INHU(.LINE,DELIM,2,L1,.CP)
SET L1=$GET(@INV@("IN12"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,3,L1,.CP)
SET L1=$GET(@INV@("IN13"))
+27 IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,4,L1,.CP)
SET L1=$GET(@INV@("IN14"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,5,L1,.CP)
+28 SET L1=$GET(@INV@("IN18"))
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)
+29 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=""
+30 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"))
+31 SET D0=INDA
SET X="^"
SET L1=L1_X
+32 SET L1=L1_$GET(@INV@("IN119.2"))
+33 SET D0=INDA
SET X="^"
SET L1=L1_X
+34 SET L1=L1_$GET(@INV@("IN119.3"))
+35 SET D0=INDA
SET X="^"
SET L1=L1_X
+36 SET L1=L1_$GET(@INV@("IN119.4"))
+37 SET D0=INDA
SET X="^"
SET L1=L1_X
+38 SET L1=L1_$GET(@INV@("IN119.5"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,20,L1,.CP)
+39 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
+40 IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,44,L1,.CP)
+41 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
+42 IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,48,L1,.CP)
+43 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
+44 IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,50,L1,.CP)
+45 SET LCT=LCT+1
SET ^UTILITY("INH",$JOB,LCT)=LINE
IF $DATA(LINE)>9
MERGE ^UTILITY("INH",$JOB,LCT)=LINE
+46 SET INSETID=0
+47 ;SET IN21 = INSGX\^INTHL7FT(1,3)\\1\@PV12
+48 SET D0=INDA
SET X=$GET(INA("PV12",INI(1)))
+49 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,1)
+50 SET @INV@("IN21")=X
KILL DXS,D0
+51 IF 'INVS
DO MC^INHS
+52 KILL LINE
SET LINE=""
SET CP=0
SET L1="IN2"
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,1,L1,.CP)
SET L1=$GET(@INV@("IN21"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
+53 DO SETPIECE^INHU(.LINE,DELIM,2,L1,.CP)
+54 SET LCT=LCT+1
SET ^UTILITY("INH",$JOB,LCT)=LINE
IF $DATA(LINE)>9
MERGE ^UTILITY("INH",$JOB,LCT)=LINE
+55 QUIT
G1 SET INDA=INDA0
KILL INDA0
+1 SET INSETID=0
+2 IF '$DATA(INDA(9000005))
SET INI=0
FOR
SET INI=$ORDER(^AUPNRRE("B",INDA,INI))
IF 'INI
QUIT
SET INDA(9000005,INI)=""
+3 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
+4 IF '$DATA(^AUPNRRE(INDA,0))
QUIT
+5 DO IN1RRE^BYIMSEG1
+6 SET INSETID=0
+7 SET MULT=MULT+1
SET INDA(0)=INDA
SET INDA=0
FOR I=MULT:-1:1
SET INDA(I)=INDA(I-1)
+8 KILL INDA(0)
SET INDA=0
+9 IF '$DATA(INDA(9000005.11))
SET INI=0
FOR
SET INI=$ORDER(^AUPNRRE(INDA(1),11,INI))
IF 'INI
QUIT
SET INDA(9000005.11,INI)=""
+10 SET INI(2)=0
FOR
SET INI(2)=$ORDER(INDA(9000005.11,INI(2)))
IF 'INI(2)
QUIT
SET INDA=$SELECT(INDA(9000005.11,INI(2)):INDA(9000005.11,INI(2)),1:INI(2))
Begin DoDot:2
+11 IF '$DATA(^AUPNRRE(INDA(1),11,INDA,0))
QUIT
+12 DO IN1RRE^BYIMSEG1
+13 ;SET IN11 = INSGX\^INTHL7FT(11,3)\\4\"IN1"
+14 SET D0=INDA
SET X="IN1"
+15 SET X1="^INTHL7FT(11,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,4)
+16 SET @INV@("IN11")=X
KILL DXS,D0
+17 ;SET IN14 = INSGX\^INTHL7F(15178,5)\\250\"OUTPUT TRANSFORM"
+18 SET D0=INDA
SET X="OUTPUT TRANSFORM"
+19 SET X1="^INTHL7F(15178,5)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,250)
+20 SET @INV@("IN14")=X
KILL DXS,D0
+21 ;SET IN18 = INSGX\^INTHL7F(15179,5)\\12\"OUTPUT TRANSFORM"
+22 SET D0=INDA
SET X="OUTPUT TRANSFORM"
+23 SET X1="^INTHL7F(15179,5)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,12)
+24 SET @INV@("IN18")=X
KILL DXS,D0
+25 ;SET IN112 = INSGX\^INTHL7FT(4,3)\\8\#.01
+26 SET D0=INDA
SET Y(1)=$SELECT($DATA(^AUPNRRE(INDA(1),11,D0,0)):^(0),1:"")
SET X=$PIECE(Y(1),U,1)
+27 SET X1="^INTHL7FT(4,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,8)
+28 SET @INV@("IN112")=X
KILL DXS,D0
+29 ;SET IN113 = INSGX\^INTHL7FT(4,3)\\8\#.02
+30 SET D0=INDA
SET Y(1)=$SELECT($DATA(^AUPNRRE(INDA(1),11,D0,0)):^(0),1:"")
SET X=$PIECE(Y(1),U,2)
+31 SET X1="^INTHL7FT(4,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,8)
+32 SET @INV@("IN113")=X
KILL DXS,D0
+33 ;SET IN143 = INSGX\^INTHL7F(15184,5)\\1\"OUTPUT TRANSFORM"
+34 SET D0=INDA
SET X="OUTPUT TRANSFORM"
+35 SET X1="^INTHL7F(15184,5)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,1)
+36 SET @INV@("IN143")=X
KILL DXS,D0
+37 ;SET IN147 = #.03
+38 SET D0=INDA
SET Y(2)=$CHAR(59)_$PIECE($GET(^DD(9000005.11,.03,0)),U,3)
SET Y(1)=$SELECT($DATA(^AUPNRRE(INDA(1),11,D0,0)):^(0),1:"")
SET X=$PIECE($PIECE(Y(2),$CHAR(59)_$PIECE(Y(1),U,3)_":",2),$CHAR(59))
+39 SET @INV@("IN147")=X
KILL DXS,D0
+40 ;SET IN149 = INSGX\^INTHL7FT(1,3)\\99\@IN1RRE49
+41 SET D0=INDA
SET X=$GET(INA("IN1RRE49",INI(1),INI(2)))
+42 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,99)
+43 SET @INV@("IN149")=X
KILL DXS,D0
+44 IF 'INVS
DO MC^INHS
+45 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=""
+46 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"))
+47 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)
+48 SET L1=$GET(@INV@("IN113"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,14,L1,.CP)
SET L1=$GET(@INV@("IN143"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
+49 DO SETPIECE^INHU(.LINE,DELIM,44,L1,.CP)
+50 SET D0=INDA
SET X=@INV@("IN147")
SET Y(1)=$GET(X)
SET X=1
SET Y(2)=$GET(X)
SET X=3
SET X=$EXTRACT(Y(1),Y(2),X)
SET L1=X
+51 IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,48,L1,.CP)
SET L1=$GET(@INV@("IN149"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,50,L1,.CP)
+52 SET LCT=LCT+1
SET ^UTILITY("INH",$JOB,LCT)=LINE
IF $DATA(LINE)>9
MERGE ^UTILITY("INH",$JOB,LCT)=LINE
+53 QUIT
End DoDot:2
+54 FOR I=1:1:MULT
SET INDA(I-1)=INDA(I)
+55 SET INDA=INDA(0)
KILL INDA(0)
SET MULT=MULT-1
+56 QUIT
End DoDot:1
+57 SET INDA=INDA0
KILL INDA0
+58 SET INSETID=0
+59 IF '$DATA(INDA(9000010.11))
SET INI=0
FOR
SET INI=$ORDER(^AUPNVIMM("AC",INDA,INI))
IF 'INI
QUIT
SET INDA(9000010.11,INI)=""
+60 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
+61 IF '$DATA(^AUPNVIMM(INDA,0))
QUIT
+62 ;SCREEN=I $$SCRN^BYIMIMM6(.INDA)
+63 IF $DATA(^AUPNVIMM(INDA,0))
XECUTE "I $$SCRN^BYIMIMM6(.INDA)"
IF '$TEST
QUIT
+64 DO ORC^BYIMSEGS
+65 ;SET ORC1 = INSGX\^INTHL7FT(1,3)\\2\@ORC1
+66 SET D0=INDA
SET X=$GET(INA("ORC1",INI(1)))
+67 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,2)
+68 SET @INV@("ORC1")=X
KILL DXS,D0
+69 ;SET ORC2 = INSGX\^INTHL7FT(1,3)\\50\@ORC2
+70 SET D0=INDA
SET X=$GET(INA("ORC2",INI(1)))
+71 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,50)
+72 SET @INV@("ORC2")=X
KILL DXS,D0
+73 ;SET ORC3 = INSGX\^INTHL7FT(1,3)\\48\@ORC3
+74 SET D0=INDA
SET X=$GET(INA("ORC3",INI(1)))
+75 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,48)
+76 SET @INV@("ORC3")=X
KILL DXS,D0
+77 ;SET ORC5 = INSGX\^INTHL7FT(1,3)\\2\@ORC5
+78 SET D0=INDA
SET X=$GET(INA("ORC5",INI(1)))
+79 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,2)
+80 SET @INV@("ORC5")=X
KILL DXS,D0
+81 ;SET ORC10 = @ORC10
+82 SET D0=INDA
SET X=$GET(INA("ORC10",INI(1)))
+83 SET @INV@("ORC10")=X
KILL DXS,D0
+84 ;SET ORC12 = @ORC12
+85 SET D0=INDA
SET X=$GET(INA("ORC12",INI(1)))
+86 SET @INV@("ORC12")=X
KILL DXS,D0
+87 ;SET ORC17 = INSGX\^INTHL7FT(1,3)\\250\@ORC17
+88 SET D0=INDA
SET X=$GET(INA("ORC17",INI(1)))
+89 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,250)
+90 SET @INV@("ORC17")=X
KILL DXS,D0
+91 IF 'INVS
DO MC^INHS
+92 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=""
+93 DO SETPIECE^INHU(.LINE,DELIM,2,L1,.CP)
SET L1=$GET(@INV@("ORC2"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,3,L1,.CP)
SET L1=$GET(@INV@("ORC3"))
+94 IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,4,L1,.CP)
SET L1=$GET(@INV@("ORC5"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,6,L1,.CP)
+95 SET D0=INDA
SET X=@INV@("ORC10")
SET Y(1)=$GET(X)
SET X=1
SET Y(2)=$GET(X)
SET X=99
SET X=$EXTRACT(Y(1),Y(2),X)
SET L1=X
+96 IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,11,L1,.CP)
+97 SET D0=INDA
SET X=@INV@("ORC12")
SET Y(1)=$GET(X)
SET X=1
SET Y(2)=$GET(X)
SET X=99
SET X=$EXTRACT(Y(1),Y(2),X)
SET L1=X
+98 IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,13,L1,.CP)
SET L1=$GET(@INV@("ORC17"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,18,L1,.CP)
+99 SET LCT=LCT+1
SET ^UTILITY("INH",$JOB,LCT)=LINE
IF $DATA(LINE)>9
MERGE ^UTILITY("INH",$JOB,LCT)=LINE
+100 SET INSETID=0
+101 DO RXA^BYIMSEGS
+102 ;SET RXA1 = INSGX\^INTHL7FT(3,3)\\4\"0"
+103 SET D0=INDA
SET X="0"
+104 SET X1="^INTHL7FT(3,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,4)
+105 SET @INV@("RXA1")=X
KILL DXS,D0
+106 ;SET RXA2 = INSGX\^INTHL7FT(3,3)\\4\@RXA2
+107 SET D0=INDA
SET X=$GET(INA("RXA2",INI(1)))
+108 SET X1="^INTHL7FT(3,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,4)
+109 SET @INV@("RXA2")=X
KILL DXS,D0
+110 ;SET RXA3 = INSGX\^INTHL7FT(1,3)\\26\@RXA3
+111 SET D0=INDA
SET X=$GET(INA("RXA3",INI(1)))
+112 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,26)
+113 SET @INV@("RXA3")=X
KILL DXS,D0
+114 ;SET RXA4 = INSGX\^INTHL7FT(1,3)\\26\@RXA4
+115 SET D0=INDA
SET X=$GET(INA("RXA4",INI(1)))
+116 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,26)
+117 SET @INV@("RXA4")=X
KILL DXS,D0
+118 ;SET RXA5 = INSGX\^INTHL7FT(1,3)\\250\@RXA5
+119 SET D0=INDA
SET X=$GET(INA("RXA5",INI(1)))
+120 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,250)
+121 SET @INV@("RXA5")=X
KILL DXS,D0
+122 ;SET RXA6 = INSGX\^INTHL7FT(1,3)\\99\@RXA6
+123 SET D0=INDA
SET X=$GET(INA("RXA6",INI(1)))
+124 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,99)
+125 SET @INV@("RXA6")=X
KILL DXS,D0
+126 ;SET RXA7 = INSGX\^INTHL7FT(1,3)\\20\@RXA7
+127 SET D0=INDA
SET X=$GET(INA("RXA7",INI(1)))
+128 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,20)
+129 SET @INV@("RXA7")=X
KILL DXS,D0
+130 ;SET RXA9 = INSGX\^INTHL7FT(1,3)\\100\@RXA9
+131 SET D0=INDA
SET X=$GET(INA("RXA9",INI(1)))
+132 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,100)
+133 SET @INV@("RXA9")=X
KILL DXS,D0
+134 ;SET RXA10 = INSGX\^INTHL7F(17035,5)\\99\@RXA10
+135 SET D0=INDA
SET X=$GET(INA("RXA10",INI(1)))
+136 SET X1="^INTHL7F(17035,5)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,99)
+137 SET @INV@("RXA10")=X
KILL DXS,D0
+138 ;SET RXA11 = INSGX\^INTHL7FT(1,3)\\250\@RXA11
+139 SET D0=INDA
SET X=$GET(INA("RXA11",INI(1)))
+140 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,250)
+141 SET @INV@("RXA11")=X
KILL DXS,D0
+142 ;SET RXA15 = INSGX\^INTHL7FT(1,3)\\20\@RXA15
+143 SET D0=INDA
SET X=$GET(INA("RXA15",INI(1)))
+144 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,20)
+145 SET @INV@("RXA15")=X
KILL DXS,D0
+146 ;SET RXA16 = INSGX\^INTHL7FT(1,3)\\8\@RXA16
+147 SET D0=INDA
SET X=$GET(INA("RXA16",INI(1)))
+148 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,8)
+149 SET @INV@("RXA16")=X
KILL DXS,D0
+150 ;SET RXA17 = INSGX\^INTHL7FT(1,3)\\250\@RXA17
+151 SET D0=INDA
SET X=$GET(INA("RXA17",INI(1)))
+152 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,250)
+153 SET @INV@("RXA17")=X
KILL DXS,D0
+154 ;SET RXA20 = INSGX\^INTHL7FT(1,3)\\10\"CP"
+155 SET D0=INDA
SET X="CP"
+156 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,10)
+157 SET @INV@("RXA20")=X
KILL DXS,D0
+158 ;SET RXA21 = INSGX\^INTHL7FT(1,3)\\10\@RXA21
+159 SET D0=INDA
SET X=$GET(INA("RXA21",INI(1)))
+160 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,10)
+161 SET @INV@("RXA21")=X
KILL DXS,D0
+162 ;SET RXA22 = INSGX\^INTHL7FT(1,3)\\50\@RXA22
+163 SET D0=INDA
SET X=$GET(INA("RXA22",INI(1)))
+164 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,50)
+165 SET @INV@("RXA22")=X
KILL DXS,D0
+166 IF 'INVS
DO MC^INHS
+167 KILL LINE
SET LINE=""
SET CP=0
SET L1="RXA"
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,1,L1,.CP)
SET L1=$GET(@INV@("RXA1"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
+168 DO SETPIECE^INHU(.LINE,DELIM,2,L1,.CP)
SET L1=$GET(@INV@("RXA2"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,3,L1,.CP)
SET L1=$GET(@INV@("RXA3"))
+169 IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,4,L1,.CP)
SET L1=$GET(@INV@("RXA4"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,5,L1,.CP)
+170 SET L1=$GET(@INV@("RXA5"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,6,L1,.CP)
SET L1=$GET(@INV@("RXA6"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,7,L1,.CP)
+171 SET L1=$GET(@INV@("RXA7"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,8,L1,.CP)
SET L1=$GET(@INV@("RXA9"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,10,L1,.CP)
+172 SET L1=$GET(@INV@("RXA10"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,11,L1,.CP)
SET L1=$GET(@INV@("RXA11"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
+173 DO SETPIECE^INHU(.LINE,DELIM,12,L1,.CP)
SET L1=$GET(@INV@("RXA15"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,16,L1,.CP)
SET L1=$GET(@INV@("RXA16"))
+174 IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,17,L1,.CP)
SET L1=$GET(@INV@("RXA17"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,18,L1,.CP)
+175 SET L1=$GET(@INV@("RXA20"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,21,L1,.CP)
SET L1=$GET(@INV@("RXA21"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
+176 DO SETPIECE^INHU(.LINE,DELIM,22,L1,.CP)
SET L1=$GET(@INV@("RXA22"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,23,L1,.CP)
+177 SET LCT=LCT+1
SET ^UTILITY("INH",$JOB,LCT)=LINE
IF $DATA(LINE)>9
MERGE ^UTILITY("INH",$JOB,LCT)=LINE
+178 SET INSETID=0
9 DO EN^IS00011C
End DoDot:1
+1 GOTO I1^IS00011C