This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Capture Vitals", | |
"uuid": "60df0617-c18e-4609-8bdf-6f8de1b5b0cc", | |
"processor": "EncounterFormProcessor", | |
"pages": [ | |
{ | |
"label": "", | |
"sections": [ | |
{ | |
"label": "Vitals", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Test | |
public void testErrorInPatientIdentifier() throws Exception { | |
FragmentModel model = new FragmentModel(); | |
Patient patient = new Patient(); | |
String resourcePath = "emr:htmlforms/patientIdentifierTest.xml"; | |
when(resourceFactory.getResourceAsString("emr", "htmlforms/patientIdentifierTest.xml")).thenReturn(PATIENT_IDENTIFIER_TEST_FORM_DEFINITION); | |
FragmentConfiguration config = new FragmentConfiguration(); | |
config.put("patient", patient); | |
config.put("definitionUiResource", resourcePath); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"type": "testorder", | |
"patient": "1681f4b7-7f4d-4227-9562-718ee347bbd8", | |
"concept": "840AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", | |
"encounter": "8a32e7cb-0bbb-4c4e-8ed4-fc982443859f", | |
"orderer": "9e28cb36-0df4-4972-b375-4a5ff88e39d9", | |
"careSetting": "c365e560-c3ec-11e3-9c1a-0800200c9a66" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TASK: [bahmni-web | Check if bahmni-web rpm needs an update] ****************** | |
<localhost> REMOTE_MODULE command yum list installed bahmni-web | |
<localhost> EXEC ['/bin/sh', '-c', 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1458322206.16-84569702859029 && echo $HOME/.ansible/tmp/ansible-tmp-1458322206.16-84569702859029'] | |
<localhost> PUT /tmp/tmpv5eMMc TO /root/.ansible/tmp/ansible-tmp-1458322206.16-84569702859029/command | |
<localhost> EXEC /bin/sh -c 'sudo -k && sudo -H -S -p "[sudo via ansible, key=ctcjhexfztakavtkimdxfycvgssgyovq] password: " -u root /bin/sh -c '"'"'echo BECOME-SUCCESS-ctcjhexfztakavtkimdxfycvgssgyovq; LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 /usr/bin/python /root/.ansible/tmp/ansible-tmp-1458322206.16-84569702859029/command; rm -rf /root/.ansible/tmp/ansible-tmp-1458322206.16-84569702859029/ >/dev/null 2>&1'"'"'' | |
failed: [localhost] => {"changed": true, "cmd": ["yum", "list", "installed", "bahmni-web"], "delta": "0:00:02.111244", "end": "2016-03-18 23:00:08.458928", "rc": 1, "start": "2016-03-18 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- these three lines are in my osx shell | |
vagrant init bento/centos-6.7 | |
vagrant up | |
vagrant ssh | |
-- from here it's in the centos vm | |
sudo su | |
yum install https://bahmni-repo.twhosted.com/rpm/bahmni/bahmni-installer-0.80-139.noarch.rpm | |
yum install unzip | |
wget https://bahmni-repo.twhosted.com/endtb/release-1.0/mysql_dump.sql |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"error":{"message":"Could not open Hibernate Session for transaction; nested exception is org.hibernate.exception.GenericJDBCException: Cannot open connection","code":"org.springframework.orm.hibernate3.HibernateTransactionManager:597","detail":"org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction; nested exception is org.hibernate.exception.GenericJDBCException: Cannot open connection\n\tat org.springframework.orm.hibernate3.HibernateTransactionManager.doBegin(HibernateTransactionManager.java:597)\n\tat org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:372)\n\tat org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:128)\n\tat org.openmrs.module.atomfeed.transaction.support.AtomFeedSpringTransactionManager.executeWithTransaction(AtomFeedSpringTransactionManager.java:37)\n\tat org.openmrs.module.atomfeed.advice.PatientAdvice.after |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<bean class="org.openmrs.ui.framework.StandardModuleUiConfiguration"> | |
<property name="moduleId" value="${project.parent.artifactId}"/> | |
<property name="forOpenmrsVersion">1.*</property> | |
<property name="developmentResourceFolders"> | |
<list> | |
<value>web-1.9</value> | |
<value>omod</value> | |
</list> | |
</property> | |
</bean> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "54f912cd-1f58-4379-a92c-4fcc0aa1e894", | |
"patients": "", | |
"observations": "", | |
"encounters": "", | |
"atlasVersion": "2.1", | |
"data": { | |
"version": "2.3", | |
"modules": [ | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var startAndEndDateParameters = "<parameters>" + | |
" <org.openmrs.module.reporting.evaluation.parameter.Parameter>\n" + | |
" <name>startDate</name>\n" + | |
" <label></label>\n" + | |
" <type>java.util.Date</type>\n" + | |
" <required>true</required>\n" + | |
" </org.openmrs.module.reporting.evaluation.parameter.Parameter>\n" + | |
" <org.openmrs.module.reporting.evaluation.parameter.Parameter>\n" + | |
" <name>endDate</name>\n" + | |
" <label></label>\n" + |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Resource(name = RestConstants.VERSION_1 + "/orderentryconfig", supportedClass = Object.class, supportedOpenmrsVersions = {"1.10.*", "1.11.*"}) | |
public class OrderEntryConfigResource1_10 implements Listable { | |
@Override | |
public SimpleObject getAll(RequestContext context) throws ResponseException { | |
OrderService orderService = Context.getOrderService(); | |
SimpleObject ret = new SimpleObject(); | |
// try/catch each of these to avoid failing in the case where one of these is not configured | |
try { |