Hi Team,
We are trying to create new Communication of reminder category in public FHIR sandbox (secured) environment.
$ cat /tmp/create_communication_minimal
{
"resourceType": "Communication",
"status": "completed",
"category": [
{
"coding": [
{
"system": "
http://terminology.hl7.org/CodeSystem/communication-category",
"code": "reminder"
}
]
}
],
"priority": "urgent",
"topic": {
"text": "CDI Query"
},
"recipient": [
{
"reference": "Practitioner/12742069"
}
],
"sender": {
"reference": "Practitioner/12753114"
},
"subject": {
"reference": "Patient/12724071"
},
"payload": [
{
"contentAttachment": {
"contentType": "text/plain",
"data": "Q29tbXVuaWNhdGlvbg=="
}
}
]
}
$ curl -v -H Content-Type:application/fhir+json -H 'Authorization: Bearer ...'
https://fhir-ehr.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Communication -X POST --data @/tmp/create_communication_minimal
We are getting 400 Bad Request with only details "Invalid request" provided.
< HTTP/1.1 400 Bad Request
< Content-Type: application/fhir+json; charset=utf-8
< Transfer-Encoding: chunked
< Connection: keep-alive
< Date: Tue, 28 Mar 2023 06:50:25 GMT
< Cache-Control: no-cache
< Referrer-Policy: strict-origin-when-cross-origin
< Server-Response-Time: 218.619248
< Strict-Transport-Security: max-age=631152000
< Vary: Accept, Origin
< X-Content-Type-Options: nosniff
< X-Download-Options: noopen
< X-Frame-Options: SAMEORIGIN
< X-Permitted-Cross-Domain-Policies: none
< X-Request-Id: cf94f8b0-3569-43e6-af98-76391772dc2f+8gFA_HESr
< X-Runtime: 0.218549
< X-Xss-Protection: 1; mode=block
< X-Cache: Error from cloudfront
< Via: 1.1
99c9ffdbfc5207f9665251bb3284f588.cloudfront.net (CloudFront)
< X-Amz-Cf-Pop: LHR50-P4
< X-Amz-Cf-Id: wWRJYhX1zEXzKvDz8rEr2_QY77uQwC2rpQ-HOzSbnPh0p6N2PUtCVQ==
<
* Connection #0 to host
fhir-ehr.cerner.com left intact
{"resourceType":"OperationOutcome","issue":[{"severity":"error","code":"invalid","details":{"text":"Invalid request"}}]}
What is the actual reason of the failure? How we can debug it ?
Thanks,
Dmitry