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

IS00011C.m

Go to the documentation of this file.
IS00011C ;Compiled from script 'Generated: HL IHS IZV04 OUT-O' on AUG 15, 2018
 ;Part 4
 ;Copyright 2018 SAIC
EN 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
 ;SET OBX3 = INSGX\^INTHL7FT(1,3)\\250\@OBXCE3
 S D0=INDA S X=$G(INA("OBXCE3",INI(1)))
 S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,250)
 S @INV@("OBX3")=X K DXS,D0
 ;SET OBX4 = INSGX\^INTHL7FT(1,3)\\20\@OBXCE4
 S D0=INDA S X=$G(INA("OBXCE4",INI(1)))
 S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,20)
 S @INV@("OBX4")=X K DXS,D0
 ;SET OBX5 = INSGX\^INTHL7FT(1,3)\\50\@OBXCE5
 S D0=INDA S X=$G(INA("OBXCE5",INI(1)))
 S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,50)
 S @INV@("OBX5")=X K DXS,D0
 ;SET OBX11 = INSGX\^INTHL7FT(1,3)\\5\@OBXCE11
 S D0=INDA S X=$G(INA("OBXCE11",INI(1)))
 S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,5)
 S @INV@("OBX11")=X K DXS,D0
 ;SET OBX14 = INSGX\^INTHL7FT(1,3)\\26\@OBXCE14
 S D0=INDA S X=$G(INA("OBXCE14",INI(1)))
 S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,26)
 S @INV@("OBX14")=X K DXS,D0
 ;SET OBX17 = INSGX\^INTHL7FT(1,3)\\100\@OBXCE17
 S D0=INDA S X=$G(INA("OBXCE17",INI(1)))
 S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,100)
 S @INV@("OBX17")=X K DXS,D0
 D:'INVS MC^INHS
 K LINE S LINE="",CP=0 S L1="OBX" S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,1,L1,.CP) S L1=$G(@INV@("OBX1")) S:$TR(L1,$G(SUBDELIM))="" L1=""
 D SETPIECE^INHU(.LINE,DELIM,2,L1,.CP) S L1=$G(@INV@("OBX2")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,3,L1,.CP) S L1=$G(@INV@("OBX3"))
 S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,4,L1,.CP) S L1=$G(@INV@("OBX4")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,5,L1,.CP)
 S L1=$G(@INV@("OBX5")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,6,L1,.CP) S L1=$G(@INV@("OBX11")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,12,L1,.CP)
 S L1=$G(@INV@("OBX14")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,15,L1,.CP) S L1=$G(@INV@("OBX17")) 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 OBXFS^BYIMSEG1
 ;SET OBX1 = INSGX\^INTHL7FT(1,3)\\10\@OBXFS1
 S D0=INDA S X=$G(INA("OBXFS1",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\@OBXFS2
 S D0=INDA S X=$G(INA("OBXFS2",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
 ;SET OBX3 = INSGX\^INTHL7FT(1,3)\\250\@OBXFS3
 S D0=INDA S X=$G(INA("OBXFS3",INI(1)))
 S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,250)
 S @INV@("OBX3")=X K DXS,D0
 ;SET OBX4 = INSGX\^INTHL7FT(1,3)\\20\@OBXFS4
 S D0=INDA S X=$G(INA("OBXFS4",INI(1)))
 S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,20)
 S @INV@("OBX4")=X K DXS,D0
 ;SET OBX5 = INSGX\^INTHL7FT(1,3)\\50\@OBXFS5
 S D0=INDA S X=$G(INA("OBXFS5",INI(1)))
 S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,50)
 S @INV@("OBX5")=X K DXS,D0
 ;SET OBX11 = INSGX\^INTHL7FT(1,3)\\5\@OBXFS11
 S D0=INDA S X=$G(INA("OBXFS11",INI(1)))
 S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,5)
 S @INV@("OBX11")=X K DXS,D0
 ;SET OBX14 = INSGX\^INTHL7FT(1,3)\\26\@OBXFS14
 S D0=INDA S X=$G(INA("OBXFS14",INI(1)))
 S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,26)
 S @INV@("OBX14")=X K DXS,D0
 D:'INVS MC^INHS
 K LINE S LINE="",CP=0 S L1="OBX" S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,1,L1,.CP) S L1=$G(@INV@("OBX1")) S:$TR(L1,$G(SUBDELIM))="" L1=""
 D SETPIECE^INHU(.LINE,DELIM,2,L1,.CP) S L1=$G(@INV@("OBX2")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,3,L1,.CP) S L1=$G(@INV@("OBX3"))
 S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,4,L1,.CP) S L1=$G(@INV@("OBX4")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,5,L1,.CP)
 S L1=$G(@INV@("OBX5")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,6,L1,.CP) S L1=$G(@INV@("OBX11")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,12,L1,.CP)
 S L1=$G(@INV@("OBX14")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,15,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 OBXTY^BYIMSEG1
 ;SET OBX1 = INSGX\^INTHL7FT(1,3)\\99\@OBXTY1
 S D0=INDA S X=$G(INA("OBXTY1",INI(1)))
 S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,99)
 S @INV@("OBX1")=X K DXS,D0
 ;SET OBX2 = INSGX\^INTHL7FT(1,3)\\99\@OBXTY2
 S D0=INDA S X=$G(INA("OBXTY2",INI(1)))
 S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,99)
 S @INV@("OBX2")=X K DXS,D0
 ;SET OBX3 = INSGX\^INTHL7FT(1,3)\\99\@OBXTY3
 S D0=INDA S X=$G(INA("OBXTY3",INI(1)))
 S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,99)
 S @INV@("OBX3")=X K DXS,D0
 ;SET OBX4 = INSGX\^INTHL7FT(1,3)\\99\@OBXTY4
 S D0=INDA S X=$G(INA("OBXTY4",INI(1)))
 S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,99)
 S @INV@("OBX4")=X K DXS,D0
 ;SET OBX5 = INSGX\^INTHL7FT(1,3)\\99\@OBXTY5
 S D0=INDA S X=$G(INA("OBXTY5",INI(1)))
 S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,99)
 S @INV@("OBX5")=X K DXS,D0
 ;SET OBX11 = INSGX\^INTHL7FT(1,3)\\99\@OBXTY11
 S D0=INDA S X=$G(INA("OBXTY11",INI(1)))
 S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,99)
 S @INV@("OBX11")=X K DXS,D0
 D:'INVS MC^INHS
 K LINE S LINE="",CP=0 S L1="OBX" S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,1,L1,.CP) S L1=$G(@INV@("OBX1")) S:$TR(L1,$G(SUBDELIM))="" L1=""
 D SETPIECE^INHU(.LINE,DELIM,2,L1,.CP) S L1=$G(@INV@("OBX2")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,3,L1,.CP) S L1=$G(@INV@("OBX3"))
 S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,4,L1,.CP) S L1=$G(@INV@("OBX4")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,5,L1,.CP)
 S L1=$G(@INV@("OBX5")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,6,L1,.CP) S L1=$G(@INV@("OBX11")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,12,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 OBXPB^BYIMSEG1
 ;SET OBX1 = INSGX\^INTHL7FT(1,3)\\250\@OBXPB1
 S D0=INDA S X=$G(INA("OBXPB1",INI(1)))
 S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,250)
 S @INV@("OBX1")=X K DXS,D0
 ;SET OBX2 = INSGX\^INTHL7FT(1,3)\\250\@OBXPB2
 S D0=INDA S X=$G(INA("OBXPB2",INI(1)))
 S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,250)
 S @INV@("OBX2")=X K DXS,D0
 ;SET OBX3 = INSGX\^INTHL7FT(1,3)\\250\@OBXPB3
 S D0=INDA S X=$G(INA("OBXPB3",INI(1)))
 S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,250)
 S @INV@("OBX3")=X K DXS,D0
 ;SET OBX4 = INSGX\^INTHL7FT(1,3)\\250\@OBXPB4
 S D0=INDA S X=$G(INA("OBXPB4",INI(1)))
 S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,250)
 S @INV@("OBX4")=X K DXS,D0
 ;SET OBX5 = INSGX\^INTHL7FT(1,3)\\250\@OBXPB5
 S D0=INDA S X=$G(INA("OBXPB5",INI(1)))
 S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,250)
 S @INV@("OBX5")=X K DXS,D0
 ;SET OBX11 = INSGX\^INTHL7FT(1,3)\\5\@OBXFS11
 S D0=INDA S X=$G(INA("OBXFS11",INI(1)))
 S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,5)
 S @INV@("OBX11")=X K DXS,D0
 D:'INVS MC^INHS
 K LINE S LINE="",CP=0 S L1="OBX" S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,1,L1,.CP) S L1=$G(@INV@("OBX1")) S:$TR(L1,$G(SUBDELIM))="" L1=""
 D SETPIECE^INHU(.LINE,DELIM,2,L1,.CP) S L1=$G(@INV@("OBX2")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,3,L1,.CP) S L1=$G(@INV@("OBX3"))
 S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,4,L1,.CP) S L1=$G(@INV@("OBX4")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,5,L1,.CP)
 S L1=$G(@INV@("OBX5")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,6,L1,.CP) S L1=$G(@INV@("OBX11")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,12,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 OBXPR^BYIMSEG1
 ;SET OBX1 = INSGX\^INTHL7FT(1,3)\\2\@OBXPR1
 S D0=INDA S X=$G(INA("OBXPR1",INI(1)))
 S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,2)
 S @INV@("OBX1")=X K DXS,D0
 ;SET OBX2 = INSGX\^INTHL7FT(1,3)\\2\@OBXPR2
 S D0=INDA S X=$G(INA("OBXPR2",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
 ;SET OBX3 = INSGX\^INTHL7FT(1,3)\\250\@OBXPR3
 S D0=INDA S X=$G(INA("OBXPR3",INI(1)))
 S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,250)
 S @INV@("OBX3")=X K DXS,D0
 ;SET OBX4 = INSGX\^INTHL7FT(1,3)\\2\@OBXPR4
 S D0=INDA S X=$G(INA("OBXPR4",INI(1)))
 S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,2)
 S @INV@("OBX4")=X K DXS,D0
 ;SET OBX5 = INSGX\^INTHL7FT(1,3)\\8\@OBXPR5
 S D0=INDA S X=$G(INA("OBXPR5",INI(1)))
 S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,8)
 S @INV@("OBX5")=X K DXS,D0
 ;SET OBX11 = INSGX\^INTHL7FT(1,3)\\5\@OBXFS11
 S D0=INDA S X=$G(INA("OBXFS11",INI(1)))
 S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,5)
 S @INV@("OBX11")=X K DXS,D0
 D:'INVS MC^INHS
 K LINE S LINE="",CP=0 S L1="OBX" S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,1,L1,.CP) S L1=$G(@INV@("OBX1")) S:$TR(L1,$G(SUBDELIM))="" L1=""
 D SETPIECE^INHU(.LINE,DELIM,2,L1,.CP) S L1=$G(@INV@("OBX2")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,3,L1,.CP) S L1=$G(@INV@("OBX3"))
 S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,4,L1,.CP) S L1=$G(@INV@("OBX4")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,5,L1,.CP)
 S L1=$G(@INV@("OBX5")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,6,L1,.CP) S L1=$G(@INV@("OBX11")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,12,L1,.CP)
 S LCT=LCT+1,^UTILITY("INH",$J,LCT)=LINE I $D(LINE)>9 M ^UTILITY("INH",$J,LCT)=LINE
 Q
I1 S INDA=INDA0 K INDA0
 D:'INVS MC^INHS
 ;Entering END section.
 I $G(INSTERR) Q $S($G(INREQERR)>INSTERR:INREQERR,1:INSTERR)
 S UIF=$$NEWO^INHD(INDEST,"^UTILITY(""INH"",$J)",+$P($G(^INRHT(INTT,0)),U,12),INTT,MESSID,$G(INQUE),$G(INORDUZ),$G(INORDIV),.INUIF6,.INUIF7,$G(INA("INMIDGEN")))
 I UIF<0 D ERROR^INHS("UIF creation failed",2) Q 2
 Q 0