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

IS00004A.m

Go to the documentation of this file.
IS00004A ;Compiled from script 'Generated: X1 IHS 276-O' on DEC 09, 2002
 ;Part 2
 ;Copyright 2002 SAIC
EN S L1=$G(@INV@("ISA12")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,13,L1,.CP)
 S D0=INDA S X=@INV@("ISA13"),Y(1)=X S X=1,Y(2)=X S X=9,X=$E(Y(1),Y(2),X) S L1=X
 S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,14,L1,.CP) S L1=$G(@INV@("ISA14")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,15,L1,.CP)
 S L1=$G(@INV@("ISA15")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,16,L1,.CP)
 S D0=INDA S X=@INV@("ISA16"),Y(1)=X S X=1,Y(2)=X S X=1,X=$E(Y(1),Y(2),X) S L1=X
 S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,17,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
 D GS^BHLXHDR
 ;SET GS1 = $E(INTERNAL(@GS1),1,2)
 S D0=INDA S X=$G(INA("GS1")),X=X S X=X,Y(1)=X S X=1,Y(2)=X S X=2,X=$E(Y(1),Y(2),X)
 S @INV@("GS1")=X K DXS,D0
 ;SET GS2 = @GS2
 S D0=INDA S X=$G(INA("GS2"))
 S @INV@("GS2")=X K DXS,D0
 ;SET GS3 = @GS3
 S D0=INDA S X=$G(INA("GS3"))
 S @INV@("GS3")=X K DXS,D0
 ;SET GS4 = INSGX\^INTHL7FT(4,3)\\8\@GS4
 S D0=INDA S X=$G(INA("GS4"))
 S X1="^INTHL7FT(4,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,8)
 S @INV@("GS4")=X K DXS,D0
 ;SET GS5 = @GS5
 S D0=INDA S X=$G(INA("GS5"))
 S @INV@("GS5")=X K DXS,D0
 ;SET GS6 = @GS6
 S D0=INDA S X=$G(INA("GS6"))
 S @INV@("GS6")=X K DXS,D0
 ;SET GS7 = $E(INTERNAL(@GS7),1,2)
 S D0=INDA S X=$G(INA("GS7")),X=X S X=X,Y(1)=X S X=1,Y(2)=X S X=2,X=$E(Y(1),Y(2),X)
 S @INV@("GS7")=X K DXS,D0
 ;SET GS8 = @GS8
 S D0=INDA S X=$G(INA("GS8"))
 S @INV@("GS8")=X K DXS,D0
 D:'INVS MC^INHS
 K LINE S LINE="",CP=0 S L1="GS" S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,1,L1,.CP) S L1=$G(@INV@("GS1")) S:$TR(L1,$G(SUBDELIM))="" L1=""
 D SETPIECE^INHU(.LINE,DELIM,2,L1,.CP)
 S D0=INDA S X=@INV@("GS2"),Y(1)=X S X=1,Y(2)=X S X=15,X=$E(Y(1),Y(2),X) S L1=X
 S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,3,L1,.CP)
 S D0=INDA S X=@INV@("GS3"),Y(1)=X S X=1,Y(2)=X S X=15,X=$E(Y(1),Y(2),X) S L1=X
 S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,4,L1,.CP) S L1=$G(@INV@("GS4")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,5,L1,.CP)
 S D0=INDA S X=@INV@("GS5"),Y(1)=X S X=1,Y(2)=X S X=8,X=$E(Y(1),Y(2),X) S L1=X
 S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,6,L1,.CP)
 S D0=INDA S X=@INV@("GS6"),Y(1)=X S X=1,Y(2)=X S X=9,X=$E(Y(1),Y(2),X) S L1=X
 S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,7,L1,.CP) S L1=$G(@INV@("GS7")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,8,L1,.CP)
 S D0=INDA S X=@INV@("GS8"),Y(1)=X S X=1,Y(2)=X S X=12,X=$E(Y(1),Y(2),X) S L1=X
 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 ST1 = INSGX\^INTHL7FT(1,3)\\999\@276HFST1
 S D0=INDA S X=$G(INA("276HFST1"))
 S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
 S @INV@("ST1")=X K DXS,D0
 ;SET ST2 = @INSEQ
 S D0=INDA S X=$G(INA("INSEQ"))
 S @INV@("ST2")=X K DXS,D0
 D:'INVS MC^INHS
 K LINE S LINE="",CP=0 S L1="ST" S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,1,L1,.CP) S L1=$G(@INV@("ST1")) S:$TR(L1,$G(SUBDELIM))="" L1=""
 D SETPIECE^INHU(.LINE,DELIM,2,L1,.CP)
 S D0=INDA S X=@INV@("ST2"),Y(1)=X S X=1,Y(2)=X S X=9,X=$E(Y(1),Y(2),X) S L1=X
 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 BHT1 = INSGX\^INTHL7FT(1,3)\\999\@276HFBHT1
 S D0=INDA S X=$G(INA("276HFBHT1"))
 S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
 S @INV@("BHT1")=X K DXS,D0
 ;SET BHT2 = INSGX\^INTHL7FT(1,3)\\999\@276HFBHT2
 S D0=INDA S X=$G(INA("276HFBHT2"))
 S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
 S @INV@("BHT2")=X K DXS,D0
 ;SET BHT3 = INSGX\^INTHL7FT(1,3)\\999\@276HFBHT3
 S D0=INDA S X=$G(INA("276HFBHT3"))
 S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
 S @INV@("BHT3")=X K DXS,D0
 ;SET BHT4 = INSGX\^INTHL7FT(1,3)\\999\@276HFBHT4
 S D0=INDA S X=$G(INA("276HFBHT4"))
 S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
9 G EN^IS00004B