Excerpt |
---|
Guidelines or example of queries for retrieving task and clinical impressions. |
Table of Contents |
---|
minLevel | 1 |
---|
maxLevel | 6 |
---|
outline | false |
---|
style | none |
---|
type | list |
---|
printable | true |
---|
|
How do I get the list of unassigned Task resources for my CareTeam?
Code Block |
---|
|
GET [task.base]/Task/?status=requested&reponsible=<my CareTeam reference> |
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:
Code Block |
---|
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 |
Code Block |
---|
GET [task.base]/Task/?reponsible=<my CareTeam reference>&_include=Task:focus |
...
The _include=Task:focus
works for resources provided on the same service as Task, currently ClinicalImpression only.
How do I get a list of ClinicalImpression resources in an EpisodeOfCare?
The solution must perform two searches to get the list of ClinicalImpression resources referencing an EpisodeOfCare.
...
Code Block |
---|
GET [task.base]/ClinicalImpression/?episodeOfCare=<episode of care reference(s)>
(GET [careplan.base]/CarePlan/?episodeOfCare=<episode of care reference>)
GET [task.base]/ClinicalImpression/?carePlan=<careplan reference(s)> |
Example:
Code Block |
---|
GET [task.base]/Task?_tag=http://ehealth.sundhed.dk/cs/ehealth-system|xa |
...