IS00004F ;Compiled from script 'Generated: X1 IHS 276-O' on DEC 09, 2002
;Part 7
;Copyright 2002 SAIC
EN S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
S @INV@("HL4")=X K DXS,D0
D:'INVS MC^INHS
K LINE S LINE="",CP=0 S L1="HL" S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,1,L1,.CP) S L1=$G(@INV@("HL1")) S:$TR(L1,$G(SUBDELIM))="" L1=""
D SETPIECE^INHU(.LINE,DELIM,2,L1,.CP) S L1=$G(@INV@("HL2")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,3,L1,.CP) S L1=$G(@INV@("HL3"))
S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,4,L1,.CP) S L1=$G(@INV@("HL4")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,5,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 DMG1 = INSGX\^INTHL7FT(1,3)\\999\@2762000DDMG1
S D0=INDA S X=$G(INA("2762000DDMG1"))
S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
S @INV@("DMG1")=X K DXS,D0
;SET DMG2 = INSGX\^INTHL7FT(1,3)\\999\@2762000DDMG2
S D0=INDA S X=$G(INA("2762000DDMG2"))
S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
S @INV@("DMG2")=X K DXS,D0
;SET DMG3 = INSGX\^INTHL7FT(1,3)\\999\@2762000DDMG3
S D0=INDA S X=$G(INA("2762000DDMG3"))
S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
S @INV@("DMG3")=X K DXS,D0
D:'INVS MC^INHS
K LINE S LINE="",CP=0 S L1="DMG" S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,1,L1,.CP) S L1=$G(@INV@("DMG1")) S:$TR(L1,$G(SUBDELIM))="" L1=""
D SETPIECE^INHU(.LINE,DELIM,2,L1,.CP) S L1=$G(@INV@("DMG2")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,3,L1,.CP) S L1=$G(@INV@("DMG3"))
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 NM11 = INSGX\^INTHL7FT(1,3)\\999\@2762100DNM11
S D0=INDA S X=$G(INA("2762100DNM11"))
S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
S @INV@("NM11")=X K DXS,D0
;SET NM12 = INSGX\^INTHL7FT(1,3)\\999\@2762100DNM12
S D0=INDA S X=$G(INA("2762100DNM12"))
S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
S @INV@("NM12")=X K DXS,D0
;SET NM13 = INSGX\^INTHL7FT(1,3)\\999\@2762100DNM13
S D0=INDA S X=$G(INA("2762100DNM13"))
S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
S @INV@("NM13")=X K DXS,D0
;SET NM14 = INSGX\^INTHL7FT(1,3)\\999\@2762100DNM14
S D0=INDA S X=$G(INA("2762100DNM14"))
S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
S @INV@("NM14")=X K DXS,D0
;SET NM15 = INSGX\^INTHL7FT(1,3)\\999\@2762100DNM15
S D0=INDA S X=$G(INA("2762100DNM15"))
S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
S @INV@("NM15")=X K DXS,D0
;SET NM16 = INSGX\^INTHL7FT(1,3)\\999\@2762100DNM16
S D0=INDA S X=$G(INA("2762100DNM16"))
S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
S @INV@("NM16")=X K DXS,D0
;SET NM17 = INSGX\^INTHL7FT(1,3)\\999\@2762100DNM17
S D0=INDA S X=$G(INA("2762100DNM17"))
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\@2762100DNM18
S D0=INDA S X=$G(INA("2762100DNM18"))
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\@2762100DNM19
S D0=INDA S X=$G(INA("2762100DNM19"))
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)
9 G EN^IS00004G
IS00004F ;Compiled from script 'Generated: X1 IHS 276-O' on DEC 09, 2002
+1 ;Part 7
+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@("HL4")=X
KILL DXS,D0
+2 IF 'INVS
DO MC^INHS
+3 KILL LINE
SET LINE=""
SET CP=0
SET L1="HL"
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,1,L1,.CP)
SET L1=$GET(@INV@("HL1"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
+4 DO SETPIECE^INHU(.LINE,DELIM,2,L1,.CP)
SET L1=$GET(@INV@("HL2"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,3,L1,.CP)
SET L1=$GET(@INV@("HL3"))
+5 IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,4,L1,.CP)
SET L1=$GET(@INV@("HL4"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,5,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 DMG1 = INSGX\^INTHL7FT(1,3)\\999\@2762000DDMG1
+10 SET D0=INDA
SET X=$GET(INA("2762000DDMG1"))
+11 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+12 SET @INV@("DMG1")=X
KILL DXS,D0
+13 ;SET DMG2 = INSGX\^INTHL7FT(1,3)\\999\@2762000DDMG2
+14 SET D0=INDA
SET X=$GET(INA("2762000DDMG2"))
+15 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+16 SET @INV@("DMG2")=X
KILL DXS,D0
+17 ;SET DMG3 = INSGX\^INTHL7FT(1,3)\\999\@2762000DDMG3
+18 SET D0=INDA
SET X=$GET(INA("2762000DDMG3"))
+19 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+20 SET @INV@("DMG3")=X
KILL DXS,D0
+21 IF 'INVS
DO MC^INHS
+22 KILL LINE
SET LINE=""
SET CP=0
SET L1="DMG"
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,1,L1,.CP)
SET L1=$GET(@INV@("DMG1"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
+23 DO SETPIECE^INHU(.LINE,DELIM,2,L1,.CP)
SET L1=$GET(@INV@("DMG2"))
IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,3,L1,.CP)
SET L1=$GET(@INV@("DMG3"))
+24 IF $TRANSLATE(L1,$GET(SUBDELIM))=""
SET L1=""
DO SETPIECE^INHU(.LINE,DELIM,4,L1,.CP)
+25 DO LINE^INHUT11(.LINE,DELIM,LCT)
+26 IF $LENGTH(LINE)'=0
SET LCT=LCT+1
SET ^UTILITY("INH",$JOB,LCT)=LINE
IF $DATA(LINE)>9
MERGE ^UTILITY("INH",$JOB,LCT)=LINE
+27 SET INSETID=0
+28 ;SET NM11 = INSGX\^INTHL7FT(1,3)\\999\@2762100DNM11
+29 SET D0=INDA
SET X=$GET(INA("2762100DNM11"))
+30 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+31 SET @INV@("NM11")=X
KILL DXS,D0
+32 ;SET NM12 = INSGX\^INTHL7FT(1,3)\\999\@2762100DNM12
+33 SET D0=INDA
SET X=$GET(INA("2762100DNM12"))
+34 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+35 SET @INV@("NM12")=X
KILL DXS,D0
+36 ;SET NM13 = INSGX\^INTHL7FT(1,3)\\999\@2762100DNM13
+37 SET D0=INDA
SET X=$GET(INA("2762100DNM13"))
+38 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+39 SET @INV@("NM13")=X
KILL DXS,D0
+40 ;SET NM14 = INSGX\^INTHL7FT(1,3)\\999\@2762100DNM14
+41 SET D0=INDA
SET X=$GET(INA("2762100DNM14"))
+42 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+43 SET @INV@("NM14")=X
KILL DXS,D0
+44 ;SET NM15 = INSGX\^INTHL7FT(1,3)\\999\@2762100DNM15
+45 SET D0=INDA
SET X=$GET(INA("2762100DNM15"))
+46 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+47 SET @INV@("NM15")=X
KILL DXS,D0
+48 ;SET NM16 = INSGX\^INTHL7FT(1,3)\\999\@2762100DNM16
+49 SET D0=INDA
SET X=$GET(INA("2762100DNM16"))
+50 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+51 SET @INV@("NM16")=X
KILL DXS,D0
+52 ;SET NM17 = INSGX\^INTHL7FT(1,3)\\999\@2762100DNM17
+53 SET D0=INDA
SET X=$GET(INA("2762100DNM17"))
+54 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+55 SET @INV@("NM17")=X
KILL DXS,D0
+56 ;SET NM18 = INSGX\^INTHL7FT(1,3)\\999\@2762100DNM18
+57 SET D0=INDA
SET X=$GET(INA("2762100DNM18"))
+58 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+59 SET @INV@("NM18")=X
KILL DXS,D0
+60 ;SET NM19 = INSGX\^INTHL7FT(1,3)\\999\@2762100DNM19
+61 SET D0=INDA
SET X=$GET(INA("2762100DNM19"))
+62 SET X1="^INTHL7FT(1,3)"
IF $LENGTH($GET(@X1))
XECUTE $GET(@X1)
SET X=$EXTRACT(X,1,999)
+63 SET @INV@("NM19")=X
KILL DXS,D0
+64 IF 'INVS
DO MC^INHS
+65 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=""
+66 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"))
+67 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)
+68 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)
9 GOTO EN^IS00004G