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
- application/fhir+json
Header Parameters
-
authorization(required): string
This string contains the credentials to authenticate a consumer to the service. This value should be the OAuth 2.0 bearer token.
The Task FHIR resource.
Root Schema : Task
Type:
object
The Task FHIR resource.
Show Source
-
focus:
Focus
-
id:
string
The logical ID of this artifact.
-
input:
array input
A list of inputs that allow additional custom fields for gathering claim data.
-
intent:
string
unknown | proposal | plan | order | original-order | reflex-order | filler-order | instance-order | option
-
resourceType:
string
The resource type is DocumentReference.
-
status:
string
draft | requested | received | accepted | +
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 : input
Type:
array
A list of inputs that allow additional custom fields for gathering claim data.
Show Source
Nested Schema : Element
Type:
Show Source
object
-
extension:
array extension
-
id:
string
Unique id for inter-element referencing
Nested Schema : Focus-allOf[1]
Type:
Show Source
object
-
reference:
string
Reference to another resource
Nested Schema : Extension
Type:
Show Source
object
-
url:
string
Minimum Length:
1
identifies the meaning of the extension -
value:
string
Minimum Length:
1
Value of extension
Nested Schema : Input-allOf[1]
Type:
Show Source
object
-
type:
Type
-
valueBoolean:
boolean
Value Boolean
-
valueId:
string
Value identifier
Nested Schema : Type-allOf[1]
Type:
Show Source
object
-
coding:
array coding
Coding system
-
text:
string
Human-readable text
Nested Schema : Coding-allOf[1]
Type:
Show Source
object
-
code:
string
Minimum Length:
1
Symbol in syntax defined by the system -
display:
string
Minimum Length:
1
Representation defined by the system -
system:
string
Minimum Length:
1
Identity of the terminology system -
userSelected:
boolean
If this coding was chosen directly by the user
-
version:
string
Minimum Length:
1
Version of the system - if relevant
Response
Supported Media Types
- application/fhir+json
201 Response
Created.
Headers
-
X-Request-Id: string
Oracle troubleshooting identifier
-
opc-request-id: string
Oracle troubleshooting identifier
Root Schema : Task
Type:
object
The Task FHIR resource.
Show Source
-
focus:
Focus
-
id:
string
The logical ID of this artifact.
-
input:
array input
A list of inputs that allow additional custom fields for gathering claim data.
-
intent:
string
unknown | proposal | plan | order | original-order | reflex-order | filler-order | instance-order | option
-
resourceType:
string
The resource type is DocumentReference.
-
status:
string
draft | requested | received | accepted | +
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 : input
Type:
array
A list of inputs that allow additional custom fields for gathering claim data.
Show Source
Nested Schema : Element
Type:
Show Source
object
-
extension:
array extension
-
id:
string
Unique id for inter-element referencing
Nested Schema : Focus-allOf[1]
Type:
Show Source
object
-
reference:
string
Reference to another resource
Nested Schema : Extension
Type:
Show Source
object
-
url:
string
Minimum Length:
1
identifies the meaning of the extension -
value:
string
Minimum Length:
1
Value of extension
Nested Schema : Input-allOf[1]
Type:
Show Source
object
-
type:
Type
-
valueBoolean:
boolean
Value Boolean
-
valueId:
string
Value identifier
Nested Schema : Type-allOf[1]
Type:
Show Source
object
-
coding:
array coding
Coding system
-
text:
string
Human-readable text
Nested Schema : Coding-allOf[1]
Type:
Show Source
object
-
code:
string
Minimum Length:
1
Symbol in syntax defined by the system -
display:
string
Minimum Length:
1
Representation defined by the system -
system:
string
Minimum Length:
1
Identity of the terminology system -
userSelected:
boolean
If this coding was chosen directly by the user
-
version:
string
Minimum Length:
1
Version of the system - if relevant
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.