IS00031A ;Compiled from script 'Generated: HL IHS DW1ALPMR A08-O' on MAY 21, 2015
;Part 2
;Copyright 2015 SAIC
EN S @INV@("PID13")=X K DXS,D0
;SET PID14 = ""
S D0=INDA S X=""
S @INV@("PID14")=X K DXS,D0
;SET PID15 = ""
S D0=INDA S X=""
S @INV@("PID15")=X K DXS,D0
;SET PID16 = ""
S D0=INDA S X=""
S @INV@("PID16")=X K DXS,D0
;SET PID17 = ""
S D0=INDA S X=""
S @INV@("PID17")=X K DXS,D0
;SET PID18 = ""
S D0=INDA S X=""
S @INV@("PID18")=X K DXS,D0
;SET PID19 = INSGX\^INTHL7F(16262,5)\\999\"OUTPUT TRANSFORM"
S D0=INDA S X="OUTPUT TRANSFORM"
S X1="^INTHL7F(16262,5)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
S @INV@("PID19")=X K DXS,D0
;SET PID20 = ""
S D0=INDA S X=""
S @INV@("PID20")=X K DXS,D0
;SET PID21 = ""
S D0=INDA S X=""
S @INV@("PID21")=X K DXS,D0
;SET PID22 = ""
S D0=INDA S X=""
S @INV@("PID22")=X K DXS,D0
;SET PID23 = ""
S D0=INDA S X=""
S @INV@("PID23")=X K DXS,D0
;SET PID24 = ""
S D0=INDA S X=""
S @INV@("PID24")=X K DXS,D0
;SET PID25 = ""
S D0=INDA S X=""
S @INV@("PID25")=X K DXS,D0
;SET PID26 = ""
S D0=INDA S X=""
S @INV@("PID26")=X K DXS,D0
;SET PID27 = INSGX\^INTHL7F(16270,5)\\999\"OUTPUT TRANSFORM"
S D0=INDA S X="OUTPUT TRANSFORM"
S X1="^INTHL7F(16270,5)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
S @INV@("PID27")=X K DXS,D0
;SET PID28 = ""
S D0=INDA S X=""
S @INV@("PID28")=X K DXS,D0
;SET PID29 = INSGX\^INTHL7F(16272,5)\\999\"OUTPUT TRANSFORM"
S D0=INDA S X="OUTPUT TRANSFORM"
S X1="^INTHL7F(16272,5)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
S @INV@("PID29")=X K DXS,D0
;SET PID30 = ""
S D0=INDA S X=""
S @INV@("PID30")=X K DXS,D0
;SET PID31 = ""
S D0=INDA S X=""
S @INV@("PID31")=X K DXS,D0
;SET PID32 = ""
S D0=INDA S X=""
S @INV@("PID32")=X K DXS,D0
;SET PID33 = ""
S D0=INDA S X=""
S @INV@("PID33")=X K DXS,D0
;SET PID34 = ""
S D0=INDA S X=""
S @INV@("PID34")=X K DXS,D0
;SET PID35 = ""
S D0=INDA S X=""
S @INV@("PID35")=X K DXS,D0
;SET PID36 = ""
S D0=INDA S X=""
S @INV@("PID36")=X K DXS,D0
;SET PID37 = ""
S D0=INDA S X=""
S @INV@("PID37")=X K DXS,D0
;SET PID38 = ""
S D0=INDA S X=""
S @INV@("PID38")=X K DXS,D0
D:'INVS MC^INHS
K LINE S LINE="",CP=0 S L1="PID" S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,1,L1,.CP) S L1=$G(@INV@("PID1")) S:$TR(L1,$G(SUBDELIM))="" L1=""
D SETPIECE^INHU(.LINE,DELIM,2,L1,.CP) S L1=$G(@INV@("PID2")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,3,L1,.CP) S L1=$G(@INV@("PID3"))
S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,4,L1,.CP) S L1=$G(@INV@("PID4")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,5,L1,.CP)
S L1=$G(@INV@("PID5")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,6,L1,.CP) S L1=$G(@INV@("PID6")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,7,L1,.CP)
S L1=$G(@INV@("PID7")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,8,L1,.CP) S L1=$G(@INV@("PID8")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,9,L1,.CP)
S L1=$G(@INV@("PID9")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,10,L1,.CP) S L1=$G(@INV@("PID10")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,11,L1,.CP)
S L1=$G(@INV@("PID11")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,12,L1,.CP) S L1=$G(@INV@("PID12")) S:$TR(L1,$G(SUBDELIM))="" L1=""
D SETPIECE^INHU(.LINE,DELIM,13,L1,.CP) S L1=$G(@INV@("PID13")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,14,L1,.CP) S L1=$G(@INV@("PID14"))
S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,15,L1,.CP) S L1=$G(@INV@("PID15")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,16,L1,.CP)
S L1=$G(@INV@("PID16")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,17,L1,.CP) S L1=$G(@INV@("PID17")) S:$TR(L1,$G(SUBDELIM))="" L1=""
D SETPIECE^INHU(.LINE,DELIM,18,L1,.CP) S L1=$G(@INV@("PID18")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,19,L1,.CP) S L1=$G(@INV@("PID19"))
S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,20,L1,.CP) S L1=$G(@INV@("PID20")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,21,L1,.CP)
S L1=$G(@INV@("PID21")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,22,L1,.CP) S L1=$G(@INV@("PID22")) S:$TR(L1,$G(SUBDELIM))="" L1=""
D SETPIECE^INHU(.LINE,DELIM,23,L1,.CP) S L1=$G(@INV@("PID23")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,24,L1,.CP) S L1=$G(@INV@("PID24"))
S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,25,L1,.CP) S L1=$G(@INV@("PID25")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,26,L1,.CP)
S L1=$G(@INV@("PID26")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,27,L1,.CP) S L1=$G(@INV@("PID27")) S:$TR(L1,$G(SUBDELIM))="" L1=""
D SETPIECE^INHU(.LINE,DELIM,28,L1,.CP) S L1=$G(@INV@("PID28")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,29,L1,.CP) S L1=$G(@INV@("PID29"))
S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,30,L1,.CP) S L1=$G(@INV@("PID30")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,31,L1,.CP)
S L1=$G(@INV@("PID31")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,32,L1,.CP) S L1=$G(@INV@("PID32")) S:$TR(L1,$G(SUBDELIM))="" L1=""
D SETPIECE^INHU(.LINE,DELIM,33,L1,.CP) S L1=$G(@INV@("PID33")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,34,L1,.CP) S L1=$G(@INV@("PID34"))
S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,35,L1,.CP) S L1=$G(@INV@("PID35")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,36,L1,.CP)
S L1=$G(@INV@("PID36")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,37,L1,.CP) S L1=$G(@INV@("PID37")) S:$TR(L1,$G(SUBDELIM))="" L1=""
D SETPIECE^INHU(.LINE,DELIM,38,L1,.CP) S L1=$G(@INV@("PID38")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,39,L1,.CP)
S LCT=LCT+1,^UTILITY("INH",$J,LCT)=LINE I $D(LINE)>9 M ^UTILITY("INH",$J,LCT)=LINE
SET INSETID=0
S INDA0=INDA,INI(1)=0 F S INI(1)=$O(INDA("ZPB",INI(1))) Q:'INI(1) S INDA=$S(INDA("ZPB",INI(1)):INDA("ZPB",INI(1)),1:INI(1)) D
.;SET ZPL1 = INSGX\^INTHL7FT(1,3)\\999\@BDW1ZPB1
.S D0=INDA S X=$G(INA("BDW1ZPB1",INI(1)))
.S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
.S @INV@("ZPL1")=X K DXS,D0
.;SET ZPL2 = INSGX\^INTHL7FT(1,3)\\999\@BDW1ZPB2
.S D0=INDA S X=$G(INA("BDW1ZPB2",INI(1)))
.S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
.S @INV@("ZPL2")=X K DXS,D0
.;SET ZPL3 = INSGX\^INTHL7FT(1,3)\\999\@BDW1ZPB3
.S D0=INDA S X=$G(INA("BDW1ZPB3",INI(1)))
.S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
.S @INV@("ZPL3")=X K DXS,D0
.;SET ZPL4 = INSGX\^INTHL7FT(1,3)\\999\@BDW1ZPB4
.S D0=INDA S X=$G(INA("BDW1ZPB4",INI(1)))
.S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
.S @INV@("ZPL4")=X K DXS,D0
.;SET ZPL5 = INSGX\^INTHL7FT(1,3)\\999\@BDW1ZPB5
.S D0=INDA S X=$G(INA("BDW1ZPB5",INI(1)))
.S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
.S @INV@("ZPL5")=X K DXS,D0
.;SET ZPL6 = INSGX\^INTHL7FT(1,3)\\999\@BDW1ZPB6
.S D0=INDA S X=$G(INA("BDW1ZPB6",INI(1)))
.S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
.S @INV@("ZPL6")=X K DXS,D0
.;SET ZPL7 = INSGX\^INTHL7FT(1,3)\\999\@BDW1ZPB7
.S D0=INDA S X=$G(INA("BDW1ZPB7",INI(1)))
.S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
9 .D EN^IS00031B
G A1^IS00031B
IS00031A ;Compiled from script 'Generated: HL IHS DW1ALPMR A08-O' on MAY 21, 2015
+1 ;Part 2
+2 ;Copyright 2015 SAIC
EN SET @INV@("PID13")=X
KILL DXS,D0
+1 ;SET PID14 = ""
+2 SET D0=INDA
SET X=""
+3 SET @INV@("PID14")=X
KILL DXS,D0
+4 ;SET PID15 = ""
+5 SET D0=INDA
SET X=""
+6 SET @INV@("PID15")=X
KILL DXS,D0
+7 ;SET PID16 = ""
+8 SET D0=INDA
SET X=""
+9 SET @INV@("PID16")=X
KILL DXS,D0
+10 ;SET PID17 = ""
+11 SET D0=INDA
SET X=""
+12 SET @INV@("PID17")=X
KILL DXS,D0
+13 ;SET PID18 = ""
+14 SET D0=INDA
SET X=""
+15 SET @INV@("PID18")=X
KILL DXS,D0
+16 ;SET PID19 = INSGX\^INTHL7F(16262,5)\\999\"OUTPUT TRANSFORM"
+17 SET D0=INDA
SET X="OUTPUT TRANSFORM"
+18 SET X1="^INTHL7F(16262,5)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+19 SET @INV@("PID19")=X
KILL DXS,D0
+20 ;SET PID20 = ""
+21 SET D0=INDA
SET X=""
+22 SET @INV@("PID20")=X
KILL DXS,D0
+23 ;SET PID21 = ""
+24 SET D0=INDA
SET X=""
+25 SET @INV@("PID21")=X
KILL DXS,D0
+26 ;SET PID22 = ""
+27 SET D0=INDA
SET X=""
+28 SET @INV@("PID22")=X
KILL DXS,D0
+29 ;SET PID23 = ""
+30 SET D0=INDA
SET X=""
+31 SET @INV@("PID23")=X
KILL DXS,D0
+32 ;SET PID24 = ""
+33 SET D0=INDA
SET X=""
+34 SET @INV@("PID24")=X
KILL DXS,D0
+35 ;SET PID25 = ""
+36 SET D0=INDA
SET X=""
+37 SET @INV@("PID25")=X
KILL DXS,D0
+38 ;SET PID26 = ""
+39 SET D0=INDA
SET X=""
+40 SET @INV@("PID26")=X
KILL DXS,D0
+41 ;SET PID27 = INSGX\^INTHL7F(16270,5)\\999\"OUTPUT TRANSFORM"
+42 SET D0=INDA
SET X="OUTPUT TRANSFORM"
+43 SET X1="^INTHL7F(16270,5)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+44 SET @INV@("PID27")=X
KILL DXS,D0
+45 ;SET PID28 = ""
+46 SET D0=INDA
SET X=""
+47 SET @INV@("PID28")=X
KILL DXS,D0
+48 ;SET PID29 = INSGX\^INTHL7F(16272,5)\\999\"OUTPUT TRANSFORM"
+49 SET D0=INDA
SET X="OUTPUT TRANSFORM"
+50 SET X1="^INTHL7F(16272,5)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+51 SET @INV@("PID29")=X
KILL DXS,D0
+52 ;SET PID30 = ""
+53 SET D0=INDA
SET X=""
+54 SET @INV@("PID30")=X
KILL DXS,D0
+55 ;SET PID31 = ""
+56 SET D0=INDA
SET X=""
+57 SET @INV@("PID31")=X
KILL DXS,D0
+58 ;SET PID32 = ""
+59 SET D0=INDA
SET X=""
+60 SET @INV@("PID32")=X
KILL DXS,D0
+61 ;SET PID33 = ""
+62 SET D0=INDA
SET X=""
+63 SET @INV@("PID33")=X
KILL DXS,D0
+64 ;SET PID34 = ""
+65 SET D0=INDA
SET X=""
+66 SET @INV@("PID34")=X
KILL DXS,D0
+67 ;SET PID35 = ""
+68 SET D0=INDA
SET X=""
+69 SET @INV@("PID35")=X
KILL DXS,D0
+70 ;SET PID36 = ""
+71 SET D0=INDA
SET X=""
+72 SET @INV@("PID36")=X
KILL DXS,D0
+73 ;SET PID37 = ""
+74 SET D0=INDA
SET X=""
+75 SET @INV@("PID37")=X
KILL DXS,D0
+76 ;SET PID38 = ""
+77 SET D0=INDA
SET X=""
+78 SET @INV@("PID38")=X
KILL DXS,D0
+79 IF 'INVS
DO MC^INHS
+80 KILL LINE
SET LINE=""
SET CP=0
SET L1="PID"
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,1,L1,.CP)
SET L1=$GET(@INV@("PID1"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
+81 DO SETPIECE^INHU(.LINE,DELIM,2,L1,.CP)
SET L1=$GET(@INV@("PID2"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,3,L1,.CP)
SET L1=$GET(@INV@("PID3"))
+82 IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,4,L1,.CP)
SET L1=$GET(@INV@("PID4"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,5,L1,.CP)
+83 SET L1=$GET(@INV@("PID5"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,6,L1,.CP)
SET L1=$GET(@INV@("PID6"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,7,L1,.CP)
+84 SET L1=$GET(@INV@("PID7"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,8,L1,.CP)
SET L1=$GET(@INV@("PID8"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,9,L1,.CP)
+85 SET L1=$GET(@INV@("PID9"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,10,L1,.CP)
SET L1=$GET(@INV@("PID10"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,11,L1,.CP)
+86 SET L1=$GET(@INV@("PID11"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,12,L1,.CP)
SET L1=$GET(@INV@("PID12"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
+87 DO SETPIECE^INHU(.LINE,DELIM,13,L1,.CP)
SET L1=$GET(@INV@("PID13"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,14,L1,.CP)
SET L1=$GET(@INV@("PID14"))
+88 IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,15,L1,.CP)
SET L1=$GET(@INV@("PID15"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,16,L1,.CP)
+89 SET L1=$GET(@INV@("PID16"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,17,L1,.CP)
SET L1=$GET(@INV@("PID17"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
+90 DO SETPIECE^INHU(.LINE,DELIM,18,L1,.CP)
SET L1=$GET(@INV@("PID18"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,19,L1,.CP)
SET L1=$GET(@INV@("PID19"))
+91 IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,20,L1,.CP)
SET L1=$GET(@INV@("PID20"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,21,L1,.CP)
+92 SET L1=$GET(@INV@("PID21"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,22,L1,.CP)
SET L1=$GET(@INV@("PID22"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
+93 DO SETPIECE^INHU(.LINE,DELIM,23,L1,.CP)
SET L1=$GET(@INV@("PID23"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,24,L1,.CP)
SET L1=$GET(@INV@("PID24"))
+94 IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,25,L1,.CP)
SET L1=$GET(@INV@("PID25"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,26,L1,.CP)
+95 SET L1=$GET(@INV@("PID26"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,27,L1,.CP)
SET L1=$GET(@INV@("PID27"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
+96 DO SETPIECE^INHU(.LINE,DELIM,28,L1,.CP)
SET L1=$GET(@INV@("PID28"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,29,L1,.CP)
SET L1=$GET(@INV@("PID29"))
+97 IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,30,L1,.CP)
SET L1=$GET(@INV@("PID30"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,31,L1,.CP)
+98 SET L1=$GET(@INV@("PID31"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,32,L1,.CP)
SET L1=$GET(@INV@("PID32"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
+99 DO SETPIECE^INHU(.LINE,DELIM,33,L1,.CP)
SET L1=$GET(@INV@("PID33"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,34,L1,.CP)
SET L1=$GET(@INV@("PID34"))
+100 IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,35,L1,.CP)
SET L1=$GET(@INV@("PID35"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,36,L1,.CP)
+101 SET L1=$GET(@INV@("PID36"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,37,L1,.CP)
SET L1=$GET(@INV@("PID37"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
+102 DO SETPIECE^INHU(.LINE,DELIM,38,L1,.CP)
SET L1=$GET(@INV@("PID38"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,39,L1,.CP)
+103 SET LCT=LCT+1
SET ^UTILITY("INH",$JOB,LCT)=LINE
IF $DATA(LINE)>9
MERGE ^UTILITY("INH",$JOB,LCT)=LINE
+104 SET INSETID=0
+105 SET INDA0=INDA
SET INI(1)=0
FOR
SET INI(1)=$ORDER(INDA("ZPB",INI(1)))
IF 'INI(1)
QUIT
SET INDA=$SELECT(INDA("ZPB",INI(1)):INDA("ZPB",INI(1)),1:INI(1))
Begin DoDot:1
+106 ;SET ZPL1 = INSGX\^INTHL7FT(1,3)\\999\@BDW1ZPB1
+107 SET D0=INDA
SET X=$GET(INA("BDW1ZPB1",INI(1)))
+108 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+109 SET @INV@("ZPL1")=X
KILL DXS,D0
+110 ;SET ZPL2 = INSGX\^INTHL7FT(1,3)\\999\@BDW1ZPB2
+111 SET D0=INDA
SET X=$GET(INA("BDW1ZPB2",INI(1)))
+112 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+113 SET @INV@("ZPL2")=X
KILL DXS,D0
+114 ;SET ZPL3 = INSGX\^INTHL7FT(1,3)\\999\@BDW1ZPB3
+115 SET D0=INDA
SET X=$GET(INA("BDW1ZPB3",INI(1)))
+116 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+117 SET @INV@("ZPL3")=X
KILL DXS,D0
+118 ;SET ZPL4 = INSGX\^INTHL7FT(1,3)\\999\@BDW1ZPB4
+119 SET D0=INDA
SET X=$GET(INA("BDW1ZPB4",INI(1)))
+120 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+121 SET @INV@("ZPL4")=X
KILL DXS,D0
+122 ;SET ZPL5 = INSGX\^INTHL7FT(1,3)\\999\@BDW1ZPB5
+123 SET D0=INDA
SET X=$GET(INA("BDW1ZPB5",INI(1)))
+124 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+125 SET @INV@("ZPL5")=X
KILL DXS,D0
+126 ;SET ZPL6 = INSGX\^INTHL7FT(1,3)\\999\@BDW1ZPB6
+127 SET D0=INDA
SET X=$GET(INA("BDW1ZPB6",INI(1)))
+128 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+129 SET @INV@("ZPL6")=X
KILL DXS,D0
+130 ;SET ZPL7 = INSGX\^INTHL7FT(1,3)\\999\@BDW1ZPB7
+131 SET D0=INDA
SET X=$GET(INA("BDW1ZPB7",INI(1)))
+132 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
9 DO EN^IS00031B
End DoDot:1
+1 GOTO A1^IS00031B