Class: FHIR::UsageContext

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

Constant Summary collapse

MULTIPLE_TYPES =
{
  'value' => ['CodeableConcept', 'Quantity', 'Range', 'Reference']
}
SEARCH_PARAMS =
[]
METADATA =
{
  'id' => {'type'=>'string', 'path'=>'UsageContext.id', 'min'=>0, 'max'=>1},
  'extension' => {'type'=>'Extension', 'path'=>'UsageContext.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'code' => {'valid_codes'=>{'http://terminology.hl7.org/CodeSystem/usage-context-type'=>['gender', 'age', 'focus', 'user', 'workflow', 'task', 'venue', 'species', 'program']}, 'type'=>'Coding', 'path'=>'UsageContext.code', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/usage-context-type'}},
  'valueCodeableConcept' => {'type'=>'CodeableConcept', 'path'=>'UsageContext.value[x]', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/use-context'}},
  'valueQuantity' => {'type'=>'Quantity', 'path'=>'UsageContext.value[x]', 'min'=>1, 'max'=>1},
  'valueRange' => {'type'=>'Range', 'path'=>'UsageContext.value[x]', 'min'=>1, 'max'=>1},
  'valueReference' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/PlanDefinition', 'http://hl7.org/fhir/StructureDefinition/ResearchStudy', 'http://hl7.org/fhir/StructureDefinition/InsurancePlan', 'http://hl7.org/fhir/StructureDefinition/HealthcareService', 'http://hl7.org/fhir/StructureDefinition/Group', 'http://hl7.org/fhir/StructureDefinition/Location', 'http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'UsageContext.value[x]', 'min'=>1, '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

#codeObject

1-1 Coding



23
24
25
# File 'lib/fhir_models/fhir/types/UsageContext.rb', line 23

def code
  @code
end

#extensionObject

0-* [ Extension ]



22
23
24
# File 'lib/fhir_models/fhir/types/UsageContext.rb', line 22

def extension
  @extension
end

#idObject

0-1 string



21
22
23
# File 'lib/fhir_models/fhir/types/UsageContext.rb', line 21

def id
  @id
end

#valueCodeableConceptObject

1-1 CodeableConcept



24
25
26
# File 'lib/fhir_models/fhir/types/UsageContext.rb', line 24

def valueCodeableConcept
  @valueCodeableConcept
end

#valueQuantityObject

1-1 Quantity



25
26
27
# File 'lib/fhir_models/fhir/types/UsageContext.rb', line 25

def valueQuantity
  @valueQuantity
end

#valueRangeObject

1-1 Range



26
27
28
# File 'lib/fhir_models/fhir/types/UsageContext.rb', line 26

def valueRange
  @valueRange
end

#valueReferenceObject

1-1 Reference(PlanDefinition|ResearchStudy|InsurancePlan|HealthcareService|Group|Location|Organization)



27
28
29
# File 'lib/fhir_models/fhir/types/UsageContext.rb', line 27

def valueReference
  @valueReference
end