Class: Eddy::Segments::DTM

Inherits:
Models::Segment show all
Defined in:
lib/definitions/segments/generated/dtm.rb

Overview

Segment Summary:

  • Id: DTM
  • Name: Date/Time Reference
  • Purpose: To specify pertinent dates and times.

Instance Attribute Summary

Attributes inherited from Models::Segment

#elements, #id, #name, #skip, #store

Instance Method Summary collapse

Methods inherited from Models::Segment

#render

Constructor Details

#initialize(store) ⇒ void

Parameters:



12
13
14
15
16
17
18
19
20
21
22
# File 'lib/definitions/segments/generated/dtm.rb', line 12

def initialize(store)
  @id = "DTM"
  @name = "Date/Time Reference"
  @dtm01 = Eddy::Elements::E374.new(ref: "DTM01", req: "M")
  @dtm02 = Eddy::Elements::E373.new(ref: "DTM02", req: "X")
  super(
    store,
    @dtm01,
    @dtm02,
  )
end

Instance Method Details

#DTM01=(arg) ⇒ void Also known as: DateTimeQualifier=

This method returns an undefined value.

DTM01

  • Id: 374
  • Name: Date/Time Qualifier
  • Type: ID
  • Min/Max: 3/3
  • Description: Code specifying type of date or time, or both date and time

Parameters:

  • arg (String)


34
35
36
# File 'lib/definitions/segments/generated/dtm.rb', line 34

def DTM01=(arg)
  @dtm01.value = arg
end

#DTM02=(arg) ⇒ void Also known as: Date=

This method returns an undefined value.

DTM02

  • Id: 373
  • Name: Date
  • Type: DT
  • Min/Max: 8/8
  • Description: Date expressed as CCYYMMDD

Parameters:

  • arg (Time)


49
50
51
# File 'lib/definitions/segments/generated/dtm.rb', line 49

def DTM02=(arg)
  @dtm02.value = arg
end