Class: FHIR::MedicinalProductPharmaceutical

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

Defined Under Namespace

Classes: Characteristics, RouteOfAdministration

Constant Summary collapse

SEARCH_PARAMS =
['identifier', 'route', 'target-species']
METADATA =
{
  'id' => {'type'=>'id', 'path'=>'MedicinalProductPharmaceutical.id', 'min'=>0, 'max'=>1},
  'meta' => {'type'=>'Meta', 'path'=>'MedicinalProductPharmaceutical.meta', 'min'=>0, 'max'=>1},
  'implicitRules' => {'type'=>'uri', 'path'=>'MedicinalProductPharmaceutical.implicitRules', 'min'=>0, 'max'=>1},
  'language' => {'valid_codes'=>{'urn:ietf:bcp:47'=>['ar', 'bn', 'cs', 'da', 'de', 'de-AT', 'de-CH', 'de-DE', 'el', 'en', 'en-AU', 'en-CA', 'en-GB', 'en-IN', 'en-NZ', 'en-SG', 'en-US', 'es', 'es-AR', 'es-ES', 'es-UY', 'fi', 'fr', 'fr-BE', 'fr-CH', 'fr-FR', 'fy', 'fy-NL', 'hi', 'hr', 'it', 'it-CH', 'it-IT', 'ja', 'ko', 'nl', 'nl-BE', 'nl-NL', 'no', 'no-NO', 'pa', 'pl', 'pt', 'pt-BR', 'ru', 'ru-RU', 'sr', 'sr-RS', 'sv', 'sv-SE', 'te', 'zh', 'zh-CN', 'zh-HK', 'zh-SG', 'zh-TW']}, 'type'=>'code', 'path'=>'MedicinalProductPharmaceutical.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'preferred', 'uri'=>'http://hl7.org/fhir/ValueSet/languages'}},
  'text' => {'type'=>'Narrative', 'path'=>'MedicinalProductPharmaceutical.text', 'min'=>0, 'max'=>1},
  'contained' => {'type'=>'Resource', 'path'=>'MedicinalProductPharmaceutical.contained', 'min'=>0, 'max'=>Float::INFINITY},
  'extension' => {'type'=>'Extension', 'path'=>'MedicinalProductPharmaceutical.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'MedicinalProductPharmaceutical.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'identifier' => {'type'=>'Identifier', 'path'=>'MedicinalProductPharmaceutical.identifier', 'min'=>0, 'max'=>Float::INFINITY},
  'administrableDoseForm' => {'type'=>'CodeableConcept', 'path'=>'MedicinalProductPharmaceutical.administrableDoseForm', 'min'=>1, 'max'=>1},
  'unitOfPresentation' => {'type'=>'CodeableConcept', 'path'=>'MedicinalProductPharmaceutical.unitOfPresentation', 'min'=>0, 'max'=>1},
  'ingredient' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/MedicinalProductIngredient'], 'type'=>'Reference', 'path'=>'MedicinalProductPharmaceutical.ingredient', 'min'=>0, 'max'=>Float::INFINITY},
  'device' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/DeviceDefinition'], 'type'=>'Reference', 'path'=>'MedicinalProductPharmaceutical.device', 'min'=>0, 'max'=>Float::INFINITY},
  'characteristics' => {'type'=>'MedicinalProductPharmaceutical::Characteristics', 'path'=>'MedicinalProductPharmaceutical.characteristics', 'min'=>0, 'max'=>Float::INFINITY},
  'routeOfAdministration' => {'type'=>'MedicinalProductPharmaceutical::RouteOfAdministration', 'path'=>'MedicinalProductPharmaceutical.routeOfAdministration', 'min'=>1, 'max'=>Float::INFINITY}
}

Instance Attribute Summary collapse

Instance Method Summary collapse

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 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

#administrableDoseFormObject

1-1 CodeableConcept



127
128
129
# File 'lib/fhir_models/fhir/resources/MedicinalProductPharmaceutical.rb', line 127

def administrableDoseForm
  @administrableDoseForm
end

#characteristicsObject

0-* [ MedicinalProductPharmaceutical::Characteristics ]



131
132
133
# File 'lib/fhir_models/fhir/resources/MedicinalProductPharmaceutical.rb', line 131

def characteristics
  @characteristics
end

#containedObject

0-* [ Resource ]



123
124
125
# File 'lib/fhir_models/fhir/resources/MedicinalProductPharmaceutical.rb', line 123

def contained
  @contained
end

#deviceObject

0-* [ Reference(DeviceDefinition) ]



130
131
132
# File 'lib/fhir_models/fhir/resources/MedicinalProductPharmaceutical.rb', line 130

def device
  @device
end

#extensionObject

0-* [ Extension ]



124
125
126
# File 'lib/fhir_models/fhir/resources/MedicinalProductPharmaceutical.rb', line 124

def extension
  @extension
end

#idObject

0-1 id



118
119
120
# File 'lib/fhir_models/fhir/resources/MedicinalProductPharmaceutical.rb', line 118

def id
  @id
end

#identifierObject

0-* [ Identifier ]



126
127
128
# File 'lib/fhir_models/fhir/resources/MedicinalProductPharmaceutical.rb', line 126

def identifier
  @identifier
end

#implicitRulesObject

0-1 uri



120
121
122
# File 'lib/fhir_models/fhir/resources/MedicinalProductPharmaceutical.rb', line 120

def implicitRules
  @implicitRules
end

#ingredientObject

0-* [ Reference(MedicinalProductIngredient) ]



129
130
131
# File 'lib/fhir_models/fhir/resources/MedicinalProductPharmaceutical.rb', line 129

def ingredient
  @ingredient
end

#languageObject

0-1 code



121
122
123
# File 'lib/fhir_models/fhir/resources/MedicinalProductPharmaceutical.rb', line 121

def language
  @language
end

#metaObject

0-1 Meta



119
120
121
# File 'lib/fhir_models/fhir/resources/MedicinalProductPharmaceutical.rb', line 119

def meta
  @meta
end

#modifierExtensionObject

0-* [ Extension ]



125
126
127
# File 'lib/fhir_models/fhir/resources/MedicinalProductPharmaceutical.rb', line 125

def modifierExtension
  @modifierExtension
end

#routeOfAdministrationObject

1-* [ MedicinalProductPharmaceutical::RouteOfAdministration ]



132
133
134
# File 'lib/fhir_models/fhir/resources/MedicinalProductPharmaceutical.rb', line 132

def routeOfAdministration
  @routeOfAdministration
end

#textObject

0-1 Narrative



122
123
124
# File 'lib/fhir_models/fhir/resources/MedicinalProductPharmaceutical.rb', line 122

def text
  @text
end

#unitOfPresentationObject

0-1 CodeableConcept



128
129
130
# File 'lib/fhir_models/fhir/resources/MedicinalProductPharmaceutical.rb', line 128

def unitOfPresentation
  @unitOfPresentation
end

Instance Method Details

#resourceTypeObject



134
135
136
# File 'lib/fhir_models/fhir/resources/MedicinalProductPharmaceutical.rb', line 134

def resourceType
  'MedicinalProductPharmaceutical'
end