Class: FHIR::MedicationKnowledge::Packaging

Inherits:
FHIR::Model
  • Object
show all
Includes:
Hashable, Json, Xml
Defined in:
lib/fhir_models/fhir/resources/MedicationKnowledge.rb

Constant Summary collapse

METADATA =
{
  'id' => {'type'=>'string', 'path'=>'Packaging.id', 'min'=>0, 'max'=>1},
  'extension' => {'type'=>'Extension', 'path'=>'Packaging.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'Packaging.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'type' => {'valid_codes'=>{'http://terminology.hl7.org/CodeSystem/medicationknowledge-package-type'=>['amp', 'bag', 'blstrpk', 'bot', 'box', 'can', 'cart', 'disk', 'doset', 'jar', 'jug', 'minim', 'nebamp', 'ovul', 'pch', 'pkt', 'sash', 'strip', 'tin', 'tub', 'tube', 'vial']}, 'type'=>'CodeableConcept', 'path'=>'Packaging.type', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/medicationknowledge-package-type'}},
  'quantity' => {'type'=>'Quantity', 'path'=>'Packaging.quantity', 'min'=>0, 'max'=>1}
}

Instance Attribute Summary collapse

Method Summary

Methods included from Xml

from_xml, #to_xml, valid?, validate

Methods included from Deprecate

#deprecate

Methods included from Json

from_json, #to_json

Methods included from Hashable

#from_hash, #to_hash

Methods inherited from FHIR::Model

#==, #attribute_mismatch, #compare_attribute, #equals?, #hash, #initialize, #method_missing, #mismatch, #primitive?, #to_reference, #valid?, #validate, #validate_profile

Constructor Details

This class inherits a constructor from FHIR::Model

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class FHIR::Model

Instance Attribute Details

#extensionObject

0-* [ Extension ]



256
257
258
# File 'lib/fhir_models/fhir/resources/MedicationKnowledge.rb', line 256

def extension
  @extension
end

#idObject

0-1 string



255
256
257
# File 'lib/fhir_models/fhir/resources/MedicationKnowledge.rb', line 255

def id
  @id
end

#modifierExtensionObject

0-* [ Extension ]



257
258
259
# File 'lib/fhir_models/fhir/resources/MedicationKnowledge.rb', line 257

def modifierExtension
  @modifierExtension
end

#quantityObject

0-1 Quantity



259
260
261
# File 'lib/fhir_models/fhir/resources/MedicationKnowledge.rb', line 259

def quantity
  @quantity
end

#typeObject

0-1 CodeableConcept



258
259
260
# File 'lib/fhir_models/fhir/resources/MedicationKnowledge.rb', line 258

def type
  @type
end