IS00007K ;Compiled from script 'Generated: HL IHS DW1 A08-O' on SEP 08, 2008
;Part 12
;Copyright 2008 SAIC
EN 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
K1 S INDA=INDA0 K INDA0
SET INSETID=0
S INDA0=INDA,INI(1)=0 F S INI(1)=$O(INDA("CPT",INI(1))) Q:'INI(1) S INDA=$S(INDA("CPT",INI(1)):INDA("CPT",INI(1)),1:INI(1)) D
.;SET OBX1 = INSGX\^INTHL7FT(1,3)\\999\@BDW1CPT1
.S D0=INDA S X=$G(INA("BDW1CPT1",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\@BDW1CPT2
.S D0=INDA S X=$G(INA("BDW1CPT2",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\@BDW1CPT3
.S D0=INDA S X=$G(INA("BDW1CPT3",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\@BDW1CPT5
.S D0=INDA S X=$G(INA("BDW1CPT5",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("LAB",INI(1))) Q:'INI(1) S INDA=$S(INDA("LAB",INI(1)):INDA("LAB",INI(1)),1:INI(1)) D
.;SET OBX1 = INSGX\^INTHL7FT(1,3)\\999\@BDW1LAB1
.S D0=INDA S X=$G(INA("BDW1LAB1",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\@BDW1LAB2
.S D0=INDA S X=$G(INA("BDW1LAB2",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\@BDW1LAB3
.S D0=INDA S X=$G(INA("BDW1LAB3",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\@BDW1LAB5
.S D0=INDA S X=$G(INA("BDW1LAB5",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 = INSGX\^INTHL7FT(1,3)\\999\@BDW1LAB6
.S D0=INDA S X=$G(INA("BDW1LAB6",INI(1)))
.S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
.S @INV@("OBX6")=X K DXS,D0
.;SET OBX7 = INSGX\^INTHL7FT(1,3)\\999\@BDW1LAB7
.S D0=INDA S X=$G(INA("BDW1LAB7",INI(1)))
.S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
9 .D EN^IS00007L
G M1^IS00007L
IS00007K ;Compiled from script 'Generated: HL IHS DW1 A08-O' on SEP 08, 2008
+1 ;Part 12
+2 ;Copyright 2008 SAIC
EN IF 'INVS
DO MC^INHS
+1 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=""
+2 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"))
+3 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)
+4 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)
+5 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)
+6 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)
+7 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=""
+8 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"))
+9 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)
+10 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=""
+11 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"))
+12 IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,20,L1,.CP)
+13 SET LCT=LCT+1
SET ^UTILITY("INH",$JOB,LCT)=LINE
IF $DATA(LINE)>9
MERGE ^UTILITY("INH",$JOB,LCT)=LINE
+14 QUIT
K1 SET INDA=INDA0
KILL INDA0
+1 SET INSETID=0
+2 SET INDA0=INDA
SET INI(1)=0
FOR
SET INI(1)=$ORDER(INDA("CPT",INI(1)))
IF 'INI(1)
QUIT
SET INDA=$SELECT(INDA("CPT",INI(1)):INDA("CPT",INI(1)),1:INI(1))
Begin DoDot:1
+3 ;SET OBX1 = INSGX\^INTHL7FT(1,3)\\999\@BDW1CPT1
+4 SET D0=INDA
SET X=$GET(INA("BDW1CPT1",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\@BDW1CPT2
+8 SET D0=INDA
SET X=$GET(INA("BDW1CPT2",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\@BDW1CPT3
+12 SET D0=INDA
SET X=$GET(INA("BDW1CPT3",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\@BDW1CPT5
+19 SET D0=INDA
SET X=$GET(INA("BDW1CPT5",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("LAB",INI(1)))
IF 'INI(1)
QUIT
SET INDA=$SELECT(INDA("LAB",INI(1)):INDA("LAB",INI(1)),1:INI(1))
Begin DoDot:1
+82 ;SET OBX1 = INSGX\^INTHL7FT(1,3)\\999\@BDW1LAB1
+83 SET D0=INDA
SET X=$GET(INA("BDW1LAB1",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\@BDW1LAB2
+87 SET D0=INDA
SET X=$GET(INA("BDW1LAB2",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\@BDW1LAB3
+91 SET D0=INDA
SET X=$GET(INA("BDW1LAB3",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 = INSGX\^INTHL7FT(1,3)\\999\@BDW1LAB5
+98 SET D0=INDA
SET X=$GET(INA("BDW1LAB5",INI(1)))
+99 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+100 SET @INV@("OBX5")=X
KILL DXS,D0
+101 ;SET OBX6 = INSGX\^INTHL7FT(1,3)\\999\@BDW1LAB6
+102 SET D0=INDA
SET X=$GET(INA("BDW1LAB6",INI(1)))
+103 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+104 SET @INV@("OBX6")=X
KILL DXS,D0
+105 ;SET OBX7 = INSGX\^INTHL7FT(1,3)\\999\@BDW1LAB7
+106 SET D0=INDA
SET X=$GET(INA("BDW1LAB7",INI(1)))
+107 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
9 DO EN^IS00007L
End DoDot:1
+1 GOTO M1^IS00007L