Create a new Task resource

post

/fhir/r4/{query_endpoint_alias}/Task

This path creates a Task resource.

The Task.write scope is required.

Request

Supported Media Types
Header Parameters
Body ()
The Task FHIR resource.
Root Schema : Task
Type: object
The Task FHIR resource.
Show Source
Example:
{
  "resourceType": "Task",
  "id": "1066",
  "status": "completed",
  "intent": "unknown",
  "focus": {
    "reference": "Claim/62909716"
  },
  "output": [
    {
      "type": {
        "coding": [
          {
            "code": "patient",
            "display": "patient"
          }
        ],
        "text": "Patient"
      },
      "valueReference": {
        "reference": "Patient/12621991",
        "identifier": {
          "system": "891c71549f4a4bb439b4de8a532f155c_2.16.840.1.113883.3.995.10.1.1",
          "value": "6696"
        }
      }
    },
    {
      "type": {
        "coding": [
          {
            "code": "encounter",
            "display": "encounter"
          }
        ],
        "text": "Encounter"
      },
      "valueReference": {
        "reference": "https://fhir-ehr.sandboxcerner.com/r4/dacc6494-e336-45ad-8729-b789ff8663c6/Encounter/97841466",
        "type": "Encounter",
        "identifier": {
          "system": "891c71549f4a4bb439b4de8a532f155c_2.16.840.1.113883.3.995.10.2.1",
          "value": "15269"
        }
      }
    },
    {
      "type": {
        "coding": [
          {
            "code": "binary",
            "display": "binary"
          }
        ],
        "text": "Binary"
      },
      "valueAttachment": {
        "contentType": "application/xml",
        "language": "en-us",
        "data": "<base64Binary>",
        "url": "https://cell1.query.stage.cdexhub.us-ashburn-1.oci.oraclecloud.com/fhir/r4/{{queryEndpointAlias}}/Binary/urn:uuid:9a30e4f6-681f-325f-a5e0-456f980da169",
        "size": 34162,
        "hash": "d37ec08d5b2c41667b07a94784f45b94c7a2b557",
        "creation": "2025-06-27T20:05:14Z"
      }
    }
  ]
}
Nested Schema : Focus
Match All
Show Source
Nested Schema : input
Type: array
A list of inputs that allow additional custom fields for gathering claim data.
Show Source
Nested Schema : Element
Type: object
Show Source
Nested Schema : Focus-allOf[1]
Type: object
Show Source
Nested Schema : extension
Type: array
Show Source
Nested Schema : Extension
Type: object
Show Source
Nested Schema : Input
Match All
Show Source
Nested Schema : Input-allOf[1]
Type: object
Show Source
Nested Schema : Type
Match All
Show Source
Nested Schema : Type-allOf[1]
Type: object
Show Source
Nested Schema : coding
Type: array
Coding system
Show Source
Nested Schema : Coding
Match All
Show Source
Nested Schema : Coding-allOf[1]
Type: object
Show Source
Back to Top

Response

Supported Media Types

201 Response

Created.
Headers
Body ()
Root Schema : Task
Type: object
The Task FHIR resource.
Show Source
Example:
{
  "resourceType": "Task",
  "id": "1066",
  "status": "completed",
  "intent": "unknown",
  "focus": {
    "reference": "Claim/62909716"
  },
  "output": [
    {
      "type": {
        "coding": [
          {
            "code": "patient",
            "display": "patient"
          }
        ],
        "text": "Patient"
      },
      "valueReference": {
        "reference": "Patient/12621991",
        "identifier": {
          "system": "891c71549f4a4bb439b4de8a532f155c_2.16.840.1.113883.3.995.10.1.1",
          "value": "6696"
        }
      }
    },
    {
      "type": {
        "coding": [
          {
            "code": "encounter",
            "display": "encounter"
          }
        ],
        "text": "Encounter"
      },
      "valueReference": {
        "reference": "https://fhir-ehr.sandboxcerner.com/r4/dacc6494-e336-45ad-8729-b789ff8663c6/Encounter/97841466",
        "type": "Encounter",
        "identifier": {
          "system": "891c71549f4a4bb439b4de8a532f155c_2.16.840.1.113883.3.995.10.2.1",
          "value": "15269"
        }
      }
    },
    {
      "type": {
        "coding": [
          {
            "code": "binary",
            "display": "binary"
          }
        ],
        "text": "Binary"
      },
      "valueAttachment": {
        "contentType": "application/xml",
        "language": "en-us",
        "data": "<base64Binary>",
        "url": "https://cell1.query.stage.cdexhub.us-ashburn-1.oci.oraclecloud.com/fhir/r4/{{queryEndpointAlias}}/Binary/urn:uuid:9a30e4f6-681f-325f-a5e0-456f980da169",
        "size": 34162,
        "hash": "d37ec08d5b2c41667b07a94784f45b94c7a2b557",
        "creation": "2025-06-27T20:05:14Z"
      }
    }
  ]
}
Nested Schema : Focus
Match All
Show Source
Nested Schema : input
Type: array
A list of inputs that allow additional custom fields for gathering claim data.
Show Source
Nested Schema : Element
Type: object
Show Source
Nested Schema : Focus-allOf[1]
Type: object
Show Source
Nested Schema : extension
Type: array
Show Source
Nested Schema : Extension
Type: object
Show Source
Nested Schema : Input
Match All
Show Source
Nested Schema : Input-allOf[1]
Type: object
Show Source
Nested Schema : Type
Match All
Show Source
Nested Schema : Type-allOf[1]
Type: object
Show Source
Nested Schema : coding
Type: array
Coding system
Show Source
Nested Schema : Coding
Match All
Show Source
Nested Schema : Coding-allOf[1]
Type: object
Show Source

400 Response

Bad Request.

401 Response

Authorization information is missing or invalid.

403 Response

The user does not have sufficient access to perform this action.

422 Response

Unprocessable Entity.

500 Response

Internal Server error.
Back to Top