{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/august-health/json-schema/august-health-com-august-api-integrations-models-tasks-v1-task-schema.json",
  "title": "com.august.api.integrations.models.tasks.v1.Task",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/august-health-tasks-v1-api-openapi.yml#/components/schemas/com.august.api.integrations.models.tasks.v1.Task",
  "properties": {
    "customType": {
      "type": "string"
    },
    "displayName": {
      "type": "string"
    },
    "dueDate": {
      "format": "date",
      "type": "string"
    },
    "facilityId": {
      "type": "string"
    },
    "id": {
      "type": "string"
    },
    "lastModification": {
      "$ref": "#/$defs/com.august.api.integrations.models.common_metadata.v1.Modification"
    },
    "orgId": {
      "type": "string"
    },
    "personId": {
      "type": "string"
    },
    "shared": {
      "type": "boolean"
    },
    "shortName": {
      "type": "string"
    },
    "signatures": {
      "items": {
        "$ref": "#/$defs/com.august.api.integrations.models.tasks.v1.SignatureInfoData"
      },
      "type": "array"
    },
    "status": {
      "$ref": "#/$defs/com.august.protos.task.TaskStatus"
    },
    "statusHistory": {
      "items": {
        "$ref": "#/$defs/com.august.api.integrations.models.tasks.v1.TaskStatusHistory"
      },
      "type": "array"
    },
    "taskType": {
      "$ref": "#/$defs/com.august.protos.task.TaskType"
    }
  },
  "required": [
    "id",
    "orgId",
    "facilityId",
    "personId",
    "status",
    "shared",
    "statusHistory",
    "signatures",
    "taskType"
  ],
  "$defs": {
    "com.august.api.integrations.models.common_metadata.v1.HumanName": {
      "properties": {
        "family": {
          "type": "string"
        },
        "given": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "maiden": {
          "type": "string"
        },
        "preferredName": {
          "type": "string"
        },
        "prefix": {
          "type": "string"
        },
        "pronouns": {
          "$ref": "#/$defs/com.august.protos.human_name.HumanName.Pronouns"
        },
        "suffix": {
          "type": "string"
        }
      },
      "required": [
        "given"
      ]
    },
    "com.august.api.integrations.models.common_metadata.v1.Modification": {
      "properties": {
        "modificationTime": {
          "format": "date-time",
          "type": "string"
        },
        "modifiedByUserId": {
          "type": "string"
        },
        "modifiedByUserName": {
          "$ref": "#/$defs/com.august.api.integrations.models.common_metadata.v1.HumanName"
        }
      }
    },
    "com.august.api.integrations.models.tasks.v1.SignatureInfoData": {
      "properties": {
        "signer": {
          "$ref": "#/$defs/com.august.api.integrations.models.tasks.v1.SignerData"
        },
        "status": {
          "$ref": "#/$defs/com.august.protos.task.SignatureStatus"
        }
      },
      "required": [
        "status"
      ]
    },
    "com.august.api.integrations.models.tasks.v1.SignerData": {
      "properties": {
        "email": {
          "type": "string"
        },
        "name": {
          "$ref": "#/$defs/com.august.api.integrations.models.common_metadata.v1.HumanName"
        }
      }
    },
    "com.august.api.integrations.models.tasks.v1.TaskStatusHistory": {
      "properties": {
        "endingStatus": {
          "$ref": "#/$defs/com.august.protos.task.TaskStatus"
        },
        "modifiedBy": {
          "$ref": "#/$defs/com.august.api.integrations.models.common_metadata.v1.Modification"
        },
        "startingStatus": {
          "$ref": "#/$defs/com.august.protos.task.TaskStatus"
        }
      },
      "required": [
        "startingStatus",
        "endingStatus",
        "modifiedBy"
      ]
    },
    "com.august.protos.human_name.HumanName.Pronouns": {
      "enum": [
        "PRONOUNS_SHE_HER",
        "PRONOUNS_HE_HIM",
        "PRONOUNS_THEY_THEM",
        "PRONOUNS_SHE_THEY",
        "PRONOUNS_HE_THEY",
        "PRONOUNS_ZE_HIR"
      ],
      "type": "string"
    },
    "com.august.protos.task.SignatureStatus": {
      "enum": [
        "SIGNATURE_STATUS_NOT_SIGNED",
        "SIGNATURE_STATUS_PROCESSING",
        "SIGNATURE_STATUS_SIGNED"
      ],
      "type": "string"
    },
    "com.august.protos.task.TaskStatus": {
      "oneOf": [
        {
          "enum": [
            "TASK_STATUS_NOT_STARTED",
            "TASK_STATUS_ASSIGNED_TO_ADMIN",
            "TASK_STATUS_ASSIGNED_TO_RP",
            "TASK_STATUS_AWAITING_REVIEW",
            "TASK_STATUS_COMPLETE",
            "TASK_STATUS_COMPLETE_BUT_NEW",
            "TASK_STATUS_PENDING_SIGNATURES",
            "TASK_STATUS_MANUALLY_CLOSED",
            "TASK_STATUS_MANUALLY_COMPLETED"
          ],
          "title": "values",
          "type": "string"
        },
        {
          "deprecated": true,
          "enum": [
            "TASK_STATUS_PENDING_ADMIN_SIG",
            "TASK_STATUS_PENDING_RP_SIG",
            "TASK_STATUS_ADMIN_SIGNATURE_PROCESSING",
            "TASK_STATUS_RP_SIGNATURE_PROCESSING"
          ],
          "title": "deprecated values",
          "type": "string"
        }
      ]
    },
    "com.august.protos.task.TaskType": {
      "oneOf": [
        {
          "enum": [
            "TASK_TYPE_CA_FORM_601",
            "TASK_TYPE_CA_FORM_603",
            "TASK_TYPE_CA_FORM_603A",
            "TASK_TYPE_ADMISSIONS_AGREEMENT",
            "TASK_TYPE_CA_CONSENT_FORMS",
            "TASK_TYPE_LEVEL_OF_CARE",
            "TASK_TYPE_CA_FORM_602",
            "TASK_TYPE_GETTING_TO_KNOW_YOU",
            "TASK_TYPE_POLST",
            "TASK_TYPE_INSURANCE_CARD",
            "TASK_TYPE_CUSTOM_SIGNABLE_FORM",
            "TASK_TYPE_AUGUST_INITIAL_APPRAISAL",
            "TASK_TYPE_SERVICE_PLAN",
            "TASK_TYPE_SERVICE_PLAN_V2",
            "TASK_TYPE_PRN_AUTHORIZATION",
            "TASK_TYPE_NURSE_DELEGATION",
            "TASK_TYPE_GETTING_TO_KNOW_YOU_V2",
            "TASK_TYPE_IMMUNIZATION_RECORD",
            "TASK_TYPE_VA_UAI",
            "TASK_TYPE_ANNUAL_MEDICAL_EVALUATION",
            "TASK_TYPE_NY_FORM_4397B",
            "TASK_TYPE_UT_ASSESSMENT",
            "TASK_TYPE_IL_ASSESSMENT",
            "TASK_TYPE_MD_ASSESSMENT",
            "TASK_TYPE_AL_PSMS_BEHAVIORAL",
            "TASK_TYPE_FACE_SHEET_ADDENDUM",
            "TASK_TYPE_INFORMATIONAL_ITEM"
          ],
          "title": "values",
          "type": "string"
        },
        {
          "deprecated": true,
          "enum": [
            "TASK_TYPE_DIRECTIVE",
            "TASK_TYPE_MEDICAL_RECORD",
            "TASK_TYPE_OTHER_UPLOAD"
          ],
          "title": "deprecated values",
          "type": "string"
        }
      ]
    }
  }
}