Hi,
I'm having some trouble with querying HAPI. Basically, trying to filter by the birthdate of the QuestionnaireResponse's subject. I'm running this (
https://github.com/hapifhir/hapi-fhir-jpaserver-starter) inside a docker container, and I inserted 2 Patients (Bill Smith with birth date 1999-12-14 and Bill Smith with birth date 1998-12-14), and 3 QuestionnaireResponses. 2 of the QR's have Bill Smith 1999 as their Subject, and the other has Bill Smith 1998 as its subject.
If I query for all of the QuestionnaireResponse objects with this code:
Bundle bundle = client.search()
.forResource(QuestionnaireResponse.class)
.returnBundle(Bundle.class)
.execute();
The resulting bundle has 3 QuestionnaireResponses, with subjects set to their respective patients. The Subject has a birthdate. This screenshot shows what it looks like in the Eclipse debugger:
.where(QuestionnaireResponse.SUBJECT.hasChainedProperty(Patient.BIRTHDATE.exactly().day("1999-12-14")))
Thanks,
Jordan