IS00007L ;Compiled from script 'Generated: HL IHS DW1 A08-O' on SEP 08, 2008
;Part 13
;Copyright 2008 SAIC
EN 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
M1 S INDA=INDA0 K INDA0
SET INSETID=0
S INDA0=INDA,INI(1)=0 F S INI(1)=$O(INDA("PED",INI(1))) Q:'INI(1) S INDA=$S(INDA("PED",INI(1)):INDA("PED",INI(1)),1:INI(1)) D
.;SET OBX1 = INSGX\^INTHL7FT(1,3)\\999\@BDW1PED1
.S D0=INDA S X=$G(INA("BDW1PED1",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\@BDW1PED2
.S D0=INDA S X=$G(INA("BDW1PED2",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\@BDW1PED3
.S D0=INDA S X=$G(INA("BDW1PED3",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\@BDW1PED5
.S D0=INDA S X=$G(INA("BDW1PED5",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 = INSGX\^INTHL7FT(1,3)\\999\@BDW1PED13
.S D0=INDA S X=$G(INA("BDW1PED13",INI(1)))
.S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
.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("SKT",INI(1))) Q:'INI(1) S INDA=$S(INDA("SKT",INI(1)):INDA("SKT",INI(1)),1:INI(1)) D
.;SET OBX1 = INSGX\^INTHL7FT(1,3)\\999\@BDW1SKT1
.S D0=INDA S X=$G(INA("BDW1SKT1",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
9 .D EN^IS00007M
G O1^IS00007M
IS00007L ;Compiled from script 'Generated: HL IHS DW1 A08-O' on SEP 08, 2008
+1 ;Part 13
+2 ;Copyright 2008 SAIC
EN SET @INV@("OBX7")=X
KILL DXS,D0
+1 ;SET OBX8 = ""
+2 SET D0=INDA
SET X=""
+3 SET @INV@("OBX8")=X
KILL DXS,D0
+4 ;SET OBX9 = ""
+5 SET D0=INDA
SET X=""
+6 SET @INV@("OBX9")=X
KILL DXS,D0
+7 ;SET OBX10 = ""
+8 SET D0=INDA
SET X=""
+9 SET @INV@("OBX10")=X
KILL DXS,D0
+10 ;SET OBX11 = ""
+11 SET D0=INDA
SET X=""
+12 SET @INV@("OBX11")=X
KILL DXS,D0
+13 ;SET OBX12 = ""
+14 SET D0=INDA
SET X=""
+15 SET @INV@("OBX12")=X
KILL DXS,D0
+16 ;SET OBX13 = ""
+17 SET D0=INDA
SET X=""
+18 SET @INV@("OBX13")=X
KILL DXS,D0
+19 ;SET OBX14 = ""
+20 SET D0=INDA
SET X=""
+21 SET @INV@("OBX14")=X
KILL DXS,D0
+22 ;SET OBX15 = ""
+23 SET D0=INDA
SET X=""
+24 SET @INV@("OBX15")=X
KILL DXS,D0
+25 ;SET OBX16 = ""
+26 SET D0=INDA
SET X=""
+27 SET @INV@("OBX16")=X
KILL DXS,D0
+28 ;SET OBX17 = ""
+29 SET D0=INDA
SET X=""
+30 SET @INV@("OBX17")=X
KILL DXS,D0
+31 ;SET OBX18 = ""
+32 SET D0=INDA
SET X=""
+33 SET @INV@("OBX18")=X
KILL DXS,D0
+34 ;SET OBX19 = ""
+35 SET D0=INDA
SET X=""
+36 SET @INV@("OBX19")=X
KILL DXS,D0
+37 IF 'INVS
DO MC^INHS
+38 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=""
+39 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"))
+40 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)
+41 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)
+42 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)
+43 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)
+44 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=""
+45 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"))
+46 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)
+47 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=""
+48 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"))
+49 IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,20,L1,.CP)
+50 SET LCT=LCT+1
SET ^UTILITY("INH",$JOB,LCT)=LINE
IF $DATA(LINE)>9
MERGE ^UTILITY("INH",$JOB,LCT)=LINE
+51 QUIT
M1 SET INDA=INDA0
KILL INDA0
+1 SET INSETID=0
+2 SET INDA0=INDA
SET INI(1)=0
FOR
SET INI(1)=$ORDER(INDA("PED",INI(1)))
IF 'INI(1)
QUIT
SET INDA=$SELECT(INDA("PED",INI(1)):INDA("PED",INI(1)),1:INI(1))
Begin DoDot:1
+3 ;SET OBX1 = INSGX\^INTHL7FT(1,3)\\999\@BDW1PED1
+4 SET D0=INDA
SET X=$GET(INA("BDW1PED1",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\@BDW1PED2
+8 SET D0=INDA
SET X=$GET(INA("BDW1PED2",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\@BDW1PED3
+12 SET D0=INDA
SET X=$GET(INA("BDW1PED3",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\@BDW1PED5
+19 SET D0=INDA
SET X=$GET(INA("BDW1PED5",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 = INSGX\^INTHL7FT(1,3)\\999\@BDW1PED13
+44 SET D0=INDA
SET X=$GET(INA("BDW1PED13",INI(1)))
+45 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+46 SET @INV@("OBX13")=X
KILL DXS,D0
+47 ;SET OBX14 = ""
+48 SET D0=INDA
SET X=""
+49 SET @INV@("OBX14")=X
KILL DXS,D0
+50 ;SET OBX15 = ""
+51 SET D0=INDA
SET X=""
+52 SET @INV@("OBX15")=X
KILL DXS,D0
+53 ;SET OBX16 = ""
+54 SET D0=INDA
SET X=""
+55 SET @INV@("OBX16")=X
KILL DXS,D0
+56 ;SET OBX17 = ""
+57 SET D0=INDA
SET X=""
+58 SET @INV@("OBX17")=X
KILL DXS,D0
+59 ;SET OBX18 = ""
+60 SET D0=INDA
SET X=""
+61 SET @INV@("OBX18")=X
KILL DXS,D0
+62 ;SET OBX19 = ""
+63 SET D0=INDA
SET X=""
+64 SET @INV@("OBX19")=X
KILL DXS,D0
+65 IF 'INVS
DO MC^INHS
+66 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=""
+67 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"))
+68 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)
+69 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)
+70 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)
+71 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)
+72 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=""
+73 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"))
+74 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)
+75 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=""
+76 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"))
+77 IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,20,L1,.CP)
+78 SET LCT=LCT+1
SET ^UTILITY("INH",$JOB,LCT)=LINE
IF $DATA(LINE)>9
MERGE ^UTILITY("INH",$JOB,LCT)=LINE
+79 QUIT
End DoDot:1
+80 SET INDA=INDA0
KILL INDA0
+81 SET INSETID=0
+82 SET INDA0=INDA
SET INI(1)=0
FOR
SET INI(1)=$ORDER(INDA("SKT",INI(1)))
IF 'INI(1)
QUIT
SET INDA=$SELECT(INDA("SKT",INI(1)):INDA("SKT",INI(1)),1:INI(1))
Begin DoDot:1
+83 ;SET OBX1 = INSGX\^INTHL7FT(1,3)\\999\@BDW1SKT1
+84 SET D0=INDA
SET X=$GET(INA("BDW1SKT1",INI(1)))
+85 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+86 SET @INV@("OBX1")=X
KILL DXS,D0
9 DO EN^IS00007M
End DoDot:1
+1 GOTO O1^IS00007M