FHIR Sorting - How to find out which parameter to pass

2k views Asked by At

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

1

There are 1 answers

2
Mirjam Baltus On

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.