Stream: implementers
Topic: FHIR Sample JSON
Ancy (Apr 26 2021 at 11:55):
How to add extension-error-expression to Task Resource?
Could anyone please share a sample FHIR JSON structure for the same?
Lloyd McKenzie (Apr 26 2021 at 17:21):
Where is the "error-expression" extension defined? It sounds like an odd extension to appear on Task.
There are lots of examples of extensions on various resources in the spec. Extensions on Task would work the same way. See here for examples: https://build.fhir.org/extensibility
Ancy (Apr 27 2021 at 06:35):
Thank you @Lloyd McKenzie
Ancy (Apr 27 2021 at 06:36):
As a payer, how can I add errors/issues under Task. output ? Could anyone please share a sample Task.output structure with errors?
Lloyd McKenzie (Apr 27 2021 at 13:57):
What IG are you using that would expect to include 'errors' under Task?
Ancy (Apr 27 2021 at 14:59):
For our payer application, I am using the PHP-FHIR library https://github.com/dcarbone/php-fhir to generate the responses of version R4.
I need to generate a response to the cancellation of a preauthorization request(Task-cancel).
Please find the following
sample request link: - https://www.hl7.org/fhir/task-example-fm-cancel.json.html
sample response- https://www.hl7.org/fhir/task-example-fm-status-resp.json.html
What fields can be updated in the Task-Response to indicate that the cancellation failed?
Vassil Peytchev (Apr 27 2021 at 16:06):
Since the Task requesting the cancelation has Task.status of requested
, the most straight-forward way to indicate that the cancellation failed seems to be to set Task.status to rejected
, and if appropriate, you could provide Task.statusReason for a more detailed reason why the cancellation failed.
Information on the values of Task.status and the relevant state machine is at http://build.fhir.org/task.html#statemachine
Ancy (Apr 27 2021 at 17:09):
Thank you very much @Vassil Peytchev
Last updated: Apr 12 2022 at 19:14 UTC