Class: FHIR::PlanDefinition::ActionDefinition::RelatedAction

Inherits:
Model
  • Object
show all
Includes:
Hashable, Json, Xml
Defined in:
lib/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},
  'actionIdentifier' => {'type'=>'Identifier', 'path'=>'RelatedAction.actionIdentifier', 'min'=>1, 'max'=>1},
  'relationship' => {'valid_codes'=>{'http://hl7.org/fhir/action-relationship-type'=>['before', 'after', 'concurrent', 'before', 'after', 'concurrent']}, 'type'=>'code', 'path'=>'RelatedAction.relationship', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/action-relationship-type'}},
  'offsetDuration' => {'type'=>'Duration', 'path'=>'RelatedAction.offset[x]', 'min'=>0, 'max'=>1},
  'offsetRange' => {'type'=>'Range', 'path'=>'RelatedAction.offset[x]', 'min'=>0, 'max'=>1},
  'anchor' => {'valid_codes'=>{'http://hl7.org/fhir/action-relationship-anchor'=>['start', 'end', 'start', 'end']}, 'type'=>'code', 'path'=>'RelatedAction.anchor', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/action-relationship-anchor'}}
}

Instance Attribute Summary collapse

Method Summary

Methods included from Xml

from_xml, is_valid?, #to_xml, validate

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?, #initialize, #is_valid?, #method_missing, #mismatch, #to_reference, #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

#actionIdentifierObject

1-1 Identifier



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

def actionIdentifier
  @actionIdentifier
end

#anchorObject

0-1 code



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

def anchor
  @anchor
end

#extensionObject

0-* [ Extension ]



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

def extension
  @extension
end

#idObject

0-1 string



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

def id
  @id
end

#modifierExtensionObject

0-* [ Extension ]



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

def modifierExtension
  @modifierExtension
end

#offsetDurationObject

0-1 Duration



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

def offsetDuration
  @offsetDuration
end

#offsetRangeObject

0-1 Range



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

def offsetRange
  @offsetRange
end

#relationshipObject

1-1 code



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

def relationship
  @relationship
end