Task
In the SFM Basis context, the national systems Reseptformidleren and Kjernejournal may be polled for a list of patients having changes:
Reseptformidleren keeps track of changes for patients belonging to a single multidose responsibility registration (Practitioner+Organisation)
Kjernejournal exposes a general service to poll for changes on a list of patients.
Basis GET /Task only supports code=8 and code=10 as search parameters. A code=10 search may return tasks with Task.code 10 and/or Task.code 17 in the bundle (for example when an M15 answer is present). Other task types in sfm-task-types are not additional Basis search options.
TASK retrieval for RF/Multidose
GET [base]/Task?code=8&owner=<HPR>&_lastUpdated=gt<dateTime>
Organisation is implicit given claims in HelseID token, owner is optional and overrides personal identity in token.
This operation may be performed without personal identity in token.
Note the following: Code=8 is from codesystem: sfm-task-types and is "Endring på multidosepasient"
Returns a list with one task for each multidosepatient registered in the given combination (organisation /practitioner) having changes in Reseptformidleren since the _lastUpdated time.
TASK retrieval for Kjernejournal
GET [base]/Task?code=10&_lastUpdated=gt<dateTime>&patientNiN=a,b,c...
Organisation is implicit given claims in HelseID token.
patientNiN contains a list of patients to check for changes against Kjernejournal
This operation may be performed without personal identity in token.
Note the following: Code=10 is from codesystem: sfm-task-types and is "Endring på pasient"
Returns a list with one task for each patient having changes in medication in Kjernejournal since the _lastUpdated time.
General TASK operations
Create operation on Task is not available
Delete operation on Task is not available
Search operation directly on Task without given code will not trigger a lookup in national systems
Search operations on Task other than described here have an unpredictable result
The most relevant action for sfm-Task is the search operations defined.
The format of the return is a search bundle containing tasks. Each task will have a "Patient" referred from for field. This reference is to a contained sfm-Patient within the Task.
Profile
sfm-Task
| SfmTask (Task) | | | http://hl7.org/fhir/StructureDefinition/Task | There are no (further) constraints on this element Element idTask Short descriptionActions required in SFM DefinitionThe SFM-Oppgave is used to identify actions that must be taken in SFM.
Data typehttp://hl7.org/fhir/StructureDefinition/Task |
| instantiatesCanonical | | ..0 | | There are no (further) constraints on this element Element idTask.instantiatesCanonical |
| instantiatesUri | | ..0 | | There are no (further) constraints on this element Element idTask.instantiatesUri |
| basedOn | | ..0 | | There are no (further) constraints on this element Element idTask.basedOn |
| groupIdentifier | | ..0 | | There are no (further) constraints on this element Element idTask.groupIdentifier |
| partOf | | ..0 | | There are no (further) constraints on this element Element idTask.partOf |
| status | S | | | There are no (further) constraints on this element Element idTask.status DefinitionThe current status of the task. All tasks created by SFM will initially have status "reqested". For some tasks EHR will be able to report that the task is fulfilled. This should then be set to completed.
|
| statusReason | | ..0 | | There are no (further) constraints on this element Element idTask.statusReason |
| businessStatus | | ..0 | | There are no (further) constraints on this element Element idTask.businessStatus |
| intent | S | | | There are no (further) constraints on this element Element idTask.intent DefinitionSFM will only use "order".
|
| code | S | 1.. | Binding | There are no (further) constraints on this element Element idTask.code DefinitionExamples of task types are:
- GodkjennKladd
- EndringMDPakking
Bindingsfm-task-types.codesystem (extensible) |
| coding | | | | There are no (further) constraints on this element |
| system | | | Fixed Value | There are no (further) constraints on this element Element idTask.code.coding.system Fixed valuehttp://ehelse.no/fhir/CodeSystem/sfm-task-types |
| code | | 1.. | | There are no (further) constraints on this element Element idTask.code.coding.code |
| display | | 1.. | | There are no (further) constraints on this element Element idTask.code.coding.display |
| description | S | 1.. | | There are no (further) constraints on this element Element idTask.description DefinitionIncludes the text that should be shown to the user within the work list.
|
| focus | | ..0 | | There are no (further) constraints on this element Element idTask.focus |
| for | S | | Reference(sfm-Patient) | There are no (further) constraints on this element Element idTask.for Data typeReference(sfm-Patient) |
| encounter | | ..0 | | There are no (further) constraints on this element Element idTask.encounter |
| executionPeriod | | ..0 | | There are no (further) constraints on this element Element idTask.executionPeriod |
| authoredOn | S | | | There are no (further) constraints on this element Element idTask.authoredOn |
| lastModified | S | | | There are no (further) constraints on this element Element idTask.lastModified |
| requester | | | Reference(sfm-PractitionerRole | http://hl7.org/fhir/StructureDefinition/Device) | There are no (further) constraints on this element Element idTask.requester Data typeReference(sfm-PractitionerRole | http://hl7.org/fhir/StructureDefinition/Device) |
| performerType | S | | | There are no (further) constraints on this element Element idTask.performerType |
| owner | S | | Reference(SfmOrganization | sfm-Practitioner) | There are no (further) constraints on this element Element idTask.owner DefinitionIndividual or organization currently responsible for task execution.
Data typeReference(SfmOrganization | sfm-Practitioner) |
| location | | ..0 | | There are no (further) constraints on this element Element idTask.location |
| reasonCode | | ..0 | | There are no (further) constraints on this element Element idTask.reasonCode |
| reasonReference | | ..0 | | There are no (further) constraints on this element Element idTask.reasonReference |
| insurance | | ..0 | | There are no (further) constraints on this element Element idTask.insurance |
| note | | ..0 | | There are no (further) constraints on this element Element idTask.note |
| relevantHistory | | ..0 | | There are no (further) constraints on this element Element idTask.relevantHistory |
| restriction | | ..0 | | There are no (further) constraints on this element Element idTask.restriction |
| input | | ..0 | | There are no (further) constraints on this element Element idTask.input |
| output | | ..0 | | There are no (further) constraints on this element Element idTask.output |