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

IS00011G.m

Go to the documentation of this file.
  1. IS00011G ;Compiled from script 'Generated: HL IHS IZV04 OUT-O' on AUG 03, 2015
  1. ;Part 8
  1. ;Copyright 2015 SAIC
  1. EN 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=""
  1. 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"))
  1. 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)
  1. 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)
  1. S LCT=LCT+1,^UTILITY("INH",$J,LCT)=LINE I $D(LINE)>9 M ^UTILITY("INH",$J,LCT)=LINE
  1. SET INSETID=0
  1. D OBXPR^BYIMSEG1
  1. ;SET OBX1 = INSGX\^INTHL7FT(1,3)\\2\@OBXPR1
  1. S D0=INDA S X=$G(INA("OBXPR1",INI(1)))
  1. S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,2)
  1. S @INV@("OBX1")=X K DXS,D0
  1. ;SET OBX2 = INSGX\^INTHL7FT(1,3)\\2\@OBXPR2
  1. S D0=INDA S X=$G(INA("OBXPR2",INI(1)))
  1. S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,2)
  1. S @INV@("OBX2")=X K DXS,D0
  1. ;SET OBX3 = INSGX\^INTHL7FT(1,3)\\250\@OBXPR3
  1. S D0=INDA S X=$G(INA("OBXPR3",INI(1)))
  1. S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,250)
  1. S @INV@("OBX3")=X K DXS,D0
  1. ;SET OBX4 = INSGX\^INTHL7FT(1,3)\\2\@OBXPR4
  1. S D0=INDA S X=$G(INA("OBXPR4",INI(1)))
  1. S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,2)
  1. S @INV@("OBX4")=X K DXS,D0
  1. ;SET OBX5 = INSGX\^INTHL7FT(1,3)\\8\@OBXPR5
  1. S D0=INDA S X=$G(INA("OBXPR5",INI(1)))
  1. S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,8)
  1. S @INV@("OBX5")=X K DXS,D0
  1. ;SET OBX11 = INSGX\^INTHL7FT(1,3)\\5\@OBXFS11
  1. S D0=INDA S X=$G(INA("OBXFS11",INI(1)))
  1. S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,5)
  1. S @INV@("OBX11")=X K DXS,D0
  1. D:'INVS MC^INHS
  1. 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=""
  1. 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"))
  1. 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)
  1. 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)
  1. S LCT=LCT+1,^UTILITY("INH",$J,LCT)=LINE I $D(LINE)>9 M ^UTILITY("INH",$J,LCT)=LINE
  1. Q
  1. I1 S INDA=INDA0 K INDA0
  1. D:'INVS MC^INHS
  1. ;Entering END section.
  1. I $G(INSTERR) Q $S($G(INREQERR)>INSTERR:INREQERR,1:INSTERR)
  1. 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")))
  1. I UIF<0 D ERROR^INHS("UIF creation failed",2) Q 2
  1. Q 0