IS00018(UIF,INOA,INODA) ;Compiled from script 'Generated: HL IHS LAB R01 UNILAB IN-I' on AUG 14, 2006
;Part 1
;Copyright 2006 SAIC
EN S X="ERROR^IS00018",@^%ZOSF("TRAP")
G START
ERROR ;
S X="",@^%ZOSF("TRAP") X ^INTHOS(1,3) D ERROR^INHS($$GETERR^%ZTOS)
Q 2
START ;Initialize variables
K FIELD,MDESC,INDA,DIPA S (INAUDIT,INLAYGO)=0
K INREQERR,INHERR,INHERCNT,INV D SETDT^UTDT S DUZ(0)="@",DUZ("AG")="^1",DTIME=1 S (LCT,GERR)=0,INMODE="I",INVS=$P(^INRHSITE(1,0),U,12),INV=$S(INVS<2:"INV",1:"^UTILITY(""INV"",$J)"),(MULT,INSTERR)=0
S INHLDUZ=$O(^VA(200,"B","GIS,USER",0)),DUZ=$S($G(INHLDUZ):INHLDUZ,1:.5)
S BHLMIEN="12434"
I $G(^INTHL7M(BHLMIEN,4,1,0))]"" X $G(^INTHL7M(BHLMIEN,4,1,0))
K INSETID
S INSMIN=$S($P($G(^INRHSITE(1,0)),U,14):$P(^(0),U,14),1:2500)
S (DELIM,INDELIM)=$$FIELD^INHUT(),(SUBDELIM,INSUBDEL)=$$COMP^INHUT(),INSUBCOM=$$SUBCOMP^INHUT()
;Entering DATA section.
S X=$$GL^INHOU(UIF,LCT),Y(1)=$G(X) S X=4,X=$E(Y(1),X) S DELIM=X K DXS
S X=$$GL^INHOU(UIF,LCT),Y(1)=$G(X) S X=5,X=$E(Y(1),X) S SUBDELIM=X K DXS S INDELIMS=DELIM_$P(Y(1),DELIM,2)
N INDEFSEG
S INDEFSEG("MSH",0)=0
S INDEFSEG("PID",0)=0
S INDEFSEG("NTE",1)=1
S INDEFSEG("PV1",0)=0
S INDEFSEG("ORC",0)=0
S INDEFSEG("OBR",1)=1
S INDEFSEG("NTE",2)=1
S INDEFSEG("OBX",2)=1
S INDEFSEG("NTE",3)=1
;Start of GROUP
F S MATCH=0 D Q:'MATCH
.D:'INVS MC^INHS
.D GET^INHOU(UIF,0) S LINE=$G(LINE),DO=0
.I 'MATCH,LINE?1"M"1"S"1"H".ANPC S DO=1,MATCH=1
.E S LCT=LCT-CNT,DO=0
.S:DO @("@INV@(""MSH1"")")=$E($G(LINE),4)
.S:DO @("@INV@(""MSH2"")")=$$PIECE^INHU(.LINE,DELIM,2)
.S:DO @("@INV@(""MSH3"")")=$$PIECE^INHU(.LINE,DELIM,3)
.S:DO @("@INV@(""MSH4"")")=$$PIECE^INHU(.LINE,DELIM,4)
.S:DO @("@INV@(""MSH5"")")=$$PIECE^INHU(.LINE,DELIM,5)
.S:DO @("@INV@(""MSH6"")")=$$PIECE^INHU(.LINE,DELIM,6)
.S:DO @("@INV@(""MSH7"")")=$$PIECE^INHU(.LINE,DELIM,7)
.S:DO @("@INV@(""MSH8"")")=$$PIECE^INHU(.LINE,DELIM,8)
.S:DO @("@INV@(""MSH9"")")=$$PIECE^INHU(.LINE,DELIM,9)
.S:DO @("@INV@(""MSH10"")")=$$PIECE^INHU(.LINE,DELIM,10)
.S:DO @("@INV@(""MSH11"")")=$$PIECE^INHU(.LINE,DELIM,11)
.S:DO @("@INV@(""MSH12"")")=$$PIECE^INHU(.LINE,DELIM,12)
.S:DO @("@INV@(""MSH13"")")=$$PIECE^INHU(.LINE,DELIM,13)
.S:DO @("@INV@(""MSH14"")")=$$PIECE^INHU(.LINE,DELIM,14)
.S:DO @("@INV@(""MSH15"")")=$$PIECE^INHU(.LINE,DELIM,15)
.S:DO @("@INV@(""MSH16"")")=$$PIECE^INHU(.LINE,DELIM,16)
.S:DO @("@INV@(""MSH17"")")=$$PIECE^INHU(.LINE,DELIM,17)
.Q:MATCH
.D:'INVS MC^INHS
.D GET^INHOU(UIF,0) S LINE=$G(LINE),DO=0
.I 'MATCH,LINE?1"P"1"I"1"D".ANPC S DO=1,MATCH=1
.E S LCT=LCT-CNT,DO=0
.S:DO @("@INV@(""PID1"")")=$$PIECE^INHU(.LINE,DELIM,2)
.S:DO @("@INV@(""PID2"")")=$$PIECE^INHU(.LINE,DELIM,3)
.S:DO @("@INV@(""PID3"")")=$$PIECE^INHU(.LINE,DELIM,4)
.S:DO @("@INV@(""PID4"")")=$$PIECE^INHU(.LINE,DELIM,5)
.S:DO @("@INV@(""PID5"")")=$$PIECE^INHU(.LINE,DELIM,6)
.S:DO @("@INV@(""PID6"")")=$$PIECE^INHU(.LINE,DELIM,7)
.S:DO @("@INV@(""PID7"")")=$$PIECE^INHU(.LINE,DELIM,8)
.S:DO @("@INV@(""PID8"")")=$$PIECE^INHU(.LINE,DELIM,9)
.S:DO @("@INV@(""PID9"")")=$$PIECE^INHU(.LINE,DELIM,10)
.S:DO @("@INV@(""PID10"")")=$$PIECE^INHU(.LINE,DELIM,11)
.S:DO @("@INV@(""PID11"")")=$$PIECE^INHU(.LINE,DELIM,12)
.S:DO @("@INV@(""PID12"")")=$$PIECE^INHU(.LINE,DELIM,13)
.S:DO @("@INV@(""PID13"")")=$$PIECE^INHU(.LINE,DELIM,14)
.S:DO @("@INV@(""PID14"")")=$$PIECE^INHU(.LINE,DELIM,15)
.S:DO @("@INV@(""PID15"")")=$$PIECE^INHU(.LINE,DELIM,16)
.S:DO @("@INV@(""PID16"")")=$$PIECE^INHU(.LINE,DELIM,17)
.S:DO @("@INV@(""PID17"")")=$$PIECE^INHU(.LINE,DELIM,18)
.S:DO @("@INV@(""PID18"")")=$$PIECE^INHU(.LINE,DELIM,19)
.S:DO @("@INV@(""PID19"")")=$$PIECE^INHU(.LINE,DELIM,20)
.S:DO @("@INV@(""PID20"")")=$$PIECE^INHU(.LINE,DELIM,21)
.S:DO @("@INV@(""PID21"")")=$$PIECE^INHU(.LINE,DELIM,22)
.S:DO @("@INV@(""PID22"")")=$$PIECE^INHU(.LINE,DELIM,23)
.S:DO @("@INV@(""PID23"")")=$$PIECE^INHU(.LINE,DELIM,24)
.S:DO @("@INV@(""PID24"")")=$$PIECE^INHU(.LINE,DELIM,25)
.S:DO @("@INV@(""PID25"")")=$$PIECE^INHU(.LINE,DELIM,26)
.S:DO @("@INV@(""PID26"")")=$$PIECE^INHU(.LINE,DELIM,27)
.S:DO @("@INV@(""PID27"")")=$$PIECE^INHU(.LINE,DELIM,28)
.S:DO @("@INV@(""PID28"")")=$$PIECE^INHU(.LINE,DELIM,29)
.S:DO @("@INV@(""PID29"")")=$$PIECE^INHU(.LINE,DELIM,30)
.S:DO @("@INV@(""PID30"")")=$$PIECE^INHU(.LINE,DELIM,31)
.S:DO @("@INV@(""PID31"")")=$$PIECE^INHU(.LINE,DELIM,32)
.S:DO @("@INV@(""PID32"")")=$$PIECE^INHU(.LINE,DELIM,33)
.S:DO @("@INV@(""PID33"")")=$$PIECE^INHU(.LINE,DELIM,34)
.S:DO @("@INV@(""PID34"")")=$$PIECE^INHU(.LINE,DELIM,35)
.S:DO @("@INV@(""PID35"")")=$$PIECE^INHU(.LINE,DELIM,36)
.S:DO @("@INV@(""PID36"")")=$$PIECE^INHU(.LINE,DELIM,37)
.S:DO @("@INV@(""PID37"")")=$$PIECE^INHU(.LINE,DELIM,38)
.S:DO @("@INV@(""PID38"")")=$$PIECE^INHU(.LINE,DELIM,39)
.Q:MATCH
.Q
;WHILE $P(DATA,DELIM)="NTE"
S INI(1)=1 F S DATA=$$GL^INHOU(UIF,LCT) Q:'$$CHECKSEG^INHOU("NTE",0,1) D S INI(1)=INI(1)+1
.D:'INVS MC^INHS
.D GET^INHOU(UIF,0) S LINE=$G(LINE),DO=1
.S:DO @("@INV@(""NTE1"",INI(1))")=$$PIECE^INHU(.LINE,DELIM,2)
.S:DO @("@INV@(""NTE2"",INI(1))")=$$PIECE^INHU(.LINE,DELIM,3)
.S:DO @("@INV@(""NTE3"",INI(1))")=$$PIECE^INHU(.LINE,DELIM,4)
.S:DO @("@INV@(""NTE4"",INI(1))")=$$PIECE^INHU(.LINE,DELIM,5)
.Q
;Start of GROUP
F S MATCH=0 D Q:'MATCH
.D:'INVS MC^INHS
.D GET^INHOU(UIF,0) S LINE=$G(LINE),DO=0
.I 'MATCH,LINE?1"P"1"V"1"1".ANPC S DO=1,MATCH=1
.E S LCT=LCT-CNT,DO=0
.S:DO @("@INV@(""PV11"")")=$$PIECE^INHU(.LINE,DELIM,2)
.S:DO @("@INV@(""PV12"")")=$$PIECE^INHU(.LINE,DELIM,3)
.S:DO @("@INV@(""PV13"")")=$$PIECE^INHU(.LINE,DELIM,4)
.S:DO @("@INV@(""PV14"")")=$$PIECE^INHU(.LINE,DELIM,5)
.S:DO @("@INV@(""PV15"")")=$$PIECE^INHU(.LINE,DELIM,6)
.S:DO @("@INV@(""PV16"")")=$$PIECE^INHU(.LINE,DELIM,7)
.S:DO @("@INV@(""PV17"")")=$$PIECE^INHU(.LINE,DELIM,8)
.S:DO @("@INV@(""PV18"")")=$$PIECE^INHU(.LINE,DELIM,9)
.S:DO @("@INV@(""PV19"")")=$$PIECE^INHU(.LINE,DELIM,10)
.S:DO @("@INV@(""PV110"")")=$$PIECE^INHU(.LINE,DELIM,11)
.S:DO @("@INV@(""PV111"")")=$$PIECE^INHU(.LINE,DELIM,12)
.S:DO @("@INV@(""PV112"")")=$$PIECE^INHU(.LINE,DELIM,13)
.S:DO @("@INV@(""PV113"")")=$$PIECE^INHU(.LINE,DELIM,14)
.S:DO @("@INV@(""PV114"")")=$$PIECE^INHU(.LINE,DELIM,15)
.S:DO @("@INV@(""PV115"")")=$$PIECE^INHU(.LINE,DELIM,16)
.S:DO @("@INV@(""PV116"")")=$$PIECE^INHU(.LINE,DELIM,17)
.S:DO @("@INV@(""PV117"")")=$$PIECE^INHU(.LINE,DELIM,18)
.S:DO @("@INV@(""PV118"")")=$$PIECE^INHU(.LINE,DELIM,19)
.S:DO @("@INV@(""PV119"")")=$$PIECE^INHU(.LINE,DELIM,20)
.S:DO @("@INV@(""PV120"")")=$$PIECE^INHU(.LINE,DELIM,21)
.S:DO @("@INV@(""PV121"")")=$$PIECE^INHU(.LINE,DELIM,22)
.S:DO @("@INV@(""PV122"")")=$$PIECE^INHU(.LINE,DELIM,23)
.S:DO @("@INV@(""PV123"")")=$$PIECE^INHU(.LINE,DELIM,24)
.S:DO @("@INV@(""PV124"")")=$$PIECE^INHU(.LINE,DELIM,25)
.S:DO @("@INV@(""PV125"")")=$$PIECE^INHU(.LINE,DELIM,26)
.S:DO @("@INV@(""PV126"")")=$$PIECE^INHU(.LINE,DELIM,27)
.S:DO @("@INV@(""PV127"")")=$$PIECE^INHU(.LINE,DELIM,28)
.S:DO @("@INV@(""PV128"")")=$$PIECE^INHU(.LINE,DELIM,29)
.S:DO @("@INV@(""PV129"")")=$$PIECE^INHU(.LINE,DELIM,30)
.S:DO @("@INV@(""PV130"")")=$$PIECE^INHU(.LINE,DELIM,31)
.S:DO @("@INV@(""PV131"")")=$$PIECE^INHU(.LINE,DELIM,32)
.S:DO @("@INV@(""PV132"")")=$$PIECE^INHU(.LINE,DELIM,33)
.S:DO @("@INV@(""PV133"")")=$$PIECE^INHU(.LINE,DELIM,34)
.S:DO @("@INV@(""PV134"")")=$$PIECE^INHU(.LINE,DELIM,35)
.S:DO @("@INV@(""PV135"")")=$$PIECE^INHU(.LINE,DELIM,36)
9 .D EN^IS00018A
G C1^IS00018A
IS00018(UIF,INOA,INODA) ;Compiled from script 'Generated: HL IHS LAB R01 UNILAB IN-I' on AUG 14, 2006
+1 ;Part 1
+2 ;Copyright 2006 SAIC
EN SET X="ERROR^IS00018"
SET @^%ZOSF("TRAP")
+1 GOTO START
ERROR ;
+1 SET X=""
SET @^%ZOSF("TRAP")
XECUTE ^INTHOS(1,3)
DO ERROR^INHS($$GETERR^%ZTOS)
+2 QUIT 2
START ;Initialize variables
+1 KILL FIELD,MDESC,INDA,DIPA
SET (INAUDIT,INLAYGO)=0
+2 KILL INREQERR,INHERR,INHERCNT,INV
DO SETDT^UTDT
SET DUZ(0)="@"
SET DUZ("AG")="^1"
SET DTIME=1
SET (LCT,GERR)=0
SET INMODE="I"
SET INVS=$PIECE(^INRHSITE(1,0),U,12)
SET INV=$SELECT(INVS<2:"INV",1:"^UTILITY(""INV"",$J)")
SET (MULT,INSTERR)=0
+3 SET INHLDUZ=$ORDER(^VA(200,"B","GIS,USER",0))
SET DUZ=$SELECT($GET(INHLDUZ):INHLDUZ,1:.5)
+4 SET BHLMIEN="12434"
+5 IF $GET(^INTHL7M(BHLMIEN,4,1,0))]""
XECUTE $GET(^INTHL7M(BHLMIEN,4,1,0))
+6 KILL INSETID
+7 SET INSMIN=$SELECT($PIECE($GET(^INRHSITE(1,0)),U,14):$PIECE(^(0),U,14),1:2500)
+8 SET (DELIM,INDELIM)=$$FIELD^INHUT()
SET (SUBDELIM,INSUBDEL)=$$COMP^INHUT()
SET INSUBCOM=$$SUBCOMP^INHUT()
+9 ;Entering DATA section.
+10 SET X=$$GL^INHOU(UIF,LCT)
SET Y(1)=$GET(X)
SET X=4
SET X=$EXTRACT(Y(1),X)
SET DELIM=X
KILL DXS
+11 SET X=$$GL^INHOU(UIF,LCT)
SET Y(1)=$GET(X)
SET X=5
SET X=$EXTRACT(Y(1),X)
SET SUBDELIM=X
KILL DXS
SET INDELIMS=DELIM_$PIECE(Y(1),DELIM,2)
+12 NEW INDEFSEG
+13 SET INDEFSEG("MSH",0)=0
+14 SET INDEFSEG("PID",0)=0
+15 SET INDEFSEG("NTE",1)=1
+16 SET INDEFSEG("PV1",0)=0
+17 SET INDEFSEG("ORC",0)=0
+18 SET INDEFSEG("OBR",1)=1
+19 SET INDEFSEG("NTE",2)=1
+20 SET INDEFSEG("OBX",2)=1
+21 SET INDEFSEG("NTE",3)=1
+22 ;Start of GROUP
+23 FOR
SET MATCH=0
Begin DoDot:1
+24 IF 'INVS
DO MC^INHS
+25 DO GET^INHOU(UIF,0)
SET LINE=$GET(LINE)
SET DO=0
+26 IF 'MATCH
IF LINE?1"M"1"S"1"H".ANPC
SET DO=1
SET MATCH=1
+27 IF '$TEST
SET LCT=LCT-CNT
SET DO=0
+28 IF DO
SET @("@INV@(""MSH1"")")=$EXTRACT($GET(LINE),4)
+29 IF DO
SET @("@INV@(""MSH2"")")=$$PIECE^INHU(.LINE,DELIM,2)
+30 IF DO
SET @("@INV@(""MSH3"")")=$$PIECE^INHU(.LINE,DELIM,3)
+31 IF DO
SET @("@INV@(""MSH4"")")=$$PIECE^INHU(.LINE,DELIM,4)
+32 IF DO
SET @("@INV@(""MSH5"")")=$$PIECE^INHU(.LINE,DELIM,5)
+33 IF DO
SET @("@INV@(""MSH6"")")=$$PIECE^INHU(.LINE,DELIM,6)
+34 IF DO
SET @("@INV@(""MSH7"")")=$$PIECE^INHU(.LINE,DELIM,7)
+35 IF DO
SET @("@INV@(""MSH8"")")=$$PIECE^INHU(.LINE,DELIM,8)
+36 IF DO
SET @("@INV@(""MSH9"")")=$$PIECE^INHU(.LINE,DELIM,9)
+37 IF DO
SET @("@INV@(""MSH10"")")=$$PIECE^INHU(.LINE,DELIM,10)
+38 IF DO
SET @("@INV@(""MSH11"")")=$$PIECE^INHU(.LINE,DELIM,11)
+39 IF DO
SET @("@INV@(""MSH12"")")=$$PIECE^INHU(.LINE,DELIM,12)
+40 IF DO
SET @("@INV@(""MSH13"")")=$$PIECE^INHU(.LINE,DELIM,13)
+41 IF DO
SET @("@INV@(""MSH14"")")=$$PIECE^INHU(.LINE,DELIM,14)
+42 IF DO
SET @("@INV@(""MSH15"")")=$$PIECE^INHU(.LINE,DELIM,15)
+43 IF DO
SET @("@INV@(""MSH16"")")=$$PIECE^INHU(.LINE,DELIM,16)
+44 IF DO
SET @("@INV@(""MSH17"")")=$$PIECE^INHU(.LINE,DELIM,17)
+45 IF MATCH
QUIT
+46 IF 'INVS
DO MC^INHS
+47 DO GET^INHOU(UIF,0)
SET LINE=$GET(LINE)
SET DO=0
+48 IF 'MATCH
IF LINE?1"P"1"I"1"D".ANPC
SET DO=1
SET MATCH=1
+49 IF '$TEST
SET LCT=LCT-CNT
SET DO=0
+50 IF DO
SET @("@INV@(""PID1"")")=$$PIECE^INHU(.LINE,DELIM,2)
+51 IF DO
SET @("@INV@(""PID2"")")=$$PIECE^INHU(.LINE,DELIM,3)
+52 IF DO
SET @("@INV@(""PID3"")")=$$PIECE^INHU(.LINE,DELIM,4)
+53 IF DO
SET @("@INV@(""PID4"")")=$$PIECE^INHU(.LINE,DELIM,5)
+54 IF DO
SET @("@INV@(""PID5"")")=$$PIECE^INHU(.LINE,DELIM,6)
+55 IF DO
SET @("@INV@(""PID6"")")=$$PIECE^INHU(.LINE,DELIM,7)
+56 IF DO
SET @("@INV@(""PID7"")")=$$PIECE^INHU(.LINE,DELIM,8)
+57 IF DO
SET @("@INV@(""PID8"")")=$$PIECE^INHU(.LINE,DELIM,9)
+58 IF DO
SET @("@INV@(""PID9"")")=$$PIECE^INHU(.LINE,DELIM,10)
+59 IF DO
SET @("@INV@(""PID10"")")=$$PIECE^INHU(.LINE,DELIM,11)
+60 IF DO
SET @("@INV@(""PID11"")")=$$PIECE^INHU(.LINE,DELIM,12)
+61 IF DO
SET @("@INV@(""PID12"")")=$$PIECE^INHU(.LINE,DELIM,13)
+62 IF DO
SET @("@INV@(""PID13"")")=$$PIECE^INHU(.LINE,DELIM,14)
+63 IF DO
SET @("@INV@(""PID14"")")=$$PIECE^INHU(.LINE,DELIM,15)
+64 IF DO
SET @("@INV@(""PID15"")")=$$PIECE^INHU(.LINE,DELIM,16)
+65 IF DO
SET @("@INV@(""PID16"")")=$$PIECE^INHU(.LINE,DELIM,17)
+66 IF DO
SET @("@INV@(""PID17"")")=$$PIECE^INHU(.LINE,DELIM,18)
+67 IF DO
SET @("@INV@(""PID18"")")=$$PIECE^INHU(.LINE,DELIM,19)
+68 IF DO
SET @("@INV@(""PID19"")")=$$PIECE^INHU(.LINE,DELIM,20)
+69 IF DO
SET @("@INV@(""PID20"")")=$$PIECE^INHU(.LINE,DELIM,21)
+70 IF DO
SET @("@INV@(""PID21"")")=$$PIECE^INHU(.LINE,DELIM,22)
+71 IF DO
SET @("@INV@(""PID22"")")=$$PIECE^INHU(.LINE,DELIM,23)
+72 IF DO
SET @("@INV@(""PID23"")")=$$PIECE^INHU(.LINE,DELIM,24)
+73 IF DO
SET @("@INV@(""PID24"")")=$$PIECE^INHU(.LINE,DELIM,25)
+74 IF DO
SET @("@INV@(""PID25"")")=$$PIECE^INHU(.LINE,DELIM,26)
+75 IF DO
SET @("@INV@(""PID26"")")=$$PIECE^INHU(.LINE,DELIM,27)
+76 IF DO
SET @("@INV@(""PID27"")")=$$PIECE^INHU(.LINE,DELIM,28)
+77 IF DO
SET @("@INV@(""PID28"")")=$$PIECE^INHU(.LINE,DELIM,29)
+78 IF DO
SET @("@INV@(""PID29"")")=$$PIECE^INHU(.LINE,DELIM,30)
+79 IF DO
SET @("@INV@(""PID30"")")=$$PIECE^INHU(.LINE,DELIM,31)
+80 IF DO
SET @("@INV@(""PID31"")")=$$PIECE^INHU(.LINE,DELIM,32)
+81 IF DO
SET @("@INV@(""PID32"")")=$$PIECE^INHU(.LINE,DELIM,33)
+82 IF DO
SET @("@INV@(""PID33"")")=$$PIECE^INHU(.LINE,DELIM,34)
+83 IF DO
SET @("@INV@(""PID34"")")=$$PIECE^INHU(.LINE,DELIM,35)
+84 IF DO
SET @("@INV@(""PID35"")")=$$PIECE^INHU(.LINE,DELIM,36)
+85 IF DO
SET @("@INV@(""PID36"")")=$$PIECE^INHU(.LINE,DELIM,37)
+86 IF DO
SET @("@INV@(""PID37"")")=$$PIECE^INHU(.LINE,DELIM,38)
+87 IF DO
SET @("@INV@(""PID38"")")=$$PIECE^INHU(.LINE,DELIM,39)
+88 IF MATCH
QUIT
+89 QUIT
End DoDot:1
IF 'MATCH
QUIT
+90 ;WHILE $P(DATA,DELIM)="NTE"
+91 SET INI(1)=1
FOR
SET DATA=$$GL^INHOU(UIF,LCT)
IF '$$CHECKSEG^INHOU("NTE",0,1)
QUIT
Begin DoDot:1
+92 IF 'INVS
DO MC^INHS
+93 DO GET^INHOU(UIF,0)
SET LINE=$GET(LINE)
SET DO=1
+94 IF DO
SET @("@INV@(""NTE1"",INI(1))")=$$PIECE^INHU(.LINE,DELIM,2)
+95 IF DO
SET @("@INV@(""NTE2"",INI(1))")=$$PIECE^INHU(.LINE,DELIM,3)
+96 IF DO
SET @("@INV@(""NTE3"",INI(1))")=$$PIECE^INHU(.LINE,DELIM,4)
+97 IF DO
SET @("@INV@(""NTE4"",INI(1))")=$$PIECE^INHU(.LINE,DELIM,5)
+98 QUIT
End DoDot:1
SET INI(1)=INI(1)+1
+99 ;Start of GROUP
+100 FOR
SET MATCH=0
Begin DoDot:1
+101 IF 'INVS
DO MC^INHS
+102 DO GET^INHOU(UIF,0)
SET LINE=$GET(LINE)
SET DO=0
+103 IF 'MATCH
IF LINE?1"P"1"V"1"1".ANPC
SET DO=1
SET MATCH=1
+104 IF '$TEST
SET LCT=LCT-CNT
SET DO=0
+105 IF DO
SET @("@INV@(""PV11"")")=$$PIECE^INHU(.LINE,DELIM,2)
+106 IF DO
SET @("@INV@(""PV12"")")=$$PIECE^INHU(.LINE,DELIM,3)
+107 IF DO
SET @("@INV@(""PV13"")")=$$PIECE^INHU(.LINE,DELIM,4)
+108 IF DO
SET @("@INV@(""PV14"")")=$$PIECE^INHU(.LINE,DELIM,5)
+109 IF DO
SET @("@INV@(""PV15"")")=$$PIECE^INHU(.LINE,DELIM,6)
+110 IF DO
SET @("@INV@(""PV16"")")=$$PIECE^INHU(.LINE,DELIM,7)
+111 IF DO
SET @("@INV@(""PV17"")")=$$PIECE^INHU(.LINE,DELIM,8)
+112 IF DO
SET @("@INV@(""PV18"")")=$$PIECE^INHU(.LINE,DELIM,9)
+113 IF DO
SET @("@INV@(""PV19"")")=$$PIECE^INHU(.LINE,DELIM,10)
+114 IF DO
SET @("@INV@(""PV110"")")=$$PIECE^INHU(.LINE,DELIM,11)
+115 IF DO
SET @("@INV@(""PV111"")")=$$PIECE^INHU(.LINE,DELIM,12)
+116 IF DO
SET @("@INV@(""PV112"")")=$$PIECE^INHU(.LINE,DELIM,13)
+117 IF DO
SET @("@INV@(""PV113"")")=$$PIECE^INHU(.LINE,DELIM,14)
+118 IF DO
SET @("@INV@(""PV114"")")=$$PIECE^INHU(.LINE,DELIM,15)
+119 IF DO
SET @("@INV@(""PV115"")")=$$PIECE^INHU(.LINE,DELIM,16)
+120 IF DO
SET @("@INV@(""PV116"")")=$$PIECE^INHU(.LINE,DELIM,17)
+121 IF DO
SET @("@INV@(""PV117"")")=$$PIECE^INHU(.LINE,DELIM,18)
+122 IF DO
SET @("@INV@(""PV118"")")=$$PIECE^INHU(.LINE,DELIM,19)
+123 IF DO
SET @("@INV@(""PV119"")")=$$PIECE^INHU(.LINE,DELIM,20)
+124 IF DO
SET @("@INV@(""PV120"")")=$$PIECE^INHU(.LINE,DELIM,21)
+125 IF DO
SET @("@INV@(""PV121"")")=$$PIECE^INHU(.LINE,DELIM,22)
+126 IF DO
SET @("@INV@(""PV122"")")=$$PIECE^INHU(.LINE,DELIM,23)
+127 IF DO
SET @("@INV@(""PV123"")")=$$PIECE^INHU(.LINE,DELIM,24)
+128 IF DO
SET @("@INV@(""PV124"")")=$$PIECE^INHU(.LINE,DELIM,25)
+129 IF DO
SET @("@INV@(""PV125"")")=$$PIECE^INHU(.LINE,DELIM,26)
+130 IF DO
SET @("@INV@(""PV126"")")=$$PIECE^INHU(.LINE,DELIM,27)
+131 IF DO
SET @("@INV@(""PV127"")")=$$PIECE^INHU(.LINE,DELIM,28)
+132 IF DO
SET @("@INV@(""PV128"")")=$$PIECE^INHU(.LINE,DELIM,29)
+133 IF DO
SET @("@INV@(""PV129"")")=$$PIECE^INHU(.LINE,DELIM,30)
+134 IF DO
SET @("@INV@(""PV130"")")=$$PIECE^INHU(.LINE,DELIM,31)
+135 IF DO
SET @("@INV@(""PV131"")")=$$PIECE^INHU(.LINE,DELIM,32)
+136 IF DO
SET @("@INV@(""PV132"")")=$$PIECE^INHU(.LINE,DELIM,33)
+137 IF DO
SET @("@INV@(""PV133"")")=$$PIECE^INHU(.LINE,DELIM,34)
+138 IF DO
SET @("@INV@(""PV134"")")=$$PIECE^INHU(.LINE,DELIM,35)
+139 IF DO
SET @("@INV@(""PV135"")")=$$PIECE^INHU(.LINE,DELIM,36)
9 DO EN^IS00018A
End DoDot:1
IF 'MATCH
QUIT
+1 GOTO C1^IS00018A