Class: Openphar::Models::PhInt::Reagent

Inherits:
BaseEntity
  • Object
show all
Defined in:
lib/openphar/models/ph_int/reagent.rb

Overview

Reagent (Base Class)

Base class for all Ph.Int. reagents including test solutions, volumetric solutions, and buffer solutions.

Reagents are chemical solutions used in pharmacopoeial testing.

Examples:

reagent = PhInt::Reagent.new(
  id: 'phint-reagent-sodium-hydroxide',
  reagent_id: 'TS-123',
  reagent_type: 'TestSolution',
  preparation: { 'en' => 'Dissolve 10g in 100ml water...' }
)

Direct Known Subclasses

BufferSolution, TestSolution, VolumetricSolution

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



43
44
45
# File 'lib/openphar/models/ph_int/reagent.rb', line 43

def jsonld_type
  'Reagent'
end

.neo4j_labelsObject



39
40
41
# File 'lib/openphar/models/ph_int/reagent.rb', line 39

def neo4j_labels
  ['Reagent']
end