Class: FHIR::Contract
- 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
-
#action ⇒ Object
0-* [ CodeableConcept ].
-
#actionReason ⇒ Object
0-* [ CodeableConcept ].
-
#agent ⇒ Object
0-* [ Contract::Agent ].
-
#applies ⇒ Object
0-1 Period.
-
#authority ⇒ Object
0-* [ Reference(Organization) ].
-
#bindingAttachment ⇒ Object
0-1 Attachment.
-
#bindingReference ⇒ Object
0-1 Reference(Composition|DocumentReference|QuestionnaireResponse).
-
#contained ⇒ Object
0-* [ Resource ].
-
#domain ⇒ Object
0-* [ Reference(Location) ].
-
#extension ⇒ Object
0-* [ Extension ].
-
#friendly ⇒ Object
0-* [ Contract::Friendly ].
-
#id ⇒ Object
0-1 id.
-
#identifier ⇒ Object
0-1 Identifier.
-
#implicitRules ⇒ Object
0-1 uri.
-
#issued ⇒ Object
0-1 dateTime.
-
#language ⇒ Object
0-1 code.
-
#legal ⇒ Object
0-* [ Contract::Legal ].
-
#meta ⇒ Object
0-1 Meta.
-
#modifierExtension ⇒ Object
0-* [ Extension ].
-
#rule ⇒ Object
0-* [ Contract::Rule ].
-
#signer ⇒ Object
0-* [ Contract::Signer ].
-
#subject ⇒ Object
0-* [ Reference(Resource) ].
-
#subType ⇒ Object
0-* [ CodeableConcept ].
-
#term ⇒ Object
0-* [ Contract::Term ].
-
#text ⇒ Object
0-1 Narrative.
-
#topic ⇒ Object
0-* [ Reference(Resource) ].
-
#type ⇒ Object
0-1 CodeableConcept.
-
#valuedItem ⇒ Object
0-* [ Contract::ValuedItem ].
Instance Method Summary collapse
Methods included from Xml
from_xml, is_valid?, #to_xml, validate
Methods included from Json
Methods included from Hashable
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
#action ⇒ Object
0-* [ CodeableConcept ]
304 305 306 |
# File 'lib/fhir/resources/Contract.rb', line 304 def action @action end |
#actionReason ⇒ Object
0-* [ CodeableConcept ]
305 306 307 |
# File 'lib/fhir/resources/Contract.rb', line 305 def actionReason @actionReason end |
#agent ⇒ Object
0-* [ Contract::Agent ]
306 307 308 |
# File 'lib/fhir/resources/Contract.rb', line 306 def agent @agent end |
#applies ⇒ Object
0-1 Period
297 298 299 |
# File 'lib/fhir/resources/Contract.rb', line 297 def applies @applies end |
#authority ⇒ Object
0-* [ Reference(Organization) ]
300 301 302 |
# File 'lib/fhir/resources/Contract.rb', line 300 def @authority end |
#bindingAttachment ⇒ Object
0-1 Attachment
310 311 312 |
# File 'lib/fhir/resources/Contract.rb', line 310 def bindingAttachment @bindingAttachment end |
#bindingReference ⇒ Object
0-1 Reference(Composition|DocumentReference|QuestionnaireResponse)
311 312 313 |
# File 'lib/fhir/resources/Contract.rb', line 311 def bindingReference @bindingReference end |
#contained ⇒ Object
0-* [ Resource ]
292 293 294 |
# File 'lib/fhir/resources/Contract.rb', line 292 def contained @contained end |
#domain ⇒ Object
0-* [ Reference(Location) ]
301 302 303 |
# File 'lib/fhir/resources/Contract.rb', line 301 def domain @domain end |
#extension ⇒ Object
0-* [ Extension ]
293 294 295 |
# File 'lib/fhir/resources/Contract.rb', line 293 def extension @extension end |
#friendly ⇒ Object
0-* [ Contract::Friendly ]
312 313 314 |
# File 'lib/fhir/resources/Contract.rb', line 312 def friendly @friendly end |
#id ⇒ Object
0-1 id
287 288 289 |
# File 'lib/fhir/resources/Contract.rb', line 287 def id @id end |
#identifier ⇒ Object
0-1 Identifier
295 296 297 |
# File 'lib/fhir/resources/Contract.rb', line 295 def identifier @identifier end |
#implicitRules ⇒ Object
0-1 uri
289 290 291 |
# File 'lib/fhir/resources/Contract.rb', line 289 def implicitRules @implicitRules end |
#issued ⇒ Object
0-1 dateTime
296 297 298 |
# File 'lib/fhir/resources/Contract.rb', line 296 def issued @issued end |
#language ⇒ Object
0-1 code
290 291 292 |
# File 'lib/fhir/resources/Contract.rb', line 290 def language @language end |
#legal ⇒ Object
0-* [ Contract::Legal ]
313 314 315 |
# File 'lib/fhir/resources/Contract.rb', line 313 def legal @legal end |
#meta ⇒ Object
0-1 Meta
288 289 290 |
# File 'lib/fhir/resources/Contract.rb', line 288 def @meta end |
#modifierExtension ⇒ Object
0-* [ Extension ]
294 295 296 |
# File 'lib/fhir/resources/Contract.rb', line 294 def modifierExtension @modifierExtension end |
#rule ⇒ Object
0-* [ Contract::Rule ]
314 315 316 |
# File 'lib/fhir/resources/Contract.rb', line 314 def rule @rule end |
#signer ⇒ Object
0-* [ Contract::Signer ]
307 308 309 |
# File 'lib/fhir/resources/Contract.rb', line 307 def signer @signer end |
#subject ⇒ Object
0-* [ Reference(Resource) ]
298 299 300 |
# File 'lib/fhir/resources/Contract.rb', line 298 def subject @subject end |
#subType ⇒ Object
0-* [ CodeableConcept ]
303 304 305 |
# File 'lib/fhir/resources/Contract.rb', line 303 def subType @subType end |
#term ⇒ Object
0-* [ Contract::Term ]
309 310 311 |
# File 'lib/fhir/resources/Contract.rb', line 309 def term @term end |
#text ⇒ Object
0-1 Narrative
291 292 293 |
# File 'lib/fhir/resources/Contract.rb', line 291 def text @text end |
#topic ⇒ Object
0-* [ Reference(Resource) ]
299 300 301 |
# File 'lib/fhir/resources/Contract.rb', line 299 def topic @topic end |
#type ⇒ Object
0-1 CodeableConcept
302 303 304 |
# File 'lib/fhir/resources/Contract.rb', line 302 def type @type end |
#valuedItem ⇒ Object
0-* [ Contract::ValuedItem ]
308 309 310 |
# File 'lib/fhir/resources/Contract.rb', line 308 def valuedItem @valuedItem end |
Instance Method Details
#resourceType ⇒ Object
316 317 318 |
# File 'lib/fhir/resources/Contract.rb', line 316 def resourceType 'Contract' end |