Class: FHIR::Medication::Package
- Inherits:
-
FHIR::Model
- Object
- FHIR::Model
- FHIR::Medication::Package
- Defined in:
- lib/fhir_models/fhir/resources/Medication.rb
Defined Under Namespace
Constant Summary collapse
- METADATA =
{ 'id' => {'type'=>'string', 'path'=>'Package.id', 'min'=>0, 'max'=>1}, 'extension' => {'type'=>'Extension', 'path'=>'Package.extension', 'min'=>0, 'max'=>Float::INFINITY}, 'modifierExtension' => {'type'=>'Extension', 'path'=>'Package.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY}, 'container' => {'valid_codes'=>{'http://hl7.org/fhir/medication-package-form'=>['ampoule', 'bottle', 'box', 'cartridge', 'container', 'tube', 'unitdose', 'vial']}, 'type'=>'CodeableConcept', 'path'=>'Package.container', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/medication-package-form'}}, 'content' => {'type'=>'Medication::Package::Content', 'path'=>'Package.content', 'min'=>0, 'max'=>Float::INFINITY}, 'batch' => {'type'=>'Medication::Package::Batch', 'path'=>'Package.batch', 'min'=>0, 'max'=>Float::INFINITY} }
Instance Attribute Summary collapse
-
#batch ⇒ Object
0-* [ Medication::Package::Batch ].
-
#container ⇒ Object
0-1 CodeableConcept.
-
#content ⇒ Object
0-* [ Medication::Package::Content ].
-
#extension ⇒ Object
0-* [ Extension ].
-
#id ⇒ Object
0-1 string.
-
#modifierExtension ⇒ Object
0-* [ Extension ].
Method Summary
Methods included from Xml
from_xml, #to_xml, valid?, validate
Methods included from Deprecate
Methods included from Json
Methods included from Hashable
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
#batch ⇒ Object
0-* [ Medication::Package::Batch ]
119 120 121 |
# File 'lib/fhir_models/fhir/resources/Medication.rb', line 119 def batch @batch end |
#container ⇒ Object
0-1 CodeableConcept
117 118 119 |
# File 'lib/fhir_models/fhir/resources/Medication.rb', line 117 def container @container end |
#content ⇒ Object
0-* [ Medication::Package::Content ]
118 119 120 |
# File 'lib/fhir_models/fhir/resources/Medication.rb', line 118 def content @content end |
#extension ⇒ Object
0-* [ Extension ]
115 116 117 |
# File 'lib/fhir_models/fhir/resources/Medication.rb', line 115 def extension @extension end |
#id ⇒ Object
0-1 string
114 115 116 |
# File 'lib/fhir_models/fhir/resources/Medication.rb', line 114 def id @id end |
#modifierExtension ⇒ Object
0-* [ Extension ]
116 117 118 |
# File 'lib/fhir_models/fhir/resources/Medication.rb', line 116 def modifierExtension @modifierExtension end |