Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: IS00007H

IS00007H.m

Go to the documentation of this file.
IS00007H ;Compiled from script 'Generated: HL IHS DW1 A08-O' on SEP 08, 2008
 ;Part 9
 ;Copyright 2008 SAIC
EN S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,15,L1,.CP) S L1=$G(@INV@("PR115")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,16,L1,.CP)
 S L1=$G(@INV@("PR116")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,17,L1,.CP) S L1=$G(@INV@("PR117")) S:$TR(L1,$G(SUBDELIM))="" L1=""
 D SETPIECE^INHU(.LINE,DELIM,18,L1,.CP) S L1=$G(@INV@("PR118")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,19,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 INDA1=INDA,INI(2)=0  F  S INI(2)=$O(INDA("ZPR",INI(2))) Q:'INI(2)  S INDA=$S(INDA("ZPR",INI(2)):INDA("ZPR",INI(2)),1:INI(2)) D
 .;SET ZPR1 = ""
 .S D0=INDA S X=""
 .S @INV@("ZPR1")=X K DXS,D0
 .;SET ZPR2 = ""
 .S D0=INDA S X=""
 .S @INV@("ZPR2")=X K DXS,D0
 .;SET ZPR3 = ""
 .S D0=INDA S X=""
 .S @INV@("ZPR3")=X K DXS,D0
 .;SET ZPR4 = ""
 .S D0=INDA S X=""
 .S @INV@("ZPR4")=X K DXS,D0
 .;SET ZPR5 = INSGX\^INTHL7FT(1,3)\\999\@BDW1ZPR5
 .S D0=INDA S X=$G(INA("BDW1ZPR5",INI(1),INI(2)))
 .S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
 .S @INV@("ZPR5")=X K DXS,D0
 .;SET ZPR6 = ""
 .S D0=INDA S X=""
 .S @INV@("ZPR6")=X K DXS,D0
 .;SET ZPR7 = ""
 .S D0=INDA S X=""
 .S @INV@("ZPR7")=X K DXS,D0
 .;SET ZPR8 = INSGX\^INTHL7FT(1,3)\\999\@BDW1ZPR8
 .S D0=INDA S X=$G(INA("BDW1ZPR8",INI(1),INI(2)))
 .S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
 .S @INV@("ZPR8")=X K DXS,D0
 .;SET ZPR9 = INSGX\^INTHL7FT(1,3)\\999\@BDW1ZPR9
 .S D0=INDA S X=$G(INA("BDW1ZPR9",INI(1),INI(2)))
 .S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
 .S @INV@("ZPR9")=X K DXS,D0
 .;SET ZPR10 = INSGX\^INTHL7FT(1,3)\\999\@BDW1ZPR10
 .S D0=INDA S X=$G(INA("BDW1ZPR10",INI(1),INI(2)))
 .S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
 .S @INV@("ZPR10")=X K DXS,D0
 .;SET ZPR11 = INSGX\^INTHL7FT(1,3)\\999\@BDW1ZPR11
 .S D0=INDA S X=$G(INA("BDW1ZPR11",INI(1),INI(2)))
 .S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
 .S @INV@("ZPR11")=X K DXS,D0
 .;SET ZPR12 = INSGX\^INTHL7FT(1,3)\\999\@BDW1ZPR12
 .S D0=INDA S X=$G(INA("BDW1ZPR12",INI(1),INI(2)))
 .S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
 .S @INV@("ZPR12")=X K DXS,D0
 .D:'INVS MC^INHS
 .K LINE S LINE="",CP=0 S L1="ZPR" S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,1,L1,.CP) S L1=$G(@INV@("ZPR1")) S:$TR(L1,$G(SUBDELIM))="" L1=""
 .D SETPIECE^INHU(.LINE,DELIM,2,L1,.CP) S L1=$G(@INV@("ZPR2")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,3,L1,.CP) S L1=$G(@INV@("ZPR3"))
 .S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,4,L1,.CP) S L1=$G(@INV@("ZPR4")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,5,L1,.CP)
 .S L1=$G(@INV@("ZPR5")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,6,L1,.CP) S L1=$G(@INV@("ZPR6")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,7,L1,.CP)
 .S L1=$G(@INV@("ZPR7")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,8,L1,.CP) S L1=$G(@INV@("ZPR8")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,9,L1,.CP)
 .S L1=$G(@INV@("ZPR9")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,10,L1,.CP) S L1=$G(@INV@("ZPR10")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,11,L1,.CP)
 .S L1=$G(@INV@("ZPR11")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,12,L1,.CP) S L1=$G(@INV@("ZPR12")) S:$TR(L1,$G(SUBDELIM))="" L1=""
 .D SETPIECE^INHU(.LINE,DELIM,13,L1,.CP)
 .S LCT=LCT+1,^UTILITY("INH",$J,LCT)=LINE I $D(LINE)>9 M ^UTILITY("INH",$J,LCT)=LINE
 .Q
 S INDA=INDA1 K INDA1
 Q
