Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Download the latest version from the OpenMRS module repository and add it to your OpenMRS application using the _Administration->Manage Modules _page.
  2. Go to Administration->Manage SMART Apps page and add Smart app manifests
  3. Find some example SMART Apps from http://sandbox.smartplatforms.org
    1. There are two options for adding smart apps
      1. To add manifest from the local machine choose file and upload it.
      2. To add manifest from network enter url(url format should be http://<somedomain>/<directory>/../<name of the file>.json) and upload it.
  4. Got to Administration->Manage User Apps page and choose apps that should be shown on the patient dashboards.
  1. If you want to use SMART apps that use Problems data,go to Administration->Set up Problem Object and choose how to map OpenMRS problems into Smart problems.
    1. If you want to represent OpenMRS problems by Obs ,You have to go to Administration->Manage Global Property and enter smartcontainer.problem.addedConcept id and smartcontainer.problem.resolvedConcept id
  2. Ensure that all your concept are mapped as follows
    1. Drug related concept are mapped to RxNorm
    2. Problem related concepts are mapped to SNOMED-CT
    3. Lab test related concept are mapped to LOINC
  3. Finally go to patient dashboard,click the SMART app tab and launch SMART apps by clicking the icon.

Getting SMART Apps

SMART apps are webapps and need to be hosted on a server either locally or externally. Their manifest file should be published in order to use it.

...

  • Ensure you have installed python 2.7.
    • Code Block
      languagebash
      sudo apt-get install python
  • Install Django
    • Code Block
      languagebash
      sudo apt-get install python-django
  • Get the source code
    • Code Block
      languagebash
      sudo apt-get install git
  • Then get the code for the smart apps
    • Code Block
      languagebash
      git clone[https://github.com/chb/smart_sample_apps.git]
      cd smart_sample_apps
      git submodule init
      git submodule update
  • copy settings.py.default to settings.py and update:
  • set APP_HOME in settings.py to the complete path to the location where you've installed smart_sample_apps, e.g. /web/smart_sample_apps
  • Start the server
    • Code Block
      languagebash
      cd /path/to/smart_sample_apps/
      python manage.py runconcurrentserver 0.0.0.0:800
  • get the manifest
    • go to /path/to/smart_sample_apps/static/framework/medilist/smart_manifest.json

Setup

Problem Object

If you want to use SMART apps that use Problems data, go to Administration->Set up Problem Object and choose how to map OpenMRS problems into Smart problems.

  • The "Problem Object" is only manipulatable on the patient dashboard (as of openmrs 1.9). Therefore, many implementations may not use this table and data. (active_list_problem)
  • The previous way of handling this was to create Observations under question concepts called Problem Added and Problem Resolved. The answer (obs.value_coded) to these observations are the problems a patient currently has.

Mappings

  1. Ensure that all your concepts are mapped as follows
    1. Drug related concept are mapped to RxNorm
    2. Problem related concepts are mapped to SNOMED-CT
    3. Lab test related concept are mapped to LOINC

The MVP concept database has all of the necessary mappings already included.