Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

NameDescriptionTypeChoicesCalculationConstraint(s)RequiredEditable?
identifierThis is a globally unique id (GUID) of the taskString

HiddenYesNo
planIdentifierThis is the GUID of the plan related to this task (We will not use this for BA)String

HiddenNoNo
groupIdentifierThis is the location id of the facility where the task is assignedString

HiddenYesNo
statusThis is the status of the taskselect_one
"Draft", "Ready", "Cancelled", "In Progress", "Completed", "Failed"

Default Value = "Ready"YesYes
businessStatusThis is the business status of the task that's displayed in the UIString"Referred", "In-Progress", "Complete", "Expired"
Default Value = "Referred"YesYes
priorityThis is the priority of the task (1 being low priority, 5 being high priority)select_one"1","2","3","4","5"
Default value = "3"YesYes
codeThis is the type of task and is dependent on the interventionselect_one
"Referral"

Default value = "Referral"YesYes
descriptionThis is a human readable description of the taskstring

Default value = "Review and perform the referral for the client"NoYes
focusThis is the type of referral that needs to be doneselect_one
"Sick Child", "Suspected Malaria", "Pregnancy Test or Confirmation", "ANC Danger Signs","PNC Danger Signs","FP initiation","Home Birth","Woman in Labour"


YesYes
forThis is the target entity that benefits from the task. (i.e. patient baseEntityId)String


YesYes
executionStartDateStart dateTime for the executionPerioddateTime


NoYes
executionEndDateEnd dateTime for the executionPerioddateTime


NoYes
reasonReferenceThis is the id of the form that was submitted that kicked off this task. This is used to link to the referral that was generatedUUID


NoNo
authoredOnThis is the dateTime that the task was createddateTime


YesNo
lastModifiedThis is a dateTime that the task was last modifieddateTime


YesNo
ownerThis is the Username of the person who generated this taskstring


YesYes
noteThis is a repeating group that allows users to keep notes on the status of a task over time.Repeating Group


NoYes
note.authorStringThis is the username of the user who authored the noteString

HiddenYesNo
note.timeThis is the dateTime the note was addeddateTime

HiddenYesNo
note.textThis is the text content of the note
String (may include paragraphs)



YesYes

Plan Definition

We need to create a plan in the system to be able to link tasks to particular actions within the plan.

Code Block
languagejs
titleSample Plan
linenumberstrue
{
    "identifier": "${UUID()}",
    "version": "1",
    "name": "baCatchAllReferral Plan",
    "title": "BA Catch All Referral Plan",
    "status": "active",
    "date": "2019-08-06",
    "effectivePeriod": {
      "start": "2019-08-07",
      "end": "2020-08-06"
    },
    "jurisdiction": [
      {
        "code": "UUID_OF_FACILITY_1"
      },
      {
        "code": "UUID_OF_FACILITY_2"
      },
      {
        "code": "UUID_OF_FACILITY_3"
      },
      {
        "code": "UUID_OF_FACILITY_4"
      },
      {
        "code": "UUID_OF_FACILITY_5"
      }
    ],
    "serverVersion": 0,
    "goal": [
      {
        "id": "sickChildReferralGoal",
        "description": "Sick Child Referral Goal",
        "priority": "medium-priority",
        "target": [
          {
            "measure": "Percent of referrals closed",
            "detail": {
              "detailQuantity": {
                "value": 80,
                "comparator": ">=",
                "unit": "Percent"
              }
            },
            "due": "2020-08-06"
          }
        ]
      },
	  {
        "id": "suspectedMalariaReferralGoal",
        "description": "Suspected Malaria Referral Goal",
        "priority": "medium-priority",
        "target": [
          {
            "measure": "Percent of referrals closed",
            "detail": {
              "detailQuantity": {
                "value": 80,
                "comparator": ">=",
                "unit": "Percent"
              }
            },
            "due": "2020-08-06"
          }
        ]
      },
	  {
        "id": "pregnancyTestReferralGoal",
        "description": "Pregnancy Test Referral Goal",
        "priority": "medium-priority",
        "target": [
          {
            "measure": "Percent of referrals closed",
            "detail": {
              "detailQuantity": {
                "value": 80,
                "comparator": ">=",
                "unit": "Percent"
              }
            },
            "due": "2020-08-06"
          }
        ]
      },
	  {
        "id": "ancDangerSignsReferralGoal",
        "description": "ANC Danger Signs Referral Goal",
        "priority": "medium-priority",
        "target": [
          {
            "measure": "Percent of referrals closed",
            "detail": {
              "detailQuantity": {
                "value": 80,
                "comparator": ">=",
                "unit": "Percent"
              }
            },
            "due": "2020-08-06"
          }
        ]
      },
	  {
        "id": "pncDangerSignsReferralGoal",
        "description": "PNC Danger Signs Referral Goal",
        "priority": "medium-priority",
        "target": [
          {
            "measure": "Percent of referrals closed",
            "detail": {
              "detailQuantity": {
                "value": 80,
                "comparator": ">=",
                "unit": "Percent"
              }
            },
            "due": "2020-08-06"
          }
        ]
      },
	  {
        "id": "fpInitiationReferralGoal",
        "description": "Family Planning Referral Goal",
        "priority": "medium-priority",
        "target": [
          {
            "measure": "Percent of referrals closed",
            "detail": {
              "detailQuantity": {
                "value": 80,
                "comparator": ">=",
                "unit": "Percent"
              }
            },
            "due": "2020-08-06"
          }
        ]
      }
    ],
    "action": [
      {
        "identifier": "${UUID()}",
        "prefix": 1,
        "title": "Sick Child Referral",
        "description": "Receive referral, perform patient action and close it",
        "code": "Referral",
        "timingPeriod": {
          "start": "2019-08-07",
          "end": "2020-08-06"
        },
        "reason": "Sick Child",
        "goalId": "sickChildReferralGoal",
        "subjectCodableConcept": {
          "text": "Referral"
        },
        "taskTemplate": "Referral"
      },
	  {
        "identifier": "${UUID()}",
        "prefix": 2,
        "title": "Suspected Malaria Referral",
        "description": "Receive referral, perform patient action and close it",
        "code": "Referral",
        "timingPeriod": {
          "start": "2019-08-07",
          "end": "2020-08-06"
        },
        "reason": "Suspected Malaria",
        "goalId": "suspectedMalariaReferralGoal",
        "subjectCodableConcept": {
          "text": "Referral"
        },
        "taskTemplate": "Referral"
      },
	  {
        "identifier": "${UUID()}",
        "prefix": 3,
        "title": "Pregnancy Test or Confirmation Referral",
        "description": "Receive referral, perform patient action and close it",
        "code": "Referral",
        "timingPeriod": {
          "start": "2019-08-07",
          "end": "2020-08-06"
        },
        "reason": "Pregnancy Test",
        "goalId": "pregnancyTestReferralGoal",
        "subjectCodableConcept": {
          "text": "Referral"
        },
        "taskTemplate": "Referral"
      },
	  {
        "identifier": "${UUID()}",
        "prefix": 4,
        "title": "ANC Danger Signs Referral",
        "description": "Receive referral, perform patient action and close it",
        "code": "Referral",
        "timingPeriod": {
          "start": "2019-08-07",
          "end": "2020-08-06"
        },
        "reason": "ANC Danger Signs",
        "goalId": "ancDangerSignsReferralGoal",
        "subjectCodableConcept": {
          "text": "Referral"
        },
        "taskTemplate": "Referral"
      },
	  {
        "identifier": "${UUID()}",
        "prefix": 5,
        "title": "PNC Danger Signs Referral",
        "description": "Receive referral, perform patient action and close it",
        "code": "Referral",
        "timingPeriod": {
          "start": "2019-08-07",
          "end": "2020-08-06"
        },
        "reason": "PNC Danger Signs",
        "goalId": "pncDangerSignsReferralGoal",
        "subjectCodableConcept": {
          "text": "Referral"
        },
        "taskTemplate": "Referral"
      },
	  {
        "identifier": "${UUID()}",
        "prefix": 6,
        "title": "Family Planning Initiation Referral",
        "description": "Receive referral, perform patient action and close it",
        "code": "Referral",
        "timingPeriod": {
          "start": "2019-08-07",
          "end": "2020-08-06"
        },
        "reason": "Family Planning Initiation",
        "goalId": "fpInitiationReferralGoal",
        "subjectCodableConcept": {
          "text": "Referral"
        },
        "taskTemplate": "Referral"
      }
    ]
  }


Software Development Required

...