IRC Chat : 2012-07-01 - OpenMRS

00:58:37 *** orien has joined #openmrs
01:07:09 *** orien has quit IRC
01:19:43 *** orien has joined #openmrs
01:36:46 *** gauravpaliwal has joined #openmrs
01:36:46 *** ChanServ sets mode: +v gauravpaliwal
02:14:25 *** orien has quit IRC
02:32:54 *** Jibesh has joined #openmrs
03:13:33 *** gauravpaliwal has left #openmrs
03:40:09 *** rfriedman has quit IRC
03:52:22 *** rosesale has joined #openmrs
04:16:15 *** rosesale has quit IRC
05:19:45 *** suranga has joined #openmrs
05:19:45 *** ChanServ sets mode: +v suranga
05:46:31 *** suranga has quit IRC
06:18:26 *** Echidna_ has joined #openmrs
06:18:26 *** Echidna has quit IRC
06:23:41 *** Jibesh has quit IRC
06:44:27 *** kavuri has joined #openmrs
06:44:40 <kavuri> djazayeri: you there?
06:47:38 *** Jibesh has joined #openmrs
06:51:31 *** Echidna_ has quit IRC
06:51:43 *** Echidna has joined #openmrs
06:51:43 *** ChanServ sets mode: +v Echidna
07:37:13 *** kavuri has quit IRC
07:52:55 *** kavuri has joined #openmrs
08:52:29 *** dkayiwa has joined #openmrs
08:53:51 *** kavuri has quit IRC
09:08:49 *** Mauro_ has joined #openmrs
09:10:20 *** rafa has joined #openmrs
09:10:22 *** ChanServ sets mode: +v rafa
09:17:26 <Mauro_> Good Morning from the UK. It's my 1st time in this irc channel so please let me know if I should follow any rules.
09:18:00 <Mauro_> I have a question regarding dividing all the data for different institutions that use the same openMRS instalation
09:18:06 <dkayiwa> Mauro_: just use kind words :)
09:18:17 <Mauro_> each institution would only see their data
09:18:24 <Mauro_> :) ok
09:18:50 <Mauro_> this feature is not available currently in the openMRS right?
09:19:39 <dkayiwa> Mauro_: why dont you just have a different OpenMRS instance for each institution?
09:20:29 <Mauro_> that would mean managing updates and bugs for all the instances, and I would like to only manage 1 instance.
09:20:40 <Mauro_> also if I install it in a cloud infrastructure
09:21:18 <Mauro_> the one instance would scale for the amount of people growing with each new institution
09:21:29 <Mauro_> does that make sense?
09:21:40 <dkayiwa> Mauro_: yes it does.
09:22:24 <dkayiwa> Mauro_: how would you identifier an institution? by login name?
09:23:14 <Mauro_> whenever I create a new user, I would add an institution to him.
09:23:38 *** rosesale has joined #openmrs
09:23:53 <Mauro_> when the user logs in, all the other queries, views and so forth would be filtered by its institution too
09:24:13 <Mauro_> his institution*
09:24:32 <rosesale> dkayiwa: hi daniel. :)
09:24:35 <dkayiwa> Mauro_: that is not possible out of the box
09:24:53 <dkayiwa> Mauro_: you would need to develop some sort of module to achieve that
09:25:15 <Mauro_> right :)
09:25:25 <dkayiwa> Mauro_: in my view, it is easier having a different instance for each institution than developing such a module :)
09:25:29 <dkayiwa> hey rosesale :)
09:26:18 <Mauro_> just to confirm, it would be a huge effort to change all the queries to filter data by institution right?
09:26:31 <Mauro_> and I would actually need to change the database schema too
09:26:40 <rosesale> dkayiwa: ok. about my question. If I can skip the double checking part, and go directly to the registration part. Or just replace it with a link to the registration part.
09:27:44 <dkayiwa> rosesale: why do you want to skip the double checking part?
09:29:34 <rosesale> dkayiwa. hmmh. because there's a search function already. and I think (though I didn't check) when I add a person who has a record already, it will just notify me.
09:31:15 <dkayiwa> rosesale: looks like for now, you will leave with the first double check option :)
09:32:38 <rosesale> dkayiwa: ahh ok. :) more questions. can I make the Edit Patient form, similar to my registration form?
09:34:36 <dkayiwa> rosesale: yes :)
09:35:18 *** rafa has quit IRC
09:35:26 <Mauro_> Daniel thanks for your help! bye for now.
09:35:40 *** Mauro_ has quit IRC
09:35:51 <rosesale> dkayiwa. great. Shoud I just add a 'page' in the xform? How do i do this? I can't see how on xform.
09:36:14 <dkayiwa> rosesale: it should be automatic
09:36:31 <dkayiwa> rosesale: as long as you set the usePatientXform
09:37:26 <rosesale> dkayiwa: ohh. but it loaded the old xform form. wait i'll check again.
09:38:45 <dkayiwa> ok
09:40:30 <rosesale> dkayiwa: ahh it did. but it loaded using the link <edit patient(short form>. Is there a way to load it on the link that is not short form?
09:40:57 <dkayiwa> rosesale: not at the moment. but you can create a ticket for it :)
09:42:58 <rosesale> dkayiwa: Ok. Another question. Is there a way to make all the fields on y registration form appear on the Demographics tab?
09:48:45 <rosesale> dkayiwa: Ok. Another question. Is there a way to make all the fields on my registration form appear on the Demographics tab?
09:51:05 <dkayiwa> rosesale: can you mention some of the existing fields on that tab?
09:51:17 <dkayiwa> rosesale: the ones you want to be added onto
09:52:12 <rosesale> dkayiwa: like the phone numbers for contact information. barangay (part of the address here in the philippines).
09:52:51 <rosesale> dkayiwa: they are on my registration form already. but are not added in the demographics tab.
09:53:46 <dkayiwa> rosesale: which fields do you already see on the demorgraphics tab?
09:56:47 *** Jibesh has quit IRC
09:57:26 <rosesale> dkayiwa: the names; the address 1 & 2, City, state, country, postal code, latitude, longitude, start date, end date. I removed some of them already. And added a few.
09:58:07 <dkayiwa> rosesale: like which field do you want to add?
09:58:46 <rosesale> dkayiwa: barangay, Region (which are on my reg form)
10:00:28 <dkayiwa> rosesale: did you look at? https://answers.openmrs.org/questions/598/how-can-i-show-all-the-registration-information-in-the-demographics-tab
10:02:16 *** orien has joined #openmrs
10:03:21 <rosesale> dkayiwa: ohh thanks. I was about to type that I know what to do already. :) thanks. one more. Can I set a label inside a text field in the xform but that label will not be saved in the data base as they are just guide for the user on what to white on the field. like I have 3 text fields for name. i want the label <last name> <first name <middle name> inside the text boxes, instead of having a label before a text box.
10:04:20 <dkayiwa> rosesale: that is not possible at the moment :)
10:04:48 *** Jibesh has joined #openmrs
10:06:19 <rosesale> dkayiwa: ah okay. That's it for now. Thank you very much daniel. :)
10:07:02 <dkayiwa> rosesale: you are welcome Rose :)
10:07:18 <dkayiwa> rosesale: by the way, will you attend the openmrs implementers meeting? :)
10:08:30 <rosesale> dkayiwa: I have not tried any yet. As I just started implementing OpenMRS. But that sounds great. Where can I find info on that?
10:10:05 <dkayiwa> rosesale: http://events.openmrs.org/
10:10:44 <dkayiwa> rosesale: i asked you because it will be in Philippines :)
10:12:06 <rosesale> dkayiwa: I'm not sure of my schedule yet. But that would be fun. Are you attending?
10:12:31 <dkayiwa> rosesale: if i get scholarship :)
10:16:43 <rosesale> dkayiwa: yeah. That reason too. The registration is expensive (~15,000 in PH peso), I'll be needing funding for that too.. :)
10:16:57 <dkayiwa> rosesale: ok :D
10:17:36 <rosesale> dkayiwa: thank you for the help. :)
10:18:17 *** harshadura has joined #openmrs
10:22:01 *** Jibesh has quit IRC
10:22:03 <dkayiwa> rosesale: you are welcome Rose. Thank you to for appreciating :)
10:28:59 <rosesale> dkayiwa: I also appreciate the fact that you allot time to help (as others will not do that). So thank you. :)
10:32:43 <dkayiwa> rosesale: hahahhah. that is so sweet of you Rose!!! :D
10:33:10 <dkayiwa> rosesale: but people here in the OpenMRS community are helpful!!! :)
10:34:15 <rosesale> dkayiwa: yes. I noticed that too. :) I saw that people here are quick on replying to posts, exp if its an error. :)
10:34:30 <dkayiwa> rosesale: hahahaha :D
10:56:06 *** Jibesh has joined #openmrs
11:01:43 *** rafa has joined #openmrs
11:01:43 *** ChanServ sets mode: +v rafa
11:24:51 *** dkayiwa has quit IRC
12:07:40 *** rfriedman has joined #openmrs
12:43:41 *** orien has quit IRC
12:44:38 <rfriedman> hey rafa, got a minute?
12:44:48 <rafa> rfriedman: sure
12:44:57 <rfriedman> that was quite a job mvrobey did
12:45:02 <rfriedman> congrats
12:45:19 <rfriedman> i'm getting an error when i try to load a module:
12:45:19 <rafa> rfriedman: thx, but I'm only a backup mentor :)
12:45:22 <rfriedman> Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext-service.xml]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: Unable to instantiate default tuplizer [org.hiber
12:45:23 <rfriedman> nate.tuple.component.PojoComponentTuplizer]
12:45:54 <rafa> rfriedman: I haven't seen that before
12:46:11 <rfriedman> nor I
12:46:15 <rafa> rfriedman: can you pastebin a full stack trace?
12:46:32 <rafa> rfriedman: maybe there's something more about the reason...
12:47:51 <rfriedman> http://pastebin.com/eXcfd5g7
12:48:16 <rfriedman> yeah, i just gave you the jist of the web application context message
12:49:40 <rafa> rfriedman: the error message is not helpful at all :(
12:49:54 <rfriedman> here's the module application context
12:49:54 <rafa> rfriedman: there's a problem with one of your entities
12:49:56 <rfriedman> <bean class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
12:49:56 <rfriedman> <property name="transactionManager"><ref bean="transactionManager"/></property>
12:49:56 <rfriedman> <property name="target">
12:49:56 <rfriedman> <bean class="org.openmrs.module.tbcase.api.impl.TBCaseReportsServiceImpl">
12:49:56 <rfriedman> <property name="dao">
12:49:57 <rfriedman> <bean class="org.openmrs.module.tbcase.api.db.hibernate.HibernateTBCaseReportsDAO">
12:50:00 <rfriedman> <property name="sessionFactory"><ref bean="sessionFactory"/></property>
12:50:02 <rfriedman> </bean>
12:50:04 <rfriedman> </property>
12:50:06 <rfriedman> </bean>
12:50:08 <rfriedman> </property>
12:50:09 <rafa> rfriedman: the application context is probably ok
12:50:10 <rfriedman> <property name="preInterceptors">
12:50:12 <rfriedman> <ref bean="serviceInterceptors"/>
12:50:14 <rfriedman> </property>
12:50:16 <rfriedman> <property name="transactionAttributeSource">
12:50:19 <rfriedman> <bean class="org.springframework.transaction.annotation.AnnotationTransactionAttributeSource"/>
12:50:20 <rfriedman> </property>
12:50:22 <rfriedman> </bean>
12:50:32 <rafa> rfriedman: it's Hibernate that fails
12:50:42 <rafa> rfriedman: you need to make sure all your entities are correct
12:50:55 <rfriedman> You mean pojos?
12:51:05 <rafa> rfriedman: yes, the ones you map with hbms
12:51:24 <rfriedman> rafa, good thought, I will investigate
12:51:38 <rafa> rfriedman: make sure they all have a non-arg public constructor
12:51:49 <rafa> rfriedman: and getters and setters for fields
12:52:26 <rfriedman> rafa, this module was made by stripping out lots of another module, so maybe there's still something unrenamed or something like that
12:52:48 <rafa> rfriedman: I see
12:53:01 <rfriedman> rafa, tks
12:53:55 <rafa> rfriedman: np
12:54:57 <rafa> rfriedman: it's most likely a problem with a getter or setter
12:55:09 <rafa> rfriedman: because it fails on populating a bean
13:13:47 <rfriedman> rafa, turned out the name of the pojo did not match the class param in the hbm.xml
13:14:46 <rafa> rfriedman: good you spotted it
13:15:17 <rfriedman> rafa, that was a pretty unhelpful error message, thanks for the steer in the right direction
13:36:41 *** pulasthi7 has joined #openmrs
13:55:05 *** dkayiwa has joined #openmrs
13:56:24 *** rafa has quit IRC
13:57:00 <dkayiwa> hi rosesale :)
14:36:07 *** harshadura has quit IRC
14:48:29 *** harshadura has joined #openmrs
15:09:14 *** rafa has joined #openmrs
15:09:14 *** ChanServ sets mode: +v rafa
15:16:05 *** rafa has quit IRC
15:23:53 *** dkayiwa has quit IRC
15:24:19 *** rafa has joined #openmrs
15:24:19 *** ChanServ sets mode: +v rafa
15:27:45 *** Rahul has joined #openmrs
15:28:40 *** Rahul has quit IRC
16:00:25 *** rosesale has quit IRC
16:26:40 *** harshadura has quit IRC
16:44:38 *** rfriedman has quit IRC
17:38:09 *** rafa has quit IRC
17:43:59 *** jordank has joined #openmrs
17:44:10 *** dkayiwa has joined #openmrs
17:47:14 *** jordank has left #openmrs
17:53:28 *** dkayiwa_ has joined #openmrs
17:53:30 *** dkayiwa has quit IRC
17:53:35 *** dkayiwa_ is now known as dkayiwa
18:06:19 *** pulasthi7 has quit IRC
18:12:41 *** bwolfe has joined #openmrs
18:12:41 *** ChanServ sets mode: +o bwolfe
18:21:03 *** dkayiwa has quit IRC
18:21:16 *** dkayiwa has joined #openmrs
18:31:03 *** Jibesh has quit IRC
20:39:51 *** bwolfe has quit IRC
21:00:11 *** jordank has joined #openmrs
21:47:19 *** rafa has joined #openmrs
21:47:19 *** ChanServ sets mode: +v rafa
22:16:43 *** rafa has quit IRC
22:41:34 *** jordank has quit IRC
23:27:02 *** orien has joined #openmrs
23:27:39 *** orien has quit IRC
23:33:41 *** orien has joined #openmrs