IS00007J ;Compiled from script 'Generated: HL IHS DW1 A08-O' on SEP 08, 2008
;Part 11
;Copyright 2008 SAIC
EN 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
I1 S INDA=INDA0 K INDA0
SET INSETID=0
S INDA0=INDA,INI(1)=0 F S INI(1)=$O(INDA("MSR",INI(1))) Q:'INI(1) S INDA=$S(INDA("MSR",INI(1)):INDA("MSR",INI(1)),1:INI(1)) D
.;SET OBX1 = INSGX\^INTHL7FT(1,3)\\999\@BDW1MSR1
.S D0=INDA S X=$G(INA("BDW1MSR1",INI(1)))
.S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
.S @INV@("OBX1")=X K DXS,D0
.;SET OBX2 = INSGX\^INTHL7FT(1,3)\\999\@BDW1MSR2
.S D0=INDA S X=$G(INA("BDW1MSR2",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\@BDW1MSR3
.S D0=INDA S X=$G(INA("BDW1MSR3",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\@BDW1MSR5
.S D0=INDA S X=$G(INA("BDW1MSR5",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
S INDA=INDA0 K INDA0
SET INSETID=0
S INDA0=INDA,INI(1)=0 F S INI(1)=$O(INDA("XAM",INI(1))) Q:'INI(1) S INDA=$S(INDA("XAM",INI(1)):INDA("XAM",INI(1)),1:INI(1)) D
.;SET OBX1 = INSGX\^INTHL7FT(1,3)\\999\@BDW1XAM1
.S D0=INDA S X=$G(INA("BDW1XAM1",INI(1)))
.S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
.S @INV@("OBX1")=X K DXS,D0
.;SET OBX2 = INSGX\^INTHL7FT(1,3)\\999\@BDW1XAM2
.S D0=INDA S X=$G(INA("BDW1XAM2",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\@BDW1XAM3
.S D0=INDA S X=$G(INA("BDW1XAM3",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 = ""
.S D0=INDA S X=""
.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
9 .D EN^IS00007K
G K1^IS00007K
IS00007J ;Compiled from script 'Generated: HL IHS DW1 A08-O' on SEP 08, 2008
+1 ;Part 11
+2 ;Copyright 2008 SAIC
EN 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)
+1 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)
+2 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)
+3 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=""
+4 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"))
+5 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)
+6 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=""
+7 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"))
+8 IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,20,L1,.CP)
+9 SET LCT=LCT+1
SET ^UTILITY("INH",$JOB,LCT)=LINE
IF $DATA(LINE)>9
MERGE ^UTILITY("INH",$JOB,LCT)=LINE
+10 QUIT
I1 SET INDA=INDA0
KILL INDA0
+1 SET INSETID=0
+2 SET INDA0=INDA
SET INI(1)=0
FOR
SET INI(1)=$ORDER(INDA("MSR",INI(1)))
IF 'INI(1)
QUIT
SET INDA=$SELECT(INDA("MSR",INI(1)):INDA("MSR",INI(1)),1:INI(1))
Begin DoDot:1
+3 ;SET OBX1 = INSGX\^INTHL7FT(1,3)\\999\@BDW1MSR1
+4 SET D0=INDA
SET X=$GET(INA("BDW1MSR1",INI(1)))
+5 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+6 SET @INV@("OBX1")=X
KILL DXS,D0
+7 ;SET OBX2 = INSGX\^INTHL7FT(1,3)\\999\@BDW1MSR2
+8 SET D0=INDA
SET X=$GET(INA("BDW1MSR2",INI(1)))
+9 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+10 SET @INV@("OBX2")=X
KILL DXS,D0
+11 ;SET OBX3 = INSGX\^INTHL7FT(1,3)\\999\@BDW1MSR3
+12 SET D0=INDA
SET X=$GET(INA("BDW1MSR3",INI(1)))
+13 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+14 SET @INV@("OBX3")=X
KILL DXS,D0
+15 ;SET OBX4 = ""
+16 SET D0=INDA
SET X=""
+17 SET @INV@("OBX4")=X
KILL DXS,D0
+18 ;SET OBX5 = INSGX\^INTHL7FT(1,3)\\999\@BDW1MSR5
+19 SET D0=INDA
SET X=$GET(INA("BDW1MSR5",INI(1)))
+20 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+21 SET @INV@("OBX5")=X
KILL DXS,D0
+22 ;SET OBX6 = ""
+23 SET D0=INDA
SET X=""
+24 SET @INV@("OBX6")=X
KILL DXS,D0
+25 ;SET OBX7 = ""
+26 SET D0=INDA
SET X=""
+27 SET @INV@("OBX7")=X
KILL DXS,D0
+28 ;SET OBX8 = ""
+29 SET D0=INDA
SET X=""
+30 SET @INV@("OBX8")=X
KILL DXS,D0
+31 ;SET OBX9 = ""
+32 SET D0=INDA
SET X=""
+33 SET @INV@("OBX9")=X
KILL DXS,D0
+34 ;SET OBX10 = ""
+35 SET D0=INDA
SET X=""
+36 SET @INV@("OBX10")=X
KILL DXS,D0
+37 ;SET OBX11 = ""
+38 SET D0=INDA
SET X=""
+39 SET @INV@("OBX11")=X
KILL DXS,D0
+40 ;SET OBX12 = ""
+41 SET D0=INDA
SET X=""
+42 SET @INV@("OBX12")=X
KILL DXS,D0
+43 ;SET OBX13 = ""
+44 SET D0=INDA
SET X=""
+45 SET @INV@("OBX13")=X
KILL DXS,D0
+46 ;SET OBX14 = ""
+47 SET D0=INDA
SET X=""
+48 SET @INV@("OBX14")=X
KILL DXS,D0
+49 ;SET OBX15 = ""
+50 SET D0=INDA
SET X=""
+51 SET @INV@("OBX15")=X
KILL DXS,D0
+52 ;SET OBX16 = ""
+53 SET D0=INDA
SET X=""
+54 SET @INV@("OBX16")=X
KILL DXS,D0
+55 ;SET OBX17 = ""
+56 SET D0=INDA
SET X=""
+57 SET @INV@("OBX17")=X
KILL DXS,D0
+58 ;SET OBX18 = ""
+59 SET D0=INDA
SET X=""
+60 SET @INV@("OBX18")=X
KILL DXS,D0
+61 ;SET OBX19 = ""
+62 SET D0=INDA
SET X=""
+63 SET @INV@("OBX19")=X
KILL DXS,D0
+64 IF 'INVS
DO MC^INHS
+65 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=""
+66 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"))
+67 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)
+68 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)
+69 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)
+70 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)
+71 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=""
+72 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"))
+73 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)
+74 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=""
+75 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"))
+76 IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,20,L1,.CP)
+77 SET LCT=LCT+1
SET ^UTILITY("INH",$JOB,LCT)=LINE
IF $DATA(LINE)>9
MERGE ^UTILITY("INH",$JOB,LCT)=LINE
+78 QUIT
End DoDot:1
+79 SET INDA=INDA0
KILL INDA0
+80 SET INSETID=0
+81 SET INDA0=INDA
SET INI(1)=0
FOR
SET INI(1)=$ORDER(INDA("XAM",INI(1)))
IF 'INI(1)
QUIT
SET INDA=$SELECT(INDA("XAM",INI(1)):INDA("XAM",INI(1)),1:INI(1))
Begin DoDot:1
+82 ;SET OBX1 = INSGX\^INTHL7FT(1,3)\\999\@BDW1XAM1
+83 SET D0=INDA
SET X=$GET(INA("BDW1XAM1",INI(1)))
+84 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+85 SET @INV@("OBX1")=X
KILL DXS,D0
+86 ;SET OBX2 = INSGX\^INTHL7FT(1,3)\\999\@BDW1XAM2
+87 SET D0=INDA
SET X=$GET(INA("BDW1XAM2",INI(1)))
+88 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+89 SET @INV@("OBX2")=X
KILL DXS,D0
+90 ;SET OBX3 = INSGX\^INTHL7FT(1,3)\\999\@BDW1XAM3
+91 SET D0=INDA
SET X=$GET(INA("BDW1XAM3",INI(1)))
+92 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+93 SET @INV@("OBX3")=X
KILL DXS,D0
+94 ;SET OBX4 = ""
+95 SET D0=INDA
SET X=""
+96 SET @INV@("OBX4")=X
KILL DXS,D0
+97 ;SET OBX5 = ""
+98 SET D0=INDA
SET X=""
+99 SET @INV@("OBX5")=X
KILL DXS,D0
+100 ;SET OBX6 = ""
+101 SET D0=INDA
SET X=""
+102 SET @INV@("OBX6")=X
KILL DXS,D0
+103 ;SET OBX7 = ""
+104 SET D0=INDA
SET X=""
+105 SET @INV@("OBX7")=X
KILL DXS,D0
+106 ;SET OBX8 = ""
+107 SET D0=INDA
SET X=""
+108 SET @INV@("OBX8")=X
KILL DXS,D0
+109 ;SET OBX9 = ""
+110 SET D0=INDA
SET X=""
+111 SET @INV@("OBX9")=X
KILL DXS,D0
+112 ;SET OBX10 = ""
+113 SET D0=INDA
SET X=""
+114 SET @INV@("OBX10")=X
KILL DXS,D0
+115 ;SET OBX11 = ""
+116 SET D0=INDA
SET X=""
+117 SET @INV@("OBX11")=X
KILL DXS,D0
+118 ;SET OBX12 = ""
+119 SET D0=INDA
SET X=""
+120 SET @INV@("OBX12")=X
KILL DXS,D0
+121 ;SET OBX13 = ""
+122 SET D0=INDA
SET X=""
+123 SET @INV@("OBX13")=X
KILL DXS,D0
+124 ;SET OBX14 = ""
+125 SET D0=INDA
SET X=""
+126 SET @INV@("OBX14")=X
KILL DXS,D0
+127 ;SET OBX15 = ""
+128 SET D0=INDA
SET X=""
+129 SET @INV@("OBX15")=X
KILL DXS,D0
+130 ;SET OBX16 = ""
+131 SET D0=INDA
SET X=""
+132 SET @INV@("OBX16")=X
KILL DXS,D0
+133 ;SET OBX17 = ""
+134 SET D0=INDA
SET X=""
+135 SET @INV@("OBX17")=X
KILL DXS,D0
+136 ;SET OBX18 = ""
+137 SET D0=INDA
SET X=""
+138 SET @INV@("OBX18")=X
KILL DXS,D0
+139 ;SET OBX19 = ""
+140 SET D0=INDA
SET X=""
+141 SET @INV@("OBX19")=X
KILL DXS,D0
9 DO EN^IS00007K
End DoDot:1
+1 GOTO K1^IS00007K