cardea.fhir.Task

class cardea.fhir.Task(dict_values=None)

A task to be performed.

Parameters
  • resourceType – This is a Task resource

  • identifier – The business identifier for this task.

  • definitionUri – A reference to a formal or informal definition of the task. For example, a protocol, a step within a defined workflow definition, etc.

  • definitionReference – A reference to a formal or informal definition of the task. For example, a protocol, a step within a defined workflow definition, etc.

  • basedOn – BasedOn refers to a higher-level authorization that triggered the creation of the task. It references a “request” resource such as a ProcedureRequest, MedicationRequest, ProcedureRequest, CarePlan, etc. which is distinct from the “request” resource the task is seeking to fulfil. This latter resource is referenced by FocusOn. For example, based on a ProcedureRequest (= BasedOn), a task is created to fulfil a procedureRequest ( = FocusOn ) to collect a specimen from a patient.

  • groupIdentifier – An identifier that links together multiple tasks and other requests that were created in the same context.

  • partOf – Task that this particular task is part of.

  • status – The current status of the task.

  • statusReason – An explanation as to why this task is held, failed, was refused, etc.

  • businessStatus – Contains business-specific nuances of the business state.

  • intent – Indicates the “level” of actionability associated with the Task. I.e. Is this a proposed task, a planned task, an actionable task, etc.

  • priority – Indicates how quickly the Task should be addressed with respect to other requests.

  • code – A name or code (or both) briefly describing what the task involves.

  • description – A free-text description of what is to be performed.

  • focus – The request being actioned or the resource being manipulated by this task.

  • for – The entity who benefits from the performance of the service specified in the task (e.g., the patient).

  • context – The healthcare event (e.g. a patient and healthcare provider interaction) during which this task was created.

  • executionPeriod – Identifies the time action was first taken against the task (start) and/or the time final action was taken against the task prior to marking it as completed (end).

  • authoredOn – The date and time this task was created.

  • lastModified – The date and time of last modification to this task.

  • requester – The creator of the task.

  • performerType – The type of participant that can execute the task.

  • owner – Individual organization or Device currently responsible for task execution.

  • reason – A description or code indicating why this task needs to be performed.

  • note – Free-text information captured about the task as it progresses.

  • relevantHistory – Links to Provenance records for past versions of this Task that identify key state transitions or updates that are likely to be relevant to a user looking at the current version of the task.

  • restriction – If the Task.focus is a request resource and the task is seeking fulfillment (i.e is asking for the request to be actioned), this element identifies any limitations on what parts of the referenced request should be actioned.

  • input – Additional information that may be needed in the execution of the task.

  • output – Outputs produced by the Task.

__init__(dict_values=None)

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__([dict_values])

Initialize self.

assert_type()

Checks class values follow set possible enumerations.

get_dataframe()

Returns dataframe from class attribute values.

get_eligible_relationships()

Returns class relationships for attributes that are used.

get_id()

Returns fhir class identifier.

get_relationships()

Returns class relationships.

set_attributes(dict_values)

Sets values to class attributes.