Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add additional Hook types #118

Open
joelbyler opened this issue Sep 6, 2019 · 3 comments
Open

How to add additional Hook types #118

joelbyler opened this issue Sep 6, 2019 · 3 comments

Comments

@joelbyler
Copy link

Would be great to have a wiki page or something with instructions on how to add UI components for a different hook type other. Currently I need medication-prescribe.

@dennispatterson
Copy link
Collaborator

Hi Joel! We are always looking for ways to expand the sandbox functionality, and support for more hooks will be necessary. That being said, we actually updated the Rx View tab to use order-select instead of medication-prescribe since it is a deprecated hook - https://cds-hooks.org/hooks/medication-prescribe/#deprecation-notice

Would order-select work for your use-cases?

@joelbyler
Copy link
Author

🤦‍♂ ok yeah I hadn't seen that deprecation notice, I see there's a legacy sandbox so if its based on the old code prior to that deprecation then maybe I can just use that until I get this app migrated?

@dennispatterson
Copy link
Collaborator

The legacy sandbox still sends redirect, user, and patient as part of the request which isn't part of the 1.0 spec and also doesn't look to be sending userId with the hook context. It may be sufficient to tide you over, but do be aware of the differences in the request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants