Class: FHIR::Contract::Term

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

Defined Under Namespace

Classes: Agent, ValuedItem

Constant Summary collapse

METADATA =
{
  'id' => {'type'=>'string', 'path'=>'Term.id', 'min'=>0, 'max'=>1},
  'extension' => {'type'=>'Extension', 'path'=>'Term.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'Term.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'identifier' => {'type'=>'Identifier', 'path'=>'Term.identifier', 'min'=>0, 'max'=>1},
  'issued' => {'type'=>'dateTime', 'path'=>'Term.issued', 'min'=>0, 'max'=>1},
  'applies' => {'type'=>'Period', 'path'=>'Term.applies', 'min'=>0, 'max'=>1},
  'type' => {'valid_codes'=>{'http://hl7.org/fhir/contracttermtypecodes'=>['OralHealth', 'Vision', 'OralHealth', 'Vision']}, 'type'=>'CodeableConcept', 'path'=>'Term.type', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/contract-term-type'}},
  'subType' => {'valid_codes'=>{'http://hl7.org/fhir/contracttermsubtypecodes'=>['OralHealth-Basic', 'OralHealth-Major', 'OralHealth-Orthodontic', 'OralHealth-Basic', 'OralHealth-Major', 'OralHealth-Orthodontic']}, 'type'=>'CodeableConcept', 'path'=>'Term.subType', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/contract-term-subtype'}},
  'topic' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'Term.topic', 'min'=>0, 'max'=>Float::INFINITY},
  'action' => {'valid_codes'=>{'http://www.hl7.org/fhir/contractaction'=>['action-a', 'action-b', 'action-a', 'action-b']}, 'type'=>'CodeableConcept', 'path'=>'Term.action', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/contract-action'}},
  'actionReason' => {'valid_codes'=>{'http://hl7.org/fhir/v3/ActReason'=>['PurposeOfUse', 'HMARKT', 'HOPERAT', 'DONAT', 'FRAUD', 'GOV', 'HACCRED', 'HCOMPL', 'HDECD', 'HDIRECT', 'HLEGAL', 'HOUTCOMS', 'HPRGRP', 'HQUALIMP', 'HSYSADMIN', 'MEMADMIN', 'PATADMIN', 'PATSFTY', 'PERFMSR', 'RECORDMGT', 'TRAIN', 'HPAYMT', 'CLMATTCH', 'COVAUTH', 'COVERAGE', 'ELIGDTRM', 'ELIGVER', 'ENROLLM', 'REMITADV', 'HRESCH', 'CLINTRCH', 'PATRQT', 'FAMRQT', 'PWATRNY', 'SUPNWK', 'PUBHLTH', 'DISASTER', 'THREAT', 'TREAT', 'CAREMGT', 'CLINTRL', 'ETREAT', 'POPHLTH']}, 'type'=>'CodeableConcept', 'path'=>'Term.actionReason', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/v3-PurposeOfUse'}},
  'agent' => {'type'=>'Contract::Term::Agent', 'path'=>'Term.agent', 'min'=>0, 'max'=>Float::INFINITY},
  'text' => {'type'=>'string', 'path'=>'Term.text', 'min'=>0, 'max'=>1},
  'valuedItem' => {'type'=>'Contract::Term::ValuedItem', 'path'=>'Term.valuedItem', 'min'=>0, 'max'=>Float::INFINITY},
  'group' => {'type'=>'Contract::Term', 'path'=>'Term.group', 'min'=>0, 'max'=>Float::INFINITY}
}

Instance Attribute Summary collapse

Method Summary

Methods included from Xml

from_xml, is_valid?, #to_xml, validate

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?, #initialize, #is_valid?, #method_missing, #mismatch, #to_reference, #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

#actionObject

0-* [ CodeableConcept ]



210
211
212
# File 'lib/fhir/resources/Contract.rb', line 210

def action
  @action
end

#actionReasonObject

0-* [ CodeableConcept ]



211
212
213
# File 'lib/fhir/resources/Contract.rb', line 211

def actionReason
  @actionReason
end

#agentObject

0-* [ Contract::Term::Agent ]



212
213
214
# File 'lib/fhir/resources/Contract.rb', line 212

def agent
  @agent
end

#appliesObject

0-1 Period



206
207
208
# File 'lib/fhir/resources/Contract.rb', line 206

def applies
  @applies
end

#extensionObject

0-* [ Extension ]



202
203
204
# File 'lib/fhir/resources/Contract.rb', line 202

def extension
  @extension
end

#groupObject

0-* [ Contract::Term ]



215
216
217
# File 'lib/fhir/resources/Contract.rb', line 215

def group
  @group
end

#idObject

0-1 string



201
202
203
# File 'lib/fhir/resources/Contract.rb', line 201

def id
  @id
end

#identifierObject

0-1 Identifier



204
205
206
# File 'lib/fhir/resources/Contract.rb', line 204

def identifier
  @identifier
end

#issuedObject

0-1 dateTime



205
206
207
# File 'lib/fhir/resources/Contract.rb', line 205

def issued
  @issued
end

#modifierExtensionObject

0-* [ Extension ]



203
204
205
# File 'lib/fhir/resources/Contract.rb', line 203

def modifierExtension
  @modifierExtension
end

#subTypeObject

0-1 CodeableConcept



208
209
210
# File 'lib/fhir/resources/Contract.rb', line 208

def subType
  @subType
end

#textObject

0-1 string



213
214
215
# File 'lib/fhir/resources/Contract.rb', line 213

def text
  @text
end

#topicObject

0-* [ Reference(Resource) ]



209
210
211
# File 'lib/fhir/resources/Contract.rb', line 209

def topic
  @topic
end

#typeObject

0-1 CodeableConcept



207
208
209
# File 'lib/fhir/resources/Contract.rb', line 207

def type
  @type
end

#valuedItemObject

0-* [ Contract::Term::ValuedItem ]



214
215
216
# File 'lib/fhir/resources/Contract.rb', line 214

def valuedItem
  @valuedItem
end