Hi,
I am trying to run a Create ChargeItem request. I am getting 400 error with "text=Invalid request".
I am unsure what that means.
Here is my request and response body.
Request -
POST
https://fhir-ehr.sandboxcerner.com/r4//eda403a7-0844-46aa-9181-1ef5ddf6ef90/ChargeItem/$create HTTP/1.1
User-Agent: .NET FhirClient for FHIR 4.0.1
Accept: application/fhir+json; charset=utf-8; fhirVersion=4.0
Authorization: Bearer eyJraWQiOiIyMDIzLTAxLTE4VDE5OjUwOjI2Ljc0NC5lYyIsInR5cCI6IkpXVCIsImFsZyI6IkVTMjU2In0.eyJpc3MiOiJodHRwczpcL1wvYXV0aG9yaXphdGlvbi5zYW5kYm94Y2VybmVyLmNvbVwvIiwiZXhwIjoxNjc0MTU4OTYxLCJpYXQiOjE2NzQxNTgzNjEsImp0aSI6ImE2NGEyMmMxLWRjOTQtNGIwNi1hMjliLTA4MWI4ODEyNDQ5YyIsInVybjpjZXJuZXI6YXV0aG9yaXphdGlvbjpjbGFpbXM6dmVyc2lvbjoxIjp7InZlciI6IjEuMCIsInByb2ZpbGVzIjp7InNtYXJ0LXYxIjp7ImF6cyI6InN5c3RlbVwvQWNjb3VudC5yZWFkIHN5c3RlbVwvQWxsZXJneUludG9sZXJhbmNlLnJlYWQgc3lzdGVtXC9BcHBvaW50bWVudC5yZWFkIHN5c3RlbVwvQmluYXJ5LnJlYWQgc3lzdGVtXC9DYXJlUGxhbi5yZWFkIHN5c3RlbVwvQ2FyZVRlYW0ucmVhZCBzeXN0ZW1cL0NoYXJnZUl0ZW0ucmVhZCBzeXN0ZW1cL0NoYXJnZUl0ZW0ud3JpdGUgc3lzdGVtXC9Db21tdW5pY2F0aW9uLnJlYWQgc3lzdGVtXC9Db25kaXRpb24ucmVhZCBzeXN0ZW1cL0NvbnNlbnQucmVhZCBzeXN0ZW1cL0NvdmVyYWdlLnJlYWQgc3lzdGVtXC9EZXZpY2UucmVhZCBzeXN0ZW1cL0RvY3VtZW50UmVmZXJlbmNlLnJlYWQgc3lzdGVtXC9FbmNv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724
Expect: 100-continue
{"resourceType":"Parameters","parameter":[{"name":"transactionId","valueUuid":"urn:uuid:aa7623a0-0c7b-11ec-82a8-0242ac130003"},{"name":"chargeItem","resource":{"resourceType":"ChargeItem","status":"unknown","code":{"coding":[{"extension":[{"url":"
https://fhir-ehr.cerner.com/r4/StructureDefinition/bill-code-schedule","valueCoding":{"system":"
https://fhir.cerner.com/eda403a7-0844-46aa-9181-1ef5ddf6ef90/codeSet/14002","code":"667687"}}],"system":"
https://fhir.cerner.com/eda403a7-0844-46aa-9181-1ef5ddf6ef90/CodeSystem/BillCodes-CDM_SCHED","code":"01012021"}]},"subject":{"reference":"Patient/9050500"},"context":{"reference":"Encounter/97955431"},"occurrenceDateTime":"2011-10-10T12:19:01+00:00","quantity":{"value":1}}}]}
Response -
HTTP/1.1 400 Bad Request
Content-Type: application/fhir+json; charset=utf-8
Connection: keep-alive
Date: Thu, 19 Jan 2023 19:59:26 GMT
Cache-Control: no-cache
Server-Response-Time: 2724.878876
Vary: Origin
X-Request-Id: 4427829d-aef7-4b6a-9afa-d75ca90c2f44+XZC0_FNyZ
X-Runtime: 2.724795
X-Cache: Error from cloudfront
Via: 1.1
860065ea331017b0ace9fee85adf8e5c.cloudfront.net (CloudFront)
X-Amz-Cf-Pop: IAD55-P2
X-Amz-Cf-Id: meJcUWUrtEanfOw0f2-q-a4mz1DdYP2xoWo8S4b8t2_BHdWRCTmDjQ==
Content-Length: 120
{"resourceType":"OperationOutcome","issue":[{"severity":"error","code":"invalid","details":{"text":"Invalid request"}}]}
Let me know if you could help me. Thanks.
-Anushree