IS00004H ;Compiled from script 'Generated: X1 IHS 276-O' on DEC 09, 2002
;Part 9
;Copyright 2002 SAIC
EN K LINE S LINE="",CP=0 S L1="AMT" S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,1,L1,.CP) S L1=$G(@INV@("AMT1")) S:$TR(L1,$G(SUBDELIM))="" L1=""
D SETPIECE^INHU(.LINE,DELIM,2,L1,.CP) S L1=$G(@INV@("AMT2")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,3,L1,.CP) S L1=$G(@INV@("AMT3"))
S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,4,L1,.CP)
D LINE^INHUT11(.LINE,DELIM,LCT)
I $L(LINE)'=0 S LCT=LCT+1,^UTILITY("INH",$J,LCT)=LINE I $D(LINE)>9 M ^UTILITY("INH",$J,LCT)=LINE
SET INSETID=0
;SET DTP1 = INSGX\^INTHL7FT(1,3)\\999\@2762200DDTP1
S D0=INDA S X=$G(INA("2762200DDTP1"))
S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
S @INV@("DTP1")=X K DXS,D0
;SET DTP2 = INSGX\^INTHL7FT(1,3)\\999\@2762200DDTP2
S D0=INDA S X=$G(INA("2762200DDTP2"))
S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
S @INV@("DTP2")=X K DXS,D0
;SET DTP3 = INSGX\^INTHL7FT(1,3)\\999\@2762200DDTP3
S D0=INDA S X=$G(INA("2762200DDTP3"))
S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
S @INV@("DTP3")=X K DXS,D0
D:'INVS MC^INHS
K LINE S LINE="",CP=0 S L1="DTP" S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,1,L1,.CP) S L1=$G(@INV@("DTP1")) S:$TR(L1,$G(SUBDELIM))="" L1=""
D SETPIECE^INHU(.LINE,DELIM,2,L1,.CP) S L1=$G(@INV@("DTP2")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,3,L1,.CP) S L1=$G(@INV@("DTP3"))
S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,4,L1,.CP)
D LINE^INHUT11(.LINE,DELIM,LCT)
I $L(LINE)'=0 S LCT=LCT+1,^UTILITY("INH",$J,LCT)=LINE I $D(LINE)>9 M ^UTILITY("INH",$J,LCT)=LINE
SET INSETID=0
;SET SVC1 = INSGX\^INTHL7FT(1,3)\\999\@2762210DSVC1
S D0=INDA S X=$G(INA("2762210DSVC1"))
S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
S @INV@("SVC1")=X K DXS,D0
;SET SVC2 = INSGX\^INTHL7FT(1,3)\\999\@2762210DSVC2
S D0=INDA S X=$G(INA("2762210DSVC2"))
S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
S @INV@("SVC2")=X K DXS,D0
;SET SVC3 = INSGX\^INTHL7FT(1,3)\\999\@2762210DSVC3
S D0=INDA S X=$G(INA("2762210DSVC3"))
S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
S @INV@("SVC3")=X K DXS,D0
;SET SVC4 = INSGX\^INTHL7FT(1,3)\\999\@2762210DSVC4
S D0=INDA S X=$G(INA("2762210DSVC4"))
S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
S @INV@("SVC4")=X K DXS,D0
;SET SVC5 = INSGX\^INTHL7FT(1,3)\\999\@2762210DSVC5
S D0=INDA S X=$G(INA("2762210DSVC5"))
S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
S @INV@("SVC5")=X K DXS,D0
;SET SVC6 = INSGX\^INTHL7FT(1,3)\\999\@2762210DSVC6
S D0=INDA S X=$G(INA("2762210DSVC6"))
S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
S @INV@("SVC6")=X K DXS,D0
;SET SVC7 = INSGX\^INTHL7FT(1,3)\\999\@2762210DSVC7
S D0=INDA S X=$G(INA("2762210DSVC7"))
S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
S @INV@("SVC7")=X K DXS,D0
D:'INVS MC^INHS
K LINE S LINE="",CP=0 S L1="SVC" S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,1,L1,.CP) S L1=$G(@INV@("SVC1")) S:$TR(L1,$G(SUBDELIM))="" L1=""
D SETPIECE^INHU(.LINE,DELIM,2,L1,.CP) S L1=$G(@INV@("SVC2")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,3,L1,.CP) S L1=$G(@INV@("SVC3"))
S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,4,L1,.CP) S L1=$G(@INV@("SVC4")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,5,L1,.CP)
S L1=$G(@INV@("SVC5")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,6,L1,.CP) S L1=$G(@INV@("SVC6")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,7,L1,.CP)
S L1=$G(@INV@("SVC7")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,8,L1,.CP)
D LINE^INHUT11(.LINE,DELIM,LCT)
I $L(LINE)'=0 S LCT=LCT+1,^UTILITY("INH",$J,LCT)=LINE I $D(LINE)>9 M ^UTILITY("INH",$J,LCT)=LINE
SET INSETID=0
;SET REF1 = INSGX\^INTHL7FT(1,3)\\999\@2762210DREF1
S D0=INDA S X=$G(INA("2762210DREF1"))
S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
S @INV@("REF1")=X K DXS,D0
;SET REF2 = INSGX\^INTHL7FT(1,3)\\999\@2762210DREF2
S D0=INDA S X=$G(INA("2762210DREF2"))
S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
S @INV@("REF2")=X K DXS,D0
D:'INVS MC^INHS
9 G EN^IS00004I
IS00004H ;Compiled from script 'Generated: X1 IHS 276-O' on DEC 09, 2002
+1 ;Part 9
+2 ;Copyright 2002 SAIC
EN KILL LINE
SET LINE=""
SET CP=0
SET L1="AMT"
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,1,L1,.CP)
SET L1=$GET(@INV@("AMT1"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
+1 DO SETPIECE^INHU(.LINE,DELIM,2,L1,.CP)
SET L1=$GET(@INV@("AMT2"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,3,L1,.CP)
SET L1=$GET(@INV@("AMT3"))
+2 IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,4,L1,.CP)
+3 DO LINE^INHUT11(.LINE,DELIM,LCT)
+4 IF $LENGTH(LINE)'=0
SET LCT=LCT+1
SET ^UTILITY("INH",$JOB,LCT)=LINE
IF $DATA(LINE)>9
MERGE ^UTILITY("INH",$JOB,LCT)=LINE
+5 SET INSETID=0
+6 ;SET DTP1 = INSGX\^INTHL7FT(1,3)\\999\@2762200DDTP1
+7 SET D0=INDA
SET X=$GET(INA("2762200DDTP1"))
+8 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+9 SET @INV@("DTP1")=X
KILL DXS,D0
+10 ;SET DTP2 = INSGX\^INTHL7FT(1,3)\\999\@2762200DDTP2
+11 SET D0=INDA
SET X=$GET(INA("2762200DDTP2"))
+12 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+13 SET @INV@("DTP2")=X
KILL DXS,D0
+14 ;SET DTP3 = INSGX\^INTHL7FT(1,3)\\999\@2762200DDTP3
+15 SET D0=INDA
SET X=$GET(INA("2762200DDTP3"))
+16 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+17 SET @INV@("DTP3")=X
KILL DXS,D0
+18 IF 'INVS
DO MC^INHS
+19 KILL LINE
SET LINE=""
SET CP=0
SET L1="DTP"
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,1,L1,.CP)
SET L1=$GET(@INV@("DTP1"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
+20 DO SETPIECE^INHU(.LINE,DELIM,2,L1,.CP)
SET L1=$GET(@INV@("DTP2"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,3,L1,.CP)
SET L1=$GET(@INV@("DTP3"))
+21 IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,4,L1,.CP)
+22 DO LINE^INHUT11(.LINE,DELIM,LCT)
+23 IF $LENGTH(LINE)'=0
SET LCT=LCT+1
SET ^UTILITY("INH",$JOB,LCT)=LINE
IF $DATA(LINE)>9
MERGE ^UTILITY("INH",$JOB,LCT)=LINE
+24 SET INSETID=0
+25 ;SET SVC1 = INSGX\^INTHL7FT(1,3)\\999\@2762210DSVC1
+26 SET D0=INDA
SET X=$GET(INA("2762210DSVC1"))
+27 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+28 SET @INV@("SVC1")=X
KILL DXS,D0
+29 ;SET SVC2 = INSGX\^INTHL7FT(1,3)\\999\@2762210DSVC2
+30 SET D0=INDA
SET X=$GET(INA("2762210DSVC2"))
+31 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+32 SET @INV@("SVC2")=X
KILL DXS,D0
+33 ;SET SVC3 = INSGX\^INTHL7FT(1,3)\\999\@2762210DSVC3
+34 SET D0=INDA
SET X=$GET(INA("2762210DSVC3"))
+35 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+36 SET @INV@("SVC3")=X
KILL DXS,D0
+37 ;SET SVC4 = INSGX\^INTHL7FT(1,3)\\999\@2762210DSVC4
+38 SET D0=INDA
SET X=$GET(INA("2762210DSVC4"))
+39 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+40 SET @INV@("SVC4")=X
KILL DXS,D0
+41 ;SET SVC5 = INSGX\^INTHL7FT(1,3)\\999\@2762210DSVC5
+42 SET D0=INDA
SET X=$GET(INA("2762210DSVC5"))
+43 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+44 SET @INV@("SVC5")=X
KILL DXS,D0
+45 ;SET SVC6 = INSGX\^INTHL7FT(1,3)\\999\@2762210DSVC6
+46 SET D0=INDA
SET X=$GET(INA("2762210DSVC6"))
+47 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+48 SET @INV@("SVC6")=X
KILL DXS,D0
+49 ;SET SVC7 = INSGX\^INTHL7FT(1,3)\\999\@2762210DSVC7
+50 SET D0=INDA
SET X=$GET(INA("2762210DSVC7"))
+51 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+52 SET @INV@("SVC7")=X
KILL DXS,D0
+53 IF 'INVS
DO MC^INHS
+54 KILL LINE
SET LINE=""
SET CP=0
SET L1="SVC"
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,1,L1,.CP)
SET L1=$GET(@INV@("SVC1"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
+55 DO SETPIECE^INHU(.LINE,DELIM,2,L1,.CP)
SET L1=$GET(@INV@("SVC2"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,3,L1,.CP)
SET L1=$GET(@INV@("SVC3"))
+56 IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,4,L1,.CP)
SET L1=$GET(@INV@("SVC4"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,5,L1,.CP)
+57 SET L1=$GET(@INV@("SVC5"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,6,L1,.CP)
SET L1=$GET(@INV@("SVC6"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,7,L1,.CP)
+58 SET L1=$GET(@INV@("SVC7"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,8,L1,.CP)
+59 DO LINE^INHUT11(.LINE,DELIM,LCT)
+60 IF $LENGTH(LINE)'=0
SET LCT=LCT+1
SET ^UTILITY("INH",$JOB,LCT)=LINE
IF $DATA(LINE)>9
MERGE ^UTILITY("INH",$JOB,LCT)=LINE
+61 SET INSETID=0
+62 ;SET REF1 = INSGX\^INTHL7FT(1,3)\\999\@2762210DREF1
+63 SET D0=INDA
SET X=$GET(INA("2762210DREF1"))
+64 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+65 SET @INV@("REF1")=X
KILL DXS,D0
+66 ;SET REF2 = INSGX\^INTHL7FT(1,3)\\999\@2762210DREF2
+67 SET D0=INDA
SET X=$GET(INA("2762210DREF2"))
+68 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+69 SET @INV@("REF2")=X
KILL DXS,D0
+70 IF 'INVS
DO MC^INHS
9 GOTO EN^IS00004I