Discussion forums

How do I check which version and which concept dictionary is being used in the OpenMRS release?

I am using OpenMRS 1.9.0. 

The CIEL dictionary load adds a global property which contains the date of of the release.

When is the runtime.properties file created and how to change the location of that file?

It will be created after you run the initialsetup. Normally when you doing a fresh install, you first needs to run the initial setup. It will create the database connections and the database of the OpenMRS with the options you select. It will be created automatically when you finished the installation wizard.

What happens if it is deleted after the initial setup?  Can it be moved after the initial creation

The directory C:\Users\chandan\Application Data\OpenMRS\ holds the data required for the OpenMRS application to run. In this directory the runtime property files contains and hold the database connection properties and etc. The OpenMRS directory also contains a directory called modules which holds the newly installed modules. So if you deleted them, you have to do a clean install again where you needs to drop the mysql database too. I think you shouldn't be worry about it. Just deploy openmrs.war file in tomcat and run the initial setup.

OpenMRS Version usage

Which version of OpenMRS to use against?

Unless you are specifically writing code for the OpenMRS platform, you should be coding against a released version of OpenMRS, not the master branch.

How to add a tab to the patient dashboard?

The smart container module is an example of a module that adds a tab to the patient dashboard and reads the the patient record from the portlet context

You can look at this throw away orderentry ui module, look at OrdersPatientDashboardTabExt.java and to add a portlet for your extension, see module portlets documentation

How to add persistent domain objects to from your module e.g xforms module.

When you migrate OpenMRS versions, what are the implications for the database changes? 

 Is it that hard to change versions? I mean, you can deploy the war of a new version to Tomcat and it should work. Do I have to delete the database completely and setup everything?

I recall you mentioning that you tried other OpenMRS versions, if it was against the same database, it must have messed up your liquibase update table hence leading to those errors, try a fresh copy of the latest release 1.9.7

If you have previously run 1.10.* or 1.11.* against that same database, you probably have to delete it and redo the setup.

If you never went higher than 1.9.7, you should be able to just switch from the 1.9.0 WAR to the 1.9.7 WAR without needing to do anything else.

Is it possible to keep running the standalone with the current db setup ?

Is there a way where I can run the github master(1.11) and then another branch (1.9.0) together in separate isolated ways? The easiest way to do this is to have two copies of the standalone. In one, you put the 1.9.7 war, in the other you put the latest master.

OpenMRS SMART module integration

Which is the correct OpenMRS version that supports SMART?

The smart module only works with the old legacy patient dashboard and not the one in the new UI for the reference application.

Smart apps were written to work with the legacy patient dashboard and not the new one in the reference application, therefore you can still use them on the old patient dashboard. Data displayed by smart apps is driven by patient data stored in the database as those smart app names suggest. If you want to test things out, you will need to record some test patient data. The Problems apps assumes you have set the global property values for the problem added and resolved concepts.

you have to install the module first, then on the patient dashboard their will be a smart apps tab, if you are just testing the apps then make sure your test data is set  up well to display the expected output, forinstance enter some drug order for a patient for the medications app to work. 

How do I setup patient medications?

Regimens tab was removed in 1.10.x branch is about to be removed from 1.11.x, you can test things in 1.9 or older versions supported by the module.

Specifically about drug orders, OpenMRS 1.9.x will let you create them from the regimens tab of the patient dashboard. 1.10.x introduces a whole new API under the hood, and doesn't have a UI for creating these yet, but you can use REST web services to create them.

Medications are not yet supported in the reference application, therefore it has to be the old interface.

Why I can't find any meds in the SMART module?

I have installed the legacy patient dashboard v1.9.0, but I still can't find any meds in the SMART module(http://imgur.com/OXXCdvz). I have added meds(http://imgur.com/9XinuxX). What am I missing?
You need to set some concept mappings, on this page smart container documentation there is a link to the user documentation that mentions which concept mappings you need to add and the dictionaries they need to map to, i guess it is the reason you don't see the medications.

 You mentioned "The Problems apps assumes you have set the global property values for the problem added and resolved concepts."  I think this is the place to mention the configuration in advanced options:http://imgur.com/p9sMkbd
 What should be the set values for the global property?
As for the global properties, they have to be concept ids for the Problem Added and Problem Resolved question concepts. You don't really have to set those global properties for the problems app to work if you are running 1.7 or later. Active Lists(Problems and Allergies) for patients were added in 1.7, unless you want to look up problems if they were entered as Observations as implementations before 1.7 used to do and some still do.


For the Patient name, try this:   <lookup expression="patient.personName"/>

For a further examples (ie. age or lab test results), look at the reference guide:  Lookup tag description