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

INHMG4.m

Go to the documentation of this file.
  1. INHMG4 ;KN; 19 Aug 95 06:59;Script Message Generator - 'INHSG MESSAGE' TEMPLATE
  1. ;;3.01;BHL IHS Interfaces with GIS;;JUL 01, 2001
  1. ;COPYRIGHT 1991-2000 SAIC
  1. ;
  1. ; MODULE NAME: Script Message Generator (INHMG4) - INHMG3 Extension
  1. ;
  1. ; DESCRIPTION:
  1. ; This module is an extension of INHMG3 module, which is used to build
  1. ; the DXS array.
  1. ;
  1. ;Code begins
  1. S DXS(12,9.3)="S I(100)=""^INTHL7S("",J(100)=4010 F D=0:0 S (D,D1)=$O(^INTHL7S(D0,1,D)) Q:'D I $D(^(D,0))#2 X DXS(12,9.2) X DICMX Q:'$D(D) S D=D1"
  1. S DXS(12,9.4)="S I(1,0)=$G(D1),I(0,0)=$G(D0),DIP(1)=$G(^INTHL7M(D0,1,D1,0)),D0=$P(DIP(1),U) S:'$D(^INTHL7S(+D0,0)) D0=-1 S I(101,0)=$G(D1) X DXS(12,9.3):D0>0 S X="""" S D0=I(0,0)"
  1. S DXS(13,9.2)="S I(101,0)=$G(D1),I(100,0)=$G(D0),DIP(101)=$G(^INTHL7S(D0,1,D1,0)),D0=$P(DIP(101),U) S:'$D(^INTHL7F(+D0,0)) D0=-1 S DIP(201)=$G(^INTHL7F(D0,4)) S X=$E(DIP(201),1,245)"
  1. S DXS(13,9.3)="N D N DIP X DXS(13,9.2) S D0=I(100,0) S D1=I(101,0)"
  1. S DXS(13,9.4)="S I(100)=""^INTHL7S("",J(100)=4010 F D=0:0 S (D,D1)=$O(^INTHL7S(D0,1,D)) Q:'D I $D(^(D,0))#2 X DXS(13,9.3) X DICMX Q:'$D(D) S D=D1"
  1. S DXS(13,9.5)="S I(1,0)=$G(D1),I(0,0)=$G(D0),DIP(1)=$G(^INTHL7M(D0,1,D1,0)),D0=$P(DIP(1),U) S:'$D(^INTHL7S(+D0,0)) D0=-1 S I(101,0)=$G(D1) X DXS(13,9.4):D0>0 S X="""" S D0=I(0,0)"
  1. S DXS(14,9.2)="S I(101,0)=$G(D1),I(100,0)=$G(D0),DIP(101)=$G(^INTHL7S(D0,1,D1,0)),D0=$P(DIP(101),U) S:'$D(^INTHL7F(+D0,0)) D0=-1 S DIP(202)=$C(59)_$P($G(^DD(4012,.05,0)),U,3)"
  1. S DXS(14,9.3)="N D N DIP X DXS(14,9.2) S DIP(201)=$G(^INTHL7F(D0,0)) S X=$P($P(DIP(202),$C(59)_$P(DIP(201),U,5)_"":"",2),$C(59)) S D0=I(100,0) S D1=I(101,0)"
  1. S DXS(14,9.4)="S I(100)=""^INTHL7S("",J(100)=4010 F D=0:0 S (D,D1)=$O(^INTHL7S(D0,1,D)) Q:'D I $D(^(D,0))#2 X DXS(14,9.3) X DICMX Q:'$D(D) S D=D1"
  1. S DXS(14,9.5)="S I(1,0)=$G(D1),I(0,0)=$G(D0),DIP(1)=$G(^INTHL7M(D0,1,D1,0)),D0=$P(DIP(1),U) S:'$D(^INTHL7S(+D0,0)) D0=-1 S I(101,0)=$G(D1) X DXS(14,9.4):D0>0 S X="""" S D0=I(0,0)"
  1. S DXS(15,9.2)="S I(101,0)=$G(D1),I(100,0)=$G(D0),DIP(101)=$G(^INTHL7S(D0,1,D1,0)),D0=$P(DIP(101),U) S:'$D(^INTHL7F(+D0,0)) D0=-1 S DIP(201)=$G(^INTHL7F(D0,""I"")) S X=$E(DIP(201),1,245)"
  1. S DXS(15,9.3)="N D N DIP X DXS(15,9.2) S D0=I(100,0) S D1=I(101,0)"
  1. S DXS(15,9.4)="S I(100)=""^INTHL7S("",J(100)=4010 F D=0:0 S (D,D1)=$O(^INTHL7S(D0,1,D)) Q:'D I $D(^(D,0))#2 X DXS(15,9.3) X DICMX Q:'$D(D) S D=D1"
  1. S DXS(15,9.5)="S I(1,0)=$G(D1),I(0,0)=$G(D0),DIP(1)=$G(^INTHL7M(D0,1,D1,0)),D0=$P(DIP(1),U) S:'$D(^INTHL7S(+D0,0)) D0=-1 S I(101,0)=$G(D1) X DXS(15,9.4):D0>0 S X="""" S D0=I(0,0)"
  1. S DXS(16,9.2)="S I(101,0)=$G(D1),I(100,0)=$G(D0),DIP(101)=$G(^INTHL7S(D0,1,D1,0)),D0=$P(DIP(101),U) S:'$D(^INTHL7F(+D0,0)) D0=-1 S DIP(201)=$G(^INTHL7F(D0,5)) S X=$E(DIP(201),1,245)"
  1. S DXS(16,9.3)="N D N DIP X DXS(16,9.2) S D0=I(100,0) S D1=I(101,0)"
  1. S DXS(16,9.4)="S I(100)=""^INTHL7S("",J(100)=4010 F D=0:0 S (D,D1)=$O(^INTHL7S(D0,1,D)) Q:'D I $D(^(D,0))#2 X DXS(16,9.3) X DICMX Q:'$D(D) S D=D1"
  1. S DXS(16,9.5)="S I(1,0)=$G(D1),I(0,0)=$G(D0),DIP(1)=$G(^INTHL7M(D0,1,D1,0)),D0=$P(DIP(1),U) S:'$D(^INTHL7S(+D0,0)) D0=-1 S I(101,0)=$G(D1) X DXS(16,9.4):D0>0 S X="""" S D0=I(0,0)"
  1. S DXS(17,9.2)="S I(101,0)=$G(D1),I(100,0)=$G(D0),DIP(101)=$G(^INTHL7S(D0,1,D1,0)),D0=$P(DIP(101),U) S:'$D(^INTHL7F(+D0,0)) D0=-1 S DIP(201)=$G(^INTHL7F(D0,50))"
  1. S DXS(17,9.3)="N D N DIP X DXS(17,9.2) S X=$P($G(^INVD(4090.2,+$P(DIP(201),U),0)),U) S D0=I(100,0) S D1=I(101,0)"
  1. S DXS(17,9.4)="S I(100)=""^INTHL7S("",J(100)=4010 F D=0:0 S (D,D1)=$O(^INTHL7S(D0,1,D)) Q:'D I $D(^(D,0))#2 X DXS(17,9.3) X DICMX Q:'$D(D) S D=D1"
  1. S DXS(17,9.5)="S I(1,0)=$G(D1),I(0,0)=$G(D0),DIP(1)=$G(^INTHL7M(D0,1,D1,0)),D0=$P(DIP(1),U) S:'$D(^INTHL7S(+D0,0)) D0=-1 S I(101,0)=$G(D1) X DXS(17,9.4):D0>0 S X="""" S D0=I(0,0)"
  1. S DXS(18,0)="NO"
  1. S DXS(18,1)="YES"
  1. S DXS(19,"D")="DEBUG"
  1. S DXS(19,"P")="PRODUCTION"
  1. S DXS(19,"T")="TRAINING"
  1. S DXS(20,"F")="FORCED LAYGO"
  1. S DXS(20,"L")="LAYGO ALLOWED"
  1. S DXS(20,"N")="NO LAYGO"
  1. S DXS(20,"O")="LOOKUP ONLY"
  1. S DXS(20,"P")="PARSE ONLY"
  1. S DXS(21,"AL")="ALWAYS"
  1. S DXS(21,"ER")="ERROR/REJECT"
  1. S DXS(21,"NE")="NEVER"
  1. S DXS(21,"SU")="SUCCESS ONLY"
  1. S DXS(22,"AL")="ALWAYS"
  1. S DXS(22,"ER")="ERROR/REJECT"
  1. S DXS(22,"NE")="NEVER"
  1. S DXS(22,"SU")="SUCCESS ONLY"
  1. S DXS(23,0)="NO"
  1. S DXS(23,1)="YES"
  1. S DXS(24,0)="NO"
  1. S DXS(24,1)="YES"
  1. S DXS(25,0)="NO"
  1. S DXS(25,1)="YES"
  1. S DXS(26,0)="NO"
  1. S DXS(26,1)="YES"
  1. S DXS(27,"F")="FORCED LAYGO"
  1. S DXS(27,"L")="LAYGO ALLOWED"
  1. S DXS(27,"N")="NO LAYGO"
  1. S DXS(27,"O")="LOOKUP ONLY"
  1. S DXS(27,"P")="PARSE ONLY"
  1. S DXS(28,0)="NO"
  1. S DXS(28,1)="YES"
  1. Q