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-3.5.0 lib/health-data-standards/models/metadata/author.rb
health-data-standards-3.4.6 lib/health-data-standards/models/metadata/author.rb
health-data-standards-3.4.5 lib/health-data-standards/models/metadata/author.rb
health-data-standards-3.4.4 lib/health-data-standards/models/metadata/author.rb
health-data-standards-3.4.3 lib/health-data-standards/models/metadata/author.rb
health-data-standards-3.4.2 lib/health-data-standards/models/metadata/author.rb
health-data-standards-3.4.1 lib/health-data-standards/models/metadata/author.rb
health-data-standards-3.4.0 lib/health-data-standards/models/metadata/author.rb
health-data-standards-3.2.12 lib/health-data-standards/models/metadata/author.rb
health-data-standards-3.3.0 lib/health-data-standards/models/metadata/author.rb
health-data-standards-3.2.11 lib/health-data-standards/models/metadata/author.rb
health-data-standards-3.2.10 lib/health-data-standards/models/metadata/author.rb
health-data-standards-3.2.8 lib/health-data-standards/models/metadata/author.rb
health-data-standards-3.2.7 lib/health-data-standards/models/metadata/author.rb
health-data-standards-3.2.6 lib/health-data-standards/models/metadata/author.rb
health-data-standards-3.2.5 lib/health-data-standards/models/metadata/author.rb
health-data-standards-3.2.4 lib/health-data-standards/models/metadata/author.rb
health-data-standards-3.2.3 lib/health-data-standards/models/metadata/author.rb
health-data-standards-3.2.2 lib/health-data-standards/models/metadata/author.rb
health-data-standards-3.2.1 lib/health-data-standards/models/metadata/author.rb