Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Flex Demo Plugin with Telehealth and OpenEMR

NotificationsYou must be signed in to change notification settings

Pham-dev/hls-emr-flex-plugin

Repository files navigation

This Package will allow you to seemlessly setup the HLS Flex Plugin to your own Twilio Flex account.

Twilio Flex Plugins allow you to customize the appearance and behavior ofTwilio Flex. If you want to learn more about the capabilities and how to use the API, check out ourFlex documentation.

Pre-requisites:

Docker CLI and/or Docker Desktop

  • Docker desktop will be used to run the application installer locally on your machine. Go toDocker website and download Docker with default options. After installation make sure to start Docker desktop.

ngrok

  • Per theopen-emr repo, ensure you have OpenEMR installed and are running ngrok on a local terminal. This is done by callingngrok http 80 from your terminal. Write down your ngrok http url for later use.

Twilio Account

  • Create aTwilio account if you have not done so already
  • After creating your account you will have access to anAccount Sid and anAuth Token which will be needed to run through the installation.

Create a Flex account

  1. Ensure you sign up or login to your Twilio account in the step above.
  2. While in your Twilio console, go to the Overview of the Flex section under the Develop tab on the left-hand panel.
  3. Click on the "Create my Flex account" button on the page.
  4. Follow the steps to verify your email and phone and then after a couple minutes you should have a working-bare-bones Flex instance on your account.

Ensure that Telehealth is deployed to your Flex AccountOnce you get your flex account up and running, you'll need to deploy Telehealth to your newly created Flex account in order to access Telehealth capabilities through flex. Instructions to deploy Telehealth in this repo'sREADME.md.

  1. After installing Telehealth inside your Flex account created in the intructions above, go to the Functions console.
  2. Inside the Functions console, click on services and click into the service namedtelehealth (Assuming you deployed Telehealth to the account).
  3. At the bottom-left of the page, just above the "Deploy All" Button, you'll want to save that URL as that is your ``REACT_APP_TELEHEALTH_URL` which will be needed for the Docker build step in the next section.

Deploying this plugin to your Twilio Flex instance

Deploy the Plugin to your Flex Instance

  1. Build the docker image of this installer by running this command in your terminal. You'll need to get your Account Sid and Auth Token from your Twilio Console:
docker build --build-arg TWILIO_ACCOUNT_SID={ACCOUNT_SID} --build-arg TWILIO_AUTH_TOKEN={AUTH_TOKEN} --build-arg REACT_APP_TELEHEALTH_URL={REACT_APP_TELEHEALTH_URL} --build-arg REACT_APP_NGROK_URL=${REACT_APP_NGROK_URL} --no-cache --tag hls-flex-plugin https://github.com/Pham-dev/hls-emr-flex-plugin.git#main
  1. Now run the built docker image by executing this command:
docker run --name hls-flex-plugin --rm -p 3000:3000 -p 3001:3001 -e ACCOUNT_SID={ACCOUNT_SID} -e AUTH_TOKEN={AUTH_TOKEN} -it hls-flex-plugin
  1. Go ahead and openhttp://localhost:3000/ on your favorite browser.

  2. Your credentials should load on the page and all you have to do is click the "Deploy this application" button and you're all set!

Development

Installer Development:

  1. cd into the/installer folder:cd installer
  2. runnpm install if it's your first time developing
  3. Then runnpm run dev to spin up
    • A front-end server on port3000
    • A back-end server on port3001
    • TypeScript compiler on--watch mode
    • TailwindCSS compiler

Plugin Development:

  1. You'll need to download theTwilio CLI
  2. In the root directory of the project, run the command:
twilio flex:plugins:start

Using the Makefile:

The makefile in this repo comes with a few targets or branches for which you can execute some useful things when developing such as deploying and releasing the plugin on your account for testing.

  • You can runmake at the top level to list all targets to runExecuting a target will look something like this:
make <TARGET>

Note:

The transfer functionality will not work unless you populate theREACT_APP_TELEHEALTH_URL= field in the.env file.You can runnpx configure-env at the top level of the repo and that will create a.env file and prompt you for the value(s) to populate it with. Once you have the.env file, you can start your development normally as well as deploy and release which will have the context of yourREACT_APP_TELEHEALTH_URL= field.

Other Blueprints:

Follow this README.md to install all of our HLS Blue Prints:https://github.com/Pham-dev/hls-blueprint-release

About

Flex Demo Plugin with Telehealth and OpenEMR

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors5


[8]ページ先頭

©2009-2025 Movatter.jp