IS00007M ;Compiled from script 'Generated: HL IHS DW1 A08-O' on SEP 08, 2008
;Part 14
;Copyright 2008 SAIC
EN ;SET OBX2 = INSGX\^INTHL7FT(1,3)\\999\@BDW1SKT2
S D0=INDA S X=$G(INA("BDW1SKT2",INI(1)))
S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
S @INV@("OBX2")=X K DXS,D0
;SET OBX3 = INSGX\^INTHL7FT(1,3)\\999\@BDW1SKT3
S D0=INDA S X=$G(INA("BDW1SKT3",INI(1)))
S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
S @INV@("OBX3")=X K DXS,D0
;SET OBX4 = ""
S D0=INDA S X=""
S @INV@("OBX4")=X K DXS,D0
;SET OBX5 = INSGX\^INTHL7FT(1,3)\\999\@BDW1SKT5
S D0=INDA S X=$G(INA("BDW1SKT5",INI(1)))
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 OBX6 = ""
S D0=INDA S X=""
S @INV@("OBX6")=X K DXS,D0
;SET OBX7 = ""
S D0=INDA S X=""
S @INV@("OBX7")=X K DXS,D0
;SET OBX8 = ""
S D0=INDA S X=""
S @INV@("OBX8")=X K DXS,D0
;SET OBX9 = ""
S D0=INDA S X=""
S @INV@("OBX9")=X K DXS,D0
;SET OBX10 = ""
S D0=INDA S X=""
S @INV@("OBX10")=X K DXS,D0
;SET OBX11 = ""
S D0=INDA S X=""
S @INV@("OBX11")=X K DXS,D0
;SET OBX12 = ""
S D0=INDA S X=""
S @INV@("OBX12")=X K DXS,D0
;SET OBX13 = ""
S D0=INDA S X=""
S @INV@("OBX13")=X K DXS,D0
;SET OBX14 = ""
S D0=INDA S X=""
S @INV@("OBX14")=X K DXS,D0
;SET OBX15 = ""
S D0=INDA S X=""
S @INV@("OBX15")=X K DXS,D0
;SET OBX16 = ""
S D0=INDA S X=""
S @INV@("OBX16")=X K DXS,D0
;SET OBX17 = ""
S D0=INDA S X=""
S @INV@("OBX17")=X K DXS,D0
;SET OBX18 = ""
S D0=INDA S X=""
S @INV@("OBX18")=X K DXS,D0
;SET OBX19 = ""
S D0=INDA S X=""
S @INV@("OBX19")=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"))
S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,4,L1,.CP) S L1=$G(@INV@("OBX4")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,5,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@("OBX6")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,7,L1,.CP)
S L1=$G(@INV@("OBX7")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,8,L1,.CP) S L1=$G(@INV@("OBX8")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,9,L1,.CP)
S L1=$G(@INV@("OBX9")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,10,L1,.CP) S L1=$G(@INV@("OBX10")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,11,L1,.CP)
S L1=$G(@INV@("OBX11")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,12,L1,.CP) S L1=$G(@INV@("OBX12")) S:$TR(L1,$G(SUBDELIM))="" L1=""
D SETPIECE^INHU(.LINE,DELIM,13,L1,.CP) S L1=$G(@INV@("OBX13")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,14,L1,.CP) S L1=$G(@INV@("OBX14"))
S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,15,L1,.CP) S L1=$G(@INV@("OBX15")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,16,L1,.CP)
S L1=$G(@INV@("OBX16")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,17,L1,.CP) S L1=$G(@INV@("OBX17")) S:$TR(L1,$G(SUBDELIM))="" L1=""
D SETPIECE^INHU(.LINE,DELIM,18,L1,.CP) S L1=$G(@INV@("OBX18")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,19,L1,.CP) S L1=$G(@INV@("OBX19"))
S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,20,L1,.CP)
S LCT=LCT+1,^UTILITY("INH",$J,LCT)=LINE I $D(LINE)>9 M ^UTILITY("INH",$J,LCT)=LINE
Q
O1 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
IS00007M ;Compiled from script 'Generated: HL IHS DW1 A08-O' on SEP 08, 2008
+1 ;Part 14
+2 ;Copyright 2008 SAIC
EN ;SET OBX2 = INSGX\^INTHL7FT(1,3)\\999\@BDW1SKT2
+1 SET D0=INDA
SET X=$GET(INA("BDW1SKT2",INI(1)))
+2 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+3 SET @INV@("OBX2")=X
KILL DXS,D0
+4 ;SET OBX3 = INSGX\^INTHL7FT(1,3)\\999\@BDW1SKT3
+5 SET D0=INDA
SET X=$GET(INA("BDW1SKT3",INI(1)))
+6 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+7 SET @INV@("OBX3")=X
KILL DXS,D0
+8 ;SET OBX4 = ""
+9 SET D0=INDA
SET X=""
+10 SET @INV@("OBX4")=X
KILL DXS,D0
+11 ;SET OBX5 = INSGX\^INTHL7FT(1,3)\\999\@BDW1SKT5
+12 SET D0=INDA
SET X=$GET(INA("BDW1SKT5",INI(1)))
+13 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+14 SET @INV@("OBX5")=X
KILL DXS,D0
+15 ;SET OBX6 = ""
+16 SET D0=INDA
SET X=""
+17 SET @INV@("OBX6")=X
KILL DXS,D0
+18 ;SET OBX7 = ""
+19 SET D0=INDA
SET X=""
+20 SET @INV@("OBX7")=X
KILL DXS,D0
+21 ;SET OBX8 = ""
+22 SET D0=INDA
SET X=""
+23 SET @INV@("OBX8")=X
KILL DXS,D0
+24 ;SET OBX9 = ""
+25 SET D0=INDA
SET X=""
+26 SET @INV@("OBX9")=X
KILL DXS,D0
+27 ;SET OBX10 = ""
+28 SET D0=INDA
SET X=""
+29 SET @INV@("OBX10")=X
KILL DXS,D0
+30 ;SET OBX11 = ""
+31 SET D0=INDA
SET X=""
+32 SET @INV@("OBX11")=X
KILL DXS,D0
+33 ;SET OBX12 = ""
+34 SET D0=INDA
SET X=""
+35 SET @INV@("OBX12")=X
KILL DXS,D0
+36 ;SET OBX13 = ""
+37 SET D0=INDA
SET X=""
+38 SET @INV@("OBX13")=X
KILL DXS,D0
+39 ;SET OBX14 = ""
+40 SET D0=INDA
SET X=""
+41 SET @INV@("OBX14")=X
KILL DXS,D0
+42 ;SET OBX15 = ""
+43 SET D0=INDA
SET X=""
+44 SET @INV@("OBX15")=X
KILL DXS,D0
+45 ;SET OBX16 = ""
+46 SET D0=INDA
SET X=""
+47 SET @INV@("OBX16")=X
KILL DXS,D0
+48 ;SET OBX17 = ""
+49 SET D0=INDA
SET X=""
+50 SET @INV@("OBX17")=X
KILL DXS,D0
+51 ;SET OBX18 = ""
+52 SET D0=INDA
SET X=""
+53 SET @INV@("OBX18")=X
KILL DXS,D0
+54 ;SET OBX19 = ""
+55 SET D0=INDA
SET X=""
+56 SET @INV@("OBX19")=X
KILL DXS,D0
+57 IF 'INVS
DO MC^INHS
+58 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=""
+59 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"))
+60 IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,4,L1,.CP)
SET L1=$GET(@INV@("OBX4"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,5,L1,.CP)
+61 SET L1=$GET(@INV@("OBX5"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,6,L1,.CP)
SET L1=$GET(@INV@("OBX6"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,7,L1,.CP)
+62 SET L1=$GET(@INV@("OBX7"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,8,L1,.CP)
SET L1=$GET(@INV@("OBX8"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,9,L1,.CP)
+63 SET L1=$GET(@INV@("OBX9"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,10,L1,.CP)
SET L1=$GET(@INV@("OBX10"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,11,L1,.CP)
+64 SET L1=$GET(@INV@("OBX11"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,12,L1,.CP)
SET L1=$GET(@INV@("OBX12"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
+65 DO SETPIECE^INHU(.LINE,DELIM,13,L1,.CP)
SET L1=$GET(@INV@("OBX13"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,14,L1,.CP)
SET L1=$GET(@INV@("OBX14"))
+66 IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,15,L1,.CP)
SET L1=$GET(@INV@("OBX15"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,16,L1,.CP)
+67 SET L1=$GET(@INV@("OBX16"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,17,L1,.CP)
SET L1=$GET(@INV@("OBX17"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
+68 DO SETPIECE^INHU(.LINE,DELIM,18,L1,.CP)
SET L1=$GET(@INV@("OBX18"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,19,L1,.CP)
SET L1=$GET(@INV@("OBX19"))
+69 IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,20,L1,.CP)
+70 SET LCT=LCT+1
SET ^UTILITY("INH",$JOB,LCT)=LINE
IF $DATA(LINE)>9
MERGE ^UTILITY("INH",$JOB,LCT)=LINE
+71 QUIT
O1 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