Unable to post ChargeItem create request

134 views
Skip to first unread message

Anushree Naik

unread,
Nov 22, 2022, 4:09:12 PM11/22/22
to Oracle Cerner FHIR Developers
Hello, 
I am trying to make a post request for ChargeItem - R4 API 
POST /ChargeItem/:id/$create

My request has all the required fields. 

REQUEST - 

{"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.ehr.cerner.com/ec2458f2-1e24-41c8-b71b-0e701af7583d/CodeSystem/BillCodes-CPT","code":"G0511"}}]}]},"subject":{"reference":"Patient/12710060"},"context":{"reference":"Encounter/97929532"},"occurrenceDateTime":"2021-11-01","quantity":{"value":1}}}]}


Error RESPONSE - 
{"resourceType":"OperationOutcome","issue":[{"severity":"error","code":"not-found","details":{"text":"Not Found"}}]}


My assumptions - 
1. This error is probably because of the wrong transaction ID.
2. The procedure code is invalid, which is why it is throwing an error. 

Please help in identifying the issue. Am I missing something?

Thanks, 
Anushree

Davis Christi (Oracle Cerner)

unread,
Nov 22, 2022, 4:38:12 PM11/22/22
to Oracle Cerner FHIR Developers
Hello,
As per the group guidelines, can you please provide us with the X-Request-ID of the transaction?

Thanks
Davis (Oracle Cerner)

Anushree Naik

unread,
Nov 30, 2022, 11:45:05 AM11/30/22
to Oracle Cerner FHIR Developers
Hi Davis, thank you for responding. I do not understand what is  X-Request-ID of the transaction is. Can you explain, please?
At the moment, I am using a dummy transaction ID to test the implementation.

Thank you,
Anushree

Chris Orlando

unread,
Nov 30, 2022, 4:09:03 PM11/30/22
to Oracle Cerner FHIR Developers

Anushree Naik,

The X-Request-ID in the  HTTP response headers.

-- Chris

Anushree Naik

unread,
Dec 1, 2022, 11:16:53 AM12/1/22
to Oracle Cerner FHIR Developers
Hello Chris, 

X-Request-Id: fecd7c2a-8a68-497a-b60f-bc3bf3ff22ca+W6O5_LbOv

Here is the response body 

HTTP/1.1 404 Not Found
Content-Type: application/fhir+json; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Date: Thu, 01 Dec 2022 16:14:31 GMT
Cache-Control: no-cache
Server-Response-Time: 4.82607
Vary: Origin
X-Request-Id: fecd7c2a-8a68-497a-b60f-bc3bf3ff22ca+W6O5_LbOv
X-Runtime: 0.004769
X-Cache: Error from cloudfront
Via: 1.1 d4b67fda8355378cec4afc079701f8e6.cloudfront.net (CloudFront)
X-Amz-Cf-Pop: JFK50-P2
X-Amz-Cf-Id: dzeahYc07HuZO8wyCS5vSVhV9FenXxRVs-WRYdgdDz0CRMI-KBHcaQ==

74

{"resourceType":"OperationOutcome","issue":[{"severity":"error","code":"not-found","details":{"text":"Not Found"}}]}
0

Thanks, 
Anushree N

Chris Orlando

unread,
Dec 1, 2022, 1:59:16 PM12/1/22
to Oracle Cerner FHIR Developers

Anushree,

Sorry, I'm not Cerner support. Just providing some helpful info.

-- Chris

Anushree Naik

unread,
Dec 1, 2022, 2:29:00 PM12/1/22
to Oracle Cerner FHIR Developers
X-Request-Id: fecd7c2a-8a68-497a-b60f-bc3bf3ff22ca+W6O5_LbOv

Here is the response body 

HTTP/1.1 404 Not Found
Content-Type: application/fhir+json; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Date: Thu, 01 Dec 2022 16:14:31 GMT
Cache-Control: no-cache
Server-Response-Time: 4.82607
Vary: Origin
X-Request-Id: fecd7c2a-8a68-497a-b60f-bc3bf3ff22ca+W6O5_LbOv
X-Runtime: 0.004769
X-Cache: Error from cloudfront
Via: 1.1 d4b67fda8355378cec4afc079701f8e6.cloudfront.net (CloudFront)
X-Amz-Cf-Pop: JFK50-P2
X-Amz-Cf-Id: dzeahYc07HuZO8wyCS5vSVhV9FenXxRVs-WRYdgdDz0CRMI-KBHcaQ==

74
{"resourceType":"OperationOutcome","issue":[{"severity":"error","code":"not-found","details":{"text":"Not Found"}}]}
0

Thanks, 
Anushree N

On Tuesday, November 22, 2022 at 4:38:12 PM UTC-5 Davis Christi (Oracle Cerner) wrote:

Anushree Naik

unread,
Dec 7, 2022, 10:39:54 AM12/7/22
to Oracle Cerner FHIR Developers

Davis Christi (Oracle Cerner)

unread,
Dec 7, 2022, 4:00:01 PM12/7/22
to Oracle Cerner FHIR Developers
Hello Anushree,

Apologies for the late response.
So it looks like the endpoint that you are trying to hit seems incorrect and hence the service is throwing a 404 NOT FOUND error.
The :id path parameter needs to be the Id value of the existing ChargeItem that you are trying to run a credit operation on.

Thank you
Davis (Oracle Cerner)

Anushree Naik

unread,
Dec 22, 2022, 12:01:44 PM12/22/22
to Oracle Cerner FHIR Developers
Hi Davis, 

thank you for your input. 

SendChagres

Reference -
https://fhir.cerner.com/millennium/r4/financial/general/charge-item/#operation-charge-item-create
https://www.hl7.org/fhir/chargeitem.html

This call is supposed to ping this endpoint - POST /ChargeItem/:id/$create

But according to the CERNER documents, the resourceType must be Parameters



The Create call in FHIR - TResource Create<TResource>(TResource resource) where TResource : Resource - TResource must be of the same type as ResourceType.

If this call needs to succeed, the resourceType needs to change from Parameters to ChargeItem.
The FHIR Client follows FHIR standards, so I cannot force the FHIR Client to create a ChargeItem using a Parameter body. When attempting to do so, the FHIR Client will view this as a request to create a Parameter object and not a ChargeItem and the FHIR Client will change the request URL accordingly.

When I do that, the request hits this endpoint -

Request
POST https://fhir-ehr.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/ChargeItem HTTP/1.1
User-Agent: .NET FhirClient for FHIR 4.0.1
Accept: application/fhir+json; charset=utf-8; fhirVersion=4.0
Authorization: Bearer eyJraWQiOiIyMDIyLTEyLTIwVDIxOjQ0OjMzLjU1OC5lYyIsInR5cCI6IkpXVCIsImFsZyI6IkVTMjU2In0.eyJpc3MiOiJodHRwczpcL1wvYXV0aG9yaXphdGlvbi5jZXJuZXIuY29tXC8iLCJleHAiOjE2NzE3MjQzODgsImlhdCI6MTY3MTcyMzc4OCwianRpIjoiNWI0YzdjMzYtMGVkOC00NTMzLTllNGEtY2EwODFmZTU5N2IxIiwidXJuOmNlcm5lcjphdXRob3JpemF0aW9uOmNsYWltczp2ZXJzaW9uOjEiOnsidmVyIjoiMS4wIiwicHJvZmlsZXMiOnsic21hcnQtdjEiOnsiYXpzIjoic3lzdGVtXC9BcHBvaW50bWVudC5yZWFkIHN5c3RlbVwvQmluYXJ5LnJlYWQgc3lzdGVtXC9Eb2N1bWVudFJlZmVyZW5jZS5yZWFkIHN5c3RlbVwvRW5jb3VudGVyLnJlYWQgc3lzdGVtXC9Mb2NhdGlvbi5yZWFkIHN5c3RlbVwvUGF0aWVudC5yZWFkIHN5c3RlbVwvUHJhY3RpdGlvbmVyLnJlYWQifX0sImNsaWVudCI6eyJuYW1lIjoiRUxMS0FZIERhdGEgZXhjaGFuZ2UgQXBwIiwiaWQiOiJmMTMwNWMzZS05MWE0LTRhOTgtODRiMS01M2U5MmIxZTNlYWIifSwidGVuYW50IjoiZWMyNDU4ZjItMWUyNC00MWM4LWI3MWItMGU3MDFhZjc1ODNkIn19.ys0irH9mJkakkXmJqdNjaAGeyyh-8RReXV0KgTjwHVTI5bENv3-riD3QOaBblO-Ms42OCO757co4yW_Ill_CwA
Content-Type: application/fhir+json; charset=utf-8; fhirVersion=4.0
Host: fhir-ehr.cerner.com
Content-Length: 441
Expect: 100-continue

{"resourceType":"ChargeItem","status":"unknown","code":{"coding":[{"extension":[{"url":"https://fhir-ehr.cerner.com/r4/StructureDefinition/bill-code-schedule","valueCoding":{"system":"https://fhir.ehr.cerner.com/ec2458f2-1e24-41c8-b71b-0e701af7583d/CodeSystem/BillCodes-CPT","code":"44960"}}]}]},"subject":{"reference":"Patient/12745096"},"context":{"reference":"Encounter/97955431"},"occurrenceDateTime":"2011-10-10","quantity":{"value":1}}


Response
HTTP/1.1 404 Not Found
Content-Type: application/fhir+json; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Date: Thu, 22 Dec 2022 15:43:10 GMT
Cache-Control: no-cache
Server-Response-Time: 5.146673
Vary: Origin
X-Request-Id: 2828f906-781b-4997-bdfc-71c22cdb722c+yhHL_d8Nc
X-Runtime: 0.005048
X-Cache: Error from cloudfront
Via: 1.1 e2b6596be074ad87bd3300d4df7735b4.cloudfront.net (CloudFront)
X-Amz-Cf-Pop: SFO5-P2
X-Amz-Cf-Id: cBNMPvvuOJLnrhJka7Ipebm8qxM8Yx2-H-ksEypqePcZjQPGBPWb5w==


74
{"resourceType":"OperationOutcome","issue":[{"severity":"error","code":"not-found","details":{"text":"Not Found"}}]}
0


Am I supposed to create a custom HTTPS request to call this endpoint? If so, can you direct me a little on how to create that in order to make sure we are still ensuring the CERNER FHIR standards? 

Thank you, 
Anushree
ResourceType - parameters.png
Reply all
Reply to author
Forward
0 new messages