Class: FHIR::Contract::Term::Asset::Context

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

Constant Summary collapse

METADATA =
{
  'id' => {'type'=>'string', 'path'=>'Context.id', 'min'=>0, 'max'=>1},
  'extension' => {'type'=>'Extension', 'path'=>'Context.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'Context.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'reference' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'Context.reference', 'min'=>0, 'max'=>1},
  'code' => {'valid_codes'=>{'http://hl7.org/fhir/contract-asset-context'=>['custodian']}, 'type'=>'CodeableConcept', 'path'=>'Context.code', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/contract-assetcontext'}},
  'text' => {'type'=>'string', 'path'=>'Context.text', '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

#codeObject

0-* [ CodeableConcept ]



280
281
282
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 280

def code
  @code
end

#extensionObject

0-* [ Extension ]



277
278
279
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 277

def extension
  @extension
end

#idObject

0-1 string



276
277
278
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 276

def id
  @id
end

#modifierExtensionObject

0-* [ Extension ]



278
279
280
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 278

def modifierExtension
  @modifierExtension
end

#referenceObject

0-1 Reference(Resource)



279
280
281
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 279

def reference
  @reference
end

#textObject

0-1 string



281
282
283
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 281

def text
  @text
end