Class: FHIR::DSTU2::Substance
- Defined in:
- lib/fhir_dstu2_models/fhir/resources/Substance.rb
Defined Under Namespace
Classes: Ingredient, Instance
Constant Summary collapse
- SEARCH_PARAMS =
['category', 'code', 'container-identifier', 'expiry', 'identifier', 'quantity', 'substance']
- METADATA =
{ 'id' => {'type'=>'id', 'path'=>'Substance.id', 'min'=>0, 'max'=>1}, 'meta' => {'type'=>'Meta', 'path'=>'Substance.meta', 'min'=>0, 'max'=>1}, 'implicitRules' => {'type'=>'uri', 'path'=>'Substance.implicitRules', 'min'=>0, 'max'=>1}, 'language' => {'type'=>'code', 'path'=>'Substance.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://tools.ietf.org/html/bcp47'}}, 'text' => {'type'=>'Narrative', 'path'=>'Substance.text', 'min'=>0, 'max'=>1}, 'contained' => {'type'=>'Resource', 'path'=>'Substance.contained', 'min'=>0, 'max'=>Float::INFINITY}, 'extension' => {'type'=>'Extension', 'path'=>'Substance.extension', 'min'=>0, 'max'=>Float::INFINITY}, 'modifierExtension' => {'type'=>'Extension', 'path'=>'Substance.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY}, 'identifier' => {'type'=>'Identifier', 'path'=>'Substance.identifier', 'min'=>0, 'max'=>Float::INFINITY}, 'category' => {'valid_codes'=>{'http://hl7.org/fhir/substance-category'=>['allergen', 'biological', 'body', 'chemical', 'food', 'drug', 'material']}, 'type'=>'CodeableConcept', 'path'=>'Substance.category', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/substance-category'}}, 'code' => {'valid_codes'=>{'http://snomed.info/sct'=>[]}, 'type'=>'CodeableConcept', 'path'=>'Substance.code', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/substance-code'}}, 'description' => {'type'=>'string', 'path'=>'Substance.description', 'min'=>0, 'max'=>1}, 'instance' => {'type'=>'Substance::Instance', 'path'=>'Substance.instance', 'min'=>0, 'max'=>Float::INFINITY}, 'ingredient' => {'type'=>'Substance::Ingredient', 'path'=>'Substance.ingredient', 'min'=>0, 'max'=>Float::INFINITY} }
Instance Attribute Summary collapse
-
#category ⇒ Object
0-* [ CodeableConcept ].
-
#code ⇒ Object
1-1 CodeableConcept.
-
#contained ⇒ Object
0-* [ Resource ].
-
#description ⇒ Object
0-1 string.
-
#extension ⇒ Object
0-* [ Extension ].
-
#id ⇒ Object
0-1 id.
-
#identifier ⇒ Object
0-* [ Identifier ].
-
#implicitRules ⇒ Object
0-1 uri.
-
#ingredient ⇒ Object
0-* [ Substance::Ingredient ].
-
#instance ⇒ Object
0-* [ Substance::Instance ].
-
#language ⇒ Object
0-1 code.
-
#meta ⇒ Object
0-1 Meta.
-
#modifierExtension ⇒ Object
0-* [ Extension ].
-
#text ⇒ Object
0-1 Narrative.
Instance Method Summary collapse
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 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::DSTU2::Model
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class FHIR::DSTU2::Model
Instance Attribute Details
#category ⇒ Object
0-* [ CodeableConcept ]
77 78 79 |
# File 'lib/fhir_dstu2_models/fhir/resources/Substance.rb', line 77 def category @category end |
#code ⇒ Object
1-1 CodeableConcept
78 79 80 |
# File 'lib/fhir_dstu2_models/fhir/resources/Substance.rb', line 78 def code @code end |
#contained ⇒ Object
0-* [ Resource ]
73 74 75 |
# File 'lib/fhir_dstu2_models/fhir/resources/Substance.rb', line 73 def contained @contained end |
#description ⇒ Object
0-1 string
79 80 81 |
# File 'lib/fhir_dstu2_models/fhir/resources/Substance.rb', line 79 def description @description end |
#extension ⇒ Object
0-* [ Extension ]
74 75 76 |
# File 'lib/fhir_dstu2_models/fhir/resources/Substance.rb', line 74 def extension @extension end |
#id ⇒ Object
0-1 id
68 69 70 |
# File 'lib/fhir_dstu2_models/fhir/resources/Substance.rb', line 68 def id @id end |
#identifier ⇒ Object
0-* [ Identifier ]
76 77 78 |
# File 'lib/fhir_dstu2_models/fhir/resources/Substance.rb', line 76 def identifier @identifier end |
#implicitRules ⇒ Object
0-1 uri
70 71 72 |
# File 'lib/fhir_dstu2_models/fhir/resources/Substance.rb', line 70 def implicitRules @implicitRules end |
#ingredient ⇒ Object
0-* [ Substance::Ingredient ]
81 82 83 |
# File 'lib/fhir_dstu2_models/fhir/resources/Substance.rb', line 81 def ingredient @ingredient end |
#instance ⇒ Object
0-* [ Substance::Instance ]
80 81 82 |
# File 'lib/fhir_dstu2_models/fhir/resources/Substance.rb', line 80 def instance @instance end |
#language ⇒ Object
0-1 code
71 72 73 |
# File 'lib/fhir_dstu2_models/fhir/resources/Substance.rb', line 71 def language @language end |
#meta ⇒ Object
0-1 Meta
69 70 71 |
# File 'lib/fhir_dstu2_models/fhir/resources/Substance.rb', line 69 def @meta end |
#modifierExtension ⇒ Object
0-* [ Extension ]
75 76 77 |
# File 'lib/fhir_dstu2_models/fhir/resources/Substance.rb', line 75 def modifierExtension @modifierExtension end |
#text ⇒ Object
0-1 Narrative
72 73 74 |
# File 'lib/fhir_dstu2_models/fhir/resources/Substance.rb', line 72 def text @text end |
Instance Method Details
#resourceType ⇒ Object
83 84 85 |
# File 'lib/fhir_dstu2_models/fhir/resources/Substance.rb', line 83 def resourceType 'Substance' end |