smart-launcher icon indicating copy to clipboard operation
smart-launcher copied to clipboard

On patient selection screen, search breaks

Open jmandel opened this issue 6 years ago • 3 comments

Search fails during the authorization process, with a "please try again later" error.

jmandel avatar Oct 18 '19 20:10 jmandel

I haven't been able to reproduce this so far.

  • Is it in the patient browser (the popup before launch) or in the built-in patient picker that is rendered after launch?
  • Are there any specific search parameters that I should try with (if it is the popup)?
  • Or maybe you can share the page URL if it is the built-in picker?

The messages you were seeing are rendered from ajax error callback. It means that the client could not connect to the backend (FHIR server) for some reason. My guess is that it probably was some network-related issue that does not exist any more?

vlad-ignatov avatar Oct 28 '19 16:10 vlad-ignatov

@ginocanessa FYI. This was in the built-in patient browser that's rendered mid-launch (i.e., the one that allows the user to select a single patient for patient/ scopes). Here's a URL to reproduce:

  1. Navigate to http://launch.smarthealthit.org/v/r4/sim/eyJoIjoiMSJ9/auth/authorize?redirect_uri=http://test&client_id=test&state=test&aud=http://launch.smarthealthit.org/v/r4/sim/eyJoIjoiMSJ9/fhir&scope=launch launch/patient patient/*.read&response_type=code

  2. Type "smith" into search box

  3. Click "Search"


Expected behavior: filter the patient list based on the query Observed behavior: " An error occurred loading patients, please try again later." image

jmandel avatar Oct 28 '19 18:10 jmandel

Got it, thank you! The reason for this was that the ":contains" operator wasn't enabled on our r4 server. I have enabled it now and should stop producing these errors. However, the search doesn't seem to work. I guess I'll have to wait about 60 min for HAPI to re-build its search index...

vlad-ignatov avatar Oct 28 '19 19:10 vlad-ignatov