Class: FHIR::Task

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

Defined Under Namespace

Classes: Input, Output, Restriction

Constant Summary collapse

SEARCH_PARAMS =
['authored-on', 'based-on', 'business-status', 'code', 'encounter', 'focus', 'group-identifier', 'identifier', 'intent', 'modified', 'owner', 'part-of', 'patient', 'performer', 'period', 'priority', 'requester', 'status', 'subject']
METADATA =
{
  'id' => {'type'=>'id', 'path'=>'Task.id', 'min'=>0, 'max'=>1},
  'meta' => {'type'=>'Meta', 'path'=>'Task.meta', 'min'=>0, 'max'=>1},
  'implicitRules' => {'type'=>'uri', 'path'=>'Task.implicitRules', 'min'=>0, 'max'=>1},
  'language' => {'valid_codes'=>{'urn:ietf:bcp:47'=>['ar', 'bn', 'cs', 'da', 'de', 'de-AT', 'de-CH', 'de-DE', 'el', 'en', 'en-AU', 'en-CA', 'en-GB', 'en-IN', 'en-NZ', 'en-SG', 'en-US', 'es', 'es-AR', 'es-ES', 'es-UY', 'fi', 'fr', 'fr-BE', 'fr-CH', 'fr-FR', 'fy', 'fy-NL', 'hi', 'hr', 'it', 'it-CH', 'it-IT', 'ja', 'ko', 'nl', 'nl-BE', 'nl-NL', 'no', 'no-NO', 'pa', 'pl', 'pt', 'pt-BR', 'ru', 'ru-RU', 'sr', 'sr-RS', 'sv', 'sv-SE', 'te', 'zh', 'zh-CN', 'zh-HK', 'zh-SG', 'zh-TW']}, 'type'=>'code', 'path'=>'Task.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'preferred', 'uri'=>'http://hl7.org/fhir/ValueSet/languages'}},
  'text' => {'type'=>'Narrative', 'path'=>'Task.text', 'min'=>0, 'max'=>1},
  'contained' => {'type'=>'Resource', 'path'=>'Task.contained', 'min'=>0, 'max'=>Float::INFINITY},
  'extension' => {'type'=>'Extension', 'path'=>'Task.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'Task.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'identifier' => {'type'=>'Identifier', 'path'=>'Task.identifier', 'min'=>0, 'max'=>Float::INFINITY},
  'instantiatesCanonical' => {'type'=>'canonical', 'path'=>'Task.instantiatesCanonical', 'min'=>0, 'max'=>1},
  'instantiatesUri' => {'type'=>'uri', 'path'=>'Task.instantiatesUri', 'min'=>0, 'max'=>1},
  'basedOn' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'Task.basedOn', 'min'=>0, 'max'=>Float::INFINITY},
  'groupIdentifier' => {'type'=>'Identifier', 'path'=>'Task.groupIdentifier', 'min'=>0, 'max'=>1},
  'partOf' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Task'], 'type'=>'Reference', 'path'=>'Task.partOf', 'min'=>0, 'max'=>Float::INFINITY},
  'status' => {'valid_codes'=>{'http://hl7.org/fhir/task-status'=>['draft', 'requested', 'received', 'accepted', 'rejected', 'ready', 'cancelled', 'in-progress', 'on-hold', 'failed', 'completed', 'entered-in-error']}, 'type'=>'code', 'path'=>'Task.status', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/task-status|4.0.0'}},
  'statusReason' => {'type'=>'CodeableConcept', 'path'=>'Task.statusReason', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example'}},
  'businessStatus' => {'type'=>'CodeableConcept', 'path'=>'Task.businessStatus', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example'}},
  'intent' => {'valid_codes'=>{'http://hl7.org/fhir/task-intent'=>['unknown'], 'http://hl7.org/fhir/request-intent'=>['proposal', 'plan', 'order', 'original-order', 'reflex-order', 'filler-order', 'instance-order', 'option', 'directive']}, 'type'=>'code', 'path'=>'Task.intent', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/task-intent|4.0.0'}},
  'priority' => {'valid_codes'=>{'http://hl7.org/fhir/request-priority'=>['routine', 'urgent', 'asap', 'stat']}, 'type'=>'code', 'path'=>'Task.priority', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/request-priority|4.0.0'}},
  'code' => {'valid_codes'=>{'http://hl7.org/fhir/CodeSystem/task-code'=>['approve', 'fulfill', 'abort', 'replace', 'change', 'suspend', 'resume']}, 'type'=>'CodeableConcept', 'path'=>'Task.code', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/task-code'}},
  'description' => {'type'=>'string', 'path'=>'Task.description', 'min'=>0, 'max'=>1},
  'focus' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'Task.focus', 'min'=>0, 'max'=>1},
  'for' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'Task.for', 'min'=>0, 'max'=>1},
  'encounter' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Encounter'], 'type'=>'Reference', 'path'=>'Task.encounter', 'min'=>0, 'max'=>1},
  'executionPeriod' => {'type'=>'Period', 'path'=>'Task.executionPeriod', 'min'=>0, 'max'=>1},
  'authoredOn' => {'type'=>'dateTime', 'path'=>'Task.authoredOn', 'min'=>0, 'max'=>1},
  'lastModified' => {'type'=>'dateTime', 'path'=>'Task.lastModified', 'min'=>0, 'max'=>1},
  'requester' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/Organization', 'http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/PractitionerRole', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson'], 'type'=>'Reference', 'path'=>'Task.requester', 'min'=>0, 'max'=>1},
  'performerType' => {'valid_codes'=>{'http://snomed.info/sct'=>['1421009', '3430008', '3842006', '4162009', '5275007', '6816002', '6868009', '8724009', '11661002', '11911009', '11935004', '13580004', '14698002', '17561000', '18803008', '18850004', '19244007', '20145008', '21365001', '21450003', '22515006', '22731001', '22983004', '23278007', '24430003', '24590004', '25961008', '26042002', '26369006', '28229004', '28411006', '28544002', '36682004', '37154003', '37504001', '39677007', '40127002', '40204001', '40570005', '41672002', '41904004', '43702002', '44652006', '45419001', '45440000', '45544007', '45956004', '46255001', '48740002', '49203003', '49993003', '50149000', '54503009', '56397003', '56466003', '56542007', '56545009', '57654006', '59058001', '59169001', '59944000', '60008001', '61207006', '61246008', '61345009', '61894003', '62247001', '63098009', '66476003', '66862007', '68867008', '68950000', '69280009', '71838004', '73265009', '75271001', '76166008', '76231001', '76899008', '78703002', '78729002', '79898004', '80409005', '80546007', '80584001', '80933006', '81464008', '82296001', '83189004', '83273008', '83685006', '85733003', '88189002', '88475002', '90201008', '90655003', '106289002', '106291005', '106292003', '106293008', '106294002', '106296000', '106330007', '112247003', '158965000', '158966004', '158967008', '158968003', '158969006', '158970007', '158971006', '158972004', '158973009', '158974003', '158975002', '158977005', '158978000', '158979008', '158980006', '158983008', '158984002', '158985001', '158986000', '158987009', '158988004', '158989007', '158990003', '158992006', '158993001', '158994007', '158995008', '158996009', '158997000', '158998005', '158999002', '159001001', '159002008', '159003003', '159004009', '159005005', '159006006', '159007002', '159010009', '159011008', '159012001', '159013006', '159014000', '159016003', '159017007', '159018002', '159019005', '159021000', '159022007', '159025009', '159026005', '159027001', '159028006', '159033005', '159034004', '159035003', '159036002', '159037006', '159038001', '159039009', '159040006', '159041005', '159141008', '159972006', '160008000', '224529009', '224530004', '224531000', '224532007', '224533002', '224534008', '224535009', '224536005', '224537001', '224538006', '224540001', '224541002', '224542009', '224543004', '224544005', '224545006', '224546007', '224547003', '224548008', '224549000', '224550000', '224551001', '224552008', '224553003', '224554009', '224555005', '224556006', '224557002', '224558007', '224559004', '224560009', '224561008', '224562001', '224563006', '224564000', '224565004', '224566003', '224567007', '224569005', '224570006', '224571005', '224572003', '224573008', '224574002', '224575001', '224576000', '224577009', '224578004', '224579007', '224580005', '224581009', '224583007', '224584001', '224585000', '224586004', '224587008', '224588003', '224589006', '224590002', '224591003', '224592005', '224593000', '224594006', '224595007', '224596008', '224597004', '224598009', '224599001', '224600003', '224601004', '224602006', '224603001', '224604007', '224605008', '224606009', '224607000', '224608005', '224609002', '224610007', '224614003', '224615002', '224620002', '224621003', '224622005', '224623000', '224624006', '224625007', '224626008', '224936003', '225726006', '225727002', '265937000', '265939002', '283875005', '302211009', '303124005', '303129000', '303133007', '303134001', '304291006', '304292004', '307988006', '308002005', '309294001', '309295000', '309296004', '309322005', '309323000', '309324006', '309326008', '309327004', '309328009', '309329001', '309330006', '309331005', '309332003', '309333008', '309334002', '309335001', '309336000', '309337009', '309338004', '309339007', '309340009', '309341008', '309342001', '309343006', '309345004', '309346003', '309347007', '309348002', '309349005', '309350005', '309351009', '309352002', '309353007', '309354001', '309355000', '309356004', '309357008', '309358003', '309359006', '309360001', '309361002', '309362009', '309363004', '309364005', '309365006', '309366007', '309367003', '309368008', '309369000', '309371000', '309372007', '309373002', '309374008', '309375009', '309376005', '309377001', '309378006', '309379003', '309380000', '309381001', '309382008', '309383003', '309384009', '309385005', '309386006', '309388007', '309389004', '309390008', '309391007', '309392000', '309393005', '309394004', '309395003', '309396002', '309397006', '309398001', '309399009', '309400002', '309401003', '309402005', '309403000', '309404006', '309409001', '309410006', '309411005', '309412003', '309413008', '309414002', '309415001', '309416000', '309417009', '309418004', '309419007', '309420001', '309421002', '309422009', '309423004', '309427003', '309428008', '309429000', '309434001', '309435000', '309436004', '309437008', '309439006', '309440008', '309441007', '309442000', '309443005', '309444004', '309445003', '309446002', '309450009', '309452001', '309453006', '309454000', '309455004', '309459005', '309460000', '310170009', '310171008', '310172001', '310173006', '310174000', '310175004', '310176003', '310177007', '310178002', '310179005', '310180008', '310181007', '310182000', '310183005', '310184004', '310185003', '310186002', '310187006', '310188001', '310189009', '310190000', '310191001', '310192008', '310193003', '310194009', '310512001', '311441001', '312485001', '372102007', '387619007', '394572006', '394618009', '397824005', '397897005', '397903001', '397908005', '398130009', '398238009', '404940000', '405277009', '405278004', '405279007', '405623001', '405684005', '405685006', '408798009', '408799001', '409974004', '409975003', '413854007', '415075003', '415506007', '416160000', '420409002', '420678001', '421841007', '422140007', '422234006', '432100008', '442867008', '443090005', '444912007', '445313000', '445451001', '446050000', '446701002', '449161006', '471302004', '3981000175106', '231189271000087109', '236749831000087105', '258508741000087105', '260767431000087107', '285631911000087106', '291705421000087106', '341320851000087105', '368890881000087105', '398480381000087106', '416186861000087101', '450044741000087104', '465511991000087105', '494782281000087101', '619197631000087102', '623630151000087105', '666997781000087107', '673825031000087109', '682131381000087105', '724111801000087104', '747936471000087102', '766788081000087100', '767205061000087108', '813758161000087106', '822410621000087104', '847240411000087102', '853827051000087104', '926871431000087103', '954544641000087107', '956387501000087102', '969118571000087109', '984095901000087105', '990928611000087105', '999480451000087102', '999480461000087104']}, 'type'=>'CodeableConcept', 'path'=>'Task.performerType', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'preferred', 'uri'=>'http://hl7.org/fhir/ValueSet/performer-role'}},
  'owner' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/PractitionerRole', 'http://hl7.org/fhir/StructureDefinition/Organization', 'http://hl7.org/fhir/StructureDefinition/CareTeam', 'http://hl7.org/fhir/StructureDefinition/HealthcareService', 'http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson'], 'type'=>'Reference', 'path'=>'Task.owner', 'min'=>0, 'max'=>1},
  'location' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Location'], 'type'=>'Reference', 'path'=>'Task.location', 'min'=>0, 'max'=>1},
  'reasonCode' => {'type'=>'CodeableConcept', 'path'=>'Task.reasonCode', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example'}},
  'reasonReference' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'Task.reasonReference', 'min'=>0, 'max'=>1},
  'insurance' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Coverage', 'http://hl7.org/fhir/StructureDefinition/ClaimResponse'], 'type'=>'Reference', 'path'=>'Task.insurance', 'min'=>0, 'max'=>Float::INFINITY},
  'note' => {'type'=>'Annotation', 'path'=>'Task.note', 'min'=>0, 'max'=>Float::INFINITY},
  'relevantHistory' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Provenance'], 'type'=>'Reference', 'path'=>'Task.relevantHistory', 'min'=>0, 'max'=>Float::INFINITY},
  'restriction' => {'type'=>'Task::Restriction', 'path'=>'Task.restriction', 'min'=>0, 'max'=>1},
  'input' => {'type'=>'Task::Input', 'path'=>'Task.input', 'min'=>0, 'max'=>Float::INFINITY},
  'output' => {'type'=>'Task::Output', 'path'=>'Task.output', 'min'=>0, 'max'=>Float::INFINITY}
}

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#authoredOnObject

0-1 dateTime



335
336
337
# File 'lib/fhir_models/fhir/resources/Task.rb', line 335

def authoredOn
  @authoredOn
end

#basedOnObject

0-* [ Reference(Resource) ]



321
322
323
# File 'lib/fhir_models/fhir/resources/Task.rb', line 321

def basedOn
  @basedOn
end

#businessStatusObject

0-1 CodeableConcept



326
327
328
# File 'lib/fhir_models/fhir/resources/Task.rb', line 326

def businessStatus
  @businessStatus
end

#codeObject

0-1 CodeableConcept



329
330
331
# File 'lib/fhir_models/fhir/resources/Task.rb', line 329

def code
  @code
end

#containedObject

0-* [ Resource ]



315
316
317
# File 'lib/fhir_models/fhir/resources/Task.rb', line 315

def contained
  @contained
end

#descriptionObject

0-1 string



330
331
332
# File 'lib/fhir_models/fhir/resources/Task.rb', line 330

def description
  @description
end

#encounterObject

0-1 Reference(Encounter)



333
334
335
# File 'lib/fhir_models/fhir/resources/Task.rb', line 333

def encounter
  @encounter
end

#executionPeriodObject

0-1 Period



334
335
336
# File 'lib/fhir_models/fhir/resources/Task.rb', line 334

def executionPeriod
  @executionPeriod
end

#extensionObject

0-* [ Extension ]



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

def extension
  @extension
end

#focusObject

0-1 Reference(Resource)



331
332
333
# File 'lib/fhir_models/fhir/resources/Task.rb', line 331

def focus
  @focus
end

#forObject

0-1 Reference(Resource)



332
333
334
# File 'lib/fhir_models/fhir/resources/Task.rb', line 332

def for
  @for
end

#groupIdentifierObject

0-1 Identifier



322
323
324
# File 'lib/fhir_models/fhir/resources/Task.rb', line 322

def groupIdentifier
  @groupIdentifier
end

#idObject

0-1 id



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

def id
  @id
end

#identifierObject

0-* [ Identifier ]



318
319
320
# File 'lib/fhir_models/fhir/resources/Task.rb', line 318

def identifier
  @identifier
end

#implicitRulesObject

0-1 uri



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

def implicitRules
  @implicitRules
end

#inputObject

0-* [ Task::Input ]



347
348
349
# File 'lib/fhir_models/fhir/resources/Task.rb', line 347

def input
  @input
end

#instantiatesCanonicalObject

0-1 canonical



319
320
321
# File 'lib/fhir_models/fhir/resources/Task.rb', line 319

def instantiatesCanonical
  @instantiatesCanonical
end

#instantiatesUriObject

0-1 uri



320
321
322
# File 'lib/fhir_models/fhir/resources/Task.rb', line 320

def instantiatesUri
  @instantiatesUri
end

#insuranceObject

0-* [ Reference(Coverage|ClaimResponse) ]



343
344
345
# File 'lib/fhir_models/fhir/resources/Task.rb', line 343

def insurance
  @insurance
end

#intentObject

1-1 code



327
328
329
# File 'lib/fhir_models/fhir/resources/Task.rb', line 327

def intent
  @intent
end

#languageObject

0-1 code



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

def language
  @language
end

#lastModifiedObject

0-1 dateTime



336
337
338
# File 'lib/fhir_models/fhir/resources/Task.rb', line 336

def lastModified
  @lastModified
end

#locationObject

0-1 Reference(Location)



340
341
342
# File 'lib/fhir_models/fhir/resources/Task.rb', line 340

def location
  @location
end

#metaObject

0-1 Meta



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

def meta
  @meta
end

#modifierExtensionObject

0-* [ Extension ]



317
318
319
# File 'lib/fhir_models/fhir/resources/Task.rb', line 317

def modifierExtension
  @modifierExtension
end

#noteObject

0-* [ Annotation ]



344
345
346
# File 'lib/fhir_models/fhir/resources/Task.rb', line 344

def note
  @note
end

#outputObject

0-* [ Task::Output ]



348
349
350
# File 'lib/fhir_models/fhir/resources/Task.rb', line 348

def output
  @output
end

#ownerObject

0-1 Reference(Practitioner|PractitionerRole|Organization|CareTeam|HealthcareService|Patient|Device|RelatedPerson)



339
340
341
# File 'lib/fhir_models/fhir/resources/Task.rb', line 339

def owner
  @owner
end

#partOfObject

0-* [ Reference(Task) ]



323
324
325
# File 'lib/fhir_models/fhir/resources/Task.rb', line 323

def partOf
  @partOf
end

#performerTypeObject

0-* [ CodeableConcept ]



338
339
340
# File 'lib/fhir_models/fhir/resources/Task.rb', line 338

def performerType
  @performerType
end

#priorityObject

0-1 code



328
329
330
# File 'lib/fhir_models/fhir/resources/Task.rb', line 328

def priority
  @priority
end

#reasonCodeObject

0-1 CodeableConcept



341
342
343
# File 'lib/fhir_models/fhir/resources/Task.rb', line 341

def reasonCode
  @reasonCode
end

#reasonReferenceObject

0-1 Reference(Resource)



342
343
344
# File 'lib/fhir_models/fhir/resources/Task.rb', line 342

def reasonReference
  @reasonReference
end

#relevantHistoryObject

0-* [ Reference(Provenance) ]



345
346
347
# File 'lib/fhir_models/fhir/resources/Task.rb', line 345

def relevantHistory
  @relevantHistory
end

#requesterObject

0-1 Reference(Device|Organization|Patient|Practitioner|PractitionerRole|RelatedPerson)



337
338
339
# File 'lib/fhir_models/fhir/resources/Task.rb', line 337

def requester
  @requester
end

#restrictionObject

0-1 Task::Restriction



346
347
348
# File 'lib/fhir_models/fhir/resources/Task.rb', line 346

def restriction
  @restriction
end

#statusObject

1-1 code



324
325
326
# File 'lib/fhir_models/fhir/resources/Task.rb', line 324

def status
  @status
end

#statusReasonObject

0-1 CodeableConcept



325
326
327
# File 'lib/fhir_models/fhir/resources/Task.rb', line 325

def statusReason
  @statusReason
end

#textObject

0-1 Narrative



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

def text
  @text
end

Instance Method Details

#resourceTypeObject



350
351
352
# File 'lib/fhir_models/fhir/resources/Task.rb', line 350

def resourceType
  'Task'
end