Code Monkey home page Code Monkey logo

Comments (6)

WebPro9369 avatar WebPro9369 commented on August 22, 2024

And what does 'launch' parameter mean and how could I use it?
Thank you.

from smart-on-fhir-tutorial.

kpshek avatar kpshek commented on August 22, 2024

@WebPro9369 - The launch parameter is ultimately how context is shared securely between the EHR and the SMART app. You can read more about SMART app launches, context, and FHIR permissions (scopes) over on the SMART project homepage.

Regarding your other questions, are you launching your SMART app from Cerner's Code Console? Assuming you've registered your app there, you should be able to click on the "Begin Testing" button, select a patient for testing, and then click on the "Launch" button to call your SMART app's launch URL.

from smart-on-fhir-tutorial.

WebPro9369 avatar WebPro9369 commented on August 22, 2024

Thank you for your kind reply.
What I need to do is to add a call against an endpoint MedicationStatement(Post & Get).
To do this, I should insert codes of calling api endpoint in somewhere(I think it would be example-smart-app.js).
I tried to use Postman to simulate a process of POST, but failed because it needed OAuth2.0 Authorization.
But GET was succeessful, I think this is because I was working on Sandbox.
So could you please let me know if POST is possible on Sandbox?
It seems that Sandbox does not allow Authorization, it is just a place to demo try.
Waiting for your reply.
Thank you

from smart-on-fhir-tutorial.

kpshek avatar kpshek commented on August 22, 2024

Cerner's FHIR Sandbox does allow for write transactions (POST requests). However, in order to perform a POST request you must have a valid OAuth 2 access token (Bearer token).

from smart-on-fhir-tutorial.

MayankTiwari1011 avatar MayankTiwari1011 commented on August 22, 2024

Hi, everyone!
I have some troubles in process of authorization of my SMART App.
In the tutorial, they wrote about Authrization:
"The responsibility of launch.html is to redirect to the appropriate FHIR authorization server. As you can see in the code, fhir-client makes our job pretty easy. All we have to do is call FHIR.oauth2.authorize and supply the client_id generated by the code console during registration and the scopes we registered."

But when I deploy and go to 'https://.github.io/smart-on-fhir-tutorial/example-smart-app/', the browser says 'Failed to call FHIR Service'.
Also when I go to 'https://.github.io/smart-on-fhir-tutorial/example-smart-app/launch.html' where function FHIR.oauth2.authorize is in, there is an error that is caused by no authorization server is identified.

Of course, I registered my app and now have a Client_ID, and use it in function FHIR.oauth2.authorize, as tutorial says.
I think when go to url 'https://.github.io/smart-on-fhir-tutorial/example-smart-app/launch.html', I should give it params 'iss' and 'launch'.
But for this, I need to know url of Authorization server.
It is what I cannot solve, and as it is the beginning of SMART app development, I could make no step in advance.

As I am not familiar with SMART app(though very experienced in api development using JS), really hope to see your kind reply.
i am trying to launch app getting error like .Information to provide to Unknown Application
The supplied "client_id" value does not correspond to any registered applications on record..kindly solve my problem
![clientid error

Thank you.

from smart-on-fhir-tutorial.

MayankTiwari1011 avatar MayankTiwari1011 commented on August 22, 2024

i am trying to launch app getting error like .Information to provide to Unknown Application
The supplied "client_id" value does not correspond to any registered applications on record..kindly solve my problem
![clientid error

Thank you.

from smart-on-fhir-tutorial.

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.