IS00006E ;Compiled from script 'Generated: HL IHS DW1 A31-O' on SEP 08, 2008
;Part 6
;Copyright 2008 SAIC
EN S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,35,L1,.CP) S L1=$G(@INV@("IN135")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,36,L1,.CP)
S L1=$G(@INV@("IN136")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,37,L1,.CP) S L1=$G(@INV@("IN137")) S:$TR(L1,$G(SUBDELIM))="" L1=""
D SETPIECE^INHU(.LINE,DELIM,38,L1,.CP) S L1=$G(@INV@("IN138")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,39,L1,.CP) S L1=$G(@INV@("IN139"))
S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,40,L1,.CP) S L1=$G(@INV@("IN140")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,41,L1,.CP)
S L1=$G(@INV@("IN141")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,42,L1,.CP) S L1=$G(@INV@("IN142")) S:$TR(L1,$G(SUBDELIM))="" L1=""
D SETPIECE^INHU(.LINE,DELIM,43,L1,.CP) S L1=$G(@INV@("IN143")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,44,L1,.CP) S L1=$G(@INV@("IN144"))
S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,45,L1,.CP) S L1=$G(@INV@("IN145")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,46,L1,.CP)
S L1=$G(@INV@("IN146")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,47,L1,.CP) S L1=$G(@INV@("IN147")) S:$TR(L1,$G(SUBDELIM))="" L1=""
D SETPIECE^INHU(.LINE,DELIM,48,L1,.CP) S L1=$G(@INV@("IN148")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,49,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
SET INSETID=0
;SET ZIN1 = INSGX\^INTHL7F(16282,5)\\999\"OUTPUT TRANSFORM"
S D0=INDA S X="OUTPUT TRANSFORM"
S X1="^INTHL7F(16282,5)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
S @INV@("ZIN1")=X K DXS,D0
;SET ZIN2 = INSGX\^INTHL7F(16283,5)\\999\"OUTPUT TRANSFORM"
S D0=INDA S X="OUTPUT TRANSFORM"
S X1="^INTHL7F(16283,5)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
S @INV@("ZIN2")=X K DXS,D0
;SET ZIN3 = INSGX\^INTHL7F(16284,5)\\999\"OUTPUT TRANSFORM"
S D0=INDA S X="OUTPUT TRANSFORM"
S X1="^INTHL7F(16284,5)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
S @INV@("ZIN3")=X K DXS,D0
;SET ZIN4 = ""
S D0=INDA S X=""
S @INV@("ZIN4")=X K DXS,D0
;SET ZIN5 = INSGX\^INTHL7F(16286,5)\\999\"OUTPUT TRANSFORM"
S D0=INDA S X="OUTPUT TRANSFORM"
S X1="^INTHL7F(16286,5)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
S @INV@("ZIN5")=X K DXS,D0
;SET ZIN6 = ""
S D0=INDA S X=""
S @INV@("ZIN6")=X K DXS,D0
D:'INVS MC^INHS
K LINE S LINE="",CP=0 S L1="ZIN" S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,1,L1,.CP) S L1=$G(@INV@("ZIN1")) S:$TR(L1,$G(SUBDELIM))="" L1=""
D SETPIECE^INHU(.LINE,DELIM,2,L1,.CP) S L1=$G(@INV@("ZIN2")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,3,L1,.CP) S L1=$G(@INV@("ZIN3"))
S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,4,L1,.CP) S L1=$G(@INV@("ZIN4")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,5,L1,.CP)
S L1=$G(@INV@("ZIN5")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,6,L1,.CP) S L1=$G(@INV@("ZIN6")) 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
C1 S INDA=INDA0 K INDA0
D:'INVS MC^INHS
;Entering END section.
I $G(INSTERR) Q $S($G(INREQERR)>INSTERR:INREQERR,1:INSTERR)
S UIF=$$NEWO^INHD(INDEST,"^UTILITY(""INH"",$J)",+$P($G(^INRHT(INTT,0)),U,12),INTT,MESSID,$G(INQUE),$G(INORDUZ),$G(INORDIV),.INUIF6,.INUIF7,$G(INA("INMIDGEN")))
I UIF<0 D ERROR^INHS("UIF creation failed",2) Q 2
Q 0
IS00006E ;Compiled from script 'Generated: HL IHS DW1 A31-O' on SEP 08, 2008
+1 ;Part 6
+2 ;Copyright 2008 SAIC
EN IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,35,L1,.CP)
SET L1=$GET(@INV@("IN135"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,36,L1,.CP)
+1 SET L1=$GET(@INV@("IN136"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,37,L1,.CP)
SET L1=$GET(@INV@("IN137"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
+2 DO SETPIECE^INHU(.LINE,DELIM,38,L1,.CP)
SET L1=$GET(@INV@("IN138"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,39,L1,.CP)
SET L1=$GET(@INV@("IN139"))
+3 IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,40,L1,.CP)
SET L1=$GET(@INV@("IN140"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,41,L1,.CP)
+4 SET L1=$GET(@INV@("IN141"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,42,L1,.CP)
SET L1=$GET(@INV@("IN142"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
+5 DO SETPIECE^INHU(.LINE,DELIM,43,L1,.CP)
SET L1=$GET(@INV@("IN143"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,44,L1,.CP)
SET L1=$GET(@INV@("IN144"))
+6 IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,45,L1,.CP)
SET L1=$GET(@INV@("IN145"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,46,L1,.CP)
+7 SET L1=$GET(@INV@("IN146"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,47,L1,.CP)
SET L1=$GET(@INV@("IN147"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
+8 DO SETPIECE^INHU(.LINE,DELIM,48,L1,.CP)
SET L1=$GET(@INV@("IN148"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,49,L1,.CP)
SET L1=$GET(@INV@("IN149"))
+9 IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,50,L1,.CP)
+10 SET LCT=LCT+1
SET ^UTILITY("INH",$JOB,LCT)=LINE
IF $DATA(LINE)>9
MERGE ^UTILITY("INH",$JOB,LCT)=LINE
+11 SET INSETID=0
+12 ;SET ZIN1 = INSGX\^INTHL7F(16282,5)\\999\"OUTPUT TRANSFORM"
+13 SET D0=INDA
SET X="OUTPUT TRANSFORM"
+14 SET X1="^INTHL7F(16282,5)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+15 SET @INV@("ZIN1")=X
KILL DXS,D0
+16 ;SET ZIN2 = INSGX\^INTHL7F(16283,5)\\999\"OUTPUT TRANSFORM"
+17 SET D0=INDA
SET X="OUTPUT TRANSFORM"
+18 SET X1="^INTHL7F(16283,5)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+19 SET @INV@("ZIN2")=X
KILL DXS,D0
+20 ;SET ZIN3 = INSGX\^INTHL7F(16284,5)\\999\"OUTPUT TRANSFORM"
+21 SET D0=INDA
SET X="OUTPUT TRANSFORM"
+22 SET X1="^INTHL7F(16284,5)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+23 SET @INV@("ZIN3")=X
KILL DXS,D0
+24 ;SET ZIN4 = ""
+25 SET D0=INDA
SET X=""
+26 SET @INV@("ZIN4")=X
KILL DXS,D0
+27 ;SET ZIN5 = INSGX\^INTHL7F(16286,5)\\999\"OUTPUT TRANSFORM"
+28 SET D0=INDA
SET X="OUTPUT TRANSFORM"
+29 SET X1="^INTHL7F(16286,5)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+30 SET @INV@("ZIN5")=X
KILL DXS,D0
+31 ;SET ZIN6 = ""
+32 SET D0=INDA
SET X=""
+33 SET @INV@("ZIN6")=X
KILL DXS,D0
+34 IF 'INVS
DO MC^INHS
+35 KILL LINE
SET LINE=""
SET CP=0
SET L1="ZIN"
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,1,L1,.CP)
SET L1=$GET(@INV@("ZIN1"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
+36 DO SETPIECE^INHU(.LINE,DELIM,2,L1,.CP)
SET L1=$GET(@INV@("ZIN2"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,3,L1,.CP)
SET L1=$GET(@INV@("ZIN3"))
+37 IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,4,L1,.CP)
SET L1=$GET(@INV@("ZIN4"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,5,L1,.CP)
+38 SET L1=$GET(@INV@("ZIN5"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,6,L1,.CP)
SET L1=$GET(@INV@("ZIN6"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,7,L1,.CP)
+39 SET LCT=LCT+1
SET ^UTILITY("INH",$JOB,LCT)=LINE
IF $DATA(LINE)>9
MERGE ^UTILITY("INH",$JOB,LCT)=LINE
+40 QUIT
C1 SET INDA=INDA0
KILL INDA0
+1 IF 'INVS
DO MC^INHS
+2 ;Entering END section.
+3 IF $GET(INSTERR)
QUIT $SELECT($GET(INREQERR)>INSTERR:INREQERR,1:INSTERR)
+4 SET UIF=$$NEWO^INHD(INDEST,"^UTILITY(""INH"",$J)",+$PIECE($GET(^INRHT(INTT,0)),U,12),INTT,MESSID,$GET(INQUE),$GET(INORDUZ),$GET(INORDIV),.INUIF6,.INUIF7,$GET(INA("INMIDGEN")))
+5 IF UIF<0
DO ERROR^INHS("UIF creation failed",2)
QUIT 2
+6 QUIT 0