IS00004C ;Compiled from script 'Generated: X1 IHS 276-O' on DEC 09, 2002
;Part 4
;Copyright 2002 SAIC
EN S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
S @INV@("NM17")=X K DXS,D0
;SET NM18 = INSGX\^INTHL7FT(1,3)\\999\@2762100ANM18
S D0=INDA S X=$G(INA("2762100ANM18"))
S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
S @INV@("NM18")=X K DXS,D0
;SET NM19 = INSGX\^INTHL7FT(1,3)\\999\@2762100ANM19
S D0=INDA S X=$G(INA("2762100ANM19"))
S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
S @INV@("NM19")=X K DXS,D0
D:'INVS MC^INHS
K LINE S LINE="",CP=0 S L1="NM1" S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,1,L1,.CP) S L1=$G(@INV@("NM11")) S:$TR(L1,$G(SUBDELIM))="" L1=""
D SETPIECE^INHU(.LINE,DELIM,2,L1,.CP) S L1=$G(@INV@("NM12")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,3,L1,.CP) S L1=$G(@INV@("NM13"))
S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,4,L1,.CP) S L1=$G(@INV@("NM14")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,5,L1,.CP)
S L1=$G(@INV@("NM15")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,6,L1,.CP) S L1=$G(@INV@("NM16")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,7,L1,.CP)
S L1=$G(@INV@("NM17")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,8,L1,.CP) S L1=$G(@INV@("NM18")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,9,L1,.CP)
S L1=$G(@INV@("NM19")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,10,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 PER1 = INSGX\^INTHL7FT(1,3)\\999\@2762100APER1
S D0=INDA S X=$G(INA("2762100APER1"))
S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
S @INV@("PER1")=X K DXS,D0
;SET PER2 = INSGX\^INTHL7FT(1,3)\\999\@2762100APER2
S D0=INDA S X=$G(INA("2762100APER2"))
S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
S @INV@("PER2")=X K DXS,D0
;SET PER3 = INSGX\^INTHL7FT(1,3)\\999\@2762100APER3
S D0=INDA S X=$G(INA("2762100APER3"))
S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
S @INV@("PER3")=X K DXS,D0
;SET PER4 = INSGX\^INTHL7FT(1,3)\\999\@2762100APER4
S D0=INDA S X=$G(INA("2762100APER4"))
S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
S @INV@("PER4")=X K DXS,D0
;SET PER5 = INSGX\^INTHL7FT(1,3)\\999\@2762100APER5
S D0=INDA S X=$G(INA("2762100APER5"))
S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
S @INV@("PER5")=X K DXS,D0
;SET PER6 = INSGX\^INTHL7FT(1,3)\\999\@2762100APER6
S D0=INDA S X=$G(INA("2762100APER6"))
S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
S @INV@("PER6")=X K DXS,D0
;SET PER7 = INSGX\^INTHL7FT(1,3)\\999\@2762100APER7
S D0=INDA S X=$G(INA("2762100APER7"))
S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
S @INV@("PER7")=X K DXS,D0
;SET PER8 = INSGX\^INTHL7FT(1,3)\\999\@2762100APER8
S D0=INDA S X=$G(INA("2762100APER8"))
S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
S @INV@("PER8")=X K DXS,D0
D:'INVS MC^INHS
K LINE S LINE="",CP=0 S L1="PER" S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,1,L1,.CP) S L1=$G(@INV@("PER1")) S:$TR(L1,$G(SUBDELIM))="" L1=""
D SETPIECE^INHU(.LINE,DELIM,2,L1,.CP) S L1=$G(@INV@("PER2")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,3,L1,.CP) S L1=$G(@INV@("PER3"))
S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,4,L1,.CP) S L1=$G(@INV@("PER4")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,5,L1,.CP)
S L1=$G(@INV@("PER5")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,6,L1,.CP) S L1=$G(@INV@("PER6")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,7,L1,.CP)
S L1=$G(@INV@("PER7")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,8,L1,.CP) S L1=$G(@INV@("PER8")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,9,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 HL1 = INSGX\^INTHL7FT(1,3)\\999\@2762000BHL1
S D0=INDA S X=$G(INA("2762000BHL1"))
S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
S @INV@("HL1")=X K DXS,D0
;SET HL2 = INSGX\^INTHL7FT(1,3)\\999\@2762000BHL2
S D0=INDA S X=$G(INA("2762000BHL2"))
9 G EN^IS00004D
IS00004C ;Compiled from script 'Generated: X1 IHS 276-O' on DEC 09, 2002
+1 ;Part 4
+2 ;Copyright 2002 SAIC
EN SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+1 SET @INV@("NM17")=X
KILL DXS,D0
+2 ;SET NM18 = INSGX\^INTHL7FT(1,3)\\999\@2762100ANM18
+3 SET D0=INDA
SET X=$GET(INA("2762100ANM18"))
+4 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+5 SET @INV@("NM18")=X
KILL DXS,D0
+6 ;SET NM19 = INSGX\^INTHL7FT(1,3)\\999\@2762100ANM19
+7 SET D0=INDA
SET X=$GET(INA("2762100ANM19"))
+8 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+9 SET @INV@("NM19")=X
KILL DXS,D0
+10 IF 'INVS
DO MC^INHS
+11 KILL LINE
SET LINE=""
SET CP=0
SET L1="NM1"
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,1,L1,.CP)
SET L1=$GET(@INV@("NM11"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
+12 DO SETPIECE^INHU(.LINE,DELIM,2,L1,.CP)
SET L1=$GET(@INV@("NM12"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,3,L1,.CP)
SET L1=$GET(@INV@("NM13"))
+13 IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,4,L1,.CP)
SET L1=$GET(@INV@("NM14"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,5,L1,.CP)
+14 SET L1=$GET(@INV@("NM15"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,6,L1,.CP)
SET L1=$GET(@INV@("NM16"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,7,L1,.CP)
+15 SET L1=$GET(@INV@("NM17"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,8,L1,.CP)
SET L1=$GET(@INV@("NM18"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,9,L1,.CP)
+16 SET L1=$GET(@INV@("NM19"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,10,L1,.CP)
+17 DO LINE^INHUT11(.LINE,DELIM,LCT)
+18 IF $LENGTH(LINE)'=0
SET LCT=LCT+1
SET ^UTILITY("INH",$JOB,LCT)=LINE
IF $DATA(LINE)>9
MERGE ^UTILITY("INH",$JOB,LCT)=LINE
+19 SET INSETID=0
+20 ;SET PER1 = INSGX\^INTHL7FT(1,3)\\999\@2762100APER1
+21 SET D0=INDA
SET X=$GET(INA("2762100APER1"))
+22 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+23 SET @INV@("PER1")=X
KILL DXS,D0
+24 ;SET PER2 = INSGX\^INTHL7FT(1,3)\\999\@2762100APER2
+25 SET D0=INDA
SET X=$GET(INA("2762100APER2"))
+26 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+27 SET @INV@("PER2")=X
KILL DXS,D0
+28 ;SET PER3 = INSGX\^INTHL7FT(1,3)\\999\@2762100APER3
+29 SET D0=INDA
SET X=$GET(INA("2762100APER3"))
+30 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+31 SET @INV@("PER3")=X
KILL DXS,D0
+32 ;SET PER4 = INSGX\^INTHL7FT(1,3)\\999\@2762100APER4
+33 SET D0=INDA
SET X=$GET(INA("2762100APER4"))
+34 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+35 SET @INV@("PER4")=X
KILL DXS,D0
+36 ;SET PER5 = INSGX\^INTHL7FT(1,3)\\999\@2762100APER5
+37 SET D0=INDA
SET X=$GET(INA("2762100APER5"))
+38 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+39 SET @INV@("PER5")=X
KILL DXS,D0
+40 ;SET PER6 = INSGX\^INTHL7FT(1,3)\\999\@2762100APER6
+41 SET D0=INDA
SET X=$GET(INA("2762100APER6"))
+42 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+43 SET @INV@("PER6")=X
KILL DXS,D0
+44 ;SET PER7 = INSGX\^INTHL7FT(1,3)\\999\@2762100APER7
+45 SET D0=INDA
SET X=$GET(INA("2762100APER7"))
+46 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+47 SET @INV@("PER7")=X
KILL DXS,D0
+48 ;SET PER8 = INSGX\^INTHL7FT(1,3)\\999\@2762100APER8
+49 SET D0=INDA
SET X=$GET(INA("2762100APER8"))
+50 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+51 SET @INV@("PER8")=X
KILL DXS,D0
+52 IF 'INVS
DO MC^INHS
+53 KILL LINE
SET LINE=""
SET CP=0
SET L1="PER"
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,1,L1,.CP)
SET L1=$GET(@INV@("PER1"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
+54 DO SETPIECE^INHU(.LINE,DELIM,2,L1,.CP)
SET L1=$GET(@INV@("PER2"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,3,L1,.CP)
SET L1=$GET(@INV@("PER3"))
+55 IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,4,L1,.CP)
SET L1=$GET(@INV@("PER4"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,5,L1,.CP)
+56 SET L1=$GET(@INV@("PER5"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,6,L1,.CP)
SET L1=$GET(@INV@("PER6"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,7,L1,.CP)
+57 SET L1=$GET(@INV@("PER7"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,8,L1,.CP)
SET L1=$GET(@INV@("PER8"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,9,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 HL1 = INSGX\^INTHL7FT(1,3)\\999\@2762000BHL1
+62 SET D0=INDA
SET X=$GET(INA("2762000BHL1"))
+63 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+64 SET @INV@("HL1")=X
KILL DXS,D0
+65 ;SET HL2 = INSGX\^INTHL7FT(1,3)\\999\@2762000BHL2
+66 SET D0=INDA
SET X=$GET(INA("2762000BHL2"))
9 GOTO EN^IS00004D