Skip to content

Testing your application

Vim provides an easy way for you to test your Vim Canvas™️ application during development.

Access your Vim Canvas™️ developer account

As an application developer Console User, you will have access to the Vim Console, the platform to set up your Vim account, create and manage applications and much more. Vim will send the Canvas™️ developer account access email to the relevant main point of contact. The point of contact main user first needs to login to the Vim Console to invite team members, create and manage applications and see the list of organizations and Vim Connect users that will be using your application.

  1. Look out for an email with the subject line: "You now have access to Vim Connect!"

  2. Click on Set password.

  3. Set your password.

  4. Click on Submit.

  5. You are now logged in your Vim Canvas™️ developer account.

Invite team members

As an application developer Console User, you are able to manage your team members, applications and see the list of organizations and Vim Connect users that have your application installed.

  1. First log in to the Vim Canvas™️ developer console using your email and password and then complete the two factor authentication by entering the code sent to your email.

  2. Click on the top right profile section and click on Console Users.

  3. Click on Add User.

  4. Fill in the relevant details (the only relevant mandatory fields are email, first name, last name and permission level where you can choose Account admin).

  5. Click on Submit.

Create your Vim Canvas™️ application

As an application developer Console User, you need to create your Vim Canvas™️ application from the Applications tab in order to test it. This is the place where you will be able to create more applications, manage them and set their store listing and permissions on the application manifest page.

  1. From the left menu, click on Applications.

  2. Click on Create new application.

  3. You will access the application manifest page.

Set your application manifest

As an application developer Console User, you need to create your Vim Canvas™️ application from the Applications tab in order to test it. This is the place where you will be able to create more applications, manage them and set their store listing and permissions on the application manifest page. The application manifest has 3 main sections: basic information, Vim Hub features and EHR workflow resources.

  1. From the Basic information tab, you can set up the below settings:

    • Name
    • Icon: Upload an SVG file with a square dimensions (100 x 100 pixels for example). Make sure to keep the SVG without any color for the background. The SVG image needs to have a transparent background and no colored background.
    • Description
    • Support contact info
    • Allowed iframe urls: A comma-separated list of allowed origins for the final application iframe after redirects, such as http://localhost:3000, https://yourapplication.com and others. This replaces the deprecated "Base Url" field.
    • Launch Endpoint: The initial endpoint called during the authentication flow. This endpoint should redirect to the Vim authorization endpoint and pass along the app's frontend redirect URI. For more details, refer to the section in the implementation guide.
    • Token Endpoint: This is the OAuth2 endpoint used during the authentication process. It allows you to exchange the authorization code for an access token, which is necessary to access Vim EHR resources, and also provides an ID token for application usage. For more details, refer to the section in the implementation guide.

  1. From the Vim Hub features tab, you can set up the below settings:

    • Size
    • Notification badge
    • Push notification
    • Auto popup
    • App always available
      • Your application can remain enabled and active for end users regardless of their workflow as soon as they log in to the EHR. In this case, set your application as "always available" in the application manifest. You can use all Vim Hub engagement features, such as push notifications and notification badges, to interact with end users.
      • Note: When you enable your application with the "always available" feature in the manifest, your application's icon will always show as enabled. However, the Vim Hub heart icon will remain disabled regardless of your application state, to avoid user fatigue. Users can hover over it to see and access your application.
    • Vim Hub patient header
  2. From the EHR workflow resources tab, you can Select which specific entities your application needs to read from and / or write to the EHR.

Testing your application with Vim Sandbox EHR

Vim Sandbox EHR is a Vim-owned mock EHR environment we provide to app developers to help them build their app(s) confidently and creatively. The Vim Sandbox EHR offers a risk-free and dynamic space to test, experiment, and perfect apps before unleashing them to the world.

You can experience a replica of the real-world provider workflow experience in which your app will be available - set up test patients, and see your end user interphase.

Access Vim Sandbox EHR

To access the Vim Sandbox EHR:

  1. Login to your Vim Canvas™️ developer account..

  2. On the left menu, click on the Sandbox EHR tab. Note: If you don’t see the Sandbox EHR tab, please reach out to us.

  3. Click on "Access Vim Sandbox EHR".

  4. Log in to the Sandbox EHR:

  • If you access the Sandbox EHR while being logged in to your Vim Canvas™️ developer console, you shall be automatically logged in to the Sandbox EHR.

  • If you are not logged in, enter your Vim Console username and password to access the Sandbox EHR.

  1. Wait for up to 30 seconds for the Vim Hub to display as an overlay on top of the Sandbox EHR.

  2. You will be able to see your application from there.

Note:

Note:

If you see your application icon consistently in a Disabled state, this means that there was no logic implemented in your code base to dynamically control the activation status and set it to Enabled based on your application specific business logic following these instructions.

​How to override your application url to work on your local / staging / testing environment

  1. Once logged in to the Sandbox EHR, click on the left Vim Settings tab.

  2. Under Override app store url, fill in:

  • Your app ID (you can find this under your application manifest).

  • Your app version (you can find this under your application manifest).

  • Your app launch and token local env urls.

  1. Click on Add
  • You will see your override details like the below. You can edit the details by clicking on the edit icon or remove the override by clicking on delete icon.
  1. Click on "Save and Reload Page".

  2. Your should be all set.

How to add data to the Sandbox EHR

On the Sandbox EHR, you can create patients, encounters, referrals, orders and more. All of the data you add to the Sandbox EHR will be stored under your account instance and available to other users belonging to your account.

Creating a new patient:

  1. Click on “Patients” on the left menu to navigate to the Patients page.
  2. Click the “New Patient” button on the top right corner.
  3. Fill in patient information. All fields marked with * are mandatory.
  4. Click on "Save".

Creating a patient encounter:

  1. Click on “Patients” on the left menu to navigate to the Patients page.
  2. Click on a patient to select it.
  3. Click on the "Encounter" tab.
  4. Click on the “New Appointment” button.
  5. Fill in the appointment information:
  • Reason for the visit - can be any string.

  • DateTime range - can be any future date.

  • External ID - not mandatory, used to link encounter ID with an external one when needed.

  1. Click on “Save”.
  2. Under Future Appointments, select an encounter by clicking on “Clinical Notes”.
  3. You are now in the encounter modal.

Creating a patient referral:

  1. Click on “Patients” on the left menu to navigate to the Patients page.
  2. Click on patient to select it.
  3. Click on "Referrals/Orders" tab.
  4. Click on the “New Referral” button.
  5. Fill in the referral information.
  6. Click on “Save”.

Creating a patient order:

  1. Click on “Patients” on the left menu to navigate to the Patients page.
  2. Click on a patient to select it.
  3. Click on "Referrals/Orders" tab.
  4. Click on the “New Order” button.
  5. Fill in the order information.
  6. Click on “Save”.

Adding problems to the problem list:

  1. Click on “Patients” on the left menu to navigate to the Patients page.
  2. Click on a patient to select it.
  3. Click the “Problem list” tab.
  4. Click the “New problem” button.
  5. Search diagnosis by ICD code.
  6. Add a comment under “Notes” (can be any string).
  7. Click on “Add”.