Class: Openphar::Models::PhInt::TestSolution

Inherits:
Reagent
  • Object
show all
Defined in:
lib/openphar/models/ph_int/test_solution.rb

Overview

Test Solution

A solution used in pharmacopoeial tests. Test solutions have a specific concentration and may have specific storage requirements.

Examples:

solution = PhInt::TestSolution.new(
  id: 'phint-ts-ferric-chloride',
  concentration: '5% w/v',
  storage_conditions: { 'temperature' => '2-8°C' }
)

Class Method Summary collapse

Methods inherited from BaseEntity

jsonld_context, neo4j_label, neo4j_labels_string, #to_cypher, #to_cypher_match, #to_jsonld, #to_neo4j_node, #to_neo4j_properties

Class Method Details

.jsonld_typeObject



32
33
34
# File 'lib/openphar/models/ph_int/test_solution.rb', line 32

def jsonld_type
  'TestSolution'
end

.neo4j_labelsObject



28
29
30
# File 'lib/openphar/models/ph_int/test_solution.rb', line 28

def neo4j_labels
  %w[Reagent TestSolution]
end