Sha256: e12622bcddfb64af0258eed3560a3538fe3f9740458536e3ca5cc63bcfbcfc7f

Contents?: true

Size: 921 Bytes

Versions: 4

Compression:

Stored size: 921 Bytes

Contents

module Eddy
  module Elements
    # ### Element Summary:
    #
    # - Id: 662
    # - Name: Relationship Code
    # - Type: ID
    # - Min/Max: 1/1
    # - Description: Code indicating the relationship between entities
    class E662 < Eddy::Element::ID

      # @param val [String]
      # @param req [String]
      # @param ref [String]
      # @return [void]
      def initialize(val: nil, req: nil, ref: nil)
        @id = "662"
        @name = "Relationship Code"
        @description = "Code indicating the relationship between entities"
        super(
          min: 1,
          max: 1,
          req: req,
          ref: ref,
          val: val,
        )
      end

      # @return [Array<String>]
      def code_list()
        return [
          "A", # Add
          "D", # Delete
          "I", # Included
          "O", # Information Only
          "S", # Substituted
        ]
      end

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
eddy-0.5.1 lib/definitions/elements/generated/662.relationship_code.rb
eddy-0.5.0 lib/definitions/elements/generated/662.relationship_code.rb
eddy-0.4.0 lib/definitions/elements/generated/662.relationship_code.rb
eddy-0.3.0 lib/definitions/elements/generated/662.relationship_code.rb