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

IS00011E.m

Go to the documentation of this file.
IS00011E ;Compiled from script 'Generated: HL IHS IZV04 OUT-O' on AUG 03, 2015
 ;Part 6
 ;Copyright 2015 SAIC
EN S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,48)
 S @INV@("ORC3")=X K DXS,D0
 ;SET ORC5 = INSGX\^INTHL7FT(1,3)\\2\@ORC5
 S D0=INDA S X=$G(INA("ORC5",INI(1)))
 S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,2)
 S @INV@("ORC5")=X K DXS,D0
 ;SET ORC10 = @ORC10
 S D0=INDA S X=$G(INA("ORC10",INI(1)))
 S @INV@("ORC10")=X K DXS,D0
 ;SET ORC12 = @ORC12
 S D0=INDA S X=$G(INA("ORC12",INI(1)))
 S @INV@("ORC12")=X K DXS,D0
 ;SET ORC17 = INSGX\^INTHL7FT(1,3)\\250\@ORC17
 S D0=INDA S X=$G(INA("ORC17",INI(1)))
 S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,250)
 S @INV@("ORC17")=X K DXS,D0
 D:'INVS MC^INHS
 K LINE S LINE="",CP=0 S L1="ORC" S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,1,L1,.CP) S L1=$G(@INV@("ORC1")) S:$TR(L1,$G(SUBDELIM))="" L1=""
 D SETPIECE^INHU(.LINE,DELIM,2,L1,.CP) S L1=$G(@INV@("ORC2")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,3,L1,.CP) S L1=$G(@INV@("ORC3"))
 S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,4,L1,.CP) S L1=$G(@INV@("ORC5")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,6,L1,.CP)
 S D0=INDA S X=@INV@("ORC10"),Y(1)=$G(X) S X=1,Y(2)=$G(X) S X=99,X=$E(Y(1),Y(2),X) S L1=X
 S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,11,L1,.CP)
 S D0=INDA S X=@INV@("ORC12"),Y(1)=$G(X) S X=1,Y(2)=$G(X) S X=99,X=$E(Y(1),Y(2),X) S L1=X
 S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,13,L1,.CP) S L1=$G(@INV@("ORC17")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,18,L1,.CP)
 S LCT=LCT+1,^UTILITY("INH",$J,LCT)=LINE I $D(LINE)>9 M ^UTILITY("INH",$J,LCT)=LINE
 SET INSETID=0
 D RXA^BYIMSEGS
 ;SET RXA1 = INSGX\^INTHL7FT(3,3)\\4\"0"
 S D0=INDA S X="0"
 S X1="^INTHL7FT(3,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,4)
 S @INV@("RXA1")=X K DXS,D0
 ;SET RXA2 = INSGX\^INTHL7FT(3,3)\\4\@RXA2
 S D0=INDA S X=$G(INA("RXA2",INI(1)))
 S X1="^INTHL7FT(3,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,4)
 S @INV@("RXA2")=X K DXS,D0
 ;SET RXA3 = INSGX\^INTHL7FT(1,3)\\26\@RXA3
 S D0=INDA S X=$G(INA("RXA3",INI(1)))
 S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,26)
 S @INV@("RXA3")=X K DXS,D0
 ;SET RXA4 = INSGX\^INTHL7FT(1,3)\\26\@RXA4
 S D0=INDA S X=$G(INA("RXA4",INI(1)))
 S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,26)
 S @INV@("RXA4")=X K DXS,D0
 ;SET RXA5 = INSGX\^INTHL7FT(1,3)\\250\@RXA5
 S D0=INDA S X=$G(INA("RXA5",INI(1)))
 S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,250)
 S @INV@("RXA5")=X K DXS,D0
 ;SET RXA6 = INSGX\^INTHL7FT(1,3)\\99\@RXA6
 S D0=INDA S X=$G(INA("RXA6",INI(1)))
 S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,99)
 S @INV@("RXA6")=X K DXS,D0
 ;SET RXA7 = INSGX\^INTHL7FT(1,3)\\20\@RXA7
 S D0=INDA S X=$G(INA("RXA7",INI(1)))
 S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,20)
 S @INV@("RXA7")=X K DXS,D0
 ;SET RXA9 = INSGX\^INTHL7FT(1,3)\\100\@RXA9
 S D0=INDA S X=$G(INA("RXA9",INI(1)))
 S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,100)
 S @INV@("RXA9")=X K DXS,D0
 ;SET RXA10 = INSGX\^INTHL7F(17035,5)\\99\@RXA10
 S D0=INDA S X=$G(INA("RXA10",INI(1)))
 S X1="^INTHL7F(17035,5)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,99)
 S @INV@("RXA10")=X K DXS,D0
 ;SET RXA11 = INSGX\^INTHL7FT(1,3)\\250\@RXA11
 S D0=INDA S X=$G(INA("RXA11",INI(1)))
 S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,250)
 S @INV@("RXA11")=X K DXS,D0
 ;SET RXA15 = INSGX\^INTHL7FT(1,3)\\20\@RXA15
 S D0=INDA S X=$G(INA("RXA15",INI(1)))
 S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,20)
 S @INV@("RXA15")=X K DXS,D0
 ;SET RXA16 = INSGX\^INTHL7FT(1,3)\\8\@RXA16
 S D0=INDA S X=$G(INA("RXA16",INI(1)))
 S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,8)
 S @INV@("RXA16")=X K DXS,D0
 ;SET RXA17 = INSGX\^INTHL7FT(1,3)\\250\@RXA17
 S D0=INDA S X=$G(INA("RXA17",INI(1)))
 S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,250)
 S @INV@("RXA17")=X K DXS,D0
 ;SET RXA20 = INSGX\^INTHL7FT(1,3)\\10\"CP"
 S D0=INDA S X="CP"
 S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,10)
 S @INV@("RXA20")=X K DXS,D0
 ;SET RXA21 = INSGX\^INTHL7FT(1,3)\\10\@RXA21
 S D0=INDA S X=$G(INA("RXA21",INI(1)))
 S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,10)
 S @INV@("RXA21")=X K DXS,D0
 ;SET RXA22 = INSGX\^INTHL7FT(1,3)\\50\@RXA22
 S D0=INDA S X=$G(INA("RXA22",INI(1)))
 S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,50)
 S @INV@("RXA22")=X K DXS,D0
 D:'INVS MC^INHS
 K LINE S LINE="",CP=0 S L1="RXA" S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,1,L1,.CP) S L1=$G(@INV@("RXA1")) S:$TR(L1,$G(SUBDELIM))="" L1=""
 D SETPIECE^INHU(.LINE,DELIM,2,L1,.CP) S L1=$G(@INV@("RXA2")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,3,L1,.CP) S L1=$G(@INV@("RXA3"))
 S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,4,L1,.CP) S L1=$G(@INV@("RXA4")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,5,L1,.CP)
 S L1=$G(@INV@("RXA5")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,6,L1,.CP) S L1=$G(@INV@("RXA6")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,7,L1,.CP)
 S L1=$G(@INV@("RXA7")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,8,L1,.CP) S L1=$G(@INV@("RXA9")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,10,L1,.CP)
 S L1=$G(@INV@("RXA10")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,11,L1,.CP) S L1=$G(@INV@("RXA11")) S:$TR(L1,$G(SUBDELIM))="" L1=""
 D SETPIECE^INHU(.LINE,DELIM,12,L1,.CP) S L1=$G(@INV@("RXA15")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,16,L1,.CP) S L1=$G(@INV@("RXA16"))
 S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,17,L1,.CP) S L1=$G(@INV@("RXA17")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,18,L1,.CP)
 S L1=$G(@INV@("RXA20")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,21,L1,.CP) S L1=$G(@INV@("RXA21")) S:$TR(L1,$G(SUBDELIM))="" L1=""
 D SETPIECE^INHU(.LINE,DELIM,22,L1,.CP) S L1=$G(@INV@("RXA22")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,23,L1,.CP)
 S LCT=LCT+1,^UTILITY("INH",$J,LCT)=LINE I $D(LINE)>9 M ^UTILITY("INH",$J,LCT)=LINE
 SET INSETID=0
 D RXR^BYIMSEGS
 ;SET RXR1 = INSGX\^INTHL7FT(1,3)\\50\@RXR1
 S D0=INDA S X=$G(INA("RXR1",INI(1)))
 S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,50)
 S @INV@("RXR1")=X K DXS,D0
 ;SET RXR2 = INSGX\^INTHL7FT(1,3)\\250\@RXR2
 S D0=INDA S X=$G(INA("RXR2",INI(1)))
 S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,250)
 S @INV@("RXR2")=X K DXS,D0
 D:'INVS MC^INHS
 K LINE S LINE="",CP=0 S L1="RXR" S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,1,L1,.CP) S L1=$G(@INV@("RXR1")) S:$TR(L1,$G(SUBDELIM))="" L1=""
 D SETPIECE^INHU(.LINE,DELIM,2,L1,.CP) S L1=$G(@INV@("RXR2")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,3,L1,.CP)
 S LCT=LCT+1,^UTILITY("INH",$J,LCT)=LINE I $D(LINE)>9 M ^UTILITY("INH",$J,LCT)=LINE
 SET INSETID=0
 D OBXCE^BYIMSEG1
 ;SET OBX1 = INSGX\^INTHL7FT(1,3)\\10\@OBXCE1
 S D0=INDA S X=$G(INA("OBXCE1",INI(1)))
 S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,10)
 S @INV@("OBX1")=X K DXS,D0
 ;SET OBX2 = INSGX\^INTHL7FT(1,3)\\2\@OBXCE2
 S D0=INDA S X=$G(INA("OBXCE2",INI(1)))
 S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,2)
 S @INV@("OBX2")=X K DXS,D0
9 G EN^IS00011F