Example Task - Misfile Rejected

This Task example illustrates the second step of the document misfile workflow in the case that the review outcome was "rejected". It builds on the misfile requested example Example Task - Misfile Requested to add details of when (lastModified), why (note.text) and by whom (owner) the proposed document misfile was rejected.

Task
Task.id[0]Example-DataStandardsWales-Task-MisfileRejected
Task.meta[0].versionId[0]2
Task.meta[0].profile[0]https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Task
Task.status[0]completed
Task.intent[0]proposal
Task.code[0].coding[0].code[0]review-document-misfile
Task.focus[0].reference[0]DocumentReference/Example-DataStandardsWales-DocumentReference-EventBased
Task.authoredOn[0]2025-07-22T13:32:15+00:00
Task.lastModified[0]2025-07-22T16:12:48+00:00
Task.requester[0].reference[0]Practitioner/Example-DSW-Practitioner-Nurse-EmilyMay
Task.owner[0].reference[0]Practitioner/Example-DSW-Practitioner-Consultant-JoeBloggs
Task.note[0].author[0].reference[0]Practitioner/Example-DSW-Practitioner-Nurse-EmilyMay
Task.note[0].time[0]2025-07-22T13:32:15+00:00
Task.note[0].text[0]The document has been misfiled and requires review.
Task.note[1].author[0].reference[0]Practitioner/Example-DSW-Practitioner-Consultant-JoeBloggs
Task.note[1].time[0]2025-07-22T16:12:48+00:00
Task.note[1].text[0]The document is correct.
Task.output[0].type[0].coding[0].code[0]misfile-review-outcome
Task.output[0].value[0]rejected
<Task xmlns="http://hl7.org/fhir">
<id value="Example-DataStandardsWales-Task-MisfileRejected" />
<versionId value="2" />
<profile value="https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Task" />
</meta>
<status value="completed" />
<intent value="proposal" />
<code value="review-document-misfile" />
</coding>
</code>
<reference value="DocumentReference/Example-DataStandardsWales-DocumentReference-EventBased" />
</focus>
<authoredOn value="2025-07-22T13:32:15+00:00" />
<lastModified value="2025-07-22T16:12:48+00:00" />
<reference value="Practitioner/Example-DSW-Practitioner-Nurse-EmilyMay" />
</requester>
<reference value="Practitioner/Example-DSW-Practitioner-Consultant-JoeBloggs" />
</owner>
<reference value="Practitioner/Example-DSW-Practitioner-Nurse-EmilyMay" />
</authorReference>
<time value="2025-07-22T13:32:15+00:00" />
<text value="The document has been misfiled and requires review." />
</note>
<reference value="Practitioner/Example-DSW-Practitioner-Consultant-JoeBloggs" />
</authorReference>
<time value="2025-07-22T16:12:48+00:00" />
<text value="The document is correct." />
</note>
<code value="misfile-review-outcome" />
</coding>
</type>
<valueCode value="rejected" />
</output>
</Task>
{
"resourceType": "Task",
"id": "Example-DataStandardsWales-Task-MisfileRejected",
"meta": {
"versionId": "2",
"profile": [
"https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Task"
]
},
"status": "completed",
"intent": "proposal",
"code": {
"coding": [
{
"code": "review-document-misfile"
}
]
},
"focus": {
"reference": "DocumentReference/Example-DataStandardsWales-DocumentReference-EventBased"
},
"authoredOn": "2025-07-22T13:32:15+00:00",
"lastModified": "2025-07-22T16:12:48+00:00",
"reference": "Practitioner/Example-DSW-Practitioner-Nurse-EmilyMay"
},
"owner": {
"reference": "Practitioner/Example-DSW-Practitioner-Consultant-JoeBloggs"
},
"note": [
{
"reference": "Practitioner/Example-DSW-Practitioner-Nurse-EmilyMay"
},
"time": "2025-07-22T13:32:15+00:00",
"text": "The document has been misfiled and requires review."
},
{
"reference": "Practitioner/Example-DSW-Practitioner-Consultant-JoeBloggs"
},
"time": "2025-07-22T16:12:48+00:00",
"text": "The document is correct."
}
],
"output": [
{
"type": {
"coding": [
{
"code": "misfile-review-outcome"
}
]
},
"valueCode": "rejected"
}
]
}