Created new Identifier Sources, I cant post lab oder for sample collection to OpenElis

hi,when I save patient order for lab investigation, the patients don’t show in the openelis list for sample collection. Here is what I did, I have created new patients identifier sources, instead of using “BAM, SIV,SEM or GAN” , now when I save lab order for patients I created with the new identifier sources they don’t appear on openelis for sample collection, but when I post lab order for patients I created with the identifier sources like “BAM, SIV,SEM or GAN” they do appear on openelis, what could be the problem?

You will have to create corresponding “HealthCenter” in OpenELIS, where name should be same as Identifier Source in Openmrs.

Its in a table called “health_center”.

Or actually you can set it up via OpenELIS admin UI.

Open Openelis, goto “Administration”, click on “Manage Health Centers”. Add new health centers, with same name as Identifier Source (e.g. GAN, BAM etc)

@vinkesh still it is not working, are there any other configurations that should be made?

If patients with ID GAN, BAM etc are getting created in OpenELIS, but others are not, then it means that Sync is working, just throwing some error for patients with different Identifier sources.

In “clinlims” postgresql database (this is the database used by OpenELIS), there will be a table called “failed_events”. Please take a look at the content of that table. It will give you error message along with stack trace. Looking at that stack trace might give you some idea around why this is failing.

Log into your bahmni server and in your terminal try out these commands.

psql -Uclinlims clinlims
select * from failed_events;
1 Like

@vinkesh thank you for your reply, I checked “failed events” table, here is what I discovered from the errors in the table, that Identifier sources should be 3character length for it to be accepted by openelis database as valid health centre, I corrected the error by creating new identifier sources with maximum of 3characters and they worked

HI @vinkesh

i have the same issue here, problem is here from EMR to ELS lab order are receiving however from ELS to EMR not, i check clinlims

 |                 |                      |         |
 292 | http://localhost:8050/openmrs/ws/atomfeed/lab/recent | Failed processing event in feed [http://localhost:8050/openmrs/ws/atomfeed/lab/217]
                                                                                                                                                      +| tag:atomfeed.ic
t4h.org:1d1af8e4-b598-4621-af6f-855838f30aba | /openmrs/ws/rest/v1/reference-data/sample/1773e5ad-ddbd-447c-959b-b1edd0165bb6               | 2017-06-18 18:28:06.532+00
 |     -1948099733 | sample               |       0 | lab
     |                                                      | us.mn.state.health.lims.common.exception.LIMSRuntimeException: Error while saving panel - Stooljava.lang.R
untimeException: us.mn.state.health.lims.common.exception.LIMSRuntimeException: Error while saving panel - Stool                                      +|
                                             |                                                                                              |
 |                 |                      |         |
     |                                                      |         at org.bahmni.feed.openelis.feed.transaction.support.AtomFeedHibernateTransactionManager.executeWi
thTransaction(AtomFeedHibernateTransactionManager.java:51)                                                                                            +|
                                             |                                                                                              |
 |                 |                      |         |
     |                                                      |         at org.ict4h.atomfeed.client.service.AtomFeedClient.processEvents(AtomFeedClient.java:68)
                                                                                                                                                      +|
                                             |                                                                                              |
 |                 |                      |         |
     |                                                      |         at org.bahmni.feed.openelis.feed.job.OpenELISFeedReaderJob.processEvents(OpenELISFeedReaderJob.jav
a:73)                                                                                                                                                 +|
                                             |                                                                                              |
 |                 |                      |         |
     |                                                      |         at org.bahmni.feed.openelis.feed.job.OpenELISFeedReaderJob.execute(OpenELISFeedReaderJob.java:57)
                                                                                                                                                      +|
                                             |                                                                                              |
 |                 |                      |         |
     |                                                      |         at org.quartz.core.JobRunShell.run(JobRunShell.java:207)
                                                                                                                                                      +|
                                             |                                                                                              |
 |                 |                      |         |
     |                                                      |         at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:560)
                                                                                                                                                      +|
                                             |                                                                                              |
 |                 |                      |         |
     |                                                      | Caused by: us.mn.state.health.lims.common.exception.LIMSRuntimeException: Error while saving panel - Stool
                                                                                                                                                      +|
                                             |                                                                                              |
 |                 |                      |         |
     |                                                      |         at org.bahmni.feed.openelis.feed.event.LabFeedEventWorker.process(LabFeedEventWorker.java:95)
                                                                                                                                                      +|
                                             |                                                                                              |
 |                 |                      |         |
     |                                                      |         at org.ict4h.atomfeed.client.service.AtomFeedClient$EventProcessor.doInTransaction(AtomFeedClient.
java:168)                                                                                                                                             +|
                                             |                                                                                              |
 |                 |                      |         |
     |                                                      |         at org.ict4h.atomfeed.transaction.AFTransactionWorkWithoutResult.execute(AFTransactionWorkWithoutR
esult.java:6)                                                                                                                                         +|
                                             |                                                                                              |
 |                 |                      |         |
     |                                                      |         at org.bahmni.feed.openelis.feed.transaction.support.AtomFeedHibernateTransactionManager.executeWi
