Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid implementation of GT,GTE,LT,LTE search parameters #540

Open
mikol4j opened this issue Jan 30, 2023 · 1 comment
Open

Invalid implementation of GT,GTE,LT,LTE search parameters #540

mikol4j opened this issue Jan 30, 2023 · 1 comment

Comments

@mikol4j
Copy link

mikol4j commented Jan 30, 2023

There is a bug when searching resources based on dates. If I send a resource that has some dates range i.e from 2022-12-01 to 2022-12-10 and then try to find it using built-in search parameters: ge2022-12-02 and le2022-12-08, spark does not return previously created resource.

To Reproduce
Steps to reproduce the behavior:

  1. Send a request to create a resource of type Appointment with date range: 2022-12-01 to 2022-12-10
  2. Send a request to find an appoinment in above range i.e:
    http://localhost:5000/fhir/Appointment?date=ge2022-12-02&date=le2022-12-08
  3. Nothing is returned.

Expected behavior
Server should return the appoinment created in 1st step.

Spark version

  • Version: latest version on r4/master branch

Additional context
Sample appointment:
{ "resourceType" : "Appointment", "id" : "example", "text" : { "status" : "generated", "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">Brian MRI results discussion</div>" }, "status" : "booked", "serviceCategory" : [{ "coding" : [{ "system" : "http://example.org/service-category", "code" : "gp", "display" : "General Practice" }] }], "specialty" : [{ "coding" : [{ "system" : "http://snomed.info/sct", "code" : "394814009", "display" : "General practice" }] }], "appointmentType" : { "coding" : [{ "system" : "http://terminology.hl7.org/CodeSystem/v2-0276", "code" : "FOLLOWUP", "display" : "A follow up visit from a previous appointment" }] }, "description" : "Discussion on the results of your recent MRI", "start" : "2022-12-01", "end" : "2022-12-10", "created" : "2013-10-10", "basedOn" : [{ "reference" : "ServiceRequest/myringotomy" }], "participant" : [{ "actor" : { "reference" : "Patient/example", "display" : "Peter James Chalmers" }, "status" : "accepted" }, { "type" : [{ "coding" : [{ "system" : "http://terminology.hl7.org/CodeSystem/v3-ParticipationType", "code" : "ATND" }] }], "actor" : { "reference" : "Practitioner/example", "display" : "Dr Adam Careful" }, "status" : "accepted" }, { "actor" : { "reference" : "Location/1", "display" : "South Wing, second floor" }, "status" : "accepted" }] }

@whyfate
Copy link
Contributor

whyfate commented Feb 21, 2023

This issue may help you. #390

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants