How do I add Health Center in OpenELIS

Hi, I updated bahmni to the latest version, I am having trouble on openELIS adding Health Centers so that patients with the new Identifiers I created apart from “GAN, SIV, etc” can also be synced to openELIS for lab test

this is deprecated with the new releases. You dont need to add Health Centers, patient with any identifier should sync successfully.

Patients dont show on openELIS, I thought it was adding Health Center issue, could there be some other problem?

This is what failed_events table says in openmrs database

| 6 | http://localhost:8052/openelis/ws/feed/patient/recent | 2016-12-15 12:31:46 | Failed processing event in feed [http://localhost:8052/openelis/ws/feed/patient/6] Location Uuid not foundjava.lang.IllegalArgumentException: Location Uuid not found at org.openmrs.module.bahmniemrapi.visitlocation.BahmniVisitLocationServiceImpl.getLocationByUuid(BahmniVisitLocationServiceImpl.java:43) at org.openmrs.module.bahmniemrapi.visitlocation.BahmniVisitLocationServiceImpl.getVisitLocation(BahmniVisitLocationServiceImpl.java:38) at org.openmrs.module.bahmniemrapi.visitlocation.BahmniVisitLocationServiceImpl.getVisitLocationUuid(BahmniVisitLocationServiceImpl.java:29) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at com.sun.proxy.$Proxy258.getVisitLocationUuid(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:121) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:51) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:51) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at com.sun.proxy.$Proxy271.getVisitLocationUuid(Unknown Source) at org.openmrs.module.bahmniemrapi.encountertransaction.service.VisitIdentificationHelper.getVisitFor(VisitIdentificationHelper.java:37) at org.bahmni.module.elisatomfeedclient.api.mapper.AccessionHelper.mapToNewEncounter(AccessionHelper.java:88) at org.bahmni.module.elisatomfeedclient.api.worker.OpenElisAccessionEventWorker.process(OpenElisAccessionEventWorker.java:108) at org.bahmni.module.elisatomfeedclient.api.worker.OpenElisPatientFeedWorker.process(OpenElisPatientFeedWorker.java:17) at org.ict4h.atomfeed.client.service.AtomFeedClient$EventProcessor.doInTransaction(AtomFeedClient.java:168) at org.ict4h.atomfeed.transaction.AFTransactionWorkWithoutResult.execute(AFTransactionWorkWithoutResult.java:6) at org.openmrs.module.atomfeed.transaction.support.AtomFeedSpringTransactionManager$1.doInTransaction(AtomFeedSpringT | tag:atomfeed.ict4h.org:4d7f66fa-b3c8-41cd-b2a4-ec3b600241e6 | /openelis/ws/rest/accession/a262e2bd-750a-43fe-88f0-ebf359879c2b | 1989187897 | accession | 5 | patient |

Please help

Hi @tumga,

May I know what is the exact version that you are using?

Also about the failed_events table, if you are trying to sync the lab orders from MRS to ELIS, we should check the failed_events table in the clinlims database under Postgres. Let us know what it says in the clinlims failed_events table (instead of openmrs failed_events table).

Hi @maheshonopenmrs i am using bahmni version 0.86, I have also checked openELIS clinlims database, failed_events table is empty

I am not sure but I think the issue here is on adding location to openELIS, how do I do that?

Hi Tumga,

Please can you check the link below and confirm if you have followed the steps

https://bahmni.atlassian.net/wiki/display/BAH/Configure+Laboratory+Management+System