- IS00006C ;Compiled from script 'Generated: HL IHS DW1 A31-O' on SEP 08, 2008
- ;Part 4
- ;Copyright 2008 SAIC
- EN S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,35,L1,.CP) S L1=$G(@INV@("ZP235")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,36,L1,.CP)
- S LCT=LCT+1,^UTILITY("INH",$J,LCT)=LINE I $D(LINE)>9 M ^UTILITY("INH",$J,LCT)=LINE
- SET INSETID=0
- ;SET ZRD1 = INSGX\^INTHL7F(16336,5)\\999\"OUTPUT TRANSFORM"
- S D0=INDA S X="OUTPUT TRANSFORM"
- S X1="^INTHL7F(16336,5)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
- S @INV@("ZRD1")=X K DXS,D0
- ;SET ZRD2 = INSGX\^INTHL7F(16337,5)\\999\"OUTPUT TRANSFORM"
- S D0=INDA S X="OUTPUT TRANSFORM"
- S X1="^INTHL7F(16337,5)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
- S @INV@("ZRD2")=X K DXS,D0
- ;SET ZRD3 = INSGX\^INTHL7F(16338,5)\\999\"OUTPUT TRANSFORM"
- S D0=INDA S X="OUTPUT TRANSFORM"
- S X1="^INTHL7F(16338,5)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
- S @INV@("ZRD3")=X K DXS,D0
- ;SET ZRD4 = ""
- S D0=INDA S X=""
- S @INV@("ZRD4")=X K DXS,D0
- ;SET ZRD5 = INSGX\^INTHL7F(16340,5)\\999\"OUTPUT TRANSFORM"
- S D0=INDA S X="OUTPUT TRANSFORM"
- S X1="^INTHL7F(16340,5)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
- S @INV@("ZRD5")=X K DXS,D0
- ;SET ZRD6 = ""
- S D0=INDA S X=""
- S @INV@("ZRD6")=X K DXS,D0
- ;SET ZRD7 = ""
- S D0=INDA S X=""
- S @INV@("ZRD7")=X K DXS,D0
- ;SET ZRD8 = INSGX\^INTHL7F(16343,5)\\999\"OUTPUT TRANSFORM"
- S D0=INDA S X="OUTPUT TRANSFORM"
- S X1="^INTHL7F(16343,5)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
- S @INV@("ZRD8")=X K DXS,D0
- D:'INVS MC^INHS
- K LINE S LINE="",CP=0 S L1="ZRD" S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,1,L1,.CP) S L1=$G(@INV@("ZRD1")) S:$TR(L1,$G(SUBDELIM))="" L1=""
- D SETPIECE^INHU(.LINE,DELIM,2,L1,.CP) S L1=$G(@INV@("ZRD2")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,3,L1,.CP) S L1=$G(@INV@("ZRD3"))
- S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,4,L1,.CP) S L1=$G(@INV@("ZRD4")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,5,L1,.CP)
- S L1=$G(@INV@("ZRD5")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,6,L1,.CP) S L1=$G(@INV@("ZRD6")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,7,L1,.CP)
- S L1=$G(@INV@("ZRD7")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,8,L1,.CP) S L1=$G(@INV@("ZRD8")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,9,L1,.CP)
- S LCT=LCT+1,^UTILITY("INH",$J,LCT)=LINE I $D(LINE)>9 M ^UTILITY("INH",$J,LCT)=LINE
- SET INSETID=0
- S INDA0=INDA,INI(1)=0 F S INI(1)=$O(INDA("ZRL",INI(1))) Q:'INI(1) S INDA=$S(INDA("ZRL",INI(1)):INDA("ZRL",INI(1)),1:INI(1)) D
- .;SET ZRL1 = INSGX\^INTHL7F(16344,5)\\999\"OUTPUT TRANSFORM"
- .S D0=INDA S X="OUTPUT TRANSFORM"
- .S X1="^INTHL7F(16344,5)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
- .S @INV@("ZRL1")=X K DXS,D0
- .;SET ZRL2 = INSGX\^INTHL7F(16345,5)\\999\"OUTPUT TRANSFORM"
- .S D0=INDA S X="OUTPUT TRANSFORM"
- .S X1="^INTHL7F(16345,5)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
- .S @INV@("ZRL2")=X K DXS,D0
- .;SET ZRL3 = INSGX\^INTHL7F(16346,5)\\999\"OUTPUT TRANSFORM"
- .S D0=INDA S X="OUTPUT TRANSFORM"
- .S X1="^INTHL7F(16346,5)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
- .S @INV@("ZRL3")=X K DXS,D0
- .;SET ZRL4 = ""
- .S D0=INDA S X=""
- .S @INV@("ZRL4")=X K DXS,D0
- .;SET ZRL5 = INSGX\^INTHL7F(16348,5)\\999\"OUTPUT TRANSFORM"
- .S D0=INDA S X="OUTPUT TRANSFORM"
- .S X1="^INTHL7F(16348,5)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
- .S @INV@("ZRL5")=X K DXS,D0
- .;SET ZRL6 = INSGX\^INTHL7FT(1,3)\\999\@BDW1ZRL6
- .S D0=INDA S X=$G(INA("BDW1ZRL6",INI(1)))
- .S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
- .S @INV@("ZRL6")=X K DXS,D0
- .D:'INVS MC^INHS
- .K LINE S LINE="",CP=0 S L1="ZRL" S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,1,L1,.CP) S L1=$G(@INV@("ZRL1")) S:$TR(L1,$G(SUBDELIM))="" L1=""
- .D SETPIECE^INHU(.LINE,DELIM,2,L1,.CP) S L1=$G(@INV@("ZRL2")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,3,L1,.CP) S L1=$G(@INV@("ZRL3"))
- .S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,4,L1,.CP) S L1=$G(@INV@("ZRL4")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,5,L1,.CP)
- .S L1=$G(@INV@("ZRL5")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,6,L1,.CP) S L1=$G(@INV@("ZRL6")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,7,L1,.CP)
- .S LCT=LCT+1,^UTILITY("INH",$J,LCT)=LINE I $D(LINE)>9 M ^UTILITY("INH",$J,LCT)=LINE
- .Q
- S INDA=INDA0 K INDA0
- SET INSETID=0
- S INDA0=INDA,INI(1)=0 F S INI(1)=$O(INDA("ZRC",INI(1))) Q:'INI(1) S INDA=$S(INDA("ZRC",INI(1)):INDA("ZRC",INI(1)),1:INI(1)) D
- .;SET ZRC1 = INSGX\^INTHL7F(16328,5)\\999\"OUTPUT TRANSFORM"
- .S D0=INDA S X="OUTPUT TRANSFORM"
- .S X1="^INTHL7F(16328,5)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
- .S @INV@("ZRC1")=X K DXS,D0
- .;SET ZRC2 = INSGX\^INTHL7F(16329,5)\\999\"OUTPUT TRANSFORM"
- .S D0=INDA S X="OUTPUT TRANSFORM"
- .S X1="^INTHL7F(16329,5)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
- .S @INV@("ZRC2")=X K DXS,D0
- .;SET ZRC3 = INSGX\^INTHL7F(16330,5)\\999\"OUTPUT TRANSFORM"
- .S D0=INDA S X="OUTPUT TRANSFORM"
- .S X1="^INTHL7F(16330,5)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
- .S @INV@("ZRC3")=X K DXS,D0
- .;SET ZRC4 = ""
- .S D0=INDA S X=""
- .S @INV@("ZRC4")=X K DXS,D0
- .;SET ZRC5 = INSGX\^INTHL7F(16332,5)\\999\"OUTPUT TRANSFORM"
- .S D0=INDA S X="OUTPUT TRANSFORM"
- .S X1="^INTHL7F(16332,5)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
- .S @INV@("ZRC5")=X K DXS,D0
- .;SET ZRC6 = INSGX\^INTHL7FT(1,3)\\999\@BDW1ZRC6
- .S D0=INDA S X=$G(INA("BDW1ZRC6",INI(1)))
- .S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
- .S @INV@("ZRC6")=X K DXS,D0
- .;SET ZRC7 = INSGX\^INTHL7FT(1,3)\\999\@BDW1ZRC7
- .S D0=INDA S X=$G(INA("BDW1ZRC7",INI(1)))
- .S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
- .S @INV@("ZRC7")=X K DXS,D0
- .;SET ZRC8 = INSGX\^INTHL7FT(1,3)\\999\@BDW1ZRC8
- .S D0=INDA S X=$G(INA("BDW1ZRC8",INI(1)))
- .S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
- .S @INV@("ZRC8")=X K DXS,D0
- .D:'INVS MC^INHS
- .K LINE S LINE="",CP=0 S L1="ZRC" S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,1,L1,.CP) S L1=$G(@INV@("ZRC1")) S:$TR(L1,$G(SUBDELIM))="" L1=""
- .D SETPIECE^INHU(.LINE,DELIM,2,L1,.CP) S L1=$G(@INV@("ZRC2")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,3,L1,.CP) S L1=$G(@INV@("ZRC3"))
- .S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,4,L1,.CP) S L1=$G(@INV@("ZRC4")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,5,L1,.CP)
- .S L1=$G(@INV@("ZRC5")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,6,L1,.CP) S L1=$G(@INV@("ZRC6")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,7,L1,.CP)
- .S L1=$G(@INV@("ZRC7")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,8,L1,.CP) S L1=$G(@INV@("ZRC8")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,9,L1,.CP)
- .S LCT=LCT+1,^UTILITY("INH",$J,LCT)=LINE I $D(LINE)>9 M ^UTILITY("INH",$J,LCT)=LINE
- .Q
- S INDA=INDA0 K INDA0
- SET INSETID=0
- S INDA0=INDA,INI(1)=0 F S INI(1)=$O(INDA("IN1",INI(1))) Q:'INI(1) S INDA=$S(INDA("IN1",INI(1)):INDA("IN1",INI(1)),1:INI(1)) D
- .;SET IN11 = ""
- .S D0=INDA S X=""
- .S @INV@("IN11")=X K DXS,D0
- .;SET IN12 = ""
- .S D0=INDA S X=""
- .S @INV@("IN12")=X K DXS,D0
- .;SET IN13 = INSGX\^INTHL7FT(1,3)\\999\@BDW1IN13
- .S D0=INDA S X=$G(INA("BDW1IN13",INI(1)))
- .S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
- 9 .D EN^IS00006D
- G C1^IS00006E
- IS00006C ;Compiled from script 'Generated: HL IHS DW1 A31-O' on SEP 08, 2008
- +1 ;Part 4
- +2 ;Copyright 2008 SAIC
- EN IF $TRANSLATE(L1,$GET(SUBDELIM))=""
- SET L1=""
- DO SETPIECE^INHU(.LINE,DELIM,35,L1,.CP)
- SET L1=$GET(@INV@("ZP235"))
- IF $TRANSLATE(L1,$GET(SUBDELIM))=""
- SET L1=""
- DO SETPIECE^INHU(.LINE,DELIM,36,L1,.CP)
- +1 SET LCT=LCT+1
- SET ^UTILITY("INH",$JOB,LCT)=LINE
- IF $DATA(LINE)>9
- MERGE ^UTILITY("INH",$JOB,LCT)=LINE
- +2 SET INSETID=0
- +3 ;SET ZRD1 = INSGX\^INTHL7F(16336,5)\\999\"OUTPUT TRANSFORM"
- +4 SET D0=INDA
- SET X="OUTPUT TRANSFORM"
- +5 SET X1="^INTHL7F(16336,5)"
- IF $LENGTH($GET(@X1))
- XECUTE $GET(@X1)
- SET X=$EXTRACT(X,1,999)
- +6 SET @INV@("ZRD1")=X
- KILL DXS,D0
- +7 ;SET ZRD2 = INSGX\^INTHL7F(16337,5)\\999\"OUTPUT TRANSFORM"
- +8 SET D0=INDA
- SET X="OUTPUT TRANSFORM"
- +9 SET X1="^INTHL7F(16337,5)"
- IF $LENGTH($GET(@X1))
- XECUTE $GET(@X1)
- SET X=$EXTRACT(X,1,999)
- +10 SET @INV@("ZRD2")=X
- KILL DXS,D0
- +11 ;SET ZRD3 = INSGX\^INTHL7F(16338,5)\\999\"OUTPUT TRANSFORM"
- +12 SET D0=INDA
- SET X="OUTPUT TRANSFORM"
- +13 SET X1="^INTHL7F(16338,5)"
- IF $LENGTH($GET(@X1))
- XECUTE $GET(@X1)
- SET X=$EXTRACT(X,1,999)
- +14 SET @INV@("ZRD3")=X
- KILL DXS,D0
- +15 ;SET ZRD4 = ""
- +16 SET D0=INDA
- SET X=""
- +17 SET @INV@("ZRD4")=X
- KILL DXS,D0
- +18 ;SET ZRD5 = INSGX\^INTHL7F(16340,5)\\999\"OUTPUT TRANSFORM"
- +19 SET D0=INDA
- SET X="OUTPUT TRANSFORM"
- +20 SET X1="^INTHL7F(16340,5)"
- IF $LENGTH($GET(@X1))
- XECUTE $GET(@X1)
- SET X=$EXTRACT(X,1,999)
- +21 SET @INV@("ZRD5")=X
- KILL DXS,D0
- +22 ;SET ZRD6 = ""
- +23 SET D0=INDA
- SET X=""
- +24 SET @INV@("ZRD6")=X
- KILL DXS,D0
- +25 ;SET ZRD7 = ""
- +26 SET D0=INDA
- SET X=""
- +27 SET @INV@("ZRD7")=X
- KILL DXS,D0
- +28 ;SET ZRD8 = INSGX\^INTHL7F(16343,5)\\999\"OUTPUT TRANSFORM"
- +29 SET D0=INDA
- SET X="OUTPUT TRANSFORM"
- +30 SET X1="^INTHL7F(16343,5)"
- IF $LENGTH($GET(@X1))
- XECUTE $GET(@X1)
- SET X=$EXTRACT(X,1,999)
- +31 SET @INV@("ZRD8")=X
- KILL DXS,D0
- +32 IF 'INVS
- DO MC^INHS
- +33 KILL LINE
- SET LINE=""
- SET CP=0
- SET L1="ZRD"
- IF $TRANSLATE(L1,$GET(SUBDELIM))=""
- SET L1=""
- DO SETPIECE^INHU(.LINE,DELIM,1,L1,.CP)
- SET L1=$GET(@INV@("ZRD1"))
- IF $TRANSLATE(L1,$GET(SUBDELIM))=""
- SET L1=""
- +34 DO SETPIECE^INHU(.LINE,DELIM,2,L1,.CP)
- SET L1=$GET(@INV@("ZRD2"))
- IF $TRANSLATE(L1,$GET(SUBDELIM))=""
- SET L1=""
- DO SETPIECE^INHU(.LINE,DELIM,3,L1,.CP)
- SET L1=$GET(@INV@("ZRD3"))
- +35 IF $TRANSLATE(L1,$GET(SUBDELIM))=""
- SET L1=""
- DO SETPIECE^INHU(.LINE,DELIM,4,L1,.CP)
- SET L1=$GET(@INV@("ZRD4"))
- IF $TRANSLATE(L1,$GET(SUBDELIM))=""
- SET L1=""
- DO SETPIECE^INHU(.LINE,DELIM,5,L1,.CP)
- +36 SET L1=$GET(@INV@("ZRD5"))
- IF $TRANSLATE(L1,$GET(SUBDELIM))=""
- SET L1=""
- DO SETPIECE^INHU(.LINE,DELIM,6,L1,.CP)
- SET L1=$GET(@INV@("ZRD6"))
- IF $TRANSLATE(L1,$GET(SUBDELIM))=""
- SET L1=""
- DO SETPIECE^INHU(.LINE,DELIM,7,L1,.CP)
- +37 SET L1=$GET(@INV@("ZRD7"))
- IF $TRANSLATE(L1,$GET(SUBDELIM))=""
- SET L1=""
- DO SETPIECE^INHU(.LINE,DELIM,8,L1,.CP)
- SET L1=$GET(@INV@("ZRD8"))
- IF $TRANSLATE(L1,$GET(SUBDELIM))=""
- SET L1=""
- DO SETPIECE^INHU(.LINE,DELIM,9,L1,.CP)
- +38 SET LCT=LCT+1
- SET ^UTILITY("INH",$JOB,LCT)=LINE
- IF $DATA(LINE)>9
- MERGE ^UTILITY("INH",$JOB,LCT)=LINE
- +39 SET INSETID=0
- +40 SET INDA0=INDA
- SET INI(1)=0
- FOR
- SET INI(1)=$ORDER(INDA("ZRL",INI(1)))
- IF 'INI(1)
- QUIT
- SET INDA=$SELECT(INDA("ZRL",INI(1)):INDA("ZRL",INI(1)),1:INI(1))
- Begin DoDot:1
- +41 ;SET ZRL1 = INSGX\^INTHL7F(16344,5)\\999\"OUTPUT TRANSFORM"
- +42 SET D0=INDA
- SET X="OUTPUT TRANSFORM"
- +43 SET X1="^INTHL7F(16344,5)"
- IF $LENGTH($GET(@X1))
- XECUTE $GET(@X1)
- SET X=$EXTRACT(X,1,999)
- +44 SET @INV@("ZRL1")=X
- KILL DXS,D0
- +45 ;SET ZRL2 = INSGX\^INTHL7F(16345,5)\\999\"OUTPUT TRANSFORM"
- +46 SET D0=INDA
- SET X="OUTPUT TRANSFORM"
- +47 SET X1="^INTHL7F(16345,5)"
- IF $LENGTH($GET(@X1))
- XECUTE $GET(@X1)
- SET X=$EXTRACT(X,1,999)
- +48 SET @INV@("ZRL2")=X
- KILL DXS,D0
- +49 ;SET ZRL3 = INSGX\^INTHL7F(16346,5)\\999\"OUTPUT TRANSFORM"
- +50 SET D0=INDA
- SET X="OUTPUT TRANSFORM"
- +51 SET X1="^INTHL7F(16346,5)"
- IF $LENGTH($GET(@X1))
- XECUTE $GET(@X1)
- SET X=$EXTRACT(X,1,999)
- +52 SET @INV@("ZRL3")=X
- KILL DXS,D0
- +53 ;SET ZRL4 = ""
- +54 SET D0=INDA
- SET X=""
- +55 SET @INV@("ZRL4")=X
- KILL DXS,D0
- +56 ;SET ZRL5 = INSGX\^INTHL7F(16348,5)\\999\"OUTPUT TRANSFORM"
- +57 SET D0=INDA
- SET X="OUTPUT TRANSFORM"
- +58 SET X1="^INTHL7F(16348,5)"
- IF $LENGTH($GET(@X1))
- XECUTE $GET(@X1)
- SET X=$EXTRACT(X,1,999)
- +59 SET @INV@("ZRL5")=X
- KILL DXS,D0
- +60 ;SET ZRL6 = INSGX\^INTHL7FT(1,3)\\999\@BDW1ZRL6
- +61 SET D0=INDA
- SET X=$GET(INA("BDW1ZRL6",INI(1)))
- +62 SET X1="^INTHL7FT(1,3)"
- IF $LENGTH($GET(@X1))
- XECUTE $GET(@X1)
- SET X=$EXTRACT(X,1,999)
- +63 SET @INV@("ZRL6")=X
- KILL DXS,D0
- +64 IF 'INVS
- DO MC^INHS
- +65 KILL LINE
- SET LINE=""
- SET CP=0
- SET L1="ZRL"
- IF $TRANSLATE(L1,$GET(SUBDELIM))=""
- SET L1=""
- DO SETPIECE^INHU(.LINE,DELIM,1,L1,.CP)
- SET L1=$GET(@INV@("ZRL1"))
- IF $TRANSLATE(L1,$GET(SUBDELIM))=""
- SET L1=""
- +66 DO SETPIECE^INHU(.LINE,DELIM,2,L1,.CP)
- SET L1=$GET(@INV@("ZRL2"))
- IF $TRANSLATE(L1,$GET(SUBDELIM))=""
- SET L1=""
- DO SETPIECE^INHU(.LINE,DELIM,3,L1,.CP)
- SET L1=$GET(@INV@("ZRL3"))
- +67 IF $TRANSLATE(L1,$GET(SUBDELIM))=""
- SET L1=""
- DO SETPIECE^INHU(.LINE,DELIM,4,L1,.CP)
- SET L1=$GET(@INV@("ZRL4"))
- IF $TRANSLATE(L1,$GET(SUBDELIM))=""
- SET L1=""
- DO SETPIECE^INHU(.LINE,DELIM,5,L1,.CP)
- +68 SET L1=$GET(@INV@("ZRL5"))
- IF $TRANSLATE(L1,$GET(SUBDELIM))=""
- SET L1=""
- DO SETPIECE^INHU(.LINE,DELIM,6,L1,.CP)
- SET L1=$GET(@INV@("ZRL6"))
- IF $TRANSLATE(L1,$GET(SUBDELIM))=""
- SET L1=""
- DO SETPIECE^INHU(.LINE,DELIM,7,L1,.CP)
- +69 SET LCT=LCT+1
- SET ^UTILITY("INH",$JOB,LCT)=LINE
- IF $DATA(LINE)>9
- MERGE ^UTILITY("INH",$JOB,LCT)=LINE
- +70 QUIT
- End DoDot:1
- +71 SET INDA=INDA0
- KILL INDA0
- +72 SET INSETID=0
- +73 SET INDA0=INDA
- SET INI(1)=0
- FOR
- SET INI(1)=$ORDER(INDA("ZRC",INI(1)))
- IF 'INI(1)
- QUIT
- SET INDA=$SELECT(INDA("ZRC",INI(1)):INDA("ZRC",INI(1)),1:INI(1))
- Begin DoDot:1
- +74 ;SET ZRC1 = INSGX\^INTHL7F(16328,5)\\999\"OUTPUT TRANSFORM"
- +75 SET D0=INDA
- SET X="OUTPUT TRANSFORM"
- +76 SET X1="^INTHL7F(16328,5)"
- IF $LENGTH($GET(@X1))
- XECUTE $GET(@X1)
- SET X=$EXTRACT(X,1,999)
- +77 SET @INV@("ZRC1")=X
- KILL DXS,D0
- +78 ;SET ZRC2 = INSGX\^INTHL7F(16329,5)\\999\"OUTPUT TRANSFORM"
- +79 SET D0=INDA
- SET X="OUTPUT TRANSFORM"
- +80 SET X1="^INTHL7F(16329,5)"
- IF $LENGTH($GET(@X1))
- XECUTE $GET(@X1)
- SET X=$EXTRACT(X,1,999)
- +81 SET @INV@("ZRC2")=X
- KILL DXS,D0
- +82 ;SET ZRC3 = INSGX\^INTHL7F(16330,5)\\999\"OUTPUT TRANSFORM"
- +83 SET D0=INDA
- SET X="OUTPUT TRANSFORM"
- +84 SET X1="^INTHL7F(16330,5)"
- IF $LENGTH($GET(@X1))
- XECUTE $GET(@X1)
- SET X=$EXTRACT(X,1,999)
- +85 SET @INV@("ZRC3")=X
- KILL DXS,D0
- +86 ;SET ZRC4 = ""
- +87 SET D0=INDA
- SET X=""
- +88 SET @INV@("ZRC4")=X
- KILL DXS,D0
- +89 ;SET ZRC5 = INSGX\^INTHL7F(16332,5)\\999\"OUTPUT TRANSFORM"
- +90 SET D0=INDA
- SET X="OUTPUT TRANSFORM"
- +91 SET X1="^INTHL7F(16332,5)"
- IF $LENGTH($GET(@X1))
- XECUTE $GET(@X1)
- SET X=$EXTRACT(X,1,999)
- +92 SET @INV@("ZRC5")=X
- KILL DXS,D0
- +93 ;SET ZRC6 = INSGX\^INTHL7FT(1,3)\\999\@BDW1ZRC6
- +94 SET D0=INDA
- SET X=$GET(INA("BDW1ZRC6",INI(1)))
- +95 SET X1="^INTHL7FT(1,3)"
- IF $LENGTH($GET(@X1))
- XECUTE $GET(@X1)
- SET X=$EXTRACT(X,1,999)
- +96 SET @INV@("ZRC6")=X
- KILL DXS,D0
- +97 ;SET ZRC7 = INSGX\^INTHL7FT(1,3)\\999\@BDW1ZRC7
- +98 SET D0=INDA
- SET X=$GET(INA("BDW1ZRC7",INI(1)))
- +99 SET X1="^INTHL7FT(1,3)"
- IF $LENGTH($GET(@X1))
- XECUTE $GET(@X1)
- SET X=$EXTRACT(X,1,999)
- +100 SET @INV@("ZRC7")=X
- KILL DXS,D0
- +101 ;SET ZRC8 = INSGX\^INTHL7FT(1,3)\\999\@BDW1ZRC8
- +102 SET D0=INDA
- SET X=$GET(INA("BDW1ZRC8",INI(1)))
- +103 SET X1="^INTHL7FT(1,3)"
- IF $LENGTH($GET(@X1))
- XECUTE $GET(@X1)
- SET X=$EXTRACT(X,1,999)
- +104 SET @INV@("ZRC8")=X
- KILL DXS,D0
- +105 IF 'INVS
- DO MC^INHS
- +106 KILL LINE
- SET LINE=""
- SET CP=0
- SET L1="ZRC"
- IF $TRANSLATE(L1,$GET(SUBDELIM))=""
- SET L1=""
- DO SETPIECE^INHU(.LINE,DELIM,1,L1,.CP)
- SET L1=$GET(@INV@("ZRC1"))
- IF $TRANSLATE(L1,$GET(SUBDELIM))=""
- SET L1=""
- +107 DO SETPIECE^INHU(.LINE,DELIM,2,L1,.CP)
- SET L1=$GET(@INV@("ZRC2"))
- IF $TRANSLATE(L1,$GET(SUBDELIM))=""
- SET L1=""
- DO SETPIECE^INHU(.LINE,DELIM,3,L1,.CP)
- SET L1=$GET(@INV@("ZRC3"))
- +108 IF $TRANSLATE(L1,$GET(SUBDELIM))=""
- SET L1=""
- DO SETPIECE^INHU(.LINE,DELIM,4,L1,.CP)
- SET L1=$GET(@INV@("ZRC4"))
- IF $TRANSLATE(L1,$GET(SUBDELIM))=""
- SET L1=""
- DO SETPIECE^INHU(.LINE,DELIM,5,L1,.CP)
- +109 SET L1=$GET(@INV@("ZRC5"))
- IF $TRANSLATE(L1,$GET(SUBDELIM))=""
- SET L1=""
- DO SETPIECE^INHU(.LINE,DELIM,6,L1,.CP)
- SET L1=$GET(@INV@("ZRC6"))
- IF $TRANSLATE(L1,$GET(SUBDELIM))=""
- SET L1=""
- DO SETPIECE^INHU(.LINE,DELIM,7,L1,.CP)
- +110 SET L1=$GET(@INV@("ZRC7"))
- IF $TRANSLATE(L1,$GET(SUBDELIM))=""
- SET L1=""
- DO SETPIECE^INHU(.LINE,DELIM,8,L1,.CP)
- SET L1=$GET(@INV@("ZRC8"))
- IF $TRANSLATE(L1,$GET(SUBDELIM))=""
- SET L1=""
- DO SETPIECE^INHU(.LINE,DELIM,9,L1,.CP)
- +111 SET LCT=LCT+1
- SET ^UTILITY("INH",$JOB,LCT)=LINE
- IF $DATA(LINE)>9
- MERGE ^UTILITY("INH",$JOB,LCT)=LINE
- +112 QUIT
- End DoDot:1
- +113 SET INDA=INDA0
- KILL INDA0
- +114 SET INSETID=0
- +115 SET INDA0=INDA
- SET INI(1)=0
- FOR
- SET INI(1)=$ORDER(INDA("IN1",INI(1)))
- IF 'INI(1)
- QUIT
- SET INDA=$SELECT(INDA("IN1",INI(1)):INDA("IN1",INI(1)),1:INI(1))
- Begin DoDot:1
- +116 ;SET IN11 = ""
- +117 SET D0=INDA
- SET X=""
- +118 SET @INV@("IN11")=X
- KILL DXS,D0
- +119 ;SET IN12 = ""
- +120 SET D0=INDA
- SET X=""
- +121 SET @INV@("IN12")=X
- KILL DXS,D0
- +122 ;SET IN13 = INSGX\^INTHL7FT(1,3)\\999\@BDW1IN13
- +123 SET D0=INDA
- SET X=$GET(INA("BDW1IN13",INI(1)))
- +124 SET X1="^INTHL7FT(1,3)"
- IF $LENGTH($GET(@X1))
- XECUTE $GET(@X1)
- SET X=$EXTRACT(X,1,999)
- 9 DO EN^IS00006D
- End DoDot:1
- +1 GOTO C1^IS00006E