--- http_interactions: - request: method: post uri: https://develop.lifen.fr/fhir/CommunicationRequest body: encoding: UTF-8 string: '{"resourceType":"CommunicationRequest","sender":[{"reference":"valid_sender_uuid"}],"recipient":[{"reference":"valid_recipient_uuid"}],"contained":[{"id":"valid_recipient_uuid","resourceType":"Practitioner","address":[{"id":"valid_channel_uuid"}]},{"id":"patient","resourceType":"Patient","name":[{"family":["Dupond"],"given":["Jean"]}],"birthDate":"2000-01-01"}],"category":[{"coding":[{"system":"http://honestica.com/fhir/communication/category","code":"MEDICAL_REPORT"}]}],"payload":[{"contentAttachment":{"data":"binary_data","title":"Master Plan","contentType":"{application/pdf}"}}],"subject":[{"reference":"patient"}]}' headers: User-Agent: - Faraday v0.11.0 Authorization: - Bearer valid_application_access_token Content-Type: - application/json Accept: - application/json Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 response: status: code: 500 message: Created headers: Server: - Apache-Coyote/1.1 X-B3-Sampled: - '1' X-B3-Spanid: - 4033e9bebe0988e4 X-B3-Traceid: - 4033e9bebe0988e4 X-Content-Type-Options: - nosniff X-Xss-Protection: - 1; mode=block Cache-Control: - no-cache, no-store, max-age=0, must-revalidate Pragma: - no-cache Expires: - '0' X-Powered-By: - HAPI FHIR 2.2 REST Server (FHIR Server; FHIR 1.0.2/DSTU2) Content-Location: - http://develop.lifen.fr/fhir/OperationOutcome/a2f959a5-9211-48ee-8350-22bc02fee2b8 Location: - http://develop.lifen.fr/fhir/OperationOutcome/a2f959a5-9211-48ee-8350-22bc02fee2b8 Content-Type: - application/json+fhir;charset=UTF-8 Transfer-Encoding: - chunked Date: - Tue, 07 Mar 2017 15:37:55 GMT Connection: - close Access-Control-Allow-Credentials: - 'true' body: encoding: UTF-8 string: |- { "resourceType": "OperationOutcome", "id": "a2f959a5-9211-48ee-8350-22bc02fee2b8", "issue": [ { "severity": "information", "diagnostics": "CommunicationRequest accepted" } ] } http_version: recorded_at: Tue, 07 Mar 2017 15:37:56 GMT recorded_with: VCR 3.0.3