Versions Compared

Key

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

...

An EpisodeOfCare is activated by setting :

  • Setting the status to active through an EpisodeOfCare Update.

  • Setting a status change to active in the EpisodeOfCare.ehealth-statusschedule resulting in an automatic status change in the future.

Maintaining EpisodeOfCare Status

EpisodeOfCare.status must be set manually by EpisodeOfCare Update can be adjusted in two ways through the use of EpisodeOfCare Update:

  • Setting EpisodeOfCare.status directly

  • Setting a scheduled status change by updating EpisodeOfCare.ehealth-statusschedule

    • scheduled changes are applied when the ApplyPlannedChangesJob is run.

Allowed status changes:

  • From planned to active, onhold, waitlist, cancelled, or entered-in-error

  • From waitlist to planned, active, onhold, cancelled, or entered-in-error

  • From active to onhold, finished, cancelled, or entered-in-error

  • From onhold to active, finished, cancelled, or entered-in-error

  • From finished to entered-in-error

Info

Enforced constraints on duration of scheduled status with value ‘onhold’.

When setting scheduled status changes it is automatically enforced how long the EpisodeOfCare can be planned as paused. This is done to prevent patient plans being forgotten in paused state.

When setting EpisodeOfCare.ehealth-statusschedule:

  • If no further status changes are planned by the user, then the infrastructure will automatically insert a planned change back to ‘active’ 7 days after the start of ‘onhold’

  • Maximum duration of a planned ‘onhold’ status is 30 days.

Info

EpisodeOfCare automatically maintains a status history EpiodeOfCare.statushistory:

  • The status history is maintained as a list of ehealth-statusHistory objects each containing:

    • A status.

    • The Period of time the status was set.

  • The history is automatically updated when the status is (regardless of whether the status is set manually or is a scheduled change):

    • A new entry is added with the new status and an open-ended period that started at the time of the status change.

    • The Period.end in the entry for the previous status is updated to be the same as the start of the new entry.

      • One should consider the period to be exclusive-end to avoid confusion as the Period.end of one historic status and the Period.start of the next have the same timestamp.

Maintaining the set of CareTeam involved in the EpisodeOfCare

...