Stream: smart
Topic: Web Messaging c10n
Carl Anderson (May 14 2021 at 05:29):
Just getting ready for the Connectathon (what I'm abbreviating c10n) track kickoff call tomorrow.
Carl Anderson (May 14 2021 at 17:43):
Thanks to all who attended the kickoff today! Please be sure I have your contact info in the attendance sheet and put an X next to your name in toe 2021-05-14
column!
Also, please refer back to the presentation for links to other things I mentioned in the call.
https://tinyurl.com/swm-c10n
Carl Anderson (May 17 2021 at 08:13):
Quick update on the state of the SWM test app. I finished adding the ability for the mock EHR to round-trip messages from the app back. See diagram below:
The code is currently here: https://tinyurl.com/swm-c10n-code
Carl Anderson (May 17 2021 at 14:45):
Reminder: I'll be hanging out in https://tinyurl.com/swm-c10n-live throughout the day. Find me if you have feedback or questions!
Carl Anderson (May 17 2021 at 16:23):
Update: there is now a SMART Web Messaging npm
package available for testing. Install it thusly:
npm install --save swm-client-lib
It's an ES6 module, so to use it you will need to import it like this:
import * as swm from 'swm-client-lib';
More details are coming soon, but EHR developers wishing to use the demo app can see instructions for setting that up here (for now):
https://github.com/barabo/swm-c10n-demo/tree/main/app#user-instructions
Carl Anderson (May 17 2021 at 18:42):
Also, setup instructions for app developers can be found here now:
https://github.com/barabo/swm-c10n-demo/blob/main/ehr/README.md
Josh Mandel (May 18 2021 at 17:19):
When I try npm install --save swm-client-lib
(or npm install
or npm ci
in the app
folder of https://github.com/barabo/swm-c10n-demo) I get
npm ERR! 404 Not Found - GET https://registry.npmjs.org/swm-client-lib/-/swm-client-lib-1.0.0.tgz - Not found
Josh Mandel (May 18 2021 at 17:21):
When running the demo from https://github.com/barabo/swm-c10n-demo, is it possible to use the local lib, rather than installing through NPM? It looks like all the code is present in the lib
folder, and installing through npm might get things out of sync.
Josh Mandel (May 18 2021 at 17:21):
Also it'd be great to include "getting started" type instructions in the README describing how to clone the repo and run a demo with both components (app + EHR).
Carl Anderson (May 19 2021 at 04:10):
Thanks for taking a look at this, Josh! When I first published the library into npm, I accidentally used version 1.0.0
, which I didn't want to use yet. So, I unpublished it and discovered that when you unpublish the only version of a package in npm - they make you wait 24 hours before you can publish again. :upside_down:
Carl Anderson (May 19 2021 at 13:28):
Regarding the library and installing it through npm - I've published version 0.1.0
, so it is now possible again to npm install it. However, I'm not sure what the best approach is for running it locally versus npm installing it. I think the library has stabilized enough that it shouldn't necessarily need to be run locally, but I'm probably jinxing myself by saying that.
Josh Mandel (May 19 2021 at 13:34):
I'd say that for projects distributed in the same repo as the library, it'd be good to use local copies so things stay in sync. For others, they might want to use npm repository (but keep in mind that you can also npm install a dependency directly from a GitHub branch).
Carl Anderson (May 19 2021 at 19:25):
FWIW: I've published the demo EHR and demo App on GitHub Pages. You can view the app embedded in the EHR here:
https://barabo.github.io/swm-c10n-demo/ehr/
Josh Mandel (May 19 2021 at 20:07):
Cool! The demo works for me even on mobile :-) I'm assuming that populating the scratchpad array is a TODO?
Josh Mandel (May 19 2021 at 20:08):
May be good to think about a UX that can handle more than one request in between responses (e.g., surfacing a queue or worklist).
Carl Anderson (May 19 2021 at 21:45):
The scratchpad functionality is one of the top TODOs currently.
- scratchpad create, update, delete
- ui.done hides iframe (and a 'show app' button can bring it back)
- autofill response in EHR if messageType matches one of the known templates
- scope inspection (possibly disabling buttons like
ui.launchActivity
if the proper scope is missing) - controls to invalidate messagingHandle
Carl Anderson (May 19 2021 at 21:46):
I would also like to expose errors in the UI better. Today they are mostly buried in the browser console.
Last updated: Apr 12 2022 at 19:14 UTC