Class: Eddy::Elements::E103

Inherits:
Models::Element::AN show all
Defined in:
lib/definitions/elements/generated/103.packaging_code.rb

Overview

Element Summary:

  • Id: 103
  • Name: Packaging Code
  • Type: AN
  • Min/Max: 3/5
  • Description: Code identifying the type of packaging; Part 1: Packaging Form, Part 2: Packaging Material; if the Data Element is used, then Part 1 is always required

Instance Attribute Summary

Attributes inherited from Models::Element::Base

#description, #id, #max, #min, #name, #ref, #type

Instance Method Summary collapse

Methods inherited from Models::Element::AN

#process_value, process_value, #value, #value=

Methods inherited from Models::Element::Base

#doc_comment, #process_value, process_value, #req, #req=, #value, #value=

Constructor Details

#initialize(val: nil, req: nil, ref: nil) ⇒ void

Parameters:

  • val (String) (defaults to: nil)
  • req (String) (defaults to: nil)
  • ref (String) (defaults to: nil)


15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/definitions/elements/generated/103.packaging_code.rb', line 15

def initialize(val: nil, req: nil, ref: nil)
  @id = "103"
  @name = "Packaging Code"
  @description = "Code identifying the type of packaging; Part 1: Packaging Form, Part 2: Packaging Material; if the Data Element is used, then Part 1 is always required"
  super(
    min: 3,
    max: 5,
    req: req,
    ref: ref,
    val: val,
  )
end