IS00004K ;Compiled from script 'Generated: X1 IHS 276-O' on DEC 09, 2002
;Part 12
;Copyright 2002 SAIC
EN S D0=INDA S X=$G(INA("2762200EREFB2"))
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
K LINE S LINE="",CP=0 S L1="REF" S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,1,L1,.CP) S L1=$G(@INV@("REF1")) S:$TR(L1,$G(SUBDELIM))="" L1=""
D SETPIECE^INHU(.LINE,DELIM,2,L1,.CP) S L1=$G(@INV@("REF2")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,3,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\@2762200EREFC1
S D0=INDA S X=$G(INA("2762200EREFC1"))
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\@2762200EREFC2
S D0=INDA S X=$G(INA("2762200EREFC2"))
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
K LINE S LINE="",CP=0 S L1="REF" S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,1,L1,.CP) S L1=$G(@INV@("REF1")) S:$TR(L1,$G(SUBDELIM))="" L1=""
D SETPIECE^INHU(.LINE,DELIM,2,L1,.CP) S L1=$G(@INV@("REF2")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,3,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 AMT1 = INSGX\^INTHL7FT(1,3)\\999\@2762200EAMT1
S D0=INDA S X=$G(INA("2762200EAMT1"))
S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
S @INV@("AMT1")=X K DXS,D0
;SET AMT2 = INSGX\^INTHL7FT(1,3)\\999\@2762200EAMT2
S D0=INDA S X=$G(INA("2762200EAMT2"))
S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
S @INV@("AMT2")=X K DXS,D0
;SET AMT3 = INSGX\^INTHL7FT(1,3)\\999\@2762200EAMT3
S D0=INDA S X=$G(INA("2762200EAMT3"))
S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
S @INV@("AMT3")=X K DXS,D0
D:'INVS MC^INHS
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\@2762210EDTP1
S D0=INDA S X=$G(INA("2762210EDTP1"))
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\@2762210EDTP2
S D0=INDA S X=$G(INA("2762210EDTP2"))
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\@2762210EDTP3
S D0=INDA S X=$G(INA("2762210EDTP3"))
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\@2762210ESVC1
S D0=INDA S X=$G(INA("2762210ESVC1"))
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\@2762210ESVC2
S D0=INDA S X=$G(INA("2762210ESVC2"))
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\@2762210ESVC3
S D0=INDA S X=$G(INA("2762210ESVC3"))
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\@2762210ESVC4
S D0=INDA S X=$G(INA("2762210ESVC4"))
S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
9 G EN^IS00004L
IS00004K ;Compiled from script 'Generated: X1 IHS 276-O' on DEC 09, 2002
+1 ;Part 12
+2 ;Copyright 2002 SAIC
EN SET D0=INDA
SET X=$GET(INA("2762200EREFB2"))
+1 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+2 SET @INV@("REF2")=X
KILL DXS,D0
+3 IF 'INVS
DO MC^INHS
+4 KILL LINE
SET LINE=""
SET CP=0
SET L1="REF"
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,1,L1,.CP)
SET L1=$GET(@INV@("REF1"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
+5 DO SETPIECE^INHU(.LINE,DELIM,2,L1,.CP)
SET L1=$GET(@INV@("REF2"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,3,L1,.CP)
+6 DO LINE^INHUT11(.LINE,DELIM,LCT)
+7 IF $LENGTH(LINE)'=0
SET LCT=LCT+1
SET ^UTILITY("INH",$JOB,LCT)=LINE
IF $DATA(LINE)>9
MERGE ^UTILITY("INH",$JOB,LCT)=LINE
+8 SET INSETID=0
+9 ;SET REF1 = INSGX\^INTHL7FT(1,3)\\999\@2762200EREFC1
+10 SET D0=INDA
SET X=$GET(INA("2762200EREFC1"))
+11 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+12 SET @INV@("REF1")=X
KILL DXS,D0
+13 ;SET REF2 = INSGX\^INTHL7FT(1,3)\\999\@2762200EREFC2
+14 SET D0=INDA
SET X=$GET(INA("2762200EREFC2"))
+15 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+16 SET @INV@("REF2")=X
KILL DXS,D0
+17 IF 'INVS
DO MC^INHS
+18 KILL LINE
SET LINE=""
SET CP=0
SET L1="REF"
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,1,L1,.CP)
SET L1=$GET(@INV@("REF1"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
+19 DO SETPIECE^INHU(.LINE,DELIM,2,L1,.CP)
SET L1=$GET(@INV@("REF2"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,3,L1,.CP)
+20 DO LINE^INHUT11(.LINE,DELIM,LCT)
+21 IF $LENGTH(LINE)'=0
SET LCT=LCT+1
SET ^UTILITY("INH",$JOB,LCT)=LINE
IF $DATA(LINE)>9
MERGE ^UTILITY("INH",$JOB,LCT)=LINE
+22 SET INSETID=0
+23 ;SET AMT1 = INSGX\^INTHL7FT(1,3)\\999\@2762200EAMT1
+24 SET D0=INDA
SET X=$GET(INA("2762200EAMT1"))
+25 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+26 SET @INV@("AMT1")=X
KILL DXS,D0
+27 ;SET AMT2 = INSGX\^INTHL7FT(1,3)\\999\@2762200EAMT2
+28 SET D0=INDA
SET X=$GET(INA("2762200EAMT2"))
+29 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+30 SET @INV@("AMT2")=X
KILL DXS,D0
+31 ;SET AMT3 = INSGX\^INTHL7FT(1,3)\\999\@2762200EAMT3
+32 SET D0=INDA
SET X=$GET(INA("2762200EAMT3"))
+33 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+34 SET @INV@("AMT3")=X
KILL DXS,D0
+35 IF 'INVS
DO MC^INHS
+36 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=""
+37 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"))
+38 IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,4,L1,.CP)
+39 DO LINE^INHUT11(.LINE,DELIM,LCT)
+40 IF $LENGTH(LINE)'=0
SET LCT=LCT+1
SET ^UTILITY("INH",$JOB,LCT)=LINE
IF $DATA(LINE)>9
MERGE ^UTILITY("INH",$JOB,LCT)=LINE
+41 SET INSETID=0
+42 ;SET DTP1 = INSGX\^INTHL7FT(1,3)\\999\@2762210EDTP1
+43 SET D0=INDA
SET X=$GET(INA("2762210EDTP1"))
+44 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+45 SET @INV@("DTP1")=X
KILL DXS,D0
+46 ;SET DTP2 = INSGX\^INTHL7FT(1,3)\\999\@2762210EDTP2
+47 SET D0=INDA
SET X=$GET(INA("2762210EDTP2"))
+48 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+49 SET @INV@("DTP2")=X
KILL DXS,D0
+50 ;SET DTP3 = INSGX\^INTHL7FT(1,3)\\999\@2762210EDTP3
+51 SET D0=INDA
SET X=$GET(INA("2762210EDTP3"))
+52 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+53 SET @INV@("DTP3")=X
KILL DXS,D0
+54 IF 'INVS
DO MC^INHS
+55 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=""
+56 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"))
+57 IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,4,L1,.CP)
+58 DO LINE^INHUT11(.LINE,DELIM,LCT)
+59 IF $LENGTH(LINE)'=0
SET LCT=LCT+1
SET ^UTILITY("INH",$JOB,LCT)=LINE
IF $DATA(LINE)>9
MERGE ^UTILITY("INH",$JOB,LCT)=LINE
+60 SET INSETID=0
+61 ;SET SVC1 = INSGX\^INTHL7FT(1,3)\\999\@2762210ESVC1
+62 SET D0=INDA
SET X=$GET(INA("2762210ESVC1"))
+63 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+64 SET @INV@("SVC1")=X
KILL DXS,D0
+65 ;SET SVC2 = INSGX\^INTHL7FT(1,3)\\999\@2762210ESVC2
+66 SET D0=INDA
SET X=$GET(INA("2762210ESVC2"))
+67 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+68 SET @INV@("SVC2")=X
KILL DXS,D0
+69 ;SET SVC3 = INSGX\^INTHL7FT(1,3)\\999\@2762210ESVC3
+70 SET D0=INDA
SET X=$GET(INA("2762210ESVC3"))
+71 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+72 SET @INV@("SVC3")=X
KILL DXS,D0
+73 ;SET SVC4 = INSGX\^INTHL7FT(1,3)\\999\@2762210ESVC4
+74 SET D0=INDA
SET X=$GET(INA("2762210ESVC4"))
+75 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
9 GOTO EN^IS00004L