Managing tasks

Introduction

When a user opens EPJ, or functions that show tasks to the user, the sfm-Task resource should be used.

The resource is avaialble to make it possible for EPJ systems to present an updated tasks list to the user. Initially, SFM indicated support for "machine token" (without user identity). This is still not implemented, and a normal tolken with user identity must be used.

Only the command GET is made available for epj-systems.

Read task list

getTasks

  1. User opens EPJ
  2. EPJ request SFM for open tasks that needs to be solved by the user.
  3. SFM returns tasks dedicated to the user and tasks that can be solved by any user.
  4. EPJ presents the tasks to the user.

Input parameters

Get may include input parameters:

  • Type: (MD|KJ)
  • Pid: list of PIDs to be used for KJ lookup

The following combinations are accepted:

Type PID Description
none none Returns all tasks for whole installation without MD (multidose) nor KJ (kjernejournal = summary care record) request - to be used within other installations than GP (general practitioner = fastlege) and PLO (pleie og omsorg = nursing and care).
MD none Returns all tasks for whole installation with multidose (MD) lookup on each multidose patient - to be used within GP installations
KJ xxx,...,yyy Returns all tasks for identified patiens including kjernejournal (KJ) request - to be used within PLO installations

Return from SFM will include the following attributes:

  • identifier
  • status
  • intent
  • code (See Types of tasks below)
  • description
  • for (if there is identifed a patient that is benefisary of the task is performed).
  • owner (Practitioner identified with HPR AND DNR/FNR, or Organization) (valid from SFM version 4.0). HPR should be the preferred identifier for Practitioner, as FNR/DNR may be removed in the future.

Tasks for each patient that are the same type are aggretated into a single task.

Description includes details about the task. For aggregated tasks, the description includes aggregated information. eg. "4 resepter og 2 tilbakekallinger klar for sending".

Types of tasks

See:

This code system http://ehelse.no/fhir/CodeSystem/sfm-task-types defines the following codes:

CodeDisplay
1Godkjenn LIB
2Godkjenn dobbeltsignering
3Godkjenn kladd
4Send klargjort melding
5Intervensjon
6Spørsmål fra apotek
7PLL kommentar
8Endring på multidosepasient
9Ny multidosepakking
10Endring på pasient
11Nytt varsel fra FEST
12SFM har blitt oppdatert
13SFM planlegger nedetid
14Feil ved sending til RF
15Utleveringsmelding
16Mottatt svar på Helfosøknad
17Mottatt svar på søknad til SLV
18Melding til PLO
19Endring i legemiddelreaksjon
20Ny MD lege påmeldt
21Revurderingsdato, INR kontroll
22Endring i PID
23Endring i HPR
24Legemiddelreaksjonregistering er mangelfull
25Revurderingsdato er satt på legemiddelbehandling
26E-multidose er ikke startet

Tasks search by individual patient

Task can now be searched based on an individual patient. Note that now you will need to request: /Task?PatientTicket=[actual ticket]