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

Cannot search a specific QR using X-FHIR-Query #3403

Open
FikriMilano opened this issue Jul 24, 2024 · 2 comments
Open

Cannot search a specific QR using X-FHIR-Query #3403

FikriMilano opened this issue Jul 24, 2024 · 2 comments
Assignees

Comments

@FikriMilano
Copy link
Collaborator

Describe the bug
This search will return all QRs (not the behavior we want):

{
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "qr-search-phq9",
        "language": "application/x-fhir-query",
        "expression": "QuestionnaireResponse?subject={{%patient.id.replaceMatches('/_history/.*', '')}}&questionnaire=Questionnaire/54"
      }
    }

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
Returns only the QR that matches the condition.

Screenshots
If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

  • Device: [e.g. Samsung Galaxy A2 emulator]
  • Android version: [e.g. Settings -> About phone -> Android version]
  • Build number: [e.g. Settings -> About phone -> Build number]
  • Version [e.g. 24]

Additional context
Add any other context about the problem here.

@FikriMilano
Copy link
Collaborator Author

The SDK ticket related to this google/android-fhir#2451

@FikriMilano
Copy link
Collaborator Author

FikriMilano commented Jul 29, 2024

searching by using variable is not affected by this ticket, however it might affect searching by using answerExpression.
this ticket does not affect engage migration to main, but is still interesting to check it's impact for answerExpression

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

Successfully merging a pull request may close this issue.

1 participant