Class: FHIR::UsageContext
- 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
-
#code ⇒ Object
1-1 Coding.
-
#extension ⇒ Object
0-* [ Extension ].
-
#id ⇒ Object
0-1 string.
-
#valueCodeableConcept ⇒ Object
1-1 CodeableConcept.
-
#valueQuantity ⇒ Object
1-1 Quantity.
-
#valueRange ⇒ Object
1-1 Range.
-
#valueReference ⇒ Object
1-1 Reference(PlanDefinition|ResearchStudy|InsurancePlan|HealthcareService|Group|Location|Organization).
Method Summary
Methods included from Xml
from_xml, #to_xml, valid?, validate
Methods included from Deprecate
Methods included from Json
Methods included from Hashable
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
#code ⇒ Object
1-1 Coding
23 24 25 |
# File 'lib/fhir_models/fhir/types/UsageContext.rb', line 23 def code @code end |
#extension ⇒ Object
0-* [ Extension ]
22 23 24 |
# File 'lib/fhir_models/fhir/types/UsageContext.rb', line 22 def extension @extension end |
#id ⇒ Object
0-1 string
21 22 23 |
# File 'lib/fhir_models/fhir/types/UsageContext.rb', line 21 def id @id end |
#valueCodeableConcept ⇒ Object
1-1 CodeableConcept
24 25 26 |
# File 'lib/fhir_models/fhir/types/UsageContext.rb', line 24 def valueCodeableConcept @valueCodeableConcept end |
#valueQuantity ⇒ Object
1-1 Quantity
25 26 27 |
# File 'lib/fhir_models/fhir/types/UsageContext.rb', line 25 def valueQuantity @valueQuantity end |
#valueRange ⇒ Object
1-1 Range
26 27 28 |
# File 'lib/fhir_models/fhir/types/UsageContext.rb', line 26 def valueRange @valueRange end |
#valueReference ⇒ Object
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 |