Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents

Process configuration

Name

Description

Format

Default value

APPROVALS_CLEANUP_SCHEDULE

How often to perform this task

Cron Format

`20 0 * * *`

APPROVAL_AUTOEXPIRATION_SCHEDULE

How often to perform this task

Cron Format

`20 * * *`

APPROVAL_TTL_HOURS

Approval lifetime period

Hours

12

CREATE_APPROVAL_ACCESS_LEVEL_READ_ALLOWED_RESOURCES

List of entities that can get approvals

Text

care_plan, diagnostic_report, episode_of_care, forbidden_group

APPROVAL_EXPIRATION

Approval duration period for other (episode, diagnostic report, service request etc. except care plan) resources

Minutes

129600

CARE_PLAN_APPROVAL_EXPIRATION

Approval duration period for care_plan resources

Minutes

525600

FORBIDDEN_GROUP_APPROVAL_EXPIRATION

Approval duration period for forbidden_group resources

Minutes

43200

DIAGNOSES_GROUP_APPROVAL_EXPIRATION

Approval duration period for diagnoses_group resources

Minutes

129600

CREATE

SERVICE_GROUP_APPROVAL_

ACCESS_LEVEL_READ_ALLOWED_RESOURCES

List of entities that can get approvals

Text

care_plan, diagnostic_report, episode_of_care, forbidden_group

EXPIRATION

Approval duration period for service_group resources

Minutes

129600

PATIENT_APPROVAL_EXPIRATION

Approval duration period for patient_id

Minutes

2880

APPROVALS_CLEANUP_SCHEDULE

...

  1. Search candidates

    1. Get all approvals where inserted_at < utc_now() - APPROVAL_TTL_HOURS and status is_verified is newfalse

    2. Delete approvals