The example in the POST /Task has a number of FHIR Schema errors. This is mostly around an object being used instead of an array.
In the corrected example below to get this working against NHSDigital-Task, I've also had to use identifier references in addition to raw Patient/{nhsNumber} <- I presume this is the intent, it's not clear if this is meant to be a NHS Number.
Have also added Task.code, this is to indicate what the Task is about and is recommended (presume the use case in this API is to reauthorise/reorder/renew a prescription)
Describe the bug
The example in the POST /Task has a number of FHIR Schema errors. This is mostly around an object being used instead of an array.
In the corrected example below to get this working against NHSDigital-Task, I've also had to use identifier references in addition to raw Patient/{nhsNumber} <- I presume this is the intent, it's not clear if this is meant to be a NHS Number.
Have also added Task.code, this is to indicate what the Task is about and is recommended (presume the use case in this API is to reauthorise/reorder/renew a prescription)
The use of a contained MedicationRequest is not recommended https://nhsd-confluence.digital.nhs.uk/display/APM/Designing+your+FHIR+API#DesigningyourFHIRAPI-using_containedUsingcontainedresources (I presume the supplier already has this resource, so I don't understand why it is being sent back to them. I wouldn't expect a patient to ask for a prescription to be created this way and not sure this makes sense from a clinical safety point of view)