Class: Dhis2::Api::Version228::Event

Inherits:
Base
  • Object
show all
Includes:
BulkCreatable, Creatable, Deletable, Findable, Listable, Shared::Event, Shared::SaveValidator
Defined in:
lib/dhis2/api/version228/event.rb

Constant Summary collapse

Schema =

args for a program without registration and a program with a program_stage

Dry::Validation.Schema do
  required(:program).filled # program must be linked to the org unit
  required(:org_unit).filled
  required(:event_date).filled
  required(:data_values).each do
    required(:data_element).filled
    required(:value).filled
  end
end

Instance Method Summary collapse

Methods included from Shared::Event

#id, included

Methods included from Shared::SaveValidator

included

Methods included from Deletable

#delete

Methods included from Creatable

included

Methods included from BulkCreatable

included

Methods included from Findable

included

Methods included from Listable

included

Methods inherited from Base

#==, #initialize, resource_key, resource_name, #to_h

Constructor Details

This class inherits a constructor from Dhis2::Api::Base

Instance Method Details

#bulk_creation_status_classObject



15
16
17
# File 'lib/dhis2/api/version228/event.rb', line 15

def bulk_creation_status_class
  ::Dhis2::Api::EventCreationStatus
end