D1 S INDA=INDA0 K INDA0
 SET INSETID=0
 ;SET ZPN1 = INSGX\^INTHL7FT(1,3)\\999\"1"
 S D0=INDA S X="1"
 S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
 S @INV@("ZPN1")=X K DXS,D0
 ;SET ZPN2 = INSGX\^INTHL7F(16476,5)\\999\"OUTPUT TRANSFORM"
 S D0=INDA S X="OUTPUT TRANSFORM"
 S X1="^INTHL7F(16476,5)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
 S @INV@("ZPN2")=X K DXS,D0
 ;SET ZPN3 = INSGX\^INTHL7F(16477,5)\\999\"OUTPUT TRANSFORM"
 S D0=INDA S X="OUTPUT TRANSFORM"
 S X1="^INTHL7F(16477,5)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
 S @INV@("ZPN3")=X K DXS,D0
 D:'INVS MC^INHS
 K LINE S LINE="",CP=0 S L1="ZPN" S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,1,L1,.CP) S L1=$G(@INV@("ZPN1")) S:$TR(L1,$G(SUBDELIM))="" L1=""
 D SETPIECE^INHU(.LINE,DELIM,2,L1,.CP) S L1=$G(@INV@("ZPN2")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,3,L1,.CP) S L1=$G(@INV@("ZPN3"))
 S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,4,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("ZDN",INI(1))) Q:'INI(1)  S INDA=$S(INDA("ZDN",INI(1)):INDA("ZDN",INI(1)),1:INI(1)) D
 .;SET ZDN1 = INSGX\^INTHL7FT(1,3)\\999\@BDW1ZDN1
 .S D0=INDA S X=$G(INA("BDW1ZDN1",INI(1)))
 .S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
 .S @INV@("ZDN1")=X K DXS,D0
 .;SET ZDN2 = INSGX\^INTHL7FT(1,3)\\999\@BDW1ZDN2
 .S D0=INDA S X=$G(INA("BDW1ZDN2",INI(1)))
 .S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
 .S @INV@("ZDN2")=X K DXS,D0
 .;SET ZDN3 = INSGX\^INTHL7FT(1,3)\\999\@BDW1ZDN3
 .S D0=INDA S X=$G(INA("BDW1ZDN3",INI(1)))
 .S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
 .S @INV@("ZDN3")=X K DXS,D0
 .;SET ZDN4 = INSGX\^INTHL7FT(1,3)\\999\@BDW1ZDN4
 .S D0=INDA S X=$G(INA("BDW1ZDN4",INI(1)))
 .S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
 .S @INV@("ZDN4")=X K DXS,D0
 .;SET ZDN5 = INSGX\^INTHL7FT(1,3)\\999\@BDW1ZDN5
 .S D0=INDA S X=$G(INA("BDW1ZDN5",INI(1)))
 .S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
 .S @INV@("ZDN5")=X K DXS,D0
 .;SET ZDN6 = INSGX\^INTHL7FT(1,3)\\999\@BDW1ZDN6
 .S D0=INDA S X=$G(INA("BDW1ZDN6",INI(1)))
 .S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
 .S @INV@("ZDN6")=X K DXS,D0
 .;SET ZDN7 = INSGX\^INTHL7FT(1,3)\\999\@BDW1ZDN7
 .S D0=INDA S X=$G(INA("BDW1ZDN7",INI(1)))
 .S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
 .S @INV@("ZDN7")=X K DXS,D0
 .D:'INVS MC^INHS
 .K LINE S LINE="",CP=0 S L1="ZDN" S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,1,L1,.CP) S L1=$G(@INV@("ZDN1")) S:$TR(L1,$G(SUBDELIM))="" L1=""
 .D SETPIECE^INHU(.LINE,DELIM,2,L1,.CP) S L1=$G(@INV@("ZDN2")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,3,L1,.CP) S L1=$G(@INV@("ZDN3"))
 .S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,4,L1,.CP) S L1=$G(@INV@("ZDN4")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,5,L1,.CP)
 .S L1=$G(@INV@("ZDN5")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,6,L1,.CP) S L1=$G(@INV@("ZDN6")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,7,L1,.CP)
 .S L1=$G(@INV@("ZDN7")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,8,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("ZDP",INI(1))) Q:'INI(1)  S INDA=$S(INDA("ZDP",INI(1)):INDA("ZDP",INI(1)),1:INI(1)) D
 .;SET ZDP1 = INSGX\^INTHL7FT(1,3)\\999\@BDW1ZDP1
 .S D0=INDA S X=$G(INA("BDW1ZDP1",INI(1)))
9 .D EN^IS00007I
 G F1^IS00007I