IS00001C ;Compiled from script 'Generated: HL IHS JVN O01 PACS-O' on DEC 03, 2002
;Part 4
;Copyright 2002 SAIC
EN 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 L1=$G(@INV@("ORC7")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,8,L1,.CP) S L1=$G(@INV@("ORC12")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,13,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 OBR1 = INSGX\^INTHL7FT(11,3)\\4\"OBR"
S D0=INDA S X="OBR"
S X1="^INTHL7FT(11,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,4)
S @INV@("OBR1")=X K DXS,D0
;SET OBR2 = INSGX\^INTHL7F(15548,5)\\75\"OUTPUT TRANSFORM"
S D0=INDA S X="OUTPUT TRANSFORM"
S X1="^INTHL7F(15548,5)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,75)
S @INV@("OBR2")=X K DXS,D0
;SET OBR3 = INSGX\^INTHL7F(15549,5)\\75\"OUTPUT TRANSFORM"
S D0=INDA S X="OUTPUT TRANSFORM"
S X1="^INTHL7F(15549,5)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,75)
S @INV@("OBR3")=X K DXS,D0
;SET OBR16 = INSGX\^INTHL7F(15547,5)\\80\"OUTPUT TRANSFORM"
S D0=INDA S X="OUTPUT TRANSFORM"
S X1="^INTHL7F(15547,5)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,80)
S @INV@("OBR16")=X K DXS,D0
;SET OBR19 = INSGX\^INTHL7F(15544,5)\\12\"OUTPUT TRANSFORM"
S D0=INDA S X="OUTPUT TRANSFORM"
S X1="^INTHL7F(15544,5)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,12)
S @INV@("OBR19")=X K DXS,D0
;SET OBR27 = INSGX\^INTHL7F(15542,5)\\26\"OUTPUT TRANSFORM"
S D0=INDA S X="OUTPUT TRANSFORM"
S X1="^INTHL7F(15542,5)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,26)
S @INV@("OBR27")=X K DXS,D0
D:'INVS MC^INHS
K LINE S LINE="",CP=0 S L1="OBR" S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,1,L1,.CP) S L1=$G(@INV@("OBR1")) S:$TR(L1,$G(SUBDELIM))="" L1=""
D SETPIECE^INHU(.LINE,DELIM,2,L1,.CP) S L1=$G(@INV@("OBR2")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,3,L1,.CP) S L1=$G(@INV@("OBR3"))
S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,4,L1,.CP) S L1=$G(@INV@("OBR16")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,17,L1,.CP)
S L1=$G(@INV@("OBR19")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,20,L1,.CP) S L1=$G(@INV@("OBR27")) S:$TR(L1,$G(SUBDELIM))="" L1=""
D SETPIECE^INHU(.LINE,DELIM,28,L1,.CP)
S LCT=LCT+1,^UTILITY("INH",$J,LCT)=LINE I $D(LINE)>9 M ^UTILITY("INH",$J,LCT)=LINE
Q
A1 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
IS00001C ;Compiled from script 'Generated: HL IHS JVN O01 PACS-O' on DEC 03, 2002
+1 ;Part 4
+2 ;Copyright 2002 SAIC
EN 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"))
+1 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)
+2 SET L1=$GET(@INV@("ORC7"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,8,L1,.CP)
SET L1=$GET(@INV@("ORC12"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,13,L1,.CP)
+3 SET LCT=LCT+1
SET ^UTILITY("INH",$JOB,LCT)=LINE
IF $DATA(LINE)>9
MERGE ^UTILITY("INH",$JOB,LCT)=LINE
+4 SET INSETID=0
+5 ;SET OBR1 = INSGX\^INTHL7FT(11,3)\\4\"OBR"
+6 SET D0=INDA
SET X="OBR"
+7 SET X1="^INTHL7FT(11,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,4)
+8 SET @INV@("OBR1")=X
KILL DXS,D0
+9 ;SET OBR2 = INSGX\^INTHL7F(15548,5)\\75\"OUTPUT TRANSFORM"
+10 SET D0=INDA
SET X="OUTPUT TRANSFORM"
+11 SET X1="^INTHL7F(15548,5)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,75)
+12 SET @INV@("OBR2")=X
KILL DXS,D0
+13 ;SET OBR3 = INSGX\^INTHL7F(15549,5)\\75\"OUTPUT TRANSFORM"
+14 SET D0=INDA
SET X="OUTPUT TRANSFORM"
+15 SET X1="^INTHL7F(15549,5)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,75)
+16 SET @INV@("OBR3")=X
KILL DXS,D0
+17 ;SET OBR16 = INSGX\^INTHL7F(15547,5)\\80\"OUTPUT TRANSFORM"
+18 SET D0=INDA
SET X="OUTPUT TRANSFORM"
+19 SET X1="^INTHL7F(15547,5)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,80)
+20 SET @INV@("OBR16")=X
KILL DXS,D0
+21 ;SET OBR19 = INSGX\^INTHL7F(15544,5)\\12\"OUTPUT TRANSFORM"
+22 SET D0=INDA
SET X="OUTPUT TRANSFORM"
+23 SET X1="^INTHL7F(15544,5)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,12)
+24 SET @INV@("OBR19")=X
KILL DXS,D0
+25 ;SET OBR27 = INSGX\^INTHL7F(15542,5)\\26\"OUTPUT TRANSFORM"
+26 SET D0=INDA
SET X="OUTPUT TRANSFORM"
+27 SET X1="^INTHL7F(15542,5)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,26)
+28 SET @INV@("OBR27")=X
KILL DXS,D0
+29 IF 'INVS
DO MC^INHS
+30 KILL LINE
SET LINE=""
SET CP=0
SET L1="OBR"
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,1,L1,.CP)
SET L1=$GET(@INV@("OBR1"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
+31 DO SETPIECE^INHU(.LINE,DELIM,2,L1,.CP)
SET L1=$GET(@INV@("OBR2"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,3,L1,.CP)
SET L1=$GET(@INV@("OBR3"))
+32 IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,4,L1,.CP)
SET L1=$GET(@INV@("OBR16"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,17,L1,.CP)
+33 SET L1=$GET(@INV@("OBR19"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,20,L1,.CP)
SET L1=$GET(@INV@("OBR27"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
+34 DO SETPIECE^INHU(.LINE,DELIM,28,L1,.CP)
+35 SET LCT=LCT+1
SET ^UTILITY("INH",$JOB,LCT)=LINE
IF $DATA(LINE)>9
MERGE ^UTILITY("INH",$JOB,LCT)=LINE
+36 QUIT
A1 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