Creates a new EMA Task (Task.code is always assigned as a general EMA task; PM Recalls cannot be created through this endpoint). Required fields: description (must be in the form <TaskType>: <reason> — the prefix must be one of the values returned by GET /fhir/v2/ValueSet/task-name for the authenticated firm), location (a valid Location/ reference), priority (routine, urgent, or stat), and at least one assignee in input — a Practitioner/ reference for an individual, or a CareTeam/ reference for a staff group. type.text (e.g. "Performer with Role: DOCTOR") is a free-text label describing the assignee; a type.coding is not required and does not appear in the created resource. Task.status, Task.intent, and Task.requester are not required in the request — EMA assigns them (new tasks start as ready/order; requester defaults to the practitioner associated with the API credentials used to create the task). Task.for, Task.encounter, and Task.basedOn are optional but validated if present — basedOn must reference a ServiceRequest that resolves to a lab request/order belonging to the authenticated firm. If including Task.note[].time, either every note must have a time or none may; note times must be non-decreasing.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
400BAD REQUEST - The request was bad, often due to a missing required parameter
401NOT AUTHORIZED - Authentication error; this token is not allowed access to the API
403FORBIDDEN
404NOT FOUND
422UNPROCESSABLE ENTITY - Request could not be processed; typically a validation error
429TOO MANY REQUESTS - Request was rate limited (1000 calls/min default); please retry
500SERVER ERROR - Internal Server Error

