Create a communication
post
/Communication
Creates a new communication.
Request
Supported Media Types
- application/fhir+json
Header Parameters
-
Authorization(required): string
Contains the credentials to authenticate a consumer to the service. The credentials should be the OAuth2 Bearer Token.
-
accept(required): string
The media type to be requested. See what the resource's operation produces for what is supported.
Root Schema : CommunicationCreateBody
Type:
Show Source
object
-
category(required):
object category
A codeable definition of the communication type.
Note: Only CommunicationCategory values ofnotification
andreminder
and SNOMED CT312853008
are supported.
Example:{ "category": [ { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/communication-category", "code": "notification" } ] } ] }
-
encounter:
object encounter
The encounter associated with the communication.
Note: Subject is required when writing an encounter.
Example:{ "encounter" : { "reference" : "Encounter/89363836" } }
-
payload(required):
The text of the communication.
Note:- Content must be supplied as a
contentAttachment
withcontentType
anddata
defined. contentType
can be set to:application/xhtml+xml
text/plain
contentType
can contain a charset set to:utf-8
us-ascii
data
should be base64 encoded.- If the
contentType
isapplication/xhtml+xml
, then the data (when decoded) should at least contain the following:
{ "payload" : [ { "contentAttachment" : { "contentType" : "application/xhtml+xml", "data" : "PCFET0NUWVBFIGh0bWwgUFVCTElDICItLy9XM0MvL0RURCBYSFRNTCAxLjAgVHJhbnNpdGlvbmFsLy9FTiIKImh0dHA6Ly93d3cudzMub3JnL1RSL3hodG1sMS9EVEQveGh0bWwxLXRyYW5zaXRpb25hbC5kdGQiPjxodG1sPjxib2R5PjwvYm9keT48L2h0bWw+" } } ] }
- Content must be supplied as a
-
priority:
string
The priority of the communication.
Note: Onlyroutine
andurgent
priorities are supported.
Example:{ "priority": "routine" }
-
recipient(required):
The entity receiving the communication.
Note: Each recipient must be a practitioner or group.
Example:{ "recipient": [ { "reference" : "Practitioner/6373634" }, { "reference" : "Group/44466678" } ] }
-
reply-to:
object reply-to
The entity that replies are directed to.
Note: The reply-to must be a group.
Example:{ "url": "https://fhir-ehr.cerner.com/r4/StructureDefinition/reply-to", "valueReference": { "reference": "Group/123" } }
-
resourceType(required):
string
Allowed Values:
[ "Communication" ]
The type of the FHIR resource. -
sender(required):
object sender
The entity sending the communication.
Note: The sender must be a practitioner.
Example:{ "sender": { "reference": "Practitioner/631923" } }
-
status(required):
string
The status of the communication.
Note: All communications must be incompleted
status.
Example:{ "status": "completed" }
-
subject:
object subject
The patient that is the focus of the communication.
Note: Only Patient is supported as the subject.
Example:{ "subject": { "reference": "Patient/9836548" } }
-
topic:
string
The topic of the communication, similar to the subject field of an email.
Note: Currently, only free-text topics are supported.
Example:{ "topic" : { "text": "Patient Consult Request" } }
Example:
{
"resourceType": "Communication",
"extension": [
{
"url": "https://fhir-ehr.cerner.com/r4/StructureDefinition/reply-to",
"valueReference": {
"reference": "Group/6345478364"
}
}
],
"status": "completed",
"category": [
{
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/communication-category",
"code": "reminder"
}
]
}
],
"priority": "urgent",
"subject": {
"reference": "Patient/12457978"
},
"topic": {
"text": "CDI Query"
},
"encounter": {
"reference": "Encounter/97697401"
},
"recipient": [
{
"reference": "Practitioner/744113"
},
{
"reference": "Group/6345478364"
}
],
"sender": {
"reference": "Practitioner/593923"
},
"payload": [
{
"contentAttachment": {
"contentType": "text/plain",
"data": "Q29tbXVuaWNhdGlvbg=="
}
}
]
}
Nested Schema : category
Type:
object
A codeable definition of the communication type.
Note: Only CommunicationCategory values of
Example:
Show Source
Note: Only CommunicationCategory values of
notification
and reminder
and SNOMED CT 312853008
are supported.Example:
{ "category": [ { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/communication-category", "code": "notification" } ] } ] }
Nested Schema : encounter
Type:
object
The encounter associated with the communication.
Note: Subject is required when writing an encounter.
Example:
Show Source
Note: Subject is required when writing an encounter.
Example:
{
"encounter" : {
"reference" : "Encounter/89363836"
}
}
Nested Schema : reply-to
Type:
object
The entity that replies are directed to.
Note: The reply-to must be a group.
Example:
Show Source
Note: The reply-to must be a group.
Example:
{
"url": "https://fhir-ehr.cerner.com/r4/StructureDefinition/reply-to",
"valueReference": {
"reference": "Group/123"
}
}
Nested Schema : sender
Type:
object
The entity sending the communication.
Note: The sender must be a practitioner.
Example:
Show Source
Note: The sender must be a practitioner.
Example:
{
"sender": {
"reference": "Practitioner/631923"
}
}
Nested Schema : subject
Type:
object
The patient that is the focus of the communication.
Note: Only Patient is supported as the subject.
Example:
Show Source
Note: Only Patient is supported as the subject.
Example:
{
"subject": {
"reference": "Patient/9836548"
}
}
Response
Supported Media Types
- application/fhir+json
201 Response
OK
Headers
-
ETag: string
The identifier for a specific version of a resource. This identifier is formatted as
W/"
and used to specify the" If-Match
header value on subsequent updates. -
Location: string
The URL location of the created entity.
Example:https://fhir-ehr-code.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Communication/642774
-
X-Request-Id: string
Oracle troubleshooting identifier.
-
opc-request-id: string
Oracle troubleshooting identifier.
Default Response
This operation supports the following authorization types:
Example Request:
POST https://fhir-ehr-code.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Communication
Example Response:
Cache-Control: no-cache
Content-Length: 0
Content-Type: text/html
Date: Mon, 06 Apr 2020 19:00:43 GMT
Etag: W/"1"
Location: https://fhir-ehr-code.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Communication/17228728
Last-Modified: Mon, 06 Apr 2020 19:00:43 GMT
Vary: Origin
X-Request-Id: 11111111111111111111111111111111
The ETag response header indicates the current If-Match version to use on a subsequent update.