Coder Social home page Coder Social logo

Comments (8)

vlad-ignatov avatar vlad-ignatov commented on August 24, 2024

This typically means that your SMART session (1 hour duration) has expired and you just need to re-launch the app. If you are using a tool like this https://fhir-dstu2.smarthealthit.org/ refresh it, sign in if needed and launch again.

from growth-chart-app.

ewheeler avatar ewheeler commented on August 24, 2024

@vlad-ignatov i'm getting the same error when running for the first time after cloning per the deployment instructions in the readme

from growth-chart-app.

vlad-ignatov avatar vlad-ignatov commented on August 24, 2024

Here is how I am starting it:

  1. From a console in the project directory, execute npm install.
  2. Edit launch.html and set the "client_id" on line 10 to "my_web_app".
  3. Setup a webserver like Apache or NginX so that http://localhost:8000/fhir-app/ serves the project directory.
  4. Open https://fhir-dstu2.smarthealthit.org/, login and select a patient (Allen Vitalis would be fine).
  5. Click the "My Web App" button or setup the last section to look like the image below and click "Custom App" (the full URL there is http://localhost:8000/fhir-app/launch.html).

screen shot 2016-11-09 at 3 51 27 pm

from growth-chart-app.

ewheeler avatar ewheeler commented on August 24, 2024

i'm following these instructions: https://github.com/smart-on-fhir/growth-chart-app#deploymemt

... which do not include most of the steps you mention

from growth-chart-app.

vlad-ignatov avatar vlad-ignatov commented on August 24, 2024

That is correct. The issue is that these apps cannot be launched directly. Instead they require dedicated smart client to be registered first and then they can be started via tools like https://fhir-dstu2.smarthealthit.org, https://gallery.smarthealthit.org/ or https://stub.smarthealthit.org/.

I am the creator of this app and I have always started it this way. Later somebody have added that http-server module to make things easier but the documentation is not complete. I will fix the README and for now here are the important things you need to know:

  1. When you pull the app it comes configured to use the "growth_chart" client (in the launch.html file). However, that is not useful because that is the public client of the app which is configured to only allow launching from https://fhir-dstu2.smarthealthit.org/apps/growth-chart/. You are supposed to create your own client at https://authorize-dstu2.smarthealthit.org/ or you can just use the default one having the "my_web_app" id for testing.
  2. If you register your own client you can use whatever launch/redirect URLs you like but if you go with the default "my_web_app" client, then you are forced to host the app at http://localhost:8000/fhir-app/
  3. Using that npm run serve command does help a little because this way you won't have to configure apache or nginx but that will only work if you register your own client with launch_url equal to http://localhost:8000/launch.html and redirect_url` like:
["http://localhost:8000/", "http://127.0.0.1:8000/"]

I hope that helps for now.

from growth-chart-app.

ewheeler avatar ewheeler commented on August 24, 2024

@vlad-ignatov thanks for the details. i thought this could be launched separately

from growth-chart-app.

lw621 avatar lw621 commented on August 24, 2024

I have some issue on launching the project pulled from the git repo.

from growth-chart-app.

nschwertner avatar nschwertner commented on August 24, 2024

It's a SMART app, folks. Needs to be run in context from withing a SMART environment. See http://docs.smarthealthit.org for details

from growth-chart-app.

Related Issues (20)

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.