Sha256: b60aa2d79d5657133e2c2a3e575e69eaaa2ad45b92aa02acf9070b1d027fdac3

Contents?: true

Size: 427 Bytes

Versions: 59

Compression:

Stored size: 427 Bytes

Contents

module Metadata
  class Author
    include Mongoid::Document
    
    embedded_in :pedigree, class_name: "Metadata::Pedigree"
    
    Types = %w(authenticator authorcustodiandataEnterer informant 
    legalAuthenticator participant performer recordTarget)
    
    field :name, type: String
    field :type, type: String
    field :role, type: String
    
    validates_inclusion_of :type, in: Types, allow_nil: true
  end
end

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
health-data-standards-4.3.5 lib/health-data-standards/models/metadata/author.rb
health-data-standards-4.3.4 lib/health-data-standards/models/metadata/author.rb
health-data-standards-4.3.3 lib/health-data-standards/models/metadata/author.rb
health-data-standards-4.3.2 lib/health-data-standards/models/metadata/author.rb
health-data-standards-4.3.1 lib/health-data-standards/models/metadata/author.rb
health-data-standards-4.3.0 lib/health-data-standards/models/metadata/author.rb
health-data-standards-4.2.0 lib/health-data-standards/models/metadata/author.rb
health-data-standards-4.1.0 lib/health-data-standards/models/metadata/author.rb
health-data-standards-4.0.6 lib/health-data-standards/models/metadata/author.rb
health-data-standards-4.0.5 lib/health-data-standards/models/metadata/author.rb
health-data-standards-4.0.4 lib/health-data-standards/models/metadata/author.rb
health-data-standards-4.0.3 lib/health-data-standards/models/metadata/author.rb
health-data-standards-4.0.2 lib/health-data-standards/models/metadata/author.rb
health-data-standards-4.0.1 lib/health-data-standards/models/metadata/author.rb
health-data-standards-4.0.0 lib/health-data-standards/models/metadata/author.rb
health-data-standards-3.7.0 lib/health-data-standards/models/metadata/author.rb
health-data-standards-3.6.1 lib/health-data-standards/models/metadata/author.rb
health-data-standards-3.5.3 lib/health-data-standards/models/metadata/author.rb
health-data-standards-3.5.2 lib/health-data-standards/models/metadata/author.rb
health-data-standards-3.5.1 lib/health-data-standards/models/metadata/author.rb