Class: FHIR::PlanDefinition::Action::RelatedAction

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

Constant Summary collapse

MULTIPLE_TYPES =
{
  'offset' => ['Duration', 'Range']
}
METADATA =
{
  'id' => {'type'=>'string', 'path'=>'RelatedAction.id', 'min'=>0, 'max'=>1},
  'extension' => {'type'=>'Extension', 'path'=>'RelatedAction.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'RelatedAction.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'actionId' => {'type'=>'id', 'path'=>'RelatedAction.actionId', 'min'=>1, 'max'=>1},
  'relationship' => {'valid_codes'=>{'http://hl7.org/fhir/action-relationship-type'=>['before-start', 'before', 'before-end', 'concurrent-with-start', 'concurrent', 'concurrent-with-end', 'after-start', 'after', 'after-end']}, 'type'=>'code', 'path'=>'RelatedAction.relationship', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/action-relationship-type|4.0.0'}},
  'offsetDuration' => {'type'=>'Duration', 'path'=>'RelatedAction.offset[x]', 'min'=>0, 'max'=>1},
  'offsetRange' => {'type'=>'Range', 'path'=>'RelatedAction.offset[x]', '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 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

#actionIdObject

1-1 id



204
205
206
# File 'lib/fhir_models/fhir/resources/PlanDefinition.rb', line 204

def actionId
  @actionId
end

#extensionObject

0-* [ Extension ]



202
203
204
# File 'lib/fhir_models/fhir/resources/PlanDefinition.rb', line 202

def extension
  @extension
end

#idObject

0-1 string



201
202
203
# File 'lib/fhir_models/fhir/resources/PlanDefinition.rb', line 201

def id
  @id
end

#modifierExtensionObject

0-* [ Extension ]



203
204
205
# File 'lib/fhir_models/fhir/resources/PlanDefinition.rb', line 203

def modifierExtension
  @modifierExtension
end

#offsetDurationObject

0-1 Duration



206
207
208
# File 'lib/fhir_models/fhir/resources/PlanDefinition.rb', line 206

def offsetDuration
  @offsetDuration
end

#offsetRangeObject

0-1 Range



207
208
209
# File 'lib/fhir_models/fhir/resources/PlanDefinition.rb', line 207

def offsetRange
  @offsetRange
end

#relationshipObject

1-1 code



205
206
207
# File 'lib/fhir_models/fhir/resources/PlanDefinition.rb', line 205

def relationship
  @relationship
end