Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Sorting patients by family name then given name does not seem to work. #198
Hi, I am using this query:
To attempt to get all patients sorted by family name, then given name. I get a bundle back in an order I can't determine, but definitely isn't the right order. For example:
And am expecting:
Thanks for the quick response! Is this fix in 1.2-SNAPSHOT? I tried to install and use that version but get an error saying:
Could not find the HAPI-FHIR structure JAR on the classpath for version DSTU2_HL7ORG. Note that as of HAPI-FHIR v0.8, a separate FHIR strcture JAR must be added to your classpath (or project pom.xml if you a
Another question for you, we have a client that is needing very much to have java.io.Serializable functionality in the FHIR resource implementation. I created a forum post for this:
Is this something you would be able to support quickly? Alternatively, we would branch from your 1.1 release and add this functionality ourselves to get our client unblocked.
On Jul 18, 2015, at 3:05 PM, James Agnew email@example.com wrote:
A recent change in the JPA server accidentally introduced a dependency on the RI structures project. Temporarily, if you want to use the 1.2-SNAPSHOT version of the server (where this fix got deployed) you need to also add that dependency on your project:
<dependency> <groupId>ca.uhn.hapi.fhir</groupId> <artifactId>hapi-fhir-structures-hl7org-dstu2</artifactId> <version>1.2-SNAPSHOT</version> </dependency>
Hoping to remove that dependency shortly, so this won't be a problem for long. Will reply to the Google Group post separately.
I believe I am using the fix and it doesn't seem to work on the secondary sort of given name. I am using 1.2-SNAPSHOT and seeing these results now. As you can see, Lisa Coleman and Sarah Graham are out of order.
added a commit
Jul 21, 2015
It seems like this is still broken. I am trying it on (STU3) https://sb-fhir-stu3.smarthealthit.org/smartstu3/open/Patient and I am not able to get sorted results no mather what query I use (
Hmm. @travistcummings Any idea what version of HAPI that server is based on?
This definitely works for me on our reference server at least: http://fhirtest.uhn.ca/baseDstu3/Patient?_sort=name
So, HAPI 2.5 has been released, and it has fairly significant rewrites to the search code, including sorting. Probably the next thing to do is to test once the SMART server has been upgraded.
I'm not seeing this issue locally, so I'm going to assume whatever caused this has been fixed. Please feel free to comment or re-open if this continues.
Hi James, Can you tell me if v2.5 is compatible with a schema and data from a 2.4 install? Thanks for your excellent FHIR server! Travis…
Sent from my iPhone
On Jun 9, 2017, at 11:00 AM, James Agnew ***@***.***> wrote: Closed #198. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.