thTransaction(AtomFeedHibernateTransactionManager.java:42)                                                                                            +|
                                             |                                                                                              |
 |                 |                      |         |
     |                                                      |         ... 5 more
                                                                                                                                                      +|
                                             |                                                                                              |
 |                 |                      |         |
     |                                                      | Caused by: us.mn.state.health.lims.common.exception.LIMSException: Error while saving panel - Stool
                                                                                                                                                      +|
                                             |                                                                                              |
 |                 |                      |         |
     |                                                      |         at org.bahmni.feed.openelis.feed.service.impl.TypeOfSampleService.createOrUpdate(TypeOfSampleServi
ce.java:71)                                                                                                                                           +|
                                             |                                                                                              |
 |                 |                      |         |
     |                                                      |         at org.bahmni.feed.openelis.feed.event.LabFeedEventWorker.process(LabFeedEventWorker.java:64)
                                                                                                                                                      +|
                                             |                                                                                              |
 |                 |                      |         |
     |                                                      |         ... 8 more
                                                                                                                                                      +|
                                             |                                                                                              |
 |                 |                      |         |
     |                                                      |
                                                                                                                                                       |
                                             |                                                                                              |
 |                 |                      |         |
 286 | http://localhost:8050/openmrs/ws/atomfeed/lab/recent | Failed processing event in feed [http://localhost:8050/openmrs/ws/atomfeed/lab/194]
                                                                                                                                                      +| tag:atomfeed.ic
t4h.org:d862fdd2-054b-430a-92b6-2b6794fad6c3 | /openmrs/ws/rest/v1/reference-data/all-tests-and-panels/a3a4db93-ba92-492d-aa3a-f19476bd1d73 | 2017-06-18 18:24:26.313+00
 |     -1809667336 | all-tests-and-panels |       4 | lab
     |                                                      | us.mn.state.health.lims.common.exception.LIMSRuntimeException: Error while saving panel - Anaemia Paneljav
a.lang.RuntimeException: us.mn.state.health.lims.common.exception.LIMSRuntimeException: Error while saving panel - Anaemia Panel                      +|
                                             |                                                                                              |
 |                 |                      |         |
     |                                                      |         at org.bahmni.feed.openelis.feed.transaction.support.AtomFeedHibernateTransactionManager.executeWi
thTransaction(AtomFeedHibernateTransactionManager.java:51)                                                                                            +|
                                             |                                                                                              |
 |                 |                      |         |
     |                                                      |         at org.ict4h.atomfeed.client.service.AtomFeedClient.processEvents(AtomFeedClient.java:68)
                                                                                                                                                      +|
                                             |                                                                                              |
 |                 |                      |         |
     |                                                      |         at org.bahmni.feed.openelis.feed.job.OpenELISFeedReaderJob.processEvents(OpenELISFeedReaderJob.jav
a:73)                                                                                                                                                 +|
                                             |                                                                                              |
 |                 |                      |         |
     |                                                      |         at org.bahmni.feed.openelis.feed.job.OpenELISFeedReaderJob.execute(OpenELISFeedReaderJob.java:57)
                                                                                                                                                      +|
                                             |                                                                                              |
 |                 |                      |         |
     |                                                      |         at org.quartz.core.JobRunShell.run(JobRunShell.java:207)
                                                                                                                                                      +|
                                             |                                                                                              |
 |                 |                      |         |
     |                                                      |         at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:560)
                                                                                                                                                      +|