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

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

Constant Summary collapse

MULTIPLE_TYPES =
{
  'source' => ['uri', 'Reference']
}
METADATA =
{
  'id' => {'type'=>'string', '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},
  'example' => {'type'=>'boolean', 'path'=>'Resource.example', 'min'=>1, 'max'=>1},
  '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_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'Resource.source[x]', 'min'=>1, 'max'=>1},
  'exampleFor' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/StructureDefinition'], '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, #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

#acronymObject

0-1 string



98
99
100
# File 'lib/fhir_models/fhir/resources/ImplementationGuide.rb', line 98

def acronym
  @acronym
end

#descriptionObject

0-1 string



97
98
99
# File 'lib/fhir_models/fhir/resources/ImplementationGuide.rb', line 97

def description
  @description
end

#exampleObject

1-1 boolean



95
96
97
# File 'lib/fhir_models/fhir/resources/ImplementationGuide.rb', line 95

def example
  @example
end

#exampleForObject

0-1 Reference(StructureDefinition)



101
102
103
# File 'lib/fhir_models/fhir/resources/ImplementationGuide.rb', line 101

def exampleFor
  @exampleFor
end

#extensionObject

0-* [ Extension ]



93
94
95
# File 'lib/fhir_models/fhir/resources/ImplementationGuide.rb', line 93

def extension
  @extension
end

#idObject

0-1 string



92
93
94
# File 'lib/fhir_models/fhir/resources/ImplementationGuide.rb', line 92

def id
  @id
end

#modifierExtensionObject

0-* [ Extension ]



94
95
96
# File 'lib/fhir_models/fhir/resources/ImplementationGuide.rb', line 94

def modifierExtension
  @modifierExtension
end

#nameObject

0-1 string



96
97
98
# File 'lib/fhir_models/fhir/resources/ImplementationGuide.rb', line 96

def name
  @name
end

#sourceReferenceObject

1-1 Reference(Resource)



100
101
102
# File 'lib/fhir_models/fhir/resources/ImplementationGuide.rb', line 100

def sourceReference
  @sourceReference
end

#sourceUriObject

1-1 uri



99
100
101
# File 'lib/fhir_models/fhir/resources/ImplementationGuide.rb', line 99

def sourceUri
  @sourceUri
end