IRC Chat : 2011-06-13 - OpenMRS

02:34:28 *** surangak has joined #openmrs
02:40:12 *** asgoyal has quit IRC
02:57:43 *** gbastien has quit IRC
03:45:50 *** Mokurai has left #openmrs
04:44:38 *** goutham has joined #openmrs
04:50:02 *** batkinson has joined #openmrs
05:05:44 *** goutham has quit IRC
05:13:16 *** goutham has joined #openmrs
05:21:52 *** bwolfe_ has joined #openmrs
05:21:52 *** ChanServ sets mode: +o bwolfe_
05:28:16 *** batkinson has quit IRC
05:46:08 *** pascal` has quit IRC
05:50:36 *** bwolfe_ has quit IRC
05:58:46 *** goutham has quit IRC
06:15:21 *** bwolfe_ has joined #openmrs
06:15:21 *** ChanServ sets mode: +o bwolfe_
06:19:14 *** dkayiwa has joined #openmrs
06:25:18 *** bwolfe_ is now known as bwolfe
06:25:20 <bwolfe> squidsoup?
06:25:29 <bwolfe> doesn't sound so appetizing...
06:39:22 <surangak> bwolfe, howdy.. ummm.. r u busy ?...
06:39:30 <bwolfe> always ;-)
06:39:33 <bwolfe> whats up?
06:39:52 <surangak> mm.. i was working on that tag class
06:39:58 <surangak> using java i mean
06:40:10 <surangak> i got it working to display text and even a drop down list
06:40:27 <surangak> but hmm.. it does not seem to display when i try a custom openmrs tag..
06:40:57 <bwolfe> ok
06:41:03 <surangak> im thinking what im doing wrong is something to do with how i use a custom tag, because it displays other stuff ok...
06:41:13 <surangak> i got body content jsp..
06:43:48 <surangak> i got my class here.. wonder if u could look at it... http://pastebin.com/NG9nH9b6
06:48:16 <bwolfe> not sure. but ExtensionPointTag uses bodyContent.getEnclosingWriter().write(overrideContent); to write instead of pageContext
06:51:10 <surangak> umm... im not using extensionpointtag, right >
06:51:28 <surangak> u mean fieldGen tag calls ExtensionPoint tag ?
06:52:25 <bwolfe> I meant use that as an example tag
06:56:44 <dkayiwa> hi bwolfe
06:56:50 <bwolfe> hey daniel
06:56:58 <dkayiwa> how is your morning?
06:57:28 <bwolfe> fine
06:57:31 <dkayiwa> bwolfe: i have just a one small question :)
06:57:40 <bwolfe> internet is unusually fast, so I'm feeling productive. :-D
06:57:49 <dkayiwa> lolllll
06:58:52 <surangak> which is why i come to office early in the morning, before boss turns up :P
06:59:14 <dkayiwa> bwolfe: in your review comments when you said that i replace value + new Random().nextInt(100) with random(value), did you mean that there is a random method which takes a string and appends a random value? Or did you mean that i refactor what i have into a reusable method?
06:59:34 <bwolfe> there is a random method on the parent class
06:59:38 <bwolfe> that does exactly what you're doing
06:59:42 <dkayiwa> oh
07:00:03 <bwolfe> its on the Steps class
07:00:09 <dkayiwa> ok
07:03:12 *** pascal` has joined #openmrs
07:32:50 *** satyag has joined #openmrs
07:55:51 <OpenMRSBot> Recent updates in the world of openmrs: New Changeset: OpenMRS (webapp-testing): Reusing the existing random() method instead of duplicating what it is already doing - Adding Test case: Create a new re... <http://feedproxy.google.com/~r/OMRStrunk/~3/B4gi-UajAQA/OpenMRS>
08:01:53 *** ChanServ sets mode: +v pascal`
08:33:40 *** dkayiwa has quit IRC
08:54:50 *** satyag is now known as satyag-away
08:54:54 *** satyag-away is now known as satyag_away
09:03:48 <OpenMRSBot> Recent updates in the world of openmrs: New Changeset: OpenMRS (webapp-testing): Refactoring the CreateGlobalPropertySteps class as per the review comments, and fixing a bug where i was not uniquely se... <http://feedproxy.google.com/~r/OMRStrunk/~3/QLqJjSwv5us/OpenMRS>
09:17:32 *** satyag_away is now known as satyag
09:28:54 *** satyag has left #openmrs
10:07:50 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Forum: Re: Create new privileges <http://forum.openmrs.org/viewtopic.php?f=8&t=775#p2964> || OpenMRS Forum: Re: Exception: permGen Space <http://forum.openmrs.org/viewtopic.php?f=8&t=779#p2963> || OpenMRS Forum: Re: Web Servies SSL <http://forum.openmrs.org/viewtopic.php?f=8&t=782#p2962> || OpenMRS Forum: Re: Unit test excepion <http://forum.openmrs.org/viewtopic.php?f=8&t=783#p2961> || OpenMRS Modules: Form Entry 4.5.9.1 uploaded to OpenMRS Module Repository <https://dev.openmrs.org/modules/view.jsp?module=formentry&version=&4.5.9.1>
10:11:45 *** suho has joined #openmrs
10:11:45 *** ChanServ sets mode: +v suho
10:14:55 <pascal`> bwolfe, what happened to that alerts module?
10:15:29 <pascal`> bwolfe, the one that would show alerts on the patient dashboard based on various rules you could define (SQL, logic, etc)?
10:15:29 <bwolfe> which one was that?
10:15:36 <bwolfe> oh
10:15:38 <bwolfe> patientflags
10:15:41 <pascal`> ah
10:15:42 <pascal`> thanks
10:16:05 <bwolfe> if you weren't able to find that on the wiki, add the keywords you searched on to the patientflags module page :-)
10:16:38 <pascal`> i was searching for alerts
10:16:44 <pascal`> will do
10:18:23 <suho> hi can any one help me how to use <div dojoType="ConceptSearch".. to work
10:18:23 *** morristic has quit IRC
10:19:01 *** morristic has joined #openmrs
10:19:04 <suho> I wanted to search for multiple concepts in the same page ..
10:19:55 <bwolfe> suho, use fieldgen tags instead
10:19:56 <pascal`> bwolfe, is there a special keywords feature... or should i just add the works somewhere in the page text?
10:20:07 <bwolfe> yes and yes
10:21:06 <suho> bwolfe, pascal` too sugested that but there we need to load that at page loading and we cant dynamically create many when user needs
10:22:47 <suho> I tried cloning but things didnt work
10:24:07 <suho> so i decided to use only one instance and try to use that for all searching, but in this case i have to make this appear in a popup
10:24:57 <suho> where I couldn't still figure it out how can I do that
10:25:26 <suho> please give your suggestions
10:25:39 <bwolfe> it depends on ids and whatnot, so it will not work if you just do a js clone
10:27:09 <suho> yes so any alternative i thought of using <div dojoType="ConceptSearch"... as in the fieldEdit.jsp
10:27:25 <suho> but i dont know how to make that code work :(
10:33:57 *** nribeka has joined #openmrs
10:33:57 *** ChanServ sets mode: +v nribeka
10:38:11 <bwolfe> suho, whats your end goal? why do you need a variable number ?
10:38:13 *** bryq has joined #openmrs
10:38:13 *** ChanServ sets mode: +v bryq
10:38:47 <suho> the usecase is to create many conditions in NCD module
10:39:03 <suho> so conditions can be concepts
10:39:58 <suho> so user should be able to search for the concepts and also add some rage of values to testing
10:40:11 <suho> where that concept was correct
10:40:34 <suho> here we dont know the number of concepts needed in advance
10:40:43 <suho> thats up to the user
10:44:47 <bwolfe> ok, so just putting 10 empty boxes isn't good enough?
10:44:56 <bwolfe> then they can save the page and see 10 more if needed... :-p
10:45:22 <bwolfe> that can be the first pass (the 1.0 as we call it). for 2.0 you can try to figure out how to do a variable number of them
10:45:26 <suho> ha ha ok that will work
10:46:03 <suho> ok so if that was legal then I'm ok with that :)
10:46:41 <suho> thanks for the quick fix i'll do it that way
10:58:09 *** rafa has joined #openmrs
10:58:09 *** ChanServ sets mode: +v rafa
11:01:12 *** surangak has quit IRC
11:10:58 *** james_regen has joined #openmrs
11:10:58 *** ChanServ sets mode: +v james_regen
11:11:00 <OpenMRSBot> Recent updates in the world of openmrs: New Changeset: OpenMRS (obs-codes-expanded): Updating branch to Revision No. 20640 of Trunk <http://feedproxy.google.com/~r/OMRStrunk/~3/LeibZSebVxk/OpenMRS>
11:31:26 *** suho has quit IRC
11:42:09 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Forum: Re: OpenEMPI integration module <http://forum.openmrs.org/viewtopic.php?f=8&t=784#p2966> || OpenMRS Forum: OpenEMPI integration module <http://forum.openmrs.org/viewtopic.php?f=8&t=784#p2965>
12:24:21 *** chopin has joined #openmrs
12:24:21 *** ChanServ sets mode: +v chopin
12:48:48 *** Hazamonzo has joined #openmrs
12:55:13 *** wyclif has joined #openmrs
13:03:02 *** chopin has quit IRC
13:06:34 *** downeym has joined #openmrs
13:06:34 *** ChanServ sets mode: +o downeym
13:06:34 *** OpenMRSBot sets mode: +o downeym
13:08:29 *** gbastien has joined #openmrs
13:35:54 *** james_regen1 has joined #openmrs
13:38:27 *** james_regen has quit IRC
13:40:57 *** james_regen1 is now known as james_regen
13:44:42 *** ChanServ sets mode: +v james_regen
13:57:20 *** gauravpaliwal1 has joined #openmrs
14:03:34 *** djazayeri has joined #openmrs
14:03:34 *** ChanServ sets mode: +o djazayeri
14:05:22 *** downeym has quit IRC
14:08:46 *** downeym has joined #openmrs
14:08:46 *** ChanServ sets mode: +o downeym
14:08:46 *** OpenMRSBot sets mode: +o downeym
14:11:48 *** nribeka has quit IRC
14:14:01 *** czakian has joined #openmrs
14:17:27 <czakian> hey there, I have a question about the NativeIfNotAssignedIdentityGenerator
14:17:43 <czakian> what happens if a user gives an id that is already taken?
14:18:45 <rafa> czakian: I think you will overwrite the previous row.
14:20:12 <czakian> I see
14:20:16 <czakian> is that a good idea?
14:21:13 <rafa> czakian: I'm sorry I'm no longer sure, let me look how it really works
14:21:18 <czakian> because we could accidentially write of data that way correct?
14:23:30 <rafa> czakian: yes, you'll overwirte the previous data
14:24:06 <czakian> I see.
14:24:18 <czakian> thanks
14:24:19 <czakian> :)
14:24:27 *** james_regen has quit IRC
14:24:51 <rafa> you're welcome
14:26:36 <djazayeri> rafa: btw Mark did forward your JIRA ticket comment to Andy/etc already
14:27:09 <rafa> djazayeri: yes, I've noticed
14:27:36 *** james_regen has joined #openmrs
14:27:36 *** ChanServ sets mode: +v james_regen
14:37:12 *** nribeka has joined #openmrs
14:37:12 *** ChanServ sets mode: +v nribeka
14:52:13 *** czakian has quit IRC
14:58:05 *** gauravpaliwal1 has left #openmrs
14:58:15 *** mandric has joined #openmrs
15:02:52 *** goutham has joined #openmrs
15:07:15 *** dkayiwa has joined #openmrs
15:12:12 *** pascal` has quit IRC
15:15:10 *** asgoyal has joined #openmrs
15:23:27 *** nribeka has quit IRC
15:24:20 *** asgoya has joined #openmrs
15:24:25 <downeym> Hi asgoya and welcome to the #openmrs IRC channel.
15:26:10 *** asgoyal has quit IRC
15:27:26 *** asgoyal has joined #openmrs
15:29:06 *** goutham has quit IRC
15:29:50 *** asgoya has quit IRC
15:32:57 *** wyclif has quit IRC
15:33:30 *** wyclif has joined #openmrs
16:02:59 <djazayeri> hi rafa
16:03:16 <rafa> hi djazayeri
16:03:18 <djazayeri> if you want to discuss metadata-sharing replace-items, I'm around
16:04:53 <rafa> perfect, so the question is how to map an incoming concept in a situation when it dos not include any concept mappings?
16:05:48 <rafa> If it does include concept mappings, I understand that I just copy them to the existing concept
16:06:22 <djazayeri> Hmm...
16:06:56 <rafa> If it does not include concept mappings, I have nothing to copy and can only make sure that a module calling saveReplace will be notified about mappings
16:07:05 <djazayeri> actually, looking back at what andy and I discussed in Cape Town last year (I still have the piece of paper on my desk)...
16:07:17 <djazayeri> we said:
16:07:52 <djazayeri> when doing a metadata export that has concepts in it, we need to create/use a ConceptSource that represents us.
16:08:07 <djazayeri> (us == the server that's about to share the concept)
16:08:40 <rafa> Okay, I was thinking about something similar
16:08:55 <djazayeri> and every concept we export should also get a mapping with that source, and the concept id as the value.
16:09:03 <rafa> How do we construct such ConceptSource?
16:09:32 <rafa> So that it is possibly unique for us.
16:09:56 <djazayeri> good question
16:10:31 <djazayeri> It would be very nice to have general mechanism in core or a core module to have a unique name for your own serv3er
16:10:44 <djazayeri> (but allow it to be re-used if you upgrade)
16:11:27 *** bwolfe has quit IRC
16:11:57 <rafa> For the moment we could let the user to pick any ConceptSource as the default one when he tries to export concepts
16:12:31 <rafa> The user would need to create one beforehand.
16:13:00 <djazayeri> I would prefer that we have a global property we use to store the id of the concept source.
16:13:29 <djazayeri> and we have the MS module create it if you ever try to export concepts without having set that first
16:14:32 <rafa> Good. The other question is if we update existing concepts by adding our mapping or just save it in the package.
16:14:47 <djazayeri> I think we just add it to the package.
16:14:55 <djazayeri> don't update existing concepts.
16:15:17 *** bwolfe has joined #openmrs
16:15:17 *** ChanServ sets mode: +o bwolfe
16:15:19 <rafa> Ok
16:15:48 <rafa> Thank you. It's all for the moment.
16:16:19 <djazayeri> okay, just to think about this for bit longer...
16:16:23 *** dlawson has joined #openmrs
16:16:23 *** ChanServ sets mode: +v dlawson
16:17:35 <djazayeri> I'll email Andy and you about this just to clarify that he still agrees with this.
16:18:40 <rafa> Very good
16:35:14 *** gauthami has joined #openmrs
16:39:25 *** gauthami_ has joined #openmrs
16:39:30 *** gauthami has quit IRC
16:39:32 <gauthami_> hi james_regen
16:39:38 <downeym> Hi gauthami_ and welcome to the #openmrs IRC channel.
16:39:42 <james_regen> hi gauthami_
16:39:52 <gauthami_> can we chat
16:40:01 <james_regen> sure
16:40:43 <gauthami_> sending private chat james_regen
16:43:32 *** mandric_ has joined #openmrs
16:44:27 *** mandric has quit IRC
16:44:27 *** mandric_ is now known as mandric
16:47:46 *** rafa has quit IRC
16:54:10 *** gauthami_ has quit IRC
16:54:36 *** gauthami__ has joined #openmrs
16:54:47 <downeym> Hi gauthami__ and welcome to the #openmrs IRC channel.
17:02:24 *** gau has joined #openmrs
17:02:36 <downeym> Hi gau and welcome to the #openmrs IRC channel.
17:02:58 *** gauthami__ has quit IRC
17:03:00 <OpenMRSBot> Recent updates in the world of openmrs: New Changeset: OpenMRS (trunk): Adding @ignore to failing test - TRUNK-2332 <http://feedproxy.google.com/~r/OMRStrunk/~3/E1_3P7HsUdY/OpenMRS> || New Changeset: OpenMRS (webapp-testing): Working on review comments for: Test case: Change a global property - APPTEST-41 <http://feedproxy.google.com/~r/OMRStrunk/~3/2yu_HACl8UM/OpenMRS> || New Changeset: OpenMRS (trunk): Reverting changes from rev:20515 and adding unit tests that reproduce the bug for later fixing <http://feedproxy.google.com/~r/OMRStrunk/~3/q13OWYGReLs/OpenMRS>
17:07:09 *** goutham has joined #openmrs
17:07:22 *** gau has quit IRC
17:13:19 *** bwolfe has quit IRC
17:21:42 <goutham> hi any one familiar with maven archetype prompter?
17:32:00 *** goutham has quit IRC
17:34:27 *** szrrizvi has joined #openmrs
17:48:27 *** dkayiwa has quit IRC
17:53:57 *** dkayiwa has joined #openmrs
17:55:20 *** downeym has quit IRC
17:56:51 *** rafa has joined #openmrs
17:56:51 *** ChanServ sets mode: +v rafa
18:00:46 <szrrizvi> Hi, when you create a relationship for a patient. How is that information saved?
18:04:51 <szrrizvi> I mean, when you assign a role to a user. It is saved in the org.openmrs.user class, But what about relationships?
18:05:28 *** Suranga has joined #openmrs
18:14:54 *** szrrizvi has quit IRC
18:25:02 *** bwolfe has joined #openmrs
18:25:02 *** ChanServ sets mode: +o bwolfe
18:25:28 *** Suranga has quit IRC
18:26:40 *** Suranga has joined #openmrs
18:34:34 *** rafa has quit IRC
18:46:58 *** Suranga has quit IRC
18:51:08 *** asgoyal has quit IRC
19:12:43 <OpenMRSBot> Recent updates in the world of openmrs: New Changeset: OpenMRS (1.6.x): URL patterns for module servlet filter mappings should be relative to the context path - TRUNK-2324 <http://feedproxy.google.com/~r/OMRStrunk/~3/lKrfZwVT6FA/OpenMRS> || New Changeset: OpenMRS (1.7.x): URL patterns for module servlet filter mappings should be relative to the context path - TRUNK-2324 <http://feedproxy.google.com/~r/OMRStrunk/~3/h6-QtTf6zNs/OpenMRS> || New Changeset: OpenMRS (1.8.x): URL patterns for module servlet filter mappings should be relative to the context path - TRUNK-2324 <http://feedproxy.google.com/~r/OMRStrunk/~3/cJEpASdU0cw/OpenMRS> || New Changeset: OpenMRS (webapp-testing): Working on review comments for: Test case: Edit Locale/Theme - APPTEST-43 <http://feedproxy.google.com/~r/OMRStrunk/~3/ejt2f0Cv-RQ/OpenMRS>
19:16:31 *** wyclif has quit IRC
19:18:18 *** wyclif has joined #openmrs
19:29:10 *** robbyoconnor has quit IRC
19:30:03 *** mandric has quit IRC
19:38:05 *** robbyoconnor has joined #openmrs
19:38:05 *** ChanServ sets mode: +v robbyoconnor
19:51:02 *** wyclif has quit IRC
19:54:13 *** wyclif has joined #openmrs
19:56:54 *** bwolfe_ has joined #openmrs
19:56:54 *** ChanServ sets mode: +o bwolfe_
19:57:10 *** bwolfe has quit IRC
19:58:11 *** mandric has joined #openmrs
19:58:51 *** james_regen has quit IRC
20:07:31 *** szrrizvi has joined #openmrs
20:21:52 <szrrizvi> Hi, if I want to read the information from a certain MySQL table, how would I do that? example: read the list of users from the users table.
20:22:41 *** bwolfe_ is now known as bwolfe
20:23:07 <bwolfe> szrrizvi, why not use the java api? List<Users> users = Context.getUserService().getAllUsers();
20:23:10 *** wyclif has quit IRC
20:23:29 <bwolfe> if you want straight sql: select * from users;
20:23:46 <szrrizvi> Yes, I do need to use the java api
20:24:53 <szrrizvi> What I'm actually trying to do is, to create a new table (which I have done), and read and write data to it.
20:29:29 <szrrizvi> So I'm thinking, if I can figure out how 1 table works, then I can figure out how to work with my own table.
20:37:44 *** wyclif has joined #openmrs
20:50:18 <bwolfe> szrrizvi, I assume you're writing a module
20:50:26 <bwolfe> have you looked at the Creating Modules wiki page?
20:50:38 <bwolfe> or checked out some of the example modules?
20:50:41 <bwolfe> !modules
20:50:41 <OpenMRSBot> bwolfe: "modules" --- http://openmrs.org/wiki/Modules
20:50:52 <bwolfe> hmm, outdated link, but should still get you there
20:50:58 <szrrizvi> I am trying to implement a new access control system for openmrs
20:52:35 <szrrizvi> It is for research at a university.
20:55:20 *** bryq has quit IRC
20:58:07 *** gbastien has quit IRC
21:00:08 <bwolfe> szrrizvi, ah, so core changes
21:00:21 <bwolfe> have you seen the research paper somebody wrote on it? (or are you part of that group?)
21:01:15 <szrrizvi> I read the research paper that was written by UCLA, about Object Sensitive Role Based Access Control. But I am not part of that group.
21:01:58 <bwolfe> szrrizvi, look at the Users.hbm.xml file, User.java, liquibase-update-to-latest.xml file (not much users stuff in there now), openmrs-servlet.xml (for jsp url mapping), applicationContext-service.xml (for UserService setup)
21:02:11 <bwolfe> and with that I'm off to bed, its after midnight here
21:02:25 <bwolfe> there are some other qualified helpers in here though...
21:02:30 <szrrizvi> alrite. Thank you for your help.
21:02:41 <djazayeri> szrrizvi: the short answer to "how do I read from a database table" is "with Hibernate"
21:03:10 <djazayeri> So look at HibernateUserDAO, actually.
21:03:23 <szrrizvi> Yes, I was looking at that.
21:04:08 <szrrizvi> I have been trying to learn all these technoligies. MySQL, Maven, Spring, etc.
21:05:51 <djazayeri> out of curiosity, what is different about the security/authorization model you're implementing?
21:06:04 <szrrizvi> What my team is trying to do is, use relationships for access control.
21:06:40 <szrrizvi> Such as, a user should only be able to view a patient's file, if the user has the "Doctor:Patient" relationship with the said patient.
21:06:48 <djazayeri> gotcha
21:06:59 *** gbastien has joined #openmrs
21:07:38 <szrrizvi> And with that you can have extended relationships. such as colleague of a doctor of a patient
21:09:06 *** bwolfe has quit IRC
21:09:10 <szrrizvi> I don't believe it will be useful for everything (like the web interface), but rather the more sensitive data.
21:12:22 *** gbastien has quit IRC
21:16:14 *** gbastien has joined #openmrs
21:23:39 *** dkayiwa has quit IRC
22:06:18 *** jportela has joined #openmrs
22:06:18 *** ChanServ sets mode: +v jportela
22:09:37 *** szrrizvi has quit IRC
22:41:11 *** dlawson has quit IRC
22:56:16 *** wyclif has quit IRC
23:07:26 *** morristic has quit IRC
23:09:05 *** dlawson has joined #openmrs
23:09:05 *** ChanServ sets mode: +v dlawson
23:28:10 *** mandric has quit IRC
23:50:41 *** wyclif has joined #openmrs
23:59:15 <OpenMRSBot> Recent updates in the world of openmrs: New Changeset: OpenMRS (trunk): Can't create encounter from administration screen - TRUNK-2349 <http://feedproxy.google.com/~r/OMRStrunk/~3/7jCCuW0cfr8/OpenMRS>