Class: FHIR::DSTU2::FamilyMemberHistory::Condition

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

Constant Summary collapse

MULTIPLE_TYPES =
{
  'onset' => ['Quantity', 'Range', 'Period', 'string']
}
METADATA =
{
  'id' => {'type'=>'id', 'path'=>'Condition.id', 'min'=>0, 'max'=>1},
  'extension' => {'type'=>'Extension', 'path'=>'Condition.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'Condition.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'code' => {'valid_codes'=>{'http://snomed.info/sct'=>[]}, 'type'=>'CodeableConcept', 'path'=>'Condition.code', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/condition-code'}},
  'outcome' => {'valid_codes'=>{'http://snomed.info/sct'=>[]}, 'type'=>'CodeableConcept', 'path'=>'Condition.outcome', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/condition-outcome'}},
  'onsetQuantity' => {'type'=>'Quantity', 'path'=>'Condition.onset[x]', 'min'=>0, 'max'=>1},
  'onsetRange' => {'type'=>'Range', 'path'=>'Condition.onset[x]', 'min'=>0, 'max'=>1},
  'onsetPeriod' => {'type'=>'Period', 'path'=>'Condition.onset[x]', 'min'=>0, 'max'=>1},
  'onsetString' => {'type'=>'string', 'path'=>'Condition.onset[x]', 'min'=>0, 'max'=>1},
  'note' => {'type'=>'Annotation', 'path'=>'Condition.note', 'min'=>0, '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, #each_element, #equals?, #hash, #initialize, #method_missing, #mismatch, #primitive?, #to_reference, #valid?, #validate, #validate_profile

Constructor Details

This class inherits a constructor from FHIR::DSTU2::Model

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class FHIR::DSTU2::Model

Instance Attribute Details

#codeObject

1-1 CodeableConcept



69
70
71
# File 'lib/fhir_dstu2_models/fhir/resources/FamilyMemberHistory.rb', line 69

def code
  @code
end

#extensionObject

0-* [ Extension ]



67
68
69
# File 'lib/fhir_dstu2_models/fhir/resources/FamilyMemberHistory.rb', line 67

def extension
  @extension
end

#idObject

0-1 id



66
67
68
# File 'lib/fhir_dstu2_models/fhir/resources/FamilyMemberHistory.rb', line 66

def id
  @id
end

#modifierExtensionObject

0-* [ Extension ]



68
69
70
# File 'lib/fhir_dstu2_models/fhir/resources/FamilyMemberHistory.rb', line 68

def modifierExtension
  @modifierExtension
end

#noteObject

0-1 Annotation



75
76
77
# File 'lib/fhir_dstu2_models/fhir/resources/FamilyMemberHistory.rb', line 75

def note
  @note
end

#onsetPeriodObject

0-1 Period



73
74
75
# File 'lib/fhir_dstu2_models/fhir/resources/FamilyMemberHistory.rb', line 73

def onsetPeriod
  @onsetPeriod
end

#onsetQuantityObject

0-1 Quantity



71
72
73
# File 'lib/fhir_dstu2_models/fhir/resources/FamilyMemberHistory.rb', line 71

def onsetQuantity
  @onsetQuantity
end

#onsetRangeObject

0-1 Range



72
73
74
# File 'lib/fhir_dstu2_models/fhir/resources/FamilyMemberHistory.rb', line 72

def onsetRange
  @onsetRange
end

#onsetStringObject

0-1 string



74
75
76
# File 'lib/fhir_dstu2_models/fhir/resources/FamilyMemberHistory.rb', line 74

def onsetString
  @onsetString
end

#outcomeObject

0-1 CodeableConcept



70
71
72
# File 'lib/fhir_dstu2_models/fhir/resources/FamilyMemberHistory.rb', line 70

def outcome
  @outcome
end