Giter Site home page Giter Site logo

Comments (13)

usmanbahadur avatar usmanbahadur commented on September 28, 2024

@nschwertner @jmandel hi guys do you know what the issue is here why the launch is failing?

from bp-centiles-app.

vlad-ignatov avatar vlad-ignatov commented on September 28, 2024

It seems that your launchURI is not getting any of the necessary URL parameters. Can you describe how you "launch" it?

from bp-centiles-app.

usmanbahadur avatar usmanbahadur commented on September 28, 2024

@vlad-ignatov i git cloned the app into visual studio code and then did npm install and npm run serve as suggested in docs then i opened the launch page where i see this error.

from bp-centiles-app.

vlad-ignatov avatar vlad-ignatov commented on September 28, 2024

OK, that makes sense. To launch a SMART app you cannot just open the launch page in browser. Instead you need to know the URL of that page (say http://localhost/launch.html). That is your launch URI that you should use to launch the app from external system (like an EHR). The simplest way to try that is to go to http://launch.smarthealthit.org, paste that URL in the "App Launch URL" field at the bottom and click "Launch App". You can also pre-select a Patient and Practitioner, or you can skip that and let the app ask you for whatever it needs.

from bp-centiles-app.

usmanbahadur avatar usmanbahadur commented on September 28, 2024

@vlad-ignatov sorry i should have been more specific when i said i open the launch page i meant when i did npm run serve i got the following localhost and i did the launch http://127.0.0.1:8000/launch
i tried ehr http://launch.smarthealthit.org as well and selected a patient but the error is 127.0.0.1 sent an invalid response.
image

from bp-centiles-app.

vlad-ignatov avatar vlad-ignatov commented on September 28, 2024

It is a static HTML app so I believe your launch url might be http://127.0.0.1:8000/launch.html instead of http://127.0.0.1:8000/launch. Does that work?

from bp-centiles-app.

usmanbahadur avatar usmanbahadur commented on September 28, 2024

with remobing .html extension and only using http://127.0.0.1:8000/launch error becomes refuse to connect.
image

@vlad-ignatov

from bp-centiles-app.

vlad-ignatov avatar vlad-ignatov commented on September 28, 2024

OK, here are couple of things I'd like to ask you to do. These can help us understand what is happening:

  1. In http://launch.smarthealthit.org, make your usual settings (put the launch url, select a patient etc.) All the changes you make there are reflected in the URL of that page, so once you are ready to click "Launch App", instead of clicking it send me that URL.
  2. Same as above, but then right click on the "Launch App" and copy and send me the link address (that green button is actually a link).
  3. Uncheck the "Simulate launch within the EHR user interface" checkbox. That puts your app within an iframe which makes it harder to debug.
  4. Open your app (http://127.0.0.1:8000/index.html) in new tab. Disregard the fact that it is not working and just open the JS console and execute localStorage.setItem("debug", "FHIR.*");. Also make sure your logs are preserved: Screen Shot 2019-10-09 at 10 09 13 AM
    Then you can close that tab and try to re-launch. Next time you launch, keep an eye on the console - it might output something useful.
  5. What version of client-js are you using and on what Browser and OS?

from bp-centiles-app.

usmanbahadur avatar usmanbahadur commented on September 28, 2024

here is the launch url http://launch.smarthealthit.org/?auth_error=&fhir_version_1=r4&fhir_version_2=r3&iss=&launch_ehr=1&launch_url=http%3A%2F%2F127.0.0.1%3A8000%2Flaunch&patient=47b4b5ab-8fab-4c8a-85e7-e3c158e02f19&prov_skip_auth=1&provider=&pt_skip_auth=1&public_key=&sb=&sde=&sim_ehr=1&token_lifetime=15&user_pt=
here is the button url
http://launch.smarthealthit.org/?auth_error=&fhir_version_1=r4&fhir_version_2=r3&iss=&launch_ehr=1&launch_url=http%3A%2F%2F127.0.0.1%3A8000%2Flaunch&patient=47b4b5ab-8fab-4c8a-85e7-e3c158e02f19&prov_skip_auth=1&provider=&pt_skip_auth=1&public_key=&sb=&sde=&sim_ehr=1&token_lifetime=15&user_pt=

from bp-centiles-app.

vlad-ignatov avatar vlad-ignatov commented on September 28, 2024

OK, so I can't be sure what your issue is, but I installed the app to try it and I found some problems. Apparently, it has not been updated for a while and I will have to do that now...

Meanwhile, I think should still be launch-able against DSTU-2. In your case, you should be able to open this link and click "Launch App".

I will let you know when the update is complete.

from bp-centiles-app.

vlad-ignatov avatar vlad-ignatov commented on September 28, 2024

The update should be complete now. The app is now using the latest fhirclient library and should load faster. To update, cd into the project folder and run git pull && npm i && npm serve (or better yet, delete it and clone ind install again). Then launch it from the link I sent above.

Note that this app is designed for DSTU-2 only. For newer FHIR versions there is http://apps.smarthealthit.org/app/bp-centiles-v2

from bp-centiles-app.

usmanbahadur avatar usmanbahadur commented on September 28, 2024

@vlad-ignatov Thanks for fixing this i can confirm that this works against DSTU2 smart health api, there is no source code available for R3 version of the app, where can i get the code? http://apps.smarthealthit.org/app/bp-centiles-v2

from bp-centiles-app.

vlad-ignatov avatar vlad-ignatov commented on September 28, 2024

I think v2 is not an open source but I'm not 100% sure. @nschwertner is the best person to answer that.

from bp-centiles-app.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.