Comments (8)
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.
@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.
Here is how I am starting it:
- From a console in the project directory, execute
npm install
. - Edit
launch.html
and set the "client_id" on line 10 to "my_web_app". - Setup a webserver like Apache or NginX so that http://localhost:8000/fhir-app/ serves the project directory.
- Open https://fhir-dstu2.smarthealthit.org/, login and select a patient (Allen Vitalis would be fine).
- 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).
from growth-chart-app.
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.
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:
- 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. - 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/
- 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 tohttp://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.
@vlad-ignatov thanks for the details. i thought this could be launched separately
from growth-chart-app.
I have some issue on launching the project pulled from the git repo.
from growth-chart-app.
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)
- Print Screen window pop-up very slow on IE HOT 9
- Bone Age observation's are not displayed in the Table. HOT 1
- Wikipedia page HOT 2
- Run outside SMART container as mocked. HOT 1
- Dates mismatch issue HOT 8
- Fenton curves not showing
- Gestational Age - Is it age since last menstrual period or age since conception
- Crashes if the patient does not have a birthDate
- Fenton curve data extraction date HOT 2
- TypeError: GC.get_data is not a function HOT 4
- SMART is not Defined HOT 1
- Age <2 yo BMI curve
- Removal of older versions of `ecstatic` is causing `npm install` to fail
- How to use a new FIHR server? HOT 10
- Update to work with the new client and add support for R4 HOT 1
- Wrong reference to fhir-client.js HOT 6
- Is it posible to graphic the chart with own json?
- No 'state' parameter found. Please (re)launch the app. HOT 1
- No 'state' parameter found. Please (re)launch the app. HOT 3
- Wrong redirect on Windows
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from growth-chart-app.