Class: FHIR::Contract::Term::Offer

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

Defined Under Namespace

Classes: Answer, Party

Constant Summary collapse

METADATA =
{
  'id' => {'type'=>'string', 'path'=>'Offer.id', 'min'=>0, 'max'=>1},
  'extension' => {'type'=>'Extension', 'path'=>'Offer.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'Offer.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'identifier' => {'type'=>'Identifier', 'path'=>'Offer.identifier', 'min'=>0, 'max'=>Float::INFINITY},
  'party' => {'type'=>'Contract::Term::Offer::Party', 'path'=>'Offer.party', 'min'=>0, 'max'=>Float::INFINITY},
  'topic' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'Offer.topic', 'min'=>0, 'max'=>1},
  'type' => {'valid_codes'=>{'http://terminology.hl7.org/CodeSystem/contracttermtypecodes'=>['statutory', 'subject-to']}, 'type'=>'CodeableConcept', 'path'=>'Offer.type', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/contract-term-type'}},
  'decision' => {'valid_codes'=>{'http://terminology.hl7.org/CodeSystem/v3-ActCode'=>['EMRGONLY', 'GRANTORCHOICE', 'IMPLIED', 'IMPLIEDD', 'NOCONSENT', 'NOPP', 'OPTIN', 'OPTINR', 'OPTOUT', 'OPTOUTE']}, 'type'=>'CodeableConcept', 'path'=>'Offer.decision', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://terminology.hl7.org/ValueSet/v3-ActConsentDirective'}},
  'decisionMode' => {'valid_codes'=>{'http://hl7.org/fhir/contract-decision-mode'=>['policy']}, 'type'=>'CodeableConcept', 'path'=>'Offer.decisionMode', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/contract-decision-mode'}},
  'answer' => {'type'=>'Contract::Term::Offer::Answer', 'path'=>'Offer.answer', 'min'=>0, 'max'=>Float::INFINITY},
  'text' => {'type'=>'string', 'path'=>'Offer.text', 'min'=>0, 'max'=>1},
  'linkId' => {'type'=>'string', 'path'=>'Offer.linkId', 'min'=>0, 'max'=>Float::INFINITY},
  'securityLabelNumber' => {'type'=>'unsignedInt', 'path'=>'Offer.securityLabelNumber', 'min'=>0, 'max'=>Float::INFINITY}
}

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

#answerObject

0-* [ Contract::Term::Offer::Answer ]



230
231
232
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 230

def answer
  @answer
end

#decisionObject

0-1 CodeableConcept



228
229
230
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 228

def decision
  @decision
end

#decisionModeObject

0-* [ CodeableConcept ]



229
230
231
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 229

def decisionMode
  @decisionMode
end

#extensionObject

0-* [ Extension ]



222
223
224
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 222

def extension
  @extension
end

#idObject

0-1 string



221
222
223
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 221

def id
  @id
end

#identifierObject

0-* [ Identifier ]



224
225
226
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 224

def identifier
  @identifier
end

#linkIdObject

0-* [ string ]



232
233
234
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 232

def linkId
  @linkId
end

#modifierExtensionObject

0-* [ Extension ]



223
224
225
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 223

def modifierExtension
  @modifierExtension
end

#partyObject

0-* [ Contract::Term::Offer::Party ]



225
226
227
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 225

def party
  @party
end

#securityLabelNumberObject

0-* [ unsignedInt ]



233
234
235
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 233

def securityLabelNumber
  @securityLabelNumber
end

#textObject

0-1 string



231
232
233
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 231

def text
  @text
end

#topicObject

0-1 Reference(Resource)



226
227
228
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 226

def topic
  @topic
end

#typeObject

0-1 CodeableConcept



227
228
229
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 227

def type
  @type
end