Hi Fenil,
I have tried with the following Post Body and I am able to create a communication successfully.
I have switched the Sender and Receiver, also removed Group in the request and got the successful response.
Looks like Group is not mandatory, in that case can I skip Group details in my real time communication data. Please confirm.
12742666 is the Practitioner Id given for our account, but I couldn't use that Id for Sender. Can you please let me know what could be the reason?
In real time implementation, do our app needs any valid Practitioner Id for sending any communication through FHIR.
{
"resourceType": "Communication",
"status": "completed",
"category": [
{
"coding": [
{
"code": "notification"
}
]
}
],
"priority": "routine",
"subject": {
"reference": "Patient/12724069"
},
"topic": {
"text": "CDI Query"
},
"encounter": {
"reference": "Encounter/97939527"
},
"recipient": [
{
"reference": "Practitioner/12742666"
}
],
"sender": {
"reference": "Practitioner/12742069"
},
"payload": [
{
"contentAttachment": {
"contentType": "text/plain",
"data": "VGVzdCBGcm9tIFJldmVudGljcw=="
}
}
]
}