Class: Dhis2::Api::Version228::Event
- 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
Methods included from Shared::SaveValidator
Methods included from Deletable
Methods included from Creatable
Methods included from BulkCreatable
Methods included from Findable
Methods included from Listable
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_class ⇒ Object
15 16 17 |
# File 'lib/dhis2/api/version228/event.rb', line 15 def bulk_creation_status_class ::Dhis2::Api::EventCreationStatus end |