Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Info |  Details |  All
Print Page as PDF
Sub-Field: 4011.01

Package: IHS Generic Interface System

SCRIPT GENERATOR MESSAGE(#4011)-->4011.01

Sub-Field: 4011.01


Information

Parent File Name Number Package
SCRIPT GENERATOR MESSAGE(#4011) SEGMENTS 4011.01 IHS Generic Interface System

Details

Field # Name Loc Type Details
.01 SEGMENT 0;1 POINTER TO SCRIPT GENERATOR SEGMENT FILE (#4010) SCRIPT GENERATOR SEGMENT(#4010)

  • LAST EDITED:  DEC 08, 1991
  • DESCRIPTION:  
    A segment already defined in the HL7 file (#4010).
  • CROSS-REFERENCE:  4011.01^B
    1)= S ^INTHL7M(DA(1),1,"B",$E(X,1,30),DA)=""
    2)= K ^INTHL7M(DA(1),1,"B",$E(X,1,30),DA)
  • CROSS-REFERENCE:  4011^SEG
    1)= S ^INTHL7M("SEG",$E(X,1,30),DA(1),DA)=""
    2)= K ^INTHL7M("SEG",$E(X,1,30),DA(1),DA)
.02 SEQUENCE NUMBER 0;2 NUMBER
************************REQUIRED FIELD************************

  • INPUT TRANSFORM:  K:+X'=X!(X>999)!(X<.01)!(X?.E1"."3N.N) X
  • LAST EDITED:  DEC 27, 1991
  • HELP-PROMPT:  Type a number between .01 and 999
  • DESCRIPTION:  This is the position of this segment within the message. Segments will be ordered in the message according to the value of this field. A sparse array of values may be used but each number must be unique within this
    message.
  • CROSS-REFERENCE:  4011.01^AS
    1)= S ^INTHL7M(DA(1),1,"AS",$E(X,1,30),DA)=""
    2)= K ^INTHL7M(DA(1),1,"AS",$E(X,1,30),DA)
    Cross reference by sequence number.
  • CROSS-REFERENCE:  4011^ASP^MULTIPLE^^^4011.01,.02,4011.01,.11
    1)= N Y2 S Y2=$P(^INTHL7M(DA(1),1,DA,0),U,11) I Y2]"" S Y2=$E(Y2,1,30) S ^INTHL7M(DA(1),1,"ASP",Y2,$E(X,1,30),DA)=""
    2)= N Y2 S Y2=$P(^INTHL7M(DA(1),1,DA,0),U,11) I Y2]"" S Y2=$E(Y2,1,30) K ^INTHL7M(DA(1),1,"ASP",Y2,$E(X,1,30),DA)
.03 REPEATABLE 0;3 SET
  • '0' FOR NO;
  • '1' FOR YES;

  • LAST EDITED:  MAY 06, 1991
  • DESCRIPTION:  
    Indicate whether or not this segment can be repeated within this message.
.04 OTHER FILE 0;4 SET
  • '0' FOR NO;
  • '1' FOR YES;

  • LAST EDITED:  JUL 10, 1991
  • DESCRIPTION:  
    Answering YES indicates that the fields for this segment reside in a file other than the root file.
.05 FILE 0;5 POINTER TO FILE FILE (#1) FILE(#1)

  • LAST EDITED:  JUL 10, 1991
  • DESCRIPTION:  This is the file in which the fields for this segment will reside. A lookup will be done to determine the proper entry in the file. Whichever field has a data location corresponding to the .01 field will be the value
    used for lookup.
.06 TEMPLATE 0;6 FREE TEXT

  • INPUT TRANSFORM:  K:$L(X)>30!($L(X)<2) X
  • LAST EDITED:  AUG 19, 1991
  • HELP-PROMPT:  Answer must be 2-30 characters in length
  • DESCRIPTION:  
    This is the name of an input template to use to store the data.  If it is not present, the system will generate one automatically.
.07 LOOKUP PARAMETER 0;7 SET
  • 'F' FOR FORCED LAYGO;
  • 'N' FOR NO LAYGO;
  • 'L' FOR LAYGO ALLOWED;
  • 'O' FOR LOOKUP ONLY;
  • 'P' FOR PARSE ONLY;

  • LAST EDITED:  APR 09, 1992
  • DESCRIPTION:  
    The parameter indicating how the lookup is to be performed within the multiple or other file.  Choices are the same as for the lookup parameter for the message.
.08 MULTIPLE FIELD 0;8 FREE TEXT

  • INPUT TRANSFORM:  K:$L(X)>30 X
  • LAST EDITED:  JAN 22, 1992
  • HELP-PROMPT:  Answer must be 1-30 characters in length
  • DESCRIPTION:  This is the name of the field in the root while into which the multiple data will be stored. This field can be either a multiple or a word-processing field. If it is a multiple, then a lookup will be performed and all
    data locations for this segment refer to fields within this multiple and whichever field references the .01 field will be used for the lookup.  If the field is WP, then only one field may appear in the segment and that
    field will contain the lines of the WP code.
.09 REQUIRED 0;9 SET
  • '0' FOR NO;
  • '1' FOR YES;

  • LAST EDITED:  OCT 18, 1991
  • DESCRIPTION:  
    Is this segment required in this message?
.1 MAKE LINKS 0;10 SET
  • '0' FOR NO;
  • '1' FOR YES;

  • LAST EDITED:  DEC 11, 1991
  • DESCRIPTION:  If the value of this field is set to YES and the input template for this segment is auto-generated, then any fields in this file level which point to a previously visited file will have code added to the template to
    stuff the appropriate pointers.
.11 PARENT SEGMENT 0;11 POINTER TO SCRIPT GENERATOR SEGMENT FILE (#4010) SCRIPT GENERATOR SEGMENT(#4010)

  • LAST EDITED:  DEC 27, 1991
  • DESCRIPTION:  
    If this segment belongs under a segment other than the root file, enter the name here.  The segment to which this is pointing must already be in the message.
  • CROSS-REFERENCE:  4011^ASP^MULTIPLE^^^4011.01,.02,4011.01,.11
    1)= N Y1 S Y1=$P(^INTHL7M(DA(1),1,DA,0),U,2) I Y1]"" S Y1=$E(Y1,1,30) S ^INTHL7M(DA(1),1,"ASP",$E(X,1,30),Y1,DA)=""
    2)= N Y1 S Y1=$P(^INTHL7M(DA(1),1,DA,0),U,2) I Y1]"" S Y1=$E(Y1,1,30) K ^INTHL7M(DA(1),1,"ASP",$E(X,1,30),Y1,DA)
.12 USER-DEFINED INDEX 0;12 FREE TEXT

  • INPUT TRANSFORM:  K:$L(X)>6!($L(X)<3)!'(X?1.A.N) X
  • LAST EDITED:  MAY 30, 1997
  • HELP-PROMPT:  Answer must be 3-6 characters in length
  • DESCRIPTION:  
    A subscript to be used in the INDA array for a repeating segment which requires data from a non-linked file.
.13 X12 LOOP ID 0;13 FREE TEXT

  • INPUT TRANSFORM:  K:$L(X)>5 X
  • LAST EDITED:  OCT 18, 1999
  • HELP-PROMPT:  Enter the loop ID as specified by X12. This field should only be sued for the first segment in a loop.
  • DESCRIPTION:  
    This is assigned to the first segment in a loop and carries the identifying number of the X12 standard for that loop.
.18 ID FIELD 0;18 NUMBER

  • INPUT TRANSFORM:  K:+X'=X!(X>200)!(X<1)!(X[".") X
  • LAST EDITED:  MAR 26, 1999
  • HELP-PROMPT:  Enter the character position or sequential field position that can be used to uniquely identify this segment.
  • DESCRIPTION:  This field is used for both NCPDP and X12 messages to resolve ambiguity and to uniquely identify a segment in an incoming message. For an NCPDP message, specify the starting position (the byte offset) in the segment
    that contains a character or value that uniquely identifies the segment. For an X12 message, specify the delimited piece position of the field that contains the unique value. The ID FIELD must be used in conjunction with
    the ID VALUE field.
.19 ID VALUE 0;19 FREE TEXT

  • INPUT TRANSFORM:  K:$L(X)>15 X
  • LAST EDITED:  MAR 26, 1999
  • HELP-PROMPT:  Enter one or more values separated by commas to uniquely identify this segment. This field is only used if ID FIELD is specified.
  • DESCRIPTION:  Used in connection with ID FIELD, this specifies the value(s) in the specified ID FIELD that uniquely identify the segment. For example, the HL segment in an X12 message uses the third field to distinguish among
    different HL segments. So a segment such as HL^ABC^20^XYZ can be uniquely identified by an ID FIELD=3 and an ID VALUE=20.  Similarly, an NCPDP non-delimited segment such as 01AB330567 can be uniquely identified with an
    ID FIELD=1 and ID VALUE=01.
1 MUMPS CODE 1;0 WORD-PROCESSING #4011.04

  • DESCRIPTION:  
    This MUMPS code will be placed in the generated script prior to the lookup being performed in the multiple or other file.  It can be used to set the value of INDA (entry #).
2 SCRIPT CODE 2;0 WORD-PROCESSING #4011.05

  • DESCRIPTION:  
    Lines of code which will be placed in the script for the OTHER or MULT blocks prior to lookup being done.
3 ROUTINE 3;E1,100 FREE TEXT

  • INPUT TRANSFORM:  K:$L(X)>100!($L(X)<2) X
  • LAST EDITED:  DEC 03, 1991
  • HELP-PROMPT:  Answer must be 2-100 characters in length
  • DESCRIPTION:  
    This is the name of a routine to run after the lookup has been done and any templates are processed.
4 SCREENING LOGIC 4;E1,250 FREE TEXT

  • INPUT TRANSFORM:  K:$L(X)>250 X D:$D(X) ^DIM
  • LAST EDITED:  JUL 08, 1992
  • HELP-PROMPT:  Answer must be 1-250 characters in length
  • DESCRIPTION:  This field contains Xecutable MUMPS code which will be used to screen entries in multiples or other files in outgoing messages. The naked reference will be set to the 0 node of the file (or sub-file) entry being
    examined.  The screen should set $T to a 1 if the entry is ok, 0 otherwise.
  • NOTES:  XXXX--CAN'T BE ALTERED EXCEPT BY PROGRAMMER
5 OUTGOING MUMPS CODE 5;0 WORD-PROCESSING #4011.07

  • DESCRIPTION:  This is MUMPS code that will be included in outgoing scripts only. It will be run prior to any fields being processed for the segment. This code will be within the WHILE loop if this segment is repeatable or for an
    OTHER file.
Info |  Details |  All