Class: FHIR::DSTU2::ImplementationGuide::Package::Resource

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

Constant Summary collapse

MULTIPLE_TYPES =
{
  'source' => ['uri', 'Reference']
}
METADATA =
{
  'id' => { 'type' => 'id', 'path' => 'Resource.id', 'min' => 0, 'max' => 1 },
  'extension' => { 'type' => 'Extension', 'path' => 'Resource.extension', 'min' => 0, 'max' => Float::INFINITY },
  'modifierExtension' => { 'type' => 'Extension', 'path' => 'Resource.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
  'purpose' => { 'valid_codes' => { 'http://hl7.org/fhir/guide-resource-purpose' => ['example', 'terminology', 'profile', 'extension', 'dictionary', 'logical'] }, 'type' => 'code', 'path' => 'Resource.purpose', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/guide-resource-purpose' } },
  'name' => { 'type' => 'string', 'path' => 'Resource.name', 'min' => 0, 'max' => 1 },
  'description' => { 'type' => 'string', 'path' => 'Resource.description', 'min' => 0, 'max' => 1 },
  'acronym' => { 'type' => 'string', 'path' => 'Resource.acronym', 'min' => 0, 'max' => 1 },
  'sourceUri' => { 'type' => 'uri', 'path' => 'Resource.source[x]', 'min' => 1, 'max' => 1 },
  'sourceReference' => { 'type' => 'Reference', 'path' => 'Resource.source[x]', 'min' => 1, 'max' => 1 },
  'exampleFor' => { 'type' => 'Reference', 'path' => 'Resource.exampleFor', '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?, #respond_to_missing?, #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

#acronymObject

0-1 string



118
119
120
# File 'lib/fhir_dstu2_models/fhir/resources/ImplementationGuide.rb', line 118

def acronym
  @acronym
end

#descriptionObject

0-1 string



117
118
119
# File 'lib/fhir_dstu2_models/fhir/resources/ImplementationGuide.rb', line 117

def description
  @description
end

#exampleForObject

0-1 Reference()



121
122
123
# File 'lib/fhir_dstu2_models/fhir/resources/ImplementationGuide.rb', line 121

def exampleFor
  @exampleFor
end

#extensionObject

0-* [ Extension ]



113
114
115
# File 'lib/fhir_dstu2_models/fhir/resources/ImplementationGuide.rb', line 113

def extension
  @extension
end

#idObject

0-1 id



112
113
114
# File 'lib/fhir_dstu2_models/fhir/resources/ImplementationGuide.rb', line 112

def id
  @id
end

#modifierExtensionObject

0-* [ Extension ]



114
115
116
# File 'lib/fhir_dstu2_models/fhir/resources/ImplementationGuide.rb', line 114

def modifierExtension
  @modifierExtension
end

#nameObject

0-1 string



116
117
118
# File 'lib/fhir_dstu2_models/fhir/resources/ImplementationGuide.rb', line 116

def name
  @name
end

#purposeObject

1-1 code



115
116
117
# File 'lib/fhir_dstu2_models/fhir/resources/ImplementationGuide.rb', line 115

def purpose
  @purpose
end

#sourceReferenceObject

1-1 Reference()



120
121
122
# File 'lib/fhir_dstu2_models/fhir/resources/ImplementationGuide.rb', line 120

def sourceReference
  @sourceReference
end

#sourceUriObject

1-1 uri



119
120
121
# File 'lib/fhir_dstu2_models/fhir/resources/ImplementationGuide.rb', line 119

def sourceUri
  @sourceUri
end