{**************************************************************}
{*                                                            *}
{* Message  . . . . . . .  DIRDEF                             *}
{* Standard . . . . . . .  D97A                               *}
{* Date of creation . . .  14.11.98 16:09:47                  *}
{*                                                            *}
{**************************************************************}

{ This Directory definition message (DIRDEF) permits the
transfer of the contents of a UN/EDIFACT Directory set or
parts thereof. }
MESSAGE 'DIRDEF'
  IDENTIFICATION 0065='DIRDEF',
                 0052='D',
                 0054='97A',
                 0051='UN'
  SEGMENTS 'D97A';

STRUCTURE
    {UNH: A service segment starting and uniquely identifying a
    message. The message type code for the Directory definition
    message is DIRDEF. Note: Directory definition messages
    conforming to this document must contain the following data
    in segment UNH, composite S009: Data element  0065 DIRDEF
    0052 D 0054 97A 0051 UN }
  SEGMENT 'UNH' MANDATORY(1);
    {BGM: A segment to indicate the beginning of the message
    and to transmit function, type and number of the message. }
  SEGMENT 'BGM' CONDITIONAL(1);
    {DII: A segment specifying the identity of the directory
    set and giving its language and maintenance operation. }
  SEGMENT 'DII' MANDATORY(1);
    {DTM: A segment specifying dates related to the directory
    set, such as date of approval, date of submission or WP.4
    acceptance date. }
  SEGMENT 'DTM' CONDITIONAL(9);
    {FTX: A segment providing free text information related to
    the directory set. }
  SEGMENT 'FTX' CONDITIONAL(9);

  { Segment Group 1 }
  GROUP 'NAD' CONDITIONAL(9);
      {NAD: A segment identifying the parties involved in the
      transaction, e.g. originator, requestor or secretariat. }
    SEGMENT 'NAD' MANDATORY(1);

    { Segment Group 2 }
    GROUP 'CTA' CONDITIONAL(9);
        {CTA: A segment identifying a person or a department for
        the party specified in the leading NAD segment to whom the
        communication should be directed. }
      SEGMENT 'CTA' MANDATORY(1);
        {COM: A segment identifying communication type(s) and
        number(s) of person(s) or department(s) specified in the
        associated CTA segment. }
      SEGMENT 'COM' CONDITIONAL(9);
    END;
  END;

  { Segment Group 3 }
  GROUP 'MSG' CONDITIONAL(9999);
      {MSG: A segment identifying a message type to be specified.
      }
    SEGMENT 'MSG' MANDATORY(1);
      {FTX: A segment providing textual information related to
      the message type, namely: message type name, Introduction,
      Scope, Functional definition, Principles, References and
      Terms and definitions. }
    SEGMENT 'FTX' CONDITIONAL(999);
      {DTM: This segment is used to indicate the release date of
      a message, as indicated on the cover page of the boilerplate. }
    SEGMENT 'DTM' CONDITIONAL(1);

    { Segment Group 4 }
    GROUP 'SGU' CONDITIONAL(999);
        {SGU: A segment specifying the usage of a segment in a
        message type structure. }
      SEGMENT 'SGU' MANDATORY(1);
        {FTX: A segment providing textual information about segment
        usage. This information comprises part of the 'Data segment
        clarification' section. }
      SEGMENT 'FTX' CONDITIONAL(99);

      { Segment Group 5 }
      GROUP 'GRU' CONDITIONAL(1);
          {GRU: A segment specifying the usage of a segment group in
          a message type structure. }
        SEGMENT 'GRU' MANDATORY(1);
          {FTX: A segment providing the textual information about
          segment group usage. This information comprises part of the
          'Data Segment Clarification' section. }
        SEGMENT 'FTX' CONDITIONAL(99);
      END;
    END;
  END;

  { Segment Group 6 }
  GROUP 'SEG' CONDITIONAL(9999);
      {SEG: A segment identifying a segment type and specifying
      its class and maintenance operation. }
    SEGMENT 'SEG' MANDATORY(1);
      {FTX: A segment specifying the name and functional
      definition of a segment type. }
    SEGMENT 'FTX' CONDITIONAL(9);
      {ELU: A segment specifying the contents of data elements in
      a segment type. }
    SEGMENT 'ELU' CONDITIONAL(99);
      {REL: To identify the direct relationship between the data
      and/or information contained in one segment and the data
      and/or information contained in one or more other segments.
      }
    SEGMENT 'REL' CONDITIONAL(99);
  END;

  { Segment Group 7 }
  GROUP 'CMP' CONDITIONAL(9999);
      {CMP: A segment identifying a composite data element and
      specifying its class and maintenance operation. }
    SEGMENT 'CMP' MANDATORY(1);
      {FTX: A segment specifying the name and functional
      definition of a composite data element type. }
    SEGMENT 'FTX' CONDITIONAL(9);
      {ELU: A segment specifying component data elements in a
      composite data element and its related information. }
    SEGMENT 'ELU' CONDITIONAL(99);
  END;

  { Segment Group 8 }
  GROUP 'ELM' CONDITIONAL(9999);
      {ELM: A segment identifying a simple data element and
      giving related information. }
    SEGMENT 'ELM' MANDATORY(1);
      {FTX: A segment specifying the name and functional
      definition of a simple data element. }
    SEGMENT 'FTX' CONDITIONAL(9);
  END;

  { Segment Group 9 }
  GROUP 'CDS' CONDITIONAL(9999);
      {CDS: A segment specifying a code set. In DIRDEF data
      element 9434 shall not be used. }
    SEGMENT 'CDS' MANDATORY(1);
      {FTX: A segment providing textual information related to
      the code list. }
    SEGMENT 'FTX' CONDITIONAL(9);

    { Segment Group 10 }
    GROUP 'CDV' CONDITIONAL(9999);
        {CDV: A segment specifying a code value. }
      SEGMENT 'CDV' MANDATORY(1);
        {FTX: A segment specifying the name and functional
        definition of a code value. }
      SEGMENT 'FTX' CONDITIONAL(9);
    END;
  END;
    {UNT:  }
  SEGMENT 'UNT' MANDATORY(1);
END;

END.

