Class: FHIR::StructureMap::Group::Rule::Source

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

Constant Summary collapse

METADATA =
{
  'id' => {'type'=>'string', 'path'=>'Source.id', 'min'=>0, 'max'=>1},
  'extension' => {'type'=>'Extension', 'path'=>'Source.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'Source.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'required' => {'type'=>'boolean', 'path'=>'Source.required', 'min'=>1, 'max'=>1},
  'context' => {'type'=>'id', 'path'=>'Source.context', 'min'=>1, 'max'=>1},
  'contextType' => {'valid_codes'=>{'http://hl7.org/fhir/map-context-type'=>['type', 'variable', 'type', 'variable']}, 'type'=>'code', 'path'=>'Source.contextType', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/map-context-type'}},
  'element' => {'type'=>'string', 'path'=>'Source.element', 'min'=>0, 'max'=>1},
  'listMode' => {'valid_codes'=>{'http://hl7.org/fhir/map-list-mode'=>['first', 'share', 'last', 'first', 'share', 'last']}, 'type'=>'code', 'path'=>'Source.listMode', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/map-list-mode'}},
  'variable' => {'type'=>'id', 'path'=>'Source.variable', 'min'=>0, 'max'=>1},
  'condition' => {'type'=>'string', 'path'=>'Source.condition', 'min'=>0, 'max'=>1},
  'check' => {'type'=>'string', 'path'=>'Source.check', 'min'=>0, 'max'=>1}
}

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

#checkObject

0-1 string



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

def check
  @check
end

#conditionObject

0-1 string



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

def condition
  @condition
end

#contextObject

1-1 id



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

def context
  @context
end

#contextTypeObject

1-1 code



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

def contextType
  @contextType
end

#elementObject

0-1 string



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

def element
  @element
end

#extensionObject

0-* [ Extension ]



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

def extension
  @extension
end

#idObject

0-1 string



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

def id
  @id
end

#listModeObject

0-1 code



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

def listMode
  @listMode
end

#modifierExtensionObject

0-* [ Extension ]



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

def modifierExtension
  @modifierExtension
end

#requiredObject

1-1 boolean



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

def required
  @required
end

#variableObject

0-1 id



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

def variable
  @variable
end