Class: FHIR::Task::Restriction

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

Constant Summary collapse

METADATA =
{
  'id' => {'type'=>'string', 'path'=>'Restriction.id', 'min'=>0, 'max'=>1},
  'extension' => {'type'=>'Extension', 'path'=>'Restriction.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'Restriction.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'repetitions' => {'type'=>'positiveInt', 'path'=>'Restriction.repetitions', 'min'=>0, 'max'=>1},
  'period' => {'type'=>'Period', 'path'=>'Restriction.period', 'min'=>0, 'max'=>1},
  'recipient' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/PractitionerRole', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson', 'http://hl7.org/fhir/StructureDefinition/Group', 'http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'Restriction.recipient', 'min'=>0, 'max'=>Float::INFINITY}
}

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

#extensionObject

0-* [ Extension ]



65
66
67
# File 'lib/fhir_models/fhir/resources/Task.rb', line 65

def extension
  @extension
end

#idObject

0-1 string



64
65
66
# File 'lib/fhir_models/fhir/resources/Task.rb', line 64

def id
  @id
end

#modifierExtensionObject

0-* [ Extension ]



66
67
68
# File 'lib/fhir_models/fhir/resources/Task.rb', line 66

def modifierExtension
  @modifierExtension
end

#periodObject

0-1 Period



68
69
70
# File 'lib/fhir_models/fhir/resources/Task.rb', line 68

def period
  @period
end

#recipientObject

0-* [ Reference(Patient|Practitioner|PractitionerRole|RelatedPerson|Group|Organization) ]



69
70
71
# File 'lib/fhir_models/fhir/resources/Task.rb', line 69

def recipient
  @recipient
end

#repetitionsObject

0-1 positiveInt



67
68
69
# File 'lib/fhir_models/fhir/resources/Task.rb', line 67

def repetitions
  @repetitions
end