Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FHIR Sorting - How to find out which parameter to pass

Team, I am using FHIR bluebutton for CMS data (Claims data) and now I want to apply sorting in FHIR data we are getting bundle of explanation of Benefit(EOB)

This is the image I have taken reference of sorting

https://www.hl7.org/fhir/search.html#sort

I have tried passing date and status params in that _sort but still not getting sorted data and I am very much in confusion what to pass as a parameter suppose I want to sort by ClaimNumber

what to pass, please help and suggest me

like image 727
thakkar kajal Avatar asked Oct 26 '25 06:10

thakkar kajal


1 Answers

You will have to use a search parameter as input for the sorting. For example sorting on last updated date descending would look like this:

GET [base]/ExplanationOfBenefit?_sort=-_lastUpdated

I'm not familiar with which field of ExplanationOfBenefit would hold the ClaimNumber you mention, but if you mean the EOB identifier, the request could be this:

GET [base]/ExplanationOfBenefit?_sort=identifier

If you use the correct syntax, success will still depend on whether the server has implemented sorting on that parameter.

like image 200
Mirjam Baltus Avatar answered Oct 29 '25 08:10

Mirjam Baltus



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!