IS00015B ;Compiled from script 'Generated: HL IHS LAB O01 LABCORP-O' on AUG 14, 2006
;Part 3
;Copyright 2006 SAIC
EN S D0=INDA S X=$G(INA("OBX3LABOL2",INI(1),INI(2)))
S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
S @INV@("OBX3.2")=X K DXS,D0
;SET OBX3.3 = INSGX\^INTHL7FT(1,3)\\999\@OBX3LABLC3
S D0=INDA S X=$G(INA("OBX3LABLC3",INI(1),INI(2)))
S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
S @INV@("OBX3.3")=X K DXS,D0
;SET OBX5 = INSGX\^INTHL7FT(1,3)\\999\@OBX5LABO
S D0=INDA S X=$G(INA("OBX5LABO",INI(1),INI(2)))
S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
S @INV@("OBX5")=X K DXS,D0
;SET OBX14 = INSGX\^INTHL7FT(6,3)\\999\@OBX14LABO
S D0=INDA S X=$G(INA("OBX14LABO",INI(1),INI(2)))
S X1="^INTHL7FT(6,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
S @INV@("OBX14")=X K DXS,D0
D:'INVS MC^INHS
K LINE S LINE="",CP=0 S L1="OBX" S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,1,L1,.CP) S L1=$G(@INV@("OBX1")) S:$TR(L1,$G(SUBDELIM))="" L1=""
D SETPIECE^INHU(.LINE,DELIM,2,L1,.CP) S L1=$G(@INV@("OBX2")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,3,L1,.CP) S L1=$G(@INV@("OBX3.1"))
S D0=INDA S X="^" S L1=L1_X
S L1=L1_$G(@INV@("OBX3.2"))
S D0=INDA S X="^" S L1=L1_X
S L1=L1_$G(@INV@("OBX3.3")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,4,L1,.CP) S L1=$G(@INV@("OBX5")) S:$TR(L1,$G(SUBDELIM))="" L1=""
D SETPIECE^INHU(.LINE,DELIM,6,L1,.CP) S L1=$G(@INV@("OBX14")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,15,L1,.CP)
S LCT=LCT+1,^UTILITY("INH",$J,LCT)=LINE I $D(LINE)>9 M ^UTILITY("INH",$J,LCT)=LINE
Q
B2 S INDA=INDA1 K INDA1
Q
B1 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
IS00015B ;Compiled from script 'Generated: HL IHS LAB O01 LABCORP-O' on AUG 14, 2006
+1 ;Part 3
+2 ;Copyright 2006 SAIC
EN SET D0=INDA
SET X=$GET(INA("OBX3LABOL2",INI(1),INI(2)))
+1 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+2 SET @INV@("OBX3.2")=X
KILL DXS,D0
+3 ;SET OBX3.3 = INSGX\^INTHL7FT(1,3)\\999\@OBX3LABLC3
+4 SET D0=INDA
SET X=$GET(INA("OBX3LABLC3",INI(1),INI(2)))
+5 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+6 SET @INV@("OBX3.3")=X
KILL DXS,D0
+7 ;SET OBX5 = INSGX\^INTHL7FT(1,3)\\999\@OBX5LABO
+8 SET D0=INDA
SET X=$GET(INA("OBX5LABO",INI(1),INI(2)))
+9 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+10 SET @INV@("OBX5")=X
KILL DXS,D0
+11 ;SET OBX14 = INSGX\^INTHL7FT(6,3)\\999\@OBX14LABO
+12 SET D0=INDA
SET X=$GET(INA("OBX14LABO",INI(1),INI(2)))
+13 SET X1="^INTHL7FT(6,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+14 SET @INV@("OBX14")=X
KILL DXS,D0
+15 IF 'INVS
DO MC^INHS
+16 KILL LINE
SET LINE=""
SET CP=0
SET L1="OBX"
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,1,L1,.CP)
SET L1=$GET(@INV@("OBX1"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
+17 DO SETPIECE^INHU(.LINE,DELIM,2,L1,.CP)
SET L1=$GET(@INV@("OBX2"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,3,L1,.CP)
SET L1=$GET(@INV@("OBX3.1"))
+18 SET D0=INDA
SET X="^"
SET L1=L1_X
+19 SET L1=L1_$GET(@INV@("OBX3.2"))
+20 SET D0=INDA
SET X="^"
SET L1=L1_X
+21 SET L1=L1_$GET(@INV@("OBX3.3"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,4,L1,.CP)
SET L1=$GET(@INV@("OBX5"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
+22 DO SETPIECE^INHU(.LINE,DELIM,6,L1,.CP)
SET L1=$GET(@INV@("OBX14"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,15,L1,.CP)
+23 SET LCT=LCT+1
SET ^UTILITY("INH",$JOB,LCT)=LINE
IF $DATA(LINE)>9
MERGE ^UTILITY("INH",$JOB,LCT)=LINE
+24 QUIT
B2 SET INDA=INDA1
KILL INDA1
+1 QUIT
B1 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