PackagesCanonicalsLogsProblems
    Packages
    hie2.packages@1.0.1
    http://fhir.hie.moh.gov.my/StructureDefinition/Task-my-core
{
  "description": "A task to be performed.",
  "_filename": "StructureDefinition-Task-my-core.json",
  "package_name": "hie2.packages",
  "date": "2022-03-16T15:39:34.1423678Z",
  "derivation": "specialization",
  "meta": {
    "versionId": "5",
    "lastUpdated": "2022-03-16T15:40:47.356+00:00"
  },
  "publisher": "Malaysia MOH - HIE Steering Committee",
  "fhirVersion": "4.0.1",
  "name": "TaskMyCore",
  "mapping": [ {
    "uri": "http://hl7.org/fhir/workflow",
    "name": "Workflow Pattern",
    "identity": "workflow"
  }, {
    "uri": "http://hl7.org/v3",
    "name": "RIM Mapping",
    "identity": "rim"
  }, {
    "uri": "http://hl7.org/fhir/fivews",
    "name": "FiveWs Pattern Mapping",
    "identity": "w5"
  }, {
    "uri": "http://hl7.org/v2",
    "name": "HL7 v2 Mapping",
    "identity": "v2"
  } ],
  "abstract": false,
  "type": "Task",
  "experimental": null,
  "resourceType": "StructureDefinition",
  "title": "Task (MY Core)",
  "package_version": "1.0.1",
  "extension": [ {
    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
    "valueString": "Base.Workflow"
  }, {
    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
    "valueCode": "trial-use"
  }, {
    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
    "valueInteger": 2
  }, {
    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
    "valueCode": "not-classified"
  }, {
    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
    "valueCode": "oo"
  } ],
  "status": "active",
  "id": "b5e53cc9-d2a2-47c2-b746-bfc5257c9e97",
  "kind": "resource",
  "url": "http://fhir.hie.moh.gov.my/StructureDefinition/Task-my-core",
  "version": "1.0.0",
  "differential": {
    "element": [ {
      "id": "Task",
      "path": "Task",
      "short": "A task to be performed",
      "mapping": [ {
        "map": "Request, Event",
        "identity": "workflow"
      }, {
        "map": "ControlAct[moodCode=INT]",
        "identity": "rim"
      } ],
      "constraint": [ {
        "key": "inv-1",
        "human": "Last modified date must be greater than or equal to authored-on date.",
        "xpath": "not(exists(f:lastModified/@value)) or not(exists(f:authoredOn/@value)) or f:lastModified/@value >= f:authoredOn/@value",
        "source": "http://fhir.hie.moh.gov.my/StructureDefinition/Task",
        "severity": "error",
        "expression": "lastModified.exists().not() or authoredOn.exists().not() or lastModified >= authoredOn"
      } ],
      "definition": "A task to be performed."
    }, {
      "id": "Task.identifier",
      "path": "Task.identifier",
      "type": [ {
        "code": "Identifier"
      } ],
      "short": "Task Instance Identifier",
      "mapping": [ {
        "map": "Request.identifier, Event.identifier",
        "identity": "workflow"
      }, {
        "map": "FiveWs.identifier",
        "identity": "w5"
      }, {
        "map": ".id",
        "identity": "rim"
      } ],
      "definition": "The business identifier for this task."
    }, {
      "path": "Task.instantiatesCanonical",
      "requirements": "Enables a formal definition of how he task is to be performed, enabling automation.",
      "definition": "The URL pointing to a *FHIR*-defined protocol, guideline, orderset or other definition that is adhered to in whole or in part by this Task.",
      "short": "Formal definition of task",
      "mapping": [ {
        "map": "Request.instantiatesCanonical, Event.instantiatesCanonical",
        "identity": "workflow"
      }, {
        "map": ".outboundRelationship[typeCode=DEFN].target",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "canonical",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/ActivityDefinition" ]
      } ],
      "max": "1",
      "id": "Task.instantiatesCanonical",
      "isSummary": true
    }, {
      "path": "Task.instantiatesUri",
      "requirements": "Enables a formal definition of how he task is to be performed (e.g. using BPMN, BPEL, XPDL or other formal notation to be associated with a task), enabling automation.",
      "definition": "The URL pointing to an *externally* maintained  protocol, guideline, orderset or other definition that is adhered to in whole or in part by this Task.",
      "short": "Formal definition of task",
      "mapping": [ {
        "map": "Event.instantiatesUrl",
        "identity": "workflow"
      }, {
        "map": ".outboundRelationship[typeCode=DEFN].target",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "uri"
      } ],
      "max": "1",
      "id": "Task.instantiatesUri",
      "isSummary": true
    }, {
      "id": "Task.basedOn",
      "path": "Task.basedOn",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Resource" ]
      } ],
      "short": "Request fulfilled by this task",
      "mapping": [ {
        "map": "Request.basedOn, Event.basedOn",
        "identity": "workflow"
      }, {
        "map": ".outboundRelationship[typeCode=FLFS].target[moodCode=INT]",
        "identity": "rim"
      } ],
      "isSummary": true,
      "definition": "BasedOn refers to a higher-level authorization that triggered the creation of the task.  It references a \"request\" resource such as a ServiceRequest, MedicationRequest, ServiceRequest, CarePlan, etc. which is distinct from the \"request\" resource the task is seeking to fulfill.  This latter resource is referenced by FocusOn.  For example, based on a ServiceRequest (= BasedOn), a task is created to fulfill a procedureRequest ( = FocusOn ) to collect a specimen from a patient."
    }, {
      "path": "Task.groupIdentifier",
      "requirements": "Billing and/or reporting can be linked to whether multiple requests were created as a single unit.",
      "definition": "An identifier that links together multiple tasks and other requests that were created in the same context.",
      "short": "Requisition or grouper id",
      "mapping": [ {
        "map": "Request.groupIdentifier",
        "identity": "workflow"
      }, {
        "map": ".inboundRelationship[typeCode=COMP].source[moodCode=INT].id",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Identifier"
      } ],
      "max": "1",
      "id": "Task.groupIdentifier",
      "isSummary": true
    }, {
      "path": "Task.partOf",
      "requirements": "Allows tasks to be broken down into sub-steps (and this division can occur independent of the original task).",
      "definition": "Task that this particular task is part of.",
      "short": "Composite task",
      "mapping": [ {
        "map": "Event.partOf",
        "identity": "workflow"
      }, {
        "map": ".inboundRelationship[typeCode=COMP].source[moodCode=INT]",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://fhir.hie.moh.gov.my/StructureDefinition/Task-my-core" ]
      } ],
      "id": "Task.partOf",
      "comment": "This should usually be 0..1.",
      "isSummary": true
    }, {
      "path": "Task.status",
      "requirements": "These states enable coordination of task status with off-the-shelf workflow solutions that support automation of tasks.",
      "min": 1,
      "definition": "The current status of the task.",
      "isModifier": true,
      "short": "draft | requested | received | accepted | +",
      "mapping": [ {
        "map": "Request.status, Event.status",
        "identity": "workflow"
      }, {
        "map": "FiveWs.status",
        "identity": "w5"
      }, {
        "map": ".statusCode",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/task-status|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "TaskStatus"
        } ],
        "description": "The current status of the task."
      },
      "max": "1",
      "id": "Task.status",
      "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
      "isSummary": true
    }, {
      "path": "Task.statusReason",
      "definition": "An explanation as to why this task is held, failed, was refused, etc.",
      "short": "Reason for current status",
      "mapping": [ {
        "map": ".inboundRelationship[typeCode=SUBJ].source[classCode=CACT, moodCode=EVN, code=\"status change\"].reasonCode",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "TaskStatusReason"
        } ],
        "description": "Codes to identify the reason for current status.  These will typically be specific to a particular workflow."
      },
      "max": "1",
      "id": "Task.statusReason",
      "comment": "This applies to the current status.  Look at the history of the task to see reasons for past statuses.",
      "isSummary": true
    }, {
      "path": "Task.businessStatus",
      "requirements": "There's often a need to track substates of a task - this is often variable by specific workflow implementation.",
      "definition": "Contains business-specific nuances of the business state.",
      "short": "E.g. \"Specimen collected\", \"IV prepped\"",
      "mapping": [ {
        "map": ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"business status\"]",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "TaskBusinessStatus"
        } ],
        "description": "The domain-specific business-contextual sub-state of the task.  For example: \"Blood drawn\", \"IV inserted\", \"Awaiting physician signature\", etc."
      },
      "max": "1",
      "id": "Task.businessStatus",
      "isSummary": true
    }, {
      "path": "Task.intent",
      "min": 1,
      "definition": "Indicates the \"level\" of actionability associated with the Task, i.e. i+R[9]Cs this a proposed task, a planned task, an actionable task, etc.",
      "short": "unknown | proposal | plan | order | original-order | reflex-order | filler-order | instance-order | option",
      "mapping": [ {
        "map": "Request.intent",
        "identity": "workflow"
      }, {
        "map": "FiveWs.class",
        "identity": "w5"
      }, {
        "map": ".moodCode",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/task-intent|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "TaskIntent"
        } ],
        "description": "Distinguishes whether the task is a proposal, plan or full order."
      },
      "max": "1",
      "id": "Task.intent",
      "comment": "This element is immutable.  Proposed tasks, planned tasks, etc. must be distinct instances.\n\nIn most cases, Tasks will have an intent of \"order\".",
      "isSummary": true
    }, {
      "path": "Task.priority",
      "requirements": "Used to identify the service level expected while performing a task.",
      "definition": "Indicates how quickly the Task should be addressed with respect to other requests.",
      "short": "routine | urgent | asap | stat",
      "mapping": [ {
        "map": "Request.priority",
        "identity": "workflow"
      }, {
        "map": "FiveWs.grade",
        "identity": "w5"
      }, {
        "map": ".priorityCode",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "meaningWhenMissing": "If missing, this task should be performed with normal priority",
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/request-priority|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "TaskPriority"
        } ],
        "description": "The task's priority."
      },
      "max": "1",
      "id": "Task.priority"
    }, {
      "path": "Task.code",
      "definition": "A name or code (or both) briefly describing what the task involves.",
      "short": "Task Type",
      "mapping": [ {
        "map": "Request.code, Event.code",
        "identity": "workflow"
      }, {
        "map": "FiveWs.what[x]",
        "identity": "w5"
      }, {
        "map": ".code",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/ValueSet/task-code",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "TaskCode"
        } ],
        "description": "Codes to identify what the task involves.  These will typically be specific to a particular workflow."
      },
      "max": "1",
      "id": "Task.code",
      "comment": "The title (eg \"My Tasks\", \"Outstanding Tasks for Patient X\") should go into the code.",
      "isSummary": true
    }, {
      "id": "Task.description",
      "max": "1",
      "path": "Task.description",
      "type": [ {
        "code": "string"
      } ],
      "short": "Human-readable explanation of task",
      "mapping": [ {
        "map": ".text",
        "identity": "rim"
      } ],
      "isSummary": true,
      "definition": "A free-text description of what is to be performed."
    }, {
      "path": "Task.focus",
      "requirements": "Used to identify the thing to be done.",
      "definition": "The request being actioned or the resource being manipulated by this task.",
      "short": "What task is acting on",
      "mapping": [ {
        "map": "FiveWs.what[x]",
        "identity": "w5"
      }, {
        "map": ".outboundRelationship[typeCode=SUBJ].target",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Resource" ]
      } ],
      "max": "1",
      "id": "Task.focus",
      "comment": "If multiple resources need to be manipulated, use sub-tasks.  (This ensures that status can be tracked independently for each referenced resource.).",
      "isSummary": true
    }, {
      "path": "Task.for",
      "requirements": "Used to track tasks outstanding for a beneficiary.  Do not use to track the task owner or creator (see owner and creator respectively).  This can also affect access control.",
      "definition": "The entity who benefits from the performance of the service specified in the task (e.g., the patient).",
      "short": "Beneficiary of the Task",
      "mapping": [ {
        "map": "Request.subject, Event.subject",
        "identity": "workflow"
      }, {
        "map": "FiveWs.subject[x]",
        "identity": "w5"
      }, {
        "map": ".participation[typeCode=RCT].role",
        "identity": "rim"
      }, {
        "map": "FiveWs.subject",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Resource" ]
      } ],
      "alias": [ "Patient" ],
      "max": "1",
      "id": "Task.for",
      "isSummary": true
    }, {
      "path": "Task.encounter",
      "requirements": "For some tasks it may be important to know the link between the encounter the task originated within.",
      "definition": "The healthcare event  (e.g. a patient and healthcare provider interaction) during which this task was created.",
      "short": "Healthcare event during which this task originated",
      "mapping": [ {
        "map": "Request.context, Event.context",
        "identity": "workflow"
      }, {
        "map": "FiveWs.context",
        "identity": "w5"
      }, {
        "map": ".inboundRelationship[typeCode=COMP].source[classCode=PCPR, moodCode=EVN]",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://fhir.hie.moh.gov.my/StructureDefinition/Encounter-my-core" ]
      } ],
      "max": "1",
      "id": "Task.encounter",
      "isSummary": true
    }, {
      "id": "Task.executionPeriod",
      "max": "1",
      "path": "Task.executionPeriod",
      "type": [ {
        "code": "Period"
      } ],
      "short": "Start and end time of execution",
      "mapping": [ {
        "map": "Event.occurrence[x]",
        "identity": "workflow"
      }, {
        "map": "FiveWs.done[x]",
        "identity": "w5"
      }, {
        "map": ".effectiveTime",
        "identity": "rim"
      } ],
      "isSummary": true,
      "definition": "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)."
    }, {
      "path": "Task.authoredOn",
      "requirements": "Most often used along with lastUpdated to track duration of task to supporting monitoring and management.",
      "definition": "The date and time this task was created.",
      "short": "Task Creation Date",
      "mapping": [ {
        "map": "Request.authoredOn",
        "identity": "workflow"
      }, {
        "map": "FiveWs.recorded",
        "identity": "w5"
      }, {
        "map": ".participation[typeCode=AUT].time",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "dateTime"
      } ],
      "alias": [ "Created Date" ],
      "max": "1",
      "id": "Task.authoredOn",
      "condition": [ "inv-1" ]
    }, {
      "path": "Task.lastModified",
      "requirements": "Used along with history to track task activity and time in a particular task state.  This enables monitoring and management.",
      "definition": "The date and time of last modification to this task.",
      "short": "Task Last Modified Date",
      "mapping": [ {
        "map": ".inboundRelationship[typeCode=SUBJ, ].source[classCode=CACT, moodCode=EVN].effectiveTime",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "dateTime"
      } ],
      "alias": [ "Update Date" ],
      "max": "1",
      "id": "Task.lastModified",
      "condition": [ "inv-1" ],
      "isSummary": true
    }, {
      "path": "Task.requester",
      "requirements": "Identifies who created this task.  May be used by access control mechanisms (e.g., to ensure that only the creator can cancel a task).",
      "definition": "The creator of the task.",
      "short": "Who is asking for task to be done",
      "mapping": [ {
        "map": "Request.requester",
        "identity": "workflow"
      }, {
        "map": "FiveWs.author",
        "identity": "w5"
      }, {
        "map": ".participation[typeCode=AUT].role",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://fhir.hie.moh.gov.my/StructureDefinition/Device-my-core", "http://fhir.hie.moh.gov.my/StructureDefinition/Practitioner-my-core", "http://fhir.hie.moh.gov.my/StructureDefinition/PractitionerRole-my-core", "http://fhir.hie.moh.gov.my/StructureDefinition/Organization-my-core", "http://fhir.hie.moh.gov.my/StructureDefinition/Patient-my-core", "http://fhir.hie.moh.gov.my/StructureDefinition/RelatedPerson-my-core" ]
      } ],
      "max": "1",
      "id": "Task.requester",
      "isSummary": true
    }, {
      "id": "Task.performerType",
      "path": "Task.performerType",
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "short": "Requested performer",
      "binding": {
        "strength": "preferred",
        "valueSet": "http://hl7.org/fhir/ValueSet/performer-role",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "TaskPerformerType"
        } ],
        "description": "The type(s) of task performers allowed."
      },
      "mapping": [ {
        "map": "Event.performer.role, Request.performerType",
        "identity": "workflow"
      }, {
        "map": "FiveWs.actor",
        "identity": "w5"
      }, {
        "map": ".participation[typeCode=PRF].role.code",
        "identity": "rim"
      } ],
      "definition": "The kind of participant that should perform the task.",
      "requirements": "Use to distinguish tasks on different activity queues."
    }, {
      "path": "Task.owner",
      "requirements": "Identifies who is expected to perform this task.",
      "definition": "Individual organization or Device currently responsible for task execution.",
      "short": "Responsible individual",
      "mapping": [ {
        "map": "Event.performer.actor, Request.performer",
        "identity": "workflow"
      }, {
        "map": "FiveWs.actor",
        "identity": "w5"
      }, {
        "map": ".participation[typeCode=PRF].role",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://fhir.hie.moh.gov.my/StructureDefinition/Practitioner-my-core", "http://fhir.hie.moh.gov.my/StructureDefinition/PractitionerRole-my-core", "http://fhir.hie.moh.gov.my/StructureDefinition/Organization-my-core", "http://fhir.hie.moh.gov.my/StructureDefinition/CareTeam-my-core", "http://fhir.hie.moh.gov.my/StructureDefinition/HealthcareService-my-core", "http://fhir.hie.moh.gov.my/StructureDefinition/Patient-my-core", "http://fhir.hie.moh.gov.my/StructureDefinition/Device-my-core", "http://fhir.hie.moh.gov.my/StructureDefinition/RelatedPerson-my-core" ]
      } ],
      "alias": [ "Performer", "Executer" ],
      "max": "1",
      "id": "Task.owner",
      "comment": "Tasks may be created with an owner not yet identified.",
      "isSummary": true
    }, {
      "path": "Task.location",
      "requirements": "Ties the event to where the records are likely kept and provides context around the event occurrence (e.g. if it occurred inside or outside a dedicated healthcare setting).",
      "definition": "Principal physical location where the this task is performed.",
      "short": "Where task occurs",
      "mapping": [ {
        "map": "Request.reasonCode, Event.reasonCode",
        "identity": "workflow"
      }, {
        "map": "FiveWs.where[x]",
        "identity": "w5"
      }, {
        "map": ".participation[typeCode=LOC].role",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://fhir.hie.moh.gov.my/StructureDefinition/Location-my-core" ]
      } ],
      "max": "1",
      "id": "Task.location",
      "isSummary": true
    }, {
      "path": "Task.reasonCode",
      "definition": "A description or code indicating why this task needs to be performed.",
      "short": "Why task is needed",
      "mapping": [ {
        "map": "Event.location",
        "identity": "workflow"
      }, {
        "map": "FiveWs.why[x]",
        "identity": "w5"
      }, {
        "map": "EVN.7",
        "identity": "v2"
      }, {
        "map": ".reasonCode",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "TaskReason"
        } ],
        "description": "Indicates why the task is needed.  E.g. Suspended because patient admitted to hospital."
      },
      "max": "1",
      "id": "Task.reasonCode",
      "comment": "This should only be included if there is no focus or if it differs from the reason indicated on the focus."
    }, {
      "id": "Task.reasonReference",
      "max": "1",
      "path": "Task.reasonReference",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Resource" ]
      } ],
      "short": "Why task is needed",
      "comment": "Tasks might be justified based on an Observation, a Condition, a past or planned procedure, etc.   This should only be included if there is no focus or if it differs from the reason indicated on the focus.    Use the CodeableConcept text element in `Task.reasonCode` if the data is free (uncoded) text.",
      "mapping": [ {
        "map": "Request.reasonReference, Event.reasonReference",
        "identity": "workflow"
      }, {
        "map": "FiveWs.why[x]",
        "identity": "w5"
      }, {
        "map": ".outboundRelationship[typeCode=RSON].target",
        "identity": "rim"
      } ],
      "definition": "A resource reference indicating why this task needs to be performed."
    }, {
      "id": "Task.insurance",
      "path": "Task.insurance",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Coverage", "http://hl7.org/fhir/StructureDefinition/ClaimResponse" ]
      } ],
      "short": "Associated insurance coverage",
      "mapping": [ {
        "map": "Request.insurance",
        "identity": "workflow"
      }, {
        "map": "IN1/IN2",
        "identity": "v2"
      }, {
        "map": ".outboundRelationship[typeCode=COVBY].target",
        "identity": "rim"
      } ],
      "definition": "Insurance plans, coverage extensions, pre-authorizations and/or pre-determinations that may be relevant to the Task."
    }, {
      "id": "Task.note",
      "path": "Task.note",
      "type": [ {
        "code": "Annotation"
      } ],
      "short": "Comments made about the task",
      "mapping": [ {
        "map": "Request.note, Event.note",
        "identity": "workflow"
      }, {
        "map": ".inboundRelationship[typeCode=SUBJ, ].source[classCode=OBS, moodCode=EVN, code=\"annotation\"].value(string)",
        "identity": "rim"
      } ],
      "definition": "Free-text information captured about the task as it progresses."
    }, {
      "id": "Task.relevantHistory",
      "path": "Task.relevantHistory",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Provenance" ]
      } ],
      "alias": [ "Status History" ],
      "short": "Key events in history of the Task",
      "comment": "This element does not point to the Provenance associated with the *current* version of the resource - as it would be created after this version existed.  The Provenance for the current version can be retrieved with a _revinclude.",
      "mapping": [ {
        "map": "Request.relevantHistory",
        "identity": "workflow"
      }, {
        "map": ".inboundRelationship(typeCode=SUBJ].source[classCode=CACT, moodCode=EVN]",
        "identity": "rim"
      } ],
      "definition": "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."
    }, {
      "id": "Task.restriction",
      "max": "1",
      "path": "Task.restriction",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "Constraints on fulfillment tasks",
      "mapping": [ {
        "map": "Instead of pointing to request, would point to component of request, having these characteristics",
        "identity": "rim"
      } ],
      "definition": "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.",
      "requirements": "Sometimes when fulfillment is sought, you don't want full fulfillment."
    }, {
      "id": "Task.restriction.repetitions",
      "max": "1",
      "path": "Task.restriction.repetitions",
      "type": [ {
        "code": "positiveInt"
      } ],
      "short": "How many times to repeat",
      "mapping": [ {
        "map": ".repeatNumber",
        "identity": "rim"
      } ],
      "definition": "Indicates the number of times the requested action should occur.",
      "requirements": "E.g. order that requests monthly lab tests, fulfillment is sought for 1."
    }, {
      "path": "Task.restriction.period",
      "requirements": "E.g. order that authorizes 1 year's services.  Fulfillment is sought for next 3 months.",
      "definition": "Over what time-period is fulfillment sought.",
      "short": "When fulfillment sought",
      "mapping": [ {
        "map": ".effectiveTime(IVL)",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Period"
      } ],
      "max": "1",
      "id": "Task.restriction.period",
      "comment": "Note that period.high is the due date representing the time by which the task should be completed."
    }, {
      "id": "Task.restriction.recipient",
      "path": "Task.restriction.recipient",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://fhir.hie.moh.gov.my/StructureDefinition/Patient-my-core", "http://fhir.hie.moh.gov.my/StructureDefinition/Practitioner-my-core", "http://fhir.hie.moh.gov.my/StructureDefinition/PractitionerRole-my-core", "http://hl7.org/fhir/StructureDefinition/RelatedPerson", "http://fhir.hie.moh.gov.my/StructureDefinition/Group", "http://fhir.hie.moh.gov.my/StructureDefinition/Organization-my-core" ]
      } ],
      "short": "For whom is fulfillment sought?",
      "mapping": [ {
        "map": ".participation[typeCode=SBJ].role",
        "identity": "rim"
      } ],
      "definition": "For requests that are targeted to more than on potential recipient/target, for whom is fulfillment sought?"
    }, {
      "path": "Task.input",
      "requirements": "Resources and data used to perform the task.  This data is used in the business logic of task execution, and is stored separately because it varies between workflows.",
      "definition": "Additional information that may be needed in the execution of the task.",
      "short": "Information used to perform task",
      "mapping": [ {
        "map": "???",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "BackboneElement"
      } ],
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
        "valueString": "Parameter"
      } ],
      "alias": [ "Supporting Information" ],
      "id": "Task.input"
    }, {
      "path": "Task.input.type",
      "requirements": "Inputs are named to enable task automation to bind data and pass it from one task to the next.",
      "min": 1,
      "definition": "A code or description indicating how the input is intended to be used as part of the task execution.",
      "short": "Label for the input",
      "mapping": [ {
        "map": "???",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "TaskInputParameterType"
        } ],
        "description": "Codes to identify types of input parameters.  These will typically be specific to a particular workflow.  E.g. \"Comparison source\", \"Applicable consent\", \"Concomitent Medications\", etc."
      },
      "alias": [ "Name" ],
      "max": "1",
      "id": "Task.input.type",
      "comment": "If referencing a BPMN workflow or Protocol, the \"system\" is the URL for the workflow definition and the code is the \"name\" of the required input."
    }, {
      "id": "Task.input.value[x]",
      "max": "1",
      "min": 1,
      "path": "Task.input.value[x]",
      "type": [ {
        "code": "base64Binary"
      }, {
        "code": "boolean"
      }, {
        "code": "canonical"
      }, {
        "code": "code"
      }, {
        "code": "date"
      }, {
        "code": "dateTime"
      }, {
        "code": "decimal"
      }, {
        "code": "id"
      }, {
        "code": "instant"
      }, {
        "code": "integer"
      }, {
        "code": "markdown"
      }, {
        "code": "oid"
      }, {
        "code": "positiveInt"
      }, {
        "code": "string"
      }, {
        "code": "time"
      }, {
        "code": "unsignedInt"
      }, {
        "code": "uri"
      }, {
        "code": "url"
      }, {
        "code": "uuid"
      }, {
        "code": "Address"
      }, {
        "code": "Age"
      }, {
        "code": "Annotation"
      }, {
        "code": "Attachment"
      }, {
        "code": "CodeableConcept"
      }, {
        "code": "Coding"
      }, {
        "code": "ContactPoint"
      }, {
        "code": "Count"
      }, {
        "code": "Distance"
      }, {
        "code": "Duration"
      }, {
        "code": "HumanName"
      }, {
        "code": "Identifier"
      }, {
        "code": "Money"
      }, {
        "code": "Period"
      }, {
        "code": "Quantity"
      }, {
        "code": "Range"
      }, {
        "code": "Ratio"
      }, {
        "code": "Reference"
      }, {
        "code": "SampledData"
      }, {
        "code": "Signature"
      }, {
        "code": "Timing"
      }, {
        "code": "ContactDetail"
      }, {
        "code": "Contributor"
      }, {
        "code": "DataRequirement"
      }, {
        "code": "Expression"
      }, {
        "code": "ParameterDefinition"
      }, {
        "code": "RelatedArtifact"
      }, {
        "code": "TriggerDefinition"
      }, {
        "code": "UsageContext"
      }, {
        "code": "Dosage"
      }, {
        "code": "Meta"
      } ],
      "short": "Content to use in performing the task",
      "mapping": [ {
        "map": "???",
        "identity": "rim"
      } ],
      "definition": "The value of the input parameter as a basic type."
    }, {
      "id": "Task.output",
      "path": "Task.output",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "Information produced as part of task",
      "mapping": [ {
        "map": "???",
        "identity": "rim"
      } ],
      "definition": "Outputs produced by the Task.",
      "requirements": "Resources and data produced during the execution the task.  This data is generated by the business logic of task execution, and is stored separately because it varies between workflows."
    }, {
      "path": "Task.output.type",
      "requirements": "Outputs are named to enable task automation to bind data and pass it from one task to the next.",
      "min": 1,
      "definition": "The name of the Output parameter.",
      "short": "Label for output",
      "mapping": [ {
        "map": "???",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "TaskOutputParameterType"
        } ],
        "description": "Codes to identify types of input parameters.  These will typically be specific to a particular workflow.  E.g. \"Identified issues\", \"Preliminary results\", \"Filler order\", \"Final results\", etc."
      },
      "alias": [ "Name" ],
      "max": "1",
      "id": "Task.output.type"
    }, {
      "path": "Task.output.value[x]",
      "requirements": "Task outputs can take any form.",
      "min": 1,
      "definition": "The value of the Output parameter as a basic type.",
      "short": "Result of output",
      "mapping": [ {
        "map": "???",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "base64Binary"
      }, {
        "code": "boolean"
      }, {
        "code": "canonical"
      }, {
        "code": "code"
      }, {
        "code": "date"
      }, {
        "code": "dateTime"
      }, {
        "code": "decimal"
      }, {
        "code": "id"
      }, {
        "code": "instant"
      }, {
        "code": "integer"
      }, {
        "code": "markdown"
      }, {
        "code": "oid"
      }, {
        "code": "positiveInt"
      }, {
        "code": "string"
      }, {
        "code": "time"
      }, {
        "code": "unsignedInt"
      }, {
        "code": "uri"
      }, {
        "code": "url"
      }, {
        "code": "uuid"
      }, {
        "code": "Address"
      }, {
        "code": "Age"
      }, {
        "code": "Annotation"
      }, {
        "code": "Attachment"
      }, {
        "code": "CodeableConcept"
      }, {
        "code": "Coding"
      }, {
        "code": "ContactPoint"
      }, {
        "code": "Count"
      }, {
        "code": "Distance"
      }, {
        "code": "Duration"
      }, {
        "code": "HumanName"
      }, {
        "code": "Identifier"
      }, {
        "code": "Money"
      }, {
        "code": "Period"
      }, {
        "code": "Quantity"
      }, {
        "code": "Range"
      }, {
        "code": "Ratio"
      }, {
        "code": "Reference"
      }, {
        "code": "SampledData"
      }, {
        "code": "Signature"
      }, {
        "code": "Timing"
      }, {
        "code": "ContactDetail"
      }, {
        "code": "Contributor"
      }, {
        "code": "DataRequirement"
      }, {
        "code": "Expression"
      }, {
        "code": "ParameterDefinition"
      }, {
        "code": "RelatedArtifact"
      }, {
        "code": "TriggerDefinition"
      }, {
        "code": "UsageContext"
      }, {
        "code": "Dosage"
      }, {
        "code": "Meta"
      } ],
      "max": "1",
      "id": "Task.output.value[x]"
    } ]
  },
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource"
}