Class: FHIR::Contract

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

Defined Under Namespace

Classes: Agent, Friendly, Legal, Rule, Signer, Term, ValuedItem

Constant Summary collapse

MULTIPLE_TYPES =
{
  'binding' => ['Attachment', 'Reference']
}
SEARCH_PARAMS =
["agent", "authority", "domain", "identifier", "issued", "patient", "signer", "subject", "topic", "ttopic"]
METADATA =
{
  'id' => {'type'=>'id', 'path'=>'Contract.id', 'min'=>0, 'max'=>1},
  'meta' => {'type'=>'Meta', 'path'=>'Contract.meta', 'min'=>0, 'max'=>1},
  'implicitRules' => {'type'=>'uri', 'path'=>'Contract.implicitRules', 'min'=>0, 'max'=>1},
  'language' => {'type'=>'code', 'path'=>'Contract.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/languages'}},
  'text' => {'type'=>'Narrative', 'path'=>'Contract.text', 'min'=>0, 'max'=>1},
  'contained' => {'type'=>'Resource', 'path'=>'Contract.contained', 'min'=>0, 'max'=>Float::INFINITY},
  'extension' => {'type'=>'Extension', 'path'=>'Contract.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'Contract.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'identifier' => {'type'=>'Identifier', 'path'=>'Contract.identifier', 'min'=>0, 'max'=>1},
  'issued' => {'type'=>'dateTime', 'path'=>'Contract.issued', 'min'=>0, 'max'=>1},
  'applies' => {'type'=>'Period', 'path'=>'Contract.applies', 'min'=>0, 'max'=>1},
  'subject' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'Contract.subject', 'min'=>0, 'max'=>Float::INFINITY},
  'topic' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'Contract.topic', 'min'=>0, 'max'=>Float::INFINITY},
  'authority' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'Contract.authority', 'min'=>0, 'max'=>Float::INFINITY},
  'domain' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Location'], 'type'=>'Reference', 'path'=>'Contract.domain', 'min'=>0, 'max'=>Float::INFINITY},
  'type' => {'valid_codes'=>{'http://hl7.org/fhir/contracttypecodes'=>['privacy', 'disclosure', 'privacy', 'disclosure']}, 'type'=>'CodeableConcept', 'path'=>'Contract.type', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/contract-type'}},
  'subType' => {'valid_codes'=>{'http://hl7.org/fhir/contractsubtypecodes'=>['disclosure-CA', 'disclosure-US', 'disclosure-CA', 'disclosure-US']}, 'type'=>'CodeableConcept', 'path'=>'Contract.subType', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/contract-subtype'}},
  'action' => {'valid_codes'=>{'http://www.hl7.org/fhir/contractaction'=>['action-a', 'action-b', 'action-a', 'action-b']}, 'type'=>'CodeableConcept', 'path'=>'Contract.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'=>'Contract.actionReason', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/v3-PurposeOfUse'}},
  'agent' => {'type'=>'Contract::Agent', 'path'=>'Contract.agent', 'min'=>0, 'max'=>Float::INFINITY},
  'signer' => {'type'=>'Contract::Signer', 'path'=>'Contract.signer', 'min'=>0, 'max'=>Float::INFINITY},
  'valuedItem' => {'type'=>'Contract::ValuedItem', 'path'=>'Contract.valuedItem', 'min'=>0, 'max'=>Float::INFINITY},
  'term' => {'type'=>'Contract::Term', 'path'=>'Contract.term', 'min'=>0, 'max'=>Float::INFINITY},
  'bindingAttachment' => {'type'=>'Attachment', 'path'=>'Contract.binding[x]', 'min'=>0, 'max'=>1},
  'bindingReference' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Composition', 'http://hl7.org/fhir/StructureDefinition/DocumentReference', 'http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse'], 'type'=>'Reference', 'path'=>'Contract.binding[x]', 'min'=>0, 'max'=>1},
  'friendly' => {'type'=>'Contract::Friendly', 'path'=>'Contract.friendly', 'min'=>0, 'max'=>Float::INFINITY},
  'legal' => {'type'=>'Contract::Legal', 'path'=>'Contract.legal', 'min'=>0, 'max'=>Float::INFINITY},
  'rule' => {'type'=>'Contract::Rule', 'path'=>'Contract.rule', 'min'=>0, 'max'=>Float::INFINITY}
}

Instance Attribute Summary collapse

Instance Method Summary collapse

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 ]



304
305
306
# File 'lib/fhir/resources/Contract.rb', line 304

def action
  @action
end

#actionReasonObject

0-* [ CodeableConcept ]



305
306
307
# File 'lib/fhir/resources/Contract.rb', line 305

def actionReason
  @actionReason
end

#agentObject

0-* [ Contract::Agent ]



306
307
308
# File 'lib/fhir/resources/Contract.rb', line 306

def agent
  @agent
end

#appliesObject

0-1 Period



297
298
299
# File 'lib/fhir/resources/Contract.rb', line 297

def applies
  @applies
end

#authorityObject

0-* [ Reference(Organization) ]



300
301
302
# File 'lib/fhir/resources/Contract.rb', line 300

def authority
  @authority
end

#bindingAttachmentObject

0-1 Attachment



310
311
312
# File 'lib/fhir/resources/Contract.rb', line 310

def bindingAttachment
  @bindingAttachment
end

#bindingReferenceObject

0-1 Reference(Composition|DocumentReference|QuestionnaireResponse)



311
312
313
# File 'lib/fhir/resources/Contract.rb', line 311

def bindingReference
  @bindingReference
end

#containedObject

0-* [ Resource ]



292
293
294
# File 'lib/fhir/resources/Contract.rb', line 292

def contained
  @contained
end

#domainObject

0-* [ Reference(Location) ]



301
302
303
# File 'lib/fhir/resources/Contract.rb', line 301

def domain
  @domain
end

#extensionObject

0-* [ Extension ]



293
294
295
# File 'lib/fhir/resources/Contract.rb', line 293

def extension
  @extension
end

#friendlyObject

0-* [ Contract::Friendly ]



312
313
314
# File 'lib/fhir/resources/Contract.rb', line 312

def friendly
  @friendly
end

#idObject

0-1 id



287
288
289
# File 'lib/fhir/resources/Contract.rb', line 287

def id
  @id
end

#identifierObject

0-1 Identifier



295
296
297
# File 'lib/fhir/resources/Contract.rb', line 295

def identifier
  @identifier
end

#implicitRulesObject

0-1 uri



289
290
291
# File 'lib/fhir/resources/Contract.rb', line 289

def implicitRules
  @implicitRules
end

#issuedObject

0-1 dateTime



296
297
298
# File 'lib/fhir/resources/Contract.rb', line 296

def issued
  @issued
end

#languageObject

0-1 code



290
291
292
# File 'lib/fhir/resources/Contract.rb', line 290

def language
  @language
end

0-* [ Contract::Legal ]



313
314
315
# File 'lib/fhir/resources/Contract.rb', line 313

def legal
  @legal
end

#metaObject

0-1 Meta



288
289
290
# File 'lib/fhir/resources/Contract.rb', line 288

def meta
  @meta
end

#modifierExtensionObject

0-* [ Extension ]



294
295
296
# File 'lib/fhir/resources/Contract.rb', line 294

def modifierExtension
  @modifierExtension
end

#ruleObject

0-* [ Contract::Rule ]



314
315
316
# File 'lib/fhir/resources/Contract.rb', line 314

def rule
  @rule
end

#signerObject

0-* [ Contract::Signer ]



307
308
309
# File 'lib/fhir/resources/Contract.rb', line 307

def signer
  @signer
end

#subjectObject

0-* [ Reference(Resource) ]



298
299
300
# File 'lib/fhir/resources/Contract.rb', line 298

def subject
  @subject
end

#subTypeObject

0-* [ CodeableConcept ]



303
304
305
# File 'lib/fhir/resources/Contract.rb', line 303

def subType
  @subType
end

#termObject

0-* [ Contract::Term ]



309
310
311
# File 'lib/fhir/resources/Contract.rb', line 309

def term
  @term
end

#textObject

0-1 Narrative



291
292
293
# File 'lib/fhir/resources/Contract.rb', line 291

def text
  @text
end

#topicObject

0-* [ Reference(Resource) ]



299
300
301
# File 'lib/fhir/resources/Contract.rb', line 299

def topic
  @topic
end

#typeObject

0-1 CodeableConcept



302
303
304
# File 'lib/fhir/resources/Contract.rb', line 302

def type
  @type
end

#valuedItemObject

0-* [ Contract::ValuedItem ]



308
309
310
# File 'lib/fhir/resources/Contract.rb', line 308

def valuedItem
  @valuedItem
end

Instance Method Details

#resourceTypeObject



316
317
318
# File 'lib/fhir/resources/Contract.rb', line 316

def resourceType
  'Contract'
end