Class: FHIR::DataRequirement::Sort

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

Constant Summary collapse

METADATA =
{
  'id' => {'type'=>'string', 'path'=>'Sort.id', 'min'=>0, 'max'=>1},
  'extension' => {'type'=>'Extension', 'path'=>'Sort.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'path' => {'type'=>'string', 'path'=>'Sort.path', 'min'=>1, 'max'=>1},
  'direction' => {'valid_codes'=>{'http://hl7.org/fhir/sort-direction'=>['ascending', 'descending']}, 'type'=>'code', 'path'=>'Sort.direction', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/sort-direction|4.0.0'}}
}

Instance Attribute Summary collapse

Method Summary

Methods included from Xml

from_xml, #to_xml, valid?, validate

Methods included from FHIR::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

#directionObject

1-1 code



89
90
91
# File 'lib/fhir_models/fhir/types/DataRequirement.rb', line 89

def direction
  @direction
end

#extensionObject

0-* [ Extension ]



87
88
89
# File 'lib/fhir_models/fhir/types/DataRequirement.rb', line 87

def extension
  @extension
end

#idObject

0-1 string



86
87
88
# File 'lib/fhir_models/fhir/types/DataRequirement.rb', line 86

def id
  @id
end

#pathObject

1-1 string



88
89
90
# File 'lib/fhir_models/fhir/types/DataRequirement.rb', line 88

def path
  @path
end