Class: FHIR::R5::Task

Inherits:
Model show all
Includes:
Hashable, Json, Xml
Defined in:
lib/fhir_models/r5/generated/resources/Task.rb

Defined Under Namespace

Classes: Input, Output, Performer, Restriction

Constant Summary collapse

SEARCH_PARAMS =
['actor', 'authored-on', 'based-on', 'business-status', 'code', 'encounter', 'focus', 'group-identifier', 'identifier', 'intent', 'modified', 'output', 'owner', 'part-of', 'patient', 'performer', 'period', 'priority', 'requestedperformer-reference', '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' => {'type'=>'code', 'path'=>'Task.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'additional'=>[{'purpose'=>'starter', 'valueSet'=>'http://hl7.org/fhir/ValueSet/languages'}], 'uri'=>'http://hl7.org/fhir/ValueSet/all-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'}},
  'statusReason' => {'type'=>'CodeableReference', 'path'=>'Task.statusReason', 'min'=>0, 'max'=>1},
  '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']}, 'type'=>'code', 'path'=>'Task.intent', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/task-intent'}},
  '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'}},
  'doNotPerform' => {'type'=>'boolean', 'path'=>'Task.doNotPerform', 'min'=>0, 'max'=>1},
  'code' => {'valid_codes'=>{'http://hl7.org/fhir/CodeSystem/task-code'=>['approve', 'fulfill', 'instantiate', '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},
  'requestedPeriod' => {'type'=>'Period', 'path'=>'Task.requestedPeriod', '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},
  'requestedPerformer' => {'type'=>'CodeableReference', 'path'=>'Task.requestedPerformer', 'min'=>0, 'max'=>Float::INFINITY},
  '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/Patient', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson'], 'type'=>'Reference', 'path'=>'Task.owner', 'min'=>0, 'max'=>1},
  'performer' => {'type'=>'Task::Performer', 'path'=>'Task.performer', 'min'=>0, 'max'=>Float::INFINITY},
  'location' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Location'], 'type'=>'Reference', 'path'=>'Task.location', 'min'=>0, 'max'=>1},
  'reason' => {'type'=>'CodeableReference', 'path'=>'Task.reason', 'min'=>0, 'max'=>Float::INFINITY},
  '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}
}

Constants included from FHIR::R4

FHIR::R4::PRIMITIVES, FHIR::R4::RESOURCES, FHIR::R4::TYPES

Constants included from FHIR

Account, ActivityDefinition, Address, AdverseEvent, Age, AllergyIntolerance, Annotation, Appointment, AppointmentResponse, Attachment, AuditEvent, BackboneElement, Basic, Binary, BiologicallyDerivedProduct, BodyStructure, Bundle, CapabilityStatement, CarePlan, CareTeam, CatalogEntry, ChargeItem, ChargeItemDefinition, Claim, ClaimResponse, ClinicalImpression, CodeSystem, CodeableConcept, Coding, Communication, CommunicationRequest, CompartmentDefinition, Composition, ConceptMap, Condition, Consent, ContactDetail, ContactPoint, Contract, Contributor, Count, Coverage, CoverageEligibilityRequest, CoverageEligibilityResponse, DataRequirement, Definitions, DetectedIssue, Device, DeviceDefinition, DeviceMetric, DeviceRequest, DeviceUseStatement, DiagnosticReport, Distance, DocumentManifest, DocumentReference, DomainResource, Dosage, Duration, EffectEvidenceSynthesis, Element, ElementDefinition, Encounter, Endpoint, EnrollmentRequest, EnrollmentResponse, EpisodeOfCare, EventDefinition, Evidence, EvidenceVariable, ExampleScenario, ExplanationOfBenefit, Expression, Extension, FamilyMemberHistory, Flag, Goal, GraphDefinition, Group, GuidanceResponse, HealthcareService, HumanName, Identifier, ImagingStudy, Immunization, ImmunizationEvaluation, ImmunizationRecommendation, ImplementationGuide, InsurancePlan, Invoice, Library, Linkage, List, Location, MarketingStatus, Measure, MeasureReport, Media, Medication, MedicationAdministration, MedicationDispense, MedicationKnowledge, MedicationRequest, MedicationStatement, MedicinalProduct, MedicinalProductAuthorization, MedicinalProductContraindication, MedicinalProductIndication, MedicinalProductIngredient, MedicinalProductInteraction, MedicinalProductManufactured, MedicinalProductPackaged, MedicinalProductPharmaceutical, MedicinalProductUndesirableEffect, MessageDefinition, MessageHeader, Meta, MolecularSequence, Money, NamingSystem, Narrative, NutritionOrder, Observation, ObservationDefinition, OperationDefinition, OperationOutcome, Organization, OrganizationAffiliation, PRIMITIVES, ParameterDefinition, Parameters, Patient, PaymentNotice, PaymentReconciliation, Period, Person, PlanDefinition, Population, Practitioner, PractitionerRole, Procedure, ProdCharacteristic, ProductShelfLife, Provenance, Quantity, Questionnaire, QuestionnaireResponse, FHIR::RESOURCES, FHIR::Range, FHIR::Ratio, FHIR::Reference, FHIR::RelatedArtifact, FHIR::RelatedPerson, FHIR::RequestGroup, FHIR::ResearchDefinition, FHIR::ResearchElementDefinition, FHIR::ResearchStudy, FHIR::ResearchSubject, FHIR::Resource, FHIR::RiskAssessment, FHIR::RiskEvidenceSynthesis, SampledData, Schedule, SearchParameter, ServiceRequest, Signature, Slot, Specimen, SpecimenDefinition, StructureDefinition, StructureDefinitionCompare, StructureMap, Subscription, Substance, SubstanceAmount, SubstanceNucleicAcid, SubstancePolymer, SubstanceProtein, SubstanceReferenceInformation, SubstanceSourceMaterial, SubstanceSpecification, SupplyDelivery, SupplyRequest, TYPES, Task, TerminologyCapabilities, TestReport, TestScript, Timing, TriggerDefinition, UsageContext, ValueSet, VerificationResult, VisionPrescription

Constants included from FHIR::R5

PRIMITIVES, RESOURCES, TYPES

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from FHIR::R4

#fhir_version_string, #versioned_fhir_module

Methods included from FHIR

default_logger, fhir_version_string, logger, logger=, primitive?, versioned_fhir_module

Methods included from ClassMethods

#from_contents

Methods included from ClassXml

#from_xml, #valid?, #validate, #xml_node_to_hash

Methods included from InstanceXml

#hash_to_xml_node, #to_xml

Methods included from ClassJson

#from_json

Methods included from InstanceJson

#to_json

Methods included from Hashable

#from_hash, #to_hash

Methods included from FHIR::R5

#fhir_version_string, #versioned_fhir_module

Methods inherited from Model

#==, #attribute_mismatch, #compare_attribute, #each_element, #equals?, #hash, #initialize, #method_missing, #mismatch, #primitive?, #respond_to_missing?, #to_reference, #valid?, #validate, #validate_profile

Methods included from Deprecate

#deprecate

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



380
381
382
# File 'lib/fhir_models/r5/generated/resources/Task.rb', line 380

def authoredOn
  @authoredOn
end

#basedOnObject

0-* [ Reference(Resource) ]



364
365
366
# File 'lib/fhir_models/r5/generated/resources/Task.rb', line 364

def basedOn
  @basedOn
end

#businessStatusObject

0-1 CodeableConcept



369
370
371
# File 'lib/fhir_models/r5/generated/resources/Task.rb', line 369

def businessStatus
  @businessStatus
end

#codeObject

0-1 CodeableConcept



373
374
375
# File 'lib/fhir_models/r5/generated/resources/Task.rb', line 373

def code
  @code
end

#containedObject

0-* [ Resource ]



358
359
360
# File 'lib/fhir_models/r5/generated/resources/Task.rb', line 358

def contained
  @contained
end

#descriptionObject

0-1 string



374
375
376
# File 'lib/fhir_models/r5/generated/resources/Task.rb', line 374

def description
  @description
end

#doNotPerformObject

0-1 boolean



372
373
374
# File 'lib/fhir_models/r5/generated/resources/Task.rb', line 372

def doNotPerform
  @doNotPerform
end

#encounterObject

0-1 Reference(Encounter)



377
378
379
# File 'lib/fhir_models/r5/generated/resources/Task.rb', line 377

def encounter
  @encounter
end

#executionPeriodObject

0-1 Period



379
380
381
# File 'lib/fhir_models/r5/generated/resources/Task.rb', line 379

def executionPeriod
  @executionPeriod
end

#extensionObject

0-* [ Extension ]



359
360
361
# File 'lib/fhir_models/r5/generated/resources/Task.rb', line 359

def extension
  @extension
end

#focusObject

0-1 Reference(Resource)



375
376
377
# File 'lib/fhir_models/r5/generated/resources/Task.rb', line 375

def focus
  @focus
end

#forObject

0-1 Reference(Resource)



376
377
378
# File 'lib/fhir_models/r5/generated/resources/Task.rb', line 376

def for
  @for
end

#groupIdentifierObject

0-1 Identifier



365
366
367
# File 'lib/fhir_models/r5/generated/resources/Task.rb', line 365

def groupIdentifier
  @groupIdentifier
end

#idObject

0-1 id



353
354
355
# File 'lib/fhir_models/r5/generated/resources/Task.rb', line 353

def id
  @id
end

#identifierObject

0-* [ Identifier ]



361
362
363
# File 'lib/fhir_models/r5/generated/resources/Task.rb', line 361

def identifier
  @identifier
end

#implicitRulesObject

0-1 uri



355
356
357
# File 'lib/fhir_models/r5/generated/resources/Task.rb', line 355

def implicitRules
  @implicitRules
end

#inputObject

0-* [ Task::Input ]



392
393
394
# File 'lib/fhir_models/r5/generated/resources/Task.rb', line 392

def input
  @input
end

#instantiatesCanonicalObject

0-1 canonical



362
363
364
# File 'lib/fhir_models/r5/generated/resources/Task.rb', line 362

def instantiatesCanonical
  @instantiatesCanonical
end

#instantiatesUriObject

0-1 uri



363
364
365
# File 'lib/fhir_models/r5/generated/resources/Task.rb', line 363

def instantiatesUri
  @instantiatesUri
end

#insuranceObject

0-* [ Reference(Coverage|ClaimResponse) ]



388
389
390
# File 'lib/fhir_models/r5/generated/resources/Task.rb', line 388

def insurance
  @insurance
end

#intentObject

1-1 code



370
371
372
# File 'lib/fhir_models/r5/generated/resources/Task.rb', line 370

def intent
  @intent
end

#languageObject

0-1 code



356
357
358
# File 'lib/fhir_models/r5/generated/resources/Task.rb', line 356

def language
  @language
end

#lastModifiedObject

0-1 dateTime



381
382
383
# File 'lib/fhir_models/r5/generated/resources/Task.rb', line 381

def lastModified
  @lastModified
end

#locationObject

0-1 Reference(Location)



386
387
388
# File 'lib/fhir_models/r5/generated/resources/Task.rb', line 386

def location
  @location
end

#metaObject

0-1 Meta



354
355
356
# File 'lib/fhir_models/r5/generated/resources/Task.rb', line 354

def meta
  @meta
end

#modifierExtensionObject

0-* [ Extension ]



360
361
362
# File 'lib/fhir_models/r5/generated/resources/Task.rb', line 360

def modifierExtension
  @modifierExtension
end

#noteObject

0-* [ Annotation ]



389
390
391
# File 'lib/fhir_models/r5/generated/resources/Task.rb', line 389

def note
  @note
end

#outputObject

0-* [ Task::Output ]



393
394
395
# File 'lib/fhir_models/r5/generated/resources/Task.rb', line 393

def output
  @output
end

#ownerObject

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



384
385
386
# File 'lib/fhir_models/r5/generated/resources/Task.rb', line 384

def owner
  @owner
end

#partOfObject

0-* [ Reference(Task) ]



366
367
368
# File 'lib/fhir_models/r5/generated/resources/Task.rb', line 366

def partOf
  @partOf
end

#performerObject

0-* [ Task::Performer ]



385
386
387
# File 'lib/fhir_models/r5/generated/resources/Task.rb', line 385

def performer
  @performer
end

#priorityObject

0-1 code



371
372
373
# File 'lib/fhir_models/r5/generated/resources/Task.rb', line 371

def priority
  @priority
end

#reasonObject

0-* [ CodeableReference ]



387
388
389
# File 'lib/fhir_models/r5/generated/resources/Task.rb', line 387

def reason
  @reason
end

#relevantHistoryObject

0-* [ Reference(Provenance) ]



390
391
392
# File 'lib/fhir_models/r5/generated/resources/Task.rb', line 390

def relevantHistory
  @relevantHistory
end

#requestedPerformerObject

0-* [ CodeableReference ]



383
384
385
# File 'lib/fhir_models/r5/generated/resources/Task.rb', line 383

def requestedPerformer
  @requestedPerformer
end

#requestedPeriodObject

0-1 Period



378
379
380
# File 'lib/fhir_models/r5/generated/resources/Task.rb', line 378

def requestedPeriod
  @requestedPeriod
end

#requesterObject

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



382
383
384
# File 'lib/fhir_models/r5/generated/resources/Task.rb', line 382

def requester
  @requester
end

#restrictionObject

0-1 Task::Restriction



391
392
393
# File 'lib/fhir_models/r5/generated/resources/Task.rb', line 391

def restriction
  @restriction
end

#statusObject

1-1 code



367
368
369
# File 'lib/fhir_models/r5/generated/resources/Task.rb', line 367

def status
  @status
end

#statusReasonObject

0-1 CodeableReference



368
369
370
# File 'lib/fhir_models/r5/generated/resources/Task.rb', line 368

def statusReason
  @statusReason
end

#textObject

0-1 Narrative



357
358
359
# File 'lib/fhir_models/r5/generated/resources/Task.rb', line 357

def text
  @text
end

Instance Method Details

#resourceTypeObject



395
396
397
# File 'lib/fhir_models/r5/generated/resources/Task.rb', line 395

def resourceType
  'Task'
end