Module: Lab::Loaders::MetadataLoader
- Defined in:
- lib/tasks/loaders/metadata_loader.rb
Class Method Summary collapse
Class Method Details
.load ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/tasks/loaders/metadata_loader.rb', line 10 def self.load unless Program.where(name: 'Laboratory program').exists? Program.create(name: 'Laboratory program', description: 'Manage Lab information', creator: 1, uuid: SecureRandom.uuid) end SpecimensLoader.load TestResultIndicatorsLoader.load ReasonsForTestLoader.load end |