Class: Openphar::Models::PhInt::ReferenceSubstance

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

Overview

Reference Substance

A chemical substance of known purity used as a reference standard in analytical testing.

Examples:

substance = PhInt::ReferenceSubstance.new(
  id: 'phint-rs-aspirin',
  reference_id: 'RS-123',
  cas_number: '50-78-2',
  assigned_content: '99.5%'
)

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/reference_substance.rb', line 43

def jsonld_type
  'ReferenceSubstance'
end

.neo4j_labelsObject



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

def neo4j_labels
  ['ReferenceSubstance']
end