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

IS00030A.m

Go to the documentation of this file.
  1. IS00030A ;Compiled from script 'Generated: HL IHS IZV04 QBP OUT-O' on AUG 03, 2015
  1. ;Part 2
  1. ;Copyright 2015 SAIC
  1. EN D:'INVS MC^INHS
  1. K LINE S LINE="",CP=0 S L1="QPD" S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,1,L1,.CP) S L1=$G(@INV@("QPD1")) S:$TR(L1,$G(SUBDELIM))="" L1=""
  1. D SETPIECE^INHU(.LINE,DELIM,2,L1,.CP) S L1=$G(@INV@("QPD2")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,3,L1,.CP) S L1=$G(@INV@("QPD3"))
  1. S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,4,L1,.CP) S L1=$G(@INV@("QPD4")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,5,L1,.CP)
  1. S L1=$G(@INV@("QPD5")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,6,L1,.CP) S L1=$G(@INV@("QPD6")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,7,L1,.CP)
  1. S L1=$G(@INV@("QPD7")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,8,L1,.CP) S L1=$G(@INV@("QPD8.1"))
  1. S D0=INDA S X="^" S L1=L1_X
  1. S L1=L1_$G(@INV@("QPD8.2"))
  1. S D0=INDA S X="^" S L1=L1_X
  1. S L1=L1_$G(@INV@("QPD8.3"))
  1. S D0=INDA S X="^" S L1=L1_X
  1. S L1=L1_$G(@INV@("QPD8.4"))
  1. S D0=INDA S X="^" S L1=L1_X
  1. S L1=L1_$G(@INV@("QPD8.5")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,9,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 RCP^BYIMSEGS
  1. ;SET RCP1 = $E(INTERNAL("1"),1,1)
  1. S D0=INDA S X="1",X=X S X=X,Y(1)=$G(X) S X=1,Y(2)=$G(X) S X=1,X=$E(Y(1),Y(2),X)
  1. S @INV@("RCP1")=X K DXS,D0
  1. ;SET RCP2 = INSGX\^INTHL7F(17019,5)\\10\"OUTPUT TRANSFORM"
  1. S D0=INDA S X="OUTPUT TRANSFORM"
  1. S X1="^INTHL7F(17019,5)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,10)
  1. S @INV@("RCP2")=X K DXS,D0
  1. ;SET RCP3 = INSGX\^INTHL7F(17020,5)\\60\"OUTPUT TRANSFORM"
  1. S D0=INDA S X="OUTPUT TRANSFORM"
  1. S X1="^INTHL7F(17020,5)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,60)
  1. S @INV@("RCP3")=X K DXS,D0
  1. D:'INVS MC^INHS
  1. K LINE S LINE="",CP=0 S L1="RCP" S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,1,L1,.CP) S L1=$G(@INV@("RCP1")) S:$TR(L1,$G(SUBDELIM))="" L1=""
  1. D SETPIECE^INHU(.LINE,DELIM,2,L1,.CP) S L1=$G(@INV@("RCP2")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,3,L1,.CP) S L1=$G(@INV@("RCP3"))
  1. S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,4,L1,.CP)
  1. S LCT=LCT+1,^UTILITY("INH",$J,LCT)=LINE I $D(LINE)>9 M ^UTILITY("INH",$J,LCT)=LINE
  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