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

IS00005.m

Go to the documentation of this file.
IS00005(UIF,INOA,INODA) ;Compiled from script 'Generated: HL IHS CHR R01 IN-I' on JUN 08, 2006
 ;Part 1
 ;Copyright 2006 SAIC
EN S X="ERROR^IS00005",@^%ZOSF("TRAP")
 G START
ERROR ;
 S X="",@^%ZOSF("TRAP") X ^INTHOS(1,3) D ERROR^INHS($$GETERR^%ZTOS)
 Q 2
START ;Initialize variables
 K FIELD,MDESC,INDA,DIPA S (INAUDIT,INLAYGO)=0
 K INREQERR,INHERR,INHERCNT,INV D SETDT^UTDT S DUZ(0)="@",DUZ("AG")="^1",DTIME=1 S (LCT,GERR)=0,INMODE="I",INVS=$P(^INRHSITE(1,0),U,12),INV=$S(INVS<2:"INV",1:"^UTILITY(""INV"",$J)"),(MULT,INSTERR)=0
 S INHLDUZ=$O(^VA(200,"B","GIS,USER",0)),DUZ=$S($G(INHLDUZ):INHLDUZ,1:.5)
 S BHLMIEN="12420"
 K INSETID
 S INSMIN=$S($P($G(^INRHSITE(1,0)),U,14):$P(^(0),U,14),1:2500)
 S (DELIM,INDELIM)=$$FIELD^INHUT(),(SUBDELIM,INSUBDEL)=$$COMP^INHUT(),INSUBCOM=$$SUBCOMP^INHUT()
 ;Entering DATA section.
 S X=$$GL^INHOU(UIF,LCT),Y(1)=$G(X) S X=4,X=$E(Y(1),X) S DELIM=X K DXS
 S X=$$GL^INHOU(UIF,LCT),Y(1)=$G(X) S X=5,X=$E(Y(1),X) S SUBDELIM=X K DXS S INDELIMS=DELIM_$P(Y(1),DELIM,2)
 N INDEFSEG
 S INDEFSEG("MSH",0)=0
 S INDEFSEG("PID",0)=0
 S INDEFSEG("ZP2",0)=0
 S INDEFSEG("PV1",0)=0
 S INDEFSEG("ZV1",0)=0
 S INDEFSEG("ZHR",0)=0
 S INDEFSEG("OBR",1)=1
 S INDEFSEG("OBX",2)=1
 ;Start of GROUP
 F  S MATCH=0 D  Q:'MATCH
 .D:'INVS MC^INHS
 .D GET^INHOU(UIF,0) S LINE=$G(LINE),DO=0
 .I 'MATCH,LINE?1"M"1"S"1"H".ANPC S DO=1,MATCH=1
 .E  S LCT=LCT-CNT,DO=0
 .S:DO @("@INV@(""MSH1"")")=$E($G(LINE),4)
 .S:DO @("@INV@(""MSH2"")")=$$PIECE^INHU(.LINE,DELIM,2)
 .S:DO @("@INV@(""MSH3"")")=$$PIECE^INHU(.LINE,DELIM,3)
 .S:DO @("@INV@(""MSH4"")")=$$PIECE^INHU(.LINE,DELIM,4)
 .S:DO @("@INV@(""MSH5"")")=$$PIECE^INHU(.LINE,DELIM,5)
 .S:DO @("@INV@(""MSH6"")")=$$PIECE^INHU(.LINE,DELIM,6)
 .S:DO @("@INV@(""MSH7"")")=$$PIECE^INHU(.LINE,DELIM,7)
 .S:DO @("@INV@(""MSH8"")")=$$PIECE^INHU(.LINE,DELIM,8)
 .S:DO @("@INV@(""MSH9"")")=$$PIECE^INHU(.LINE,DELIM,9)
 .S:DO @("@INV@(""MSH10"")")=$$PIECE^INHU(.LINE,DELIM,10)
 .S:DO @("@INV@(""MSH11"")")=$$PIECE^INHU(.LINE,DELIM,11)
 .S:DO @("@INV@(""MSH12"")")=$$PIECE^INHU(.LINE,DELIM,12)
 .S:DO @("@INV@(""MSH13"")")=$$PIECE^INHU(.LINE,DELIM,13)
 .S:DO @("@INV@(""MSH14"")")=$$PIECE^INHU(.LINE,DELIM,14)
 .S:DO @("@INV@(""MSH15"")")=$$PIECE^INHU(.LINE,DELIM,15)
 .S:DO @("@INV@(""MSH16"")")=$$PIECE^INHU(.LINE,DELIM,16)
 .S:DO @("@INV@(""MSH17"")")=$$PIECE^INHU(.LINE,DELIM,17)
 .Q:MATCH
 .D:'INVS MC^INHS
 .D GET^INHOU(UIF,0) S LINE=$G(LINE),DO=0
 .I 'MATCH,LINE?1"P"1"I"1"D".ANPC S DO=1,MATCH=1
 .E  S LCT=LCT-CNT,DO=0
 .S:DO @("@INV@(""PID3"")")=$$PIECE^INHU(.LINE,DELIM,4)
 .S:DO @("@INV@(""PID4"")")=$$PIECE^INHU(.LINE,DELIM,5)
 .S:DO @("@INV@(""PID5"")")=$$PIECE^INHU(.LINE,DELIM,6)
 .S:DO @("@INV@(""PID6"")")=$$PIECE^INHU(.LINE,DELIM,7)
 .S:DO @("@INV@(""PID7"")")=$$PIECE^INHU(.LINE,DELIM,8)
 .S:DO @("@INV@(""PID8"")")=$$PIECE^INHU(.LINE,DELIM,9)
 .S:DO @("@INV@(""PID11"")")=$$PIECE^INHU(.LINE,DELIM,12)
 .S:DO @("@INV@(""PID12"")")=$$PIECE^INHU(.LINE,DELIM,13)
 .S:DO @("@INV@(""PID13"")")=$$PIECE^INHU(.LINE,DELIM,14)
 .S:DO @("@INV@(""PID14"")")=$$PIECE^INHU(.LINE,DELIM,15)
 .S:DO @("@INV@(""PID17"")")=$$PIECE^INHU(.LINE,DELIM,18)
 .S:DO @("@INV@(""PID18"")")=$$PIECE^INHU(.LINE,DELIM,19)
 .S:DO @("@INV@(""PID19"")")=$$PIECE^INHU(.LINE,DELIM,20)
 .S:DO @("@INV@(""PID26"")")=$$PIECE^INHU(.LINE,DELIM,27)
 .Q:MATCH
 .D:'INVS MC^INHS
 .D GET^INHOU(UIF,0) S LINE=$G(LINE),DO=0
 .I 'MATCH,LINE?1"Z"1"P"1"2".ANPC S DO=1,MATCH=1
 .E  S LCT=LCT-CNT,DO=0
 .S:DO @("@INV@(""ZP21"")")=$$PIECE^INHU(.LINE,DELIM,2)
 .S:DO @("@INV@(""ZP22"")")=$$PIECE^INHU(.LINE,DELIM,3)
 .S:DO @("@INV@(""ZP23"")")=$$PIECE^INHU(.LINE,DELIM,4)
 .S:DO @("@INV@(""ZP24"")")=$$PIECE^INHU(.LINE,DELIM,5)
 .S:DO @("@INV@(""ZP25"")")=$$PIECE^INHU(.LINE,DELIM,6)
 .S:DO @("@INV@(""ZP26"")")=$$PIECE^INHU(.LINE,DELIM,7)
 .S:DO @("@INV@(""ZP27"")")=$$PIECE^INHU(.LINE,DELIM,8)
 .S:DO @("@INV@(""ZP28"")")=$$PIECE^INHU(.LINE,DELIM,9)
 .S:DO @("@INV@(""ZP29"")")=$$PIECE^INHU(.LINE,DELIM,10)
 .S:DO @("@INV@(""ZP210"")")=$$PIECE^INHU(.LINE,DELIM,11)
 .S:DO @("@INV@(""ZP211"")")=$$PIECE^INHU(.LINE,DELIM,12)
 .S:DO @("@INV@(""ZP212"")")=$$PIECE^INHU(.LINE,DELIM,13)
 .S:DO @("@INV@(""ZP213"")")=$$PIECE^INHU(.LINE,DELIM,14)
 .S:DO @("@INV@(""ZP214"")")=$$PIECE^INHU(.LINE,DELIM,15)
 .S:DO @("@INV@(""ZP215"")")=$$PIECE^INHU(.LINE,DELIM,16)
 .S:DO @("@INV@(""ZP216"")")=$$PIECE^INHU(.LINE,DELIM,17)
 .S:DO @("@INV@(""ZP217"")")=$$PIECE^INHU(.LINE,DELIM,18)
 .S:DO @("@INV@(""ZP218"")")=$$PIECE^INHU(.LINE,DELIM,19)
 .S:DO @("@INV@(""ZP219"")")=$$PIECE^INHU(.LINE,DELIM,20)
 .S:DO @("@INV@(""ZP220"")")=$$PIECE^INHU(.LINE,DELIM,21)
 .S:DO @("@INV@(""ZP221"")")=$$PIECE^INHU(.LINE,DELIM,22)
 .S:DO @("@INV@(""ZP222"")")=$$PIECE^INHU(.LINE,DELIM,23)
 .S:DO @("@INV@(""ZP223"")")=$$PIECE^INHU(.LINE,DELIM,24)
 .S:DO @("@INV@(""ZP224"")")=$$PIECE^INHU(.LINE,DELIM,25)
 .S:DO @("@INV@(""ZP225"")")=$$PIECE^INHU(.LINE,DELIM,26)
 .S:DO @("@INV@(""ZP226"")")=$$PIECE^INHU(.LINE,DELIM,27)
 .S:DO @("@INV@(""ZP227"")")=$$PIECE^INHU(.LINE,DELIM,28)
 .S:DO @("@INV@(""ZP228"")")=$$PIECE^INHU(.LINE,DELIM,29)
 .S:DO @("@INV@(""ZP229"")")=$$PIECE^INHU(.LINE,DELIM,30)
 .S:DO @("@INV@(""ZP230"")")=$$PIECE^INHU(.LINE,DELIM,31)
 .S:DO @("@INV@(""ZP231"")")=$$PIECE^INHU(.LINE,DELIM,32)
 .S:DO @("@INV@(""ZP232"")")=$$PIECE^INHU(.LINE,DELIM,33)
 .S:DO @("@INV@(""ZP233"")")=$$PIECE^INHU(.LINE,DELIM,34)
 .Q:MATCH
 .D:'INVS MC^INHS
 .D GET^INHOU(UIF,0) S LINE=$G(LINE),DO=0
 .I 'MATCH,LINE?1"P"1"V"1"1".ANPC S DO=1,MATCH=1
 .E  S LCT=LCT-CNT,DO=0
 .S:DO @("@INV@(""PV11"")")=$$PIECE^INHU(.LINE,DELIM,2)
 .S:DO @("@INV@(""PV12"")")=$$PIECE^INHU(.LINE,DELIM,3)
 .S:DO @("@INV@(""PV13"")")=$$PIECE^INHU(.LINE,DELIM,4)
 .S:DO @("@INV@(""PV14"")")=$$PIECE^INHU(.LINE,DELIM,5)
 .S:DO @("@INV@(""PV17"")")=$$PIECE^INHU(.LINE,DELIM,8)
 .S:DO @("@INV@(""PV19"")")=$$PIECE^INHU(.LINE,DELIM,10)
 .S:DO @("@INV@(""PV110"")")=$$PIECE^INHU(.LINE,DELIM,11)
 .S:DO @("@INV@(""PV117"")")=$$PIECE^INHU(.LINE,DELIM,18)
 .S:DO @("@INV@(""PV119"")")=$$PIECE^INHU(.LINE,DELIM,20)
 .S:DO @("@INV@(""PV120"")")=$$PIECE^INHU(.LINE,DELIM,21)
 .S:DO @("@INV@(""PV136"")")=$$PIECE^INHU(.LINE,DELIM,37)
 .S:DO @("@INV@(""PV137"")")=$$PIECE^INHU(.LINE,DELIM,38)
 .S:DO @("@INV@(""PV144"")")=$$PIECE^INHU(.LINE,DELIM,45)
 .S:DO @("@INV@(""PV145"")")=$$PIECE^INHU(.LINE,DELIM,46)
 .Q:MATCH
 .D:'INVS MC^INHS
 .D GET^INHOU(UIF,0) S LINE=$G(LINE),DO=0
 .I 'MATCH,LINE?1"Z"1"V"1"1".ANPC S DO=1,MATCH=1
 .E  S LCT=LCT-CNT,DO=0
 .S:DO @("@INV@(""ZV11"")")=$$PIECE^INHU(.LINE,DELIM,2)
 .S:DO @("@INV@(""ZV12"")")=$$PIECE^INHU(.LINE,DELIM,3)
 .S:DO @("@INV@(""ZV13"")")=$$PIECE^INHU(.LINE,DELIM,4)
 .S:DO @("@INV@(""ZV14"")")=$$PIECE^INHU(.LINE,DELIM,5)
 .S:DO @("@INV@(""ZV15"")")=$$PIECE^INHU(.LINE,DELIM,6)
 .S:DO @("@INV@(""ZV16"")")=$$PIECE^INHU(.LINE,DELIM,7)
 .S:DO @("@INV@(""ZV17"")")=$$PIECE^INHU(.LINE,DELIM,8)
 .S:DO @("@INV@(""ZV18"")")=$$PIECE^INHU(.LINE,DELIM,9)
 .S:DO @("@INV@(""ZV19"")")=$$PIECE^INHU(.LINE,DELIM,10)
 .S:DO @("@INV@(""ZV110"")")=$$PIECE^INHU(.LINE,DELIM,11)
 .S:DO @("@INV@(""ZV111"")")=$$PIECE^INHU(.LINE,DELIM,12)
 .S:DO @("@INV@(""ZV112"")")=$$PIECE^INHU(.LINE,DELIM,13)
 .S:DO @("@INV@(""ZV113"")")=$$PIECE^INHU(.LINE,DELIM,14)
 .S:DO @("@INV@(""ZV114"")")=$$PIECE^INHU(.LINE,DELIM,15)
 .S:DO @("@INV@(""ZV115"")")=$$PIECE^INHU(.LINE,DELIM,16)
 .S:DO @("@INV@(""ZV116"")")=$$PIECE^INHU(.LINE,DELIM,17)
 .S:DO @("@INV@(""ZV117"")")=$$PIECE^INHU(.LINE,DELIM,18)
 .S:DO @("@INV@(""ZV118"")")=$$PIECE^INHU(.LINE,DELIM,19)
9 .D EN^IS00005A
 G A1^IS00005A