Creates Task Resource
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.
Request
- Base URLhttps://stage.ema-api.com/ema-dev/firm/apiportal/ema
- URLhttps://stage.ema-api.com/ema-dev/firm/apiportal/ema/fhir/v2/Task
- AuthHTTP bearer and API key in header x-api-key
Request body
A FHIR resource
Response
Success
A FHIR resource
Changes
No recorded changes to this operation across all 1 revision of this API.