Class: FHIR::MedicinalProduct::SpecialDesignation

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

Constant Summary collapse

MULTIPLE_TYPES =
{
  'indication' => ['CodeableConcept', 'Reference']
}
METADATA =
{
  'id' => {'type'=>'string', 'path'=>'SpecialDesignation.id', 'min'=>0, 'max'=>1},
  'extension' => {'type'=>'Extension', 'path'=>'SpecialDesignation.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'SpecialDesignation.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'identifier' => {'type'=>'Identifier', 'path'=>'SpecialDesignation.identifier', 'min'=>0, 'max'=>Float::INFINITY},
  'type' => {'type'=>'CodeableConcept', 'path'=>'SpecialDesignation.type', 'min'=>0, 'max'=>1},
  'intendedUse' => {'type'=>'CodeableConcept', 'path'=>'SpecialDesignation.intendedUse', 'min'=>0, 'max'=>1},
  'indicationCodeableConcept' => {'type'=>'CodeableConcept', 'path'=>'SpecialDesignation.indication[x]', 'min'=>0, 'max'=>1},
  'indicationReference' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/MedicinalProductIndication'], 'type'=>'Reference', 'path'=>'SpecialDesignation.indication[x]', 'min'=>0, 'max'=>1},
  'status' => {'type'=>'CodeableConcept', 'path'=>'SpecialDesignation.status', 'min'=>0, 'max'=>1},
  'date' => {'type'=>'dateTime', 'path'=>'SpecialDesignation.date', 'min'=>0, 'max'=>1},
  'species' => {'type'=>'CodeableConcept', 'path'=>'SpecialDesignation.species', '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

#dateObject

0-1 dateTime



162
163
164
# File 'lib/fhir_models/fhir/resources/MedicinalProduct.rb', line 162

def date
  @date
end

#extensionObject

0-* [ Extension ]



154
155
156
# File 'lib/fhir_models/fhir/resources/MedicinalProduct.rb', line 154

def extension
  @extension
end

#idObject

0-1 string



153
154
155
# File 'lib/fhir_models/fhir/resources/MedicinalProduct.rb', line 153

def id
  @id
end

#identifierObject

0-* [ Identifier ]



156
157
158
# File 'lib/fhir_models/fhir/resources/MedicinalProduct.rb', line 156

def identifier
  @identifier
end

#indicationCodeableConceptObject

0-1 CodeableConcept



159
160
161
# File 'lib/fhir_models/fhir/resources/MedicinalProduct.rb', line 159

def indicationCodeableConcept
  @indicationCodeableConcept
end

#indicationReferenceObject

0-1 Reference(MedicinalProductIndication)



160
161
162
# File 'lib/fhir_models/fhir/resources/MedicinalProduct.rb', line 160

def indicationReference
  @indicationReference
end

#intendedUseObject

0-1 CodeableConcept



158
159
160
# File 'lib/fhir_models/fhir/resources/MedicinalProduct.rb', line 158

def intendedUse
  @intendedUse
end

#modifierExtensionObject

0-* [ Extension ]



155
156
157
# File 'lib/fhir_models/fhir/resources/MedicinalProduct.rb', line 155

def modifierExtension
  @modifierExtension
end

#speciesObject

0-1 CodeableConcept



163
164
165
# File 'lib/fhir_models/fhir/resources/MedicinalProduct.rb', line 163

def species
  @species
end

#statusObject

0-1 CodeableConcept



161
162
163
# File 'lib/fhir_models/fhir/resources/MedicinalProduct.rb', line 161

def status
  @status
end

#typeObject

0-1 CodeableConcept



157
158
159
# File 'lib/fhir_models/fhir/resources/MedicinalProduct.rb', line 157

def type
  @type
end