Class: Dhis2::Api::Version224::Event

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

Constant Summary collapse

BulkCreationStatusClass =
::Dhis2::Api::EventCreationStatus
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

Method Summary

Methods included from Shared::Event

#id, included

Methods included from 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