IS00011D ;Compiled from script 'Generated: HL IHS IZV04 OUT-O' on AUG 03, 2015
;Part 5
;Copyright 2015 SAIC
EN 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))
.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))
..;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\^INTHL7F(15185,5)\\250\"OUTPUT TRANSFORM"
..S D0=INDA S X="OUTPUT TRANSFORM"
..S X1="^INTHL7F(15185,5)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,250)
..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)))
9 .D EN^IS00011E
G I1^IS00011G
IS00011D ;Compiled from script 'Generated: HL IHS IZV04 OUT-O' on AUG 03, 2015
+1 ;Part 5
+2 ;Copyright 2015 SAIC
EN 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)
+1 SET @INV@("IN119.5")=X
KILL DXS,D0
+2 ;SET IN143 = #.08
+3 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))
+4 SET @INV@("IN143")=X
KILL DXS,D0
+5 ;SET IN147 = #.05
+6 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)
+7 SET @INV@("IN147")=X
KILL DXS,D0
+8 ;SET IN149 = #.04
+9 SET D0=INDA
SET Y(1)=$SELECT($DATA(^AUPN3PPH(D0,0)):^(0),1:"")
SET X=$PIECE(Y(1),U,4)
+10 SET @INV@("IN149")=X
KILL DXS,D0
+11 IF 'INVS
DO MC^INHS
+12 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=""
+13 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"))
+14 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)
+15 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)
+16 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=""
+17 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"))
+18 SET D0=INDA
SET X="^"
SET L1=L1_X
+19 SET L1=L1_$GET(@INV@("IN119.2"))
+20 SET D0=INDA
SET X="^"
SET L1=L1_X
+21 SET L1=L1_$GET(@INV@("IN119.3"))
+22 SET D0=INDA
SET X="^"
SET L1=L1_X
+23 SET L1=L1_$GET(@INV@("IN119.4"))
+24 SET D0=INDA
SET X="^"
SET L1=L1_X
+25 SET L1=L1_$GET(@INV@("IN119.5"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,20,L1,.CP)
+26 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
+27 IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,44,L1,.CP)
+28 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
+29 IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,48,L1,.CP)
+30 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
+31 IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,50,L1,.CP)
+32 SET LCT=LCT+1
SET ^UTILITY("INH",$JOB,LCT)=LINE
IF $DATA(LINE)>9
MERGE ^UTILITY("INH",$JOB,LCT)=LINE
+33 SET INSETID=0
+34 ;SET IN21 = INSGX\^INTHL7FT(1,3)\\1\@PV12
+35 SET D0=INDA
SET X=$GET(INA("PV12",INI(1)))
+36 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,1)
+37 SET @INV@("IN21")=X
KILL DXS,D0
+38 IF 'INVS
DO MC^INHS
+39 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=""
+40 DO SETPIECE^INHU(.LINE,DELIM,2,L1,.CP)
+41 SET LCT=LCT+1
SET ^UTILITY("INH",$JOB,LCT)=LINE
IF $DATA(LINE)>9
MERGE ^UTILITY("INH",$JOB,LCT)=LINE
+42 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 SET INSETID=0
+6 SET MULT=MULT+1
SET INDA(0)=INDA
SET INDA=0
FOR I=MULT:-1:1
SET INDA(I)=INDA(I-1)
+7 KILL INDA(0)
SET INDA=0
+8 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)=""
+9 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
+10 IF '$DATA(^AUPNRRE(INDA(1),11,INDA,0))
QUIT
+11 ;SET IN11 = INSGX\^INTHL7FT(11,3)\\4\"IN1"
+12 SET D0=INDA
SET X="IN1"
+13 SET X1="^INTHL7FT(11,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,4)
+14 SET @INV@("IN11")=X
KILL DXS,D0
+15 ;SET IN14 = INSGX\^INTHL7F(15178,5)\\250\"OUTPUT TRANSFORM"
+16 SET D0=INDA
SET X="OUTPUT TRANSFORM"
+17 SET X1="^INTHL7F(15178,5)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,250)
+18 SET @INV@("IN14")=X
KILL DXS,D0
+19 ;SET IN18 = INSGX\^INTHL7F(15179,5)\\12\"OUTPUT TRANSFORM"
+20 SET D0=INDA
SET X="OUTPUT TRANSFORM"
+21 SET X1="^INTHL7F(15179,5)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,12)
+22 SET @INV@("IN18")=X
KILL DXS,D0
+23 ;SET IN112 = INSGX\^INTHL7FT(4,3)\\8\#.01
+24 SET D0=INDA
SET Y(1)=$SELECT($DATA(^AUPNRRE(INDA(1),11,D0,0)):^(0),1:"")
SET X=$PIECE(Y(1),U,1)
+25 SET X1="^INTHL7FT(4,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,8)
+26 SET @INV@("IN112")=X
KILL DXS,D0
+27 ;SET IN113 = INSGX\^INTHL7FT(4,3)\\8\#.02
+28 SET D0=INDA
SET Y(1)=$SELECT($DATA(^AUPNRRE(INDA(1),11,D0,0)):^(0),1:"")
SET X=$PIECE(Y(1),U,2)
+29 SET X1="^INTHL7FT(4,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,8)
+30 SET @INV@("IN113")=X
KILL DXS,D0
+31 ;SET IN143 = INSGX\^INTHL7F(15184,5)\\1\"OUTPUT TRANSFORM"
+32 SET D0=INDA
SET X="OUTPUT TRANSFORM"
+33 SET X1="^INTHL7F(15184,5)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,1)
+34 SET @INV@("IN143")=X
KILL DXS,D0
+35 ;SET IN147 = #.03
+36 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))
+37 SET @INV@("IN147")=X
KILL DXS,D0
+38 ;SET IN149 = INSGX\^INTHL7F(15185,5)\\250\"OUTPUT TRANSFORM"
+39 SET D0=INDA
SET X="OUTPUT TRANSFORM"
+40 SET X1="^INTHL7F(15185,5)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,250)
+41 SET @INV@("IN149")=X
KILL DXS,D0
+42 IF 'INVS
DO MC^INHS
+43 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=""
+44 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"))
+45 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)
+46 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=""
+47 DO SETPIECE^INHU(.LINE,DELIM,44,L1,.CP)
+48 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
+49 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)
+50 SET LCT=LCT+1
SET ^UTILITY("INH",$JOB,LCT)=LINE
IF $DATA(LINE)>9
MERGE ^UTILITY("INH",$JOB,LCT)=LINE
+51 QUIT
End DoDot:2
+52 FOR I=1:1:MULT
SET INDA(I-1)=INDA(I)
+53 SET INDA=INDA(0)
KILL INDA(0)
SET MULT=MULT-1
+54 QUIT
End DoDot:1
+55 SET INDA=INDA0
KILL INDA0
+56 SET INSETID=0
+57 IF '$DATA(INDA(9000010.11))
SET INI=0
FOR
SET INI=$ORDER(^AUPNVIMM("AC",INDA,INI))
IF 'INI
QUIT
SET INDA(9000010.11,INI)=""
+58 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
+59 IF '$DATA(^AUPNVIMM(INDA,0))
QUIT
+60 ;SCREEN=I $$SCRN^BYIMIMM6(.INDA)
+61 IF $DATA(^AUPNVIMM(INDA,0))
XECUTE "I $$SCRN^BYIMIMM6(.INDA)"
IF '$TEST
QUIT
+62 DO ORC^BYIMSEGS
+63 ;SET ORC1 = INSGX\^INTHL7FT(1,3)\\2\@ORC1
+64 SET D0=INDA
SET X=$GET(INA("ORC1",INI(1)))
+65 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,2)
+66 SET @INV@("ORC1")=X
KILL DXS,D0
+67 ;SET ORC2 = INSGX\^INTHL7FT(1,3)\\50\@ORC2
+68 SET D0=INDA
SET X=$GET(INA("ORC2",INI(1)))
+69 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,50)
+70 SET @INV@("ORC2")=X
KILL DXS,D0
+71 ;SET ORC3 = INSGX\^INTHL7FT(1,3)\\48\@ORC3
+72 SET D0=INDA
SET X=$GET(INA("ORC3",INI(1)))
9 DO EN^IS00011E
End DoDot:1
+1 GOTO I1^IS00011G