How to get list of unassigned Task resources for my CareTeam?
GET [task.base]/Task/?status=requested&reponsible=<my CareTeam reference>
How to get list of Task resources for my CareTeam sorted by priority and paginated?
Ordering of the Priority value is by default lexicographical in FHIR. It is possible to get a descending priority ordering by using the following two queries:
GET [task.base]/Task/?status=requested&reponsible=<my CareTeam reference>&priority=asap,stat&_sort=-status
GET [task.base]/Task/?status=requested&reponsible=<my CareTeam reference>&priority=routine,urgent&_sort=-status
How to get a list of ClinicalImpression resources referenced in Task resources for my CareTeam?
GET [task.base]/Task/?reponsible=<my CareTeam reference>&_include=Task:focus
This search gives a paginated result where the Task and referenced ClinicalImpression are contained in the same page.
The _include=Task:focus works for resources provided on the same service as Task, currently ClinicalImpression only.
How to get list of Task resources related to a specific solution (eg K-Pro or KOL)
Example: GET [task.base]/Task?_tag=http://ehealth.sundhed.dk/cs/ehealth-system|xa
Possible tags can be found in this CodeSystem: https://docs.ehealth.sundhed.dk/latest-released/ig/CodeSystem-ehealth-system.html
Details about co-existence tags can be found here: Multitenancy