IRC Chat : 2012-02-17 - OpenMRS

00:07:24 <deadpool> djazayeri: you busy can i bug you about overriding a portlet?
00:07:30 <djazayeri> hi deadpool
00:07:44 <deadpool> hey djazayeri
00:08:14 <deadpool> so trying to override the portlet of patientDemographics but dunno how to set the view in the moduleapplicationcontext
00:09:30 <djazayeri> deadpool: I think that the name of the jsp has to always be patientDemographics.jsp
00:09:52 <deadpool> so umm what do i do then?
00:10:06 <djazayeri> deadpool: hmm…so you've been able to override the controller, but not the view?
00:10:41 <deadpool> well i haven't tested out the controller yet first i am trying to see if can override the view and then the contoller
00:11:12 <djazayeri> deadpool: override the controller first, and see if overriding the controller within a module causes it to look in the module for the view
00:11:31 <djazayeri> i.e. override the controller, and also put your view in resources/portlets
00:14:18 <deadpool> i can't put it in the regular place?
00:14:28 <djazayeri> deadpool: the regular place in the module, I mean.
00:14:36 <deadpool> yeah ok
00:15:30 <deadpool> so djazayeri to form view work i had to make the controller a simpleformcontroller
00:15:44 <deadpool> is there a way to do it if i extend the controller of portletcontroller?
00:15:44 <djazayeri> deadpool: that doesn't sound right.
00:16:01 <deadpool> djazayeri: portletcontroller didn't have a setFormView
00:16:10 <djazayeri> deadpool: have you looked at examples of module portlets?
00:16:13 <djazayeri> oh, interesting...
00:16:33 <deadpool> so i was wondering if there was a way around it
00:18:17 <djazayeri> deadpool: it looks like basically you'd have to override PorletController's handleRequest method...
00:18:49 <deadpool> hmmm... well i guess i can do that and copy most of the handleRequest method and add the view
00:19:11 <djazayeri> deadpool: yeah, though at that point it hardly matters if you're overriding PortletController
00:19:50 <djazayeri> deadpool: you could just do "implements Controller" like PortletController does, instead of doing SimpleFormController, which isn't really right.
00:19:51 <deadpool> really doesn't it populate all the data for patientDashboard from there?
00:20:06 <djazayeri> deadpool: well, yeah, I guess you want to preserve the functionality
00:20:22 <djazayeri> but that's all in the handleRequest method
00:20:30 <deadpool> yeah all i wanted to do was override the demographics tab
00:21:11 <djazayeri> so one way that will definitely work is to copy the handleRequest method from PortletController into your controller, but change the return ModelAndView line to give a different view name.
00:21:56 <djazayeri> deadpool: alternately try overriding portletcontroller in your module, but not actually implementing anything in it, and seeing if you can put the view in the typical place in your modle.
00:21:59 <djazayeri> that might work
00:22:04 <djazayeri> model -> module
00:22:11 <deadpool> hmmm ok
00:22:13 <deadpool> will do
00:23:16 <deadpool> djazayeri: do you think this is right for the moduleapplicationcontext http://pastebin.com/y6Z204AK
00:24:15 <djazayeri> deadpool: no
00:24:18 <djazayeri> it should be something like this
00:24:19 <djazayeri> <prop key="**/runReport.portlet">runReportPortletController</prop>
00:24:42 <deadpool> and i don't need a successview bean for it right
00:25:00 <djazayeri> deadpool: you do need to instantiate a bean for the portlet controller
00:25:09 <deadpool> yeah but nothing else
00:25:21 *** repos has joined #openmrs
00:25:21 <djazayeri> if it's a plain portlet controller, it doesn't need properties
00:26:12 <repos> Hey - Where can I find API info on how to create a patient externally from the OpenMRS web interface
00:26:16 <repos> Like on an android phone
00:29:15 <djazayeri> repos: see the REST Web Service module
00:29:38 *** wyclif has quit IRC
00:30:17 <repos> Could you give me a link?
00:30:18 <repos> Thanks a lot
00:30:44 <repos> Ah okay got it
00:30:46 <repos> cool
00:30:57 <deadpool> djazayeri: so i should return this from my handleRequest return new ModelAndView("module/registration/portlets/patientDemographics");
00:31:11 <djazayeri> deadpool: something like that
00:31:25 <repos> Can you create a patient via the REST Web Service?
00:31:30 <djazayeri> repos: yes
00:31:34 <deadpool> alright building it and will let you know if it worked
00:34:51 <deadpool> djazayeri: cool it worked
00:34:58 <djazayeri> deadpool: great!
00:35:09 <deadpool> djazayeri: would you like me to write something of what i did for other people to use too?
00:35:25 <deadpool> post it in the documentation page on openmrs.org?
00:35:27 <djazayeri> deadpool: exactly, I was about to say that
00:35:42 <deadpool> cool i will do that
00:35:47 <djazayeri> deadpool: could you do two things: 1. add this documentation to the relevant wiki page about module portlets
00:35:51 *** repos has quit IRC
00:36:27 <djazayeri> 2. create a ticket saying what you had to do to override the view of a built-in portlet, and asking if the core PortletController class could expose a way to let you override the view
00:36:29 <djazayeri> thanks!
00:36:36 <deadpool> djazayeri: will do
00:39:33 *** harshadura has joined #openmrs
00:56:11 *** harshadura has quit IRC
01:07:25 <deadpool> djazayeri: is there away around using org.openmrs.util.PrivilegeConstant.java in portlet controller i see that it is not there in 1.7 but it is there in 1.8
01:07:54 <djazayeri> deadpool: just use the constant value
01:08:00 <djazayeri> e.g. "VIEW PATIENTS" or whatever
01:08:05 <deadpool> ah ok
01:41:15 *** wyclif has joined #openmrs
02:01:34 *** rafa has joined #openmrs
02:01:34 *** ChanServ sets mode: +v rafa
02:19:33 <wyclif> hi djazayeri
02:24:21 *** rafa has quit IRC
03:04:11 *** bwolfe has joined #openmrs
03:04:11 *** ChanServ sets mode: +o bwolfe
03:16:28 *** bwolfe_ has joined #openmrs
03:16:28 *** ChanServ sets mode: +o bwolfe_
03:16:51 *** bwolfe has quit IRC
03:36:50 *** repos has joined #openmrs
03:37:01 <repos> How come the rest module doesn't exist on my openmrs server
03:37:03 <repos> http://ec2-23-20-82-41.compute-1.amazonaws.com:8080/openmrs/ws/rest/v1/catalog
03:38:29 *** bwolfe_ is now known as bwolfe
03:39:03 <bwolfe> repos, did you install the module?
03:39:14 <repos> It's not prebuilt in
03:39:18 <repos> How do you exactly install modules?
03:39:34 <bwolfe> admin --> manage modules
03:39:59 <bwolfe> download the omod/module and load it there
03:42:25 <repos> I installed it but I'm not sure where to access it
03:52:23 <repos> Yeah I am using your REST module
03:52:43 <repos> not sure how to access it though
03:53:48 *** goutham has joined #openmrs
03:54:06 <repos> Is there a way to use that REST module to POST to the server?
03:54:11 <repos> I think it only allows me to search?
04:02:57 <repos> What is the username/pass for "OpenMRS Rest API"
04:03:47 *** bwolfe has quit IRC
04:06:25 *** repos has quit IRC
04:11:47 *** deadpool has quit IRC
04:22:08 *** bwolfe has joined #openmrs
04:22:08 *** ChanServ sets mode: +o bwolfe
04:24:28 *** suranga has joined #openmrs
04:29:25 *** harshadura has joined #openmrs
04:31:15 *** suranga_ has joined #openmrs
04:31:16 *** suranga has quit IRC
04:35:44 *** suranga__ has joined #openmrs
04:35:44 *** suranga_ has quit IRC
04:41:34 <harshadura> hi
04:41:36 <harshadura> anyone thr
04:41:53 <harshadura> I have checked out the latest trunk source of OpenMRS.
04:41:54 <harshadura> It compilation went pretty fine. but when registering OpenMRS for the first time the Installation occurs and error message and says
04:41:54 <harshadura> "There was an error while updating the database to the latest. file: liquibase-update-to-latest.xml. Error: null Error while trying to update to the latest database version"
04:42:01 <harshadura> here's the jetty log:
04:42:09 <harshadura> http://pastebin.com/NchNh0Tx
04:42:26 <harshadura> Please anyone have idea whats the solution for this problem?
04:42:28 <harshadura> thx
04:45:44 *** suranga_ has joined #openmrs
04:45:44 *** suranga__ has quit IRC
04:51:13 *** suranga has joined #openmrs
04:51:13 *** suranga_ has quit IRC
04:57:41 *** bwolfe has quit IRC
05:05:31 *** harshadura has quit IRC
05:47:39 <djazayeri> wyclif: hi
05:47:46 <djazayeri> not sure if you still have a question
07:09:40 *** dkayiwa has joined #openmrs
07:23:35 *** bryq has joined #openmrs
07:23:35 *** ChanServ sets mode: +v bryq
07:28:02 *** goutham has quit IRC
07:48:32 *** djazayeri has quit IRC
08:35:19 *** rafa has joined #openmrs
08:35:19 *** ChanServ sets mode: +v rafa
09:02:33 *** Nehil has joined #openmrs
09:25:59 *** Nehil has quit IRC
10:06:45 *** suranga has quit IRC
10:35:58 *** dkayiwa has quit IRC
10:41:49 *** dkayiwa has joined #openmrs
10:54:11 *** harshadura has joined #openmrs
11:02:40 *** catchmrbharath has joined #openmrs
11:03:12 <catchmrbharath> hi
11:03:13 <catchmrbharath> I was trying to install openmrs for development
11:03:25 <harshadura> yeah
11:05:18 <catchmrbharath> and I am not able to install some plugins of m2e-extras
11:05:39 <catchmrbharath> it says that it has a dependency on m2e-core of bundle.org.eclipse
11:06:44 <harshadura> wats the o/s u r using?
11:06:52 <catchmrbharath> linux
11:06:53 <harshadura> and which version of eclipse?
11:06:58 <catchmrbharath> ubuntu 11.10
11:07:01 <catchmrbharath> indigo
11:07:02 <harshadura> ok
11:07:50 <catchmrbharath> I couldnt install the web application runner in m2e-extras plugin
11:08:13 <catchmrbharath> so I ignored it and tried cleaning and building the project
11:08:19 <harshadura> did u checked out the source
11:08:34 <catchmrbharath> yeah
11:08:40 <catchmrbharath> I get an error saying Plugin org.codehaus.mojo:build-helper-maven-plugin:1.5 or one of its dependencies could not be resolved
11:10:05 <harshadura> when building the project ryt?
11:10:18 <catchmrbharath> yeah
11:10:52 <harshadura> only u can run in jetty is the webapp module
11:11:07 <harshadura> so u hv to run that one.
11:11:15 <harshadura> not the main module
11:11:16 <catchmrbharath> oh ok
11:11:34 <harshadura> ok
11:11:36 <catchmrbharath> will try and let you know. thanks
11:11:45 <harshadura> ok sure
11:13:27 *** harshadura has quit IRC
11:15:31 <catchmrbharath> The same error prevails.
11:15:33 <catchmrbharath> I think its a problem with the proxy.
11:16:09 <catchmrbharath> Is there an explicit place to setup proxy for maven, other than the eclipse proxy and the system proxy?
11:16:56 *** pusakat has joined #openmrs
11:22:14 <catchmrbharath> got it resolved I think
11:22:23 <catchmrbharath> it was a problem with the proxy. thanks
11:26:40 *** dkayiwa has quit IRC
11:38:58 *** dkayiwa has joined #openmrs
11:43:35 *** pusakat has quit IRC
12:08:34 *** rafa has quit IRC
12:17:22 *** robbyoconnor has quit IRC
12:48:06 *** harshadura has joined #openmrs
13:02:56 *** catchmrbharath has quit IRC
13:08:55 *** wyclif has quit IRC
13:09:01 *** dkayiwa has quit IRC
13:11:55 *** dkayiwa has joined #openmrs
13:31:43 *** downey has joined #openmrs
13:31:43 *** ChanServ sets mode: +o downey
13:31:43 *** OpenMRSBot sets mode: +o downey
13:32:59 *** bwolfe has joined #openmrs
13:32:59 *** ChanServ sets mode: +o bwolfe
13:37:59 *** bwolfe has quit IRC
13:38:10 *** bwolfe has joined #openmrs
13:38:10 *** ChanServ sets mode: +o bwolfe
13:38:25 <downey> hi bwolfe
13:38:27 <downey> how's the wifi today
13:38:33 <bwolfe> hi downey
13:38:34 <bwolfe> dunny
13:38:37 <bwolfe> *dunno
13:38:44 <bwolfe> I'm docked and using ethernet. why?
13:39:02 <downey> bwolfe: you were bouncing in and out, just wondered
13:39:24 <bwolfe> oh, thats because I had zero battery and it came loose off the dock. :-/
13:39:47 <downey> that'd do it
13:56:14 *** dkayiwa has quit IRC
14:10:47 *** wyclif has joined #openmrs
14:12:09 *** dkayiwa has joined #openmrs
14:21:11 *** bwolfe has quit IRC
14:36:28 *** bwolfe has joined #openmrs
14:36:28 *** ChanServ sets mode: +o bwolfe
14:50:33 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Modules: Reporting Compatibility 1.5.6 uploaded to OpenMRS Module Repository <https://dev.openmrs.org/modules/view.jsp?module=reportingcompatibility&ampversion=&amp1.5.6>
14:52:28 *** dawn_ has joined #openmrs
14:52:33 *** ChanServ sets mode: +v dawn_
15:01:56 <dawn_> bwolfe: dkayiwa wyclif : i'm sure there are some updates to share. shall we do that here or would it be better to do via email so as to include rafal and darius?
15:02:23 <bwolfe> where are they?
15:02:27 <bwolfe> did you ping them over email yet?
15:03:47 <dawn_> just did and checked skype
15:06:57 <bwolfe> lets give them 3.62 minutes
15:09:49 *** robbyoconnor has joined #openmrs
15:09:49 *** ChanServ sets mode: +v robbyoconnor
15:10:50 *** r0bby has joined #openmrs
15:10:50 *** ChanServ sets mode: +v r0bby
15:13:33 <dawn_> bwolfe: still no response. shall we send updates via email?
15:14:15 *** robbyoconnor has quit IRC
15:14:58 *** pushkar has joined #openmrs
15:15:25 <pushkar> dkayiwa: Hi
15:16:47 <dkayiwa> hi pushkar
15:18:04 <pushkar> is it okay if the date is formatted in that way ??
15:18:31 <pushkar> in trunk 639
15:19:01 <dkayiwa> pushkar: will respond after looking at it again. :)
15:19:24 <pushkar> okay Daniel
15:19:32 *** djazayeri has joined #openmrs
15:19:32 *** ChanServ sets mode: +o djazayeri
15:26:18 *** bwolfe has quit IRC
15:26:21 *** bwolfe_ has joined #openmrs
15:26:21 *** ChanServ sets mode: +o bwolfe_
15:27:11 *** bwolfe_ is now known as bwolfe
15:27:38 <bwolfe> sorry, unity crashed on me. I see djazayeri has woken up. but I don't see rafal
15:27:47 <bwolfe> or are we just going to go with email for hte scrum today?
15:28:26 *** dkayiwa has left #openmrs
15:32:10 *** dawn_ has quit IRC
15:35:18 <djazayeri> bwolfe: hi
15:35:30 <djazayeri> I don't see rafa or dkayiwa
15:36:02 <djazayeri> my scrum update is that I've learned about / played with data warehousing and ETL
15:36:12 <djazayeri> and that I plan to work on the reporting web services now
15:36:19 <djazayeri> bwolfe: unless you're already doing that
15:36:43 <bwolfe> djazayeri, I have been working on that
15:36:54 <djazayeri> bwolfe: okay, I'll do something else then. :-)
15:38:11 <bwolfe> I thought you were working on the kettle plugin side...
15:39:46 <djazayeri> bwolfe: we're scheduled to talk to a Pentaho PDI developer on Tuesday
15:40:34 <djazayeri> I don't want to spend too much time on the kettle plugin side until we've gotten more guidance.
15:41:04 <djazayeri> (also I'm supposed to receive a book in the mail today about writing plugins, so that may be enough info to start)
15:41:12 <djazayeri> bwolfe: the docs on the web are very sparse
15:44:39 <djazayeri> bwolfe: I think I'll spend the morning looking more closely at the row-per-encounter transforms and make sure those also fit our model.
16:04:55 *** r0bby has quit IRC
16:09:21 *** r0bby has joined #openmrs
16:09:21 *** ChanServ sets mode: +v r0bby
16:11:55 *** r0bby_ has joined #openmrs
16:11:55 *** ChanServ sets mode: +v r0bby_
16:14:20 *** r0bby has quit IRC
16:20:06 *** suranga has joined #openmrs
16:24:35 *** r0bby_ has quit IRC
17:09:47 *** suranga has quit IRC
17:28:46 *** pushkar has quit IRC
17:46:15 *** maurya has joined #openmrs
17:47:55 <maurya> djazayeri: hi
17:48:12 <maurya> djazayeri: https://tickets.openmrs.org/browse/TRUNK-3059
17:50:55 <djazayeri> maurya: what about it?
17:51:32 <maurya> i've made the methods void the encounter providers instead of removing them..are the ui changes also to be submitted?
17:52:04 <djazayeri> maurya: what UI changes would you make?
17:53:39 <maurya> because they are not being deleted in the database they are also displayed in the encounter providers list
17:54:15 <maurya> same as the encounterproviders that are not voided
17:54:17 *** downey_ has joined #openmrs
17:54:17 *** ChanServ sets mode: +o downey_
17:54:56 <djazayeri> maurya: have to make sure that the encounter providers list does *not* show voided ones
17:54:57 <maurya> so we will have to notify the user that the encounterprovider is voided
17:55:07 <djazayeri> maurya: they should just not be displayed
17:55:37 <maurya> okay
17:56:20 <djazayeri> maurya: change the Encounter.getProvidersByRole and getProvidersByRoles methods to not include the voided ones.
17:56:34 <maurya> and should there be a way of unvoiding them?
17:57:55 *** downey has quit IRC
17:57:55 *** downey_ is now known as downey
17:58:37 *** harshadura has quit IRC
17:59:24 <djazayeri> maurya: they could be unvoided via the API but I don't think we should every display voided encounter providers in the UI for now.
17:59:39 <maurya> okay
18:00:24 *** harshadura has joined #openmrs
18:24:14 *** deadpool has joined #openmrs
18:34:09 *** Nehil has joined #openmrs
18:34:18 <downey> Hi Nehil and welcome to the #openmrs IRC channel.
18:49:07 <harshadura> hi downey
18:49:11 <harshadura> u thr
18:49:19 <downey> harshadura: yes, hi. :)
18:50:09 <harshadura> I am looking forward to participate this years gsoc. so i noticed ur email.
18:50:24 <downey> harshadura: thanks, we're hoping to be accepted again this year to participate :)
18:50:52 <harshadura> what kind of proposals we have to suggest. jz asking
18:51:59 <downey> harshadura: each year the mentors submit several projects. our more senior developers and leadership team reviews them and revises them if necessary. then if accepted for gsoc, the students can choose one of the projects and apply to work on it
18:52:41 <harshadura> okay then we hv no need to suggest things right?
18:53:03 <downey> harshadura: not necessary, no :)
18:53:17 <downey> harshadura: but if you have a good idea based on what you've seen so far, we welcome ideas from all
18:53:39 <harshadura> okay thx I jz want to get clarified that
18:53:45 <downey> harshadura: cool, no problem
18:54:16 <harshadura> Im lil bit interested in Android platform. Any suggestions for porting open mrs into portable android version
18:55:07 <downey> harshadura: there have been some people look at such things in the past. the strongest project is more of an android interface to openmrs - http://opendatakit.org/
18:55:40 <downey> harshadura: i'm not sure if they have any plans to apply for gsoc this year or not :)
18:56:32 <harshadura> okay jz asked
18:56:35 <harshadura> thx lot
18:56:50 <downey> no problem
18:58:40 *** r0bby_ has joined #openmrs
18:58:40 *** ChanServ sets mode: +v r0bby_
19:02:39 *** mnunez has joined #openmrs
19:03:20 <mnunez> Hi everyone!
19:03:55 <mnunez> Module developing question: is there a way to debug a module while deployed on an OpenMRS instance?
19:04:46 <mnunez> Or is it code---build--deploy--error, back to code, etc, etc
19:04:50 <mnunez> ?
19:06:31 *** sudhir has joined #openmrs
19:06:39 <downey> Hi sudhir and welcome to the #openmrs IRC channel.
19:06:57 *** sudhir is now known as Guest19369
19:07:30 <Guest19369> hi /nick sudhir
19:07:38 <bwolfe> mnunez, you can debug
19:07:49 <bwolfe> mnunez, I think there is a mention of it on the "how to debug" wiki page
19:07:50 <Guest19369> hi micheal
19:08:10 <bwolfe> there might even be a 'how to debug a module' wiki page
19:08:16 <Guest19369> I have a question wrt to Concepts
19:08:50 <downey> mnunez: http://openmrs-mailing-list-archives.1560443.n2.nabble.com/How-to-debug-a-module-td5039311.html
19:08:56 <OpenMRSBot> <http://ln-s.net/9eEL> (at openmrs-mailing-list-archives.1560443.n2.nabble.com)
19:09:38 <Guest19369> IS there a way to associate ICD-9 /ICD-10 codes with Concepts?
19:09:50 <mnunez> great, thanks downey & bwolfe
19:10:22 <Guest19369> also SNOMNED CT codes for Drugs?
19:10:34 *** harshadura has quit IRC
19:10:43 <mnunez> We're trying to port the appointment module from 1.6 to 1.8. Let's see how it goes.
19:13:35 <mnunez> Guest19369: yes there is. Each concept can be maped to one or more dictionaries, like SNOMED
19:14:13 *** surangak has joined #openmrs
19:14:39 <mnunez> And yes, SNOMED CT codes for drugs (at least some of them=
19:14:43 <mnunez> )
19:14:50 <mnunez> There might be other dictionary more specific to drugs
19:15:02 <mnunez> You can browse a bit in here http://bioportal.bioontology.org/search?query=aspirin&commit=Search
19:15:06 <OpenMRSBot> <http://ln-s.net/9eER> (at bioportal.bioontology.org)
19:16:45 <Guest19369> thanks a lot ,
19:16:49 *** Guest19369 has quit IRC
19:19:06 <mnunez> Guest19369: If you're looking for an OpenMRS dictionary with many concepts already mapped to ICD9/10 and SNOMED, have a look at the MVC/CIEL dictionary here http://www.maternalconceptlab.com/search.php
19:24:07 *** mnunez has quit IRC
19:30:29 *** Nehil has quit IRC
19:31:34 *** robbyoconnor has joined #openmrs
19:31:34 *** ChanServ sets mode: +v robbyoconnor
19:33:43 <maurya> bwolfe: hi
19:33:53 <maurya> bwolfe: https://tickets.openmrs.org/browse/TRUNK-2704
19:34:39 <robbyoconnor> hey all
19:34:45 <bwolfe> maurya, why am I looking at that ticket? :-)
19:34:46 <bwolfe> hi robbyoconnor
19:35:01 <maurya> there is no message for find an already existing person
19:35:46 *** r0bby_ has quit IRC
19:36:44 <maurya> can i create one or should i use the person.find message which just says find person?
19:38:02 <bwolfe> create one
19:38:12 <maurya> okay
19:49:34 *** Echidna_ has joined #openmrs
19:49:34 *** Echidna has quit IRC
20:08:20 *** surangak has quit IRC
20:20:01 *** maurya has quit IRC
20:28:20 *** mnunez has joined #openmrs
20:30:59 <mnunez> djazayeri: I'm having touble with Maven building OMRS 1.6.0. I found no pom.xml, does that mean that it has to be done manually?
20:31:45 <mnunez> djazayeri: I'm using Eclipse as explained in your videos, only having selected 1.6.0 as tag instead of trunk
20:32:35 *** ChanServ changes topic to "OpenMRS: open source medical record systems for the developing world - http://openmrs.org/ - IRC info & logs: http://go.openmrs.org/irc - Can't find the answer here? Try http://answers.openmrs.org/ - GSoC? Look here first: http://go.openmrs.org/soc2012"
20:33:24 <mnunez> djazayeri: building 1.8.2 did fine with the same method.
20:38:29 <wyclif> hi djazayeri
20:38:34 <djazayeri> hi
20:38:49 <djazayeri> mnunez: we didn't go to maven until 1.8.x
20:38:53 <djazayeri> hi wyclif
20:39:40 <mnunez> djazayeri: I thought so. Is there any documentation for Eclipse installing old versions?
20:40:09 <djazayeri> mnunez: you should be to check it out from svn in a more straightforward way
20:40:41 <wyclif> djazayeri, indexDate is the date when the evaluation occurred right?
20:40:42 <djazayeri> New -> Checkout Projects from SVN
20:40:54 <djazayeri> wyclif: index date is when you wan to do the calculation on
20:41:17 <djazayeri> wyclif: e.g. if you want to know the patient's age on Jan 1 of this year, you'd use Index Date for that
20:41:23 <mnunez> djazayeri: Thanks, will try
20:41:27 <wyclif> djazayeri, not the date it occurred
20:42:03 <djazayeri> mnunez: and then you build via ant
20:42:22 <wyclif> djazayeri, i get that
20:42:44 <wyclif> djazayeri,but not every calculation is date based
20:42:53 <djazayeri> wyclif: right, so not every calculation needs to care
20:43:12 <djazayeri> but for example a calculation that looks at Obs should not look at obs whose obsDatetime is before indexDate
20:43:37 <djazayeri> wyclif: if the user doesn't explicitly specify an indexDate, we should use new Date() (in the calculation context)
20:43:39 <wyclif> djazayeri, i woul d say not have DateBasedCalculation as an abstract class for such calculations
20:43:42 <djazayeri> but just do that once
20:43:54 <djazayeri> wyclif: no, every calculation needs to be aware of the idea of index date
20:46:17 <wyclif> djazayeri, ok
20:47:44 *** Mkop has quit IRC
20:47:58 <djazayeri> bwolfe: how go the reporting web services?
20:48:14 <bwolfe> almost done
20:49:18 <mnunez> djazayeri: Thanks, I'll do that. Looking for an ant install I found some old documentation aswell, giving it a try.
20:49:18 <wyclif> djazayeri, i have introduced a couple of classes with default implementations and Base classes that can be used out of the box, so that developers dont have to directly implement interfaces, this is in respect to Results, Calculations, ParameterDefinitions and Evaluators, will include this in my update later today
20:49:20 <djazayeri> bwolfe: awesome. no questions about how to evaluate things, i take it?
20:50:17 *** mnunez has left #openmrs
20:50:54 <djazayeri> wyclif: cool, interested to see them
20:51:28 <bwolfe> djazayeri, I've stumbled through how to do that. :-)
20:51:38 <bwolfe> I must admit this is the most I've "used" the reporting module!
20:52:11 <bwolfe> djazayeri, one question: if both a CD and DSD have params, will those overlap? and if so, is that our problem or hte users problem?
20:52:59 <djazayeri> bwolfe: oh, hmm, you mean when evaluating a DSD?
20:53:04 <bwolfe> yeah
20:54:07 <djazayeri> I think do something like GET /ws/reporting/dataset/{uuid}?onDate=2011-01-01&cohort={uuid}&cohort.param1=val1
20:55:41 <bwolfe> require that all params for the cohort start with "cohort." ?
20:55:46 <djazayeri> yeah
20:56:09 <djazayeri> bwolfe: I mean that &cohort.param1=val1 would pass param1=val1 to the cohort
20:56:27 <bwolfe> right
20:56:30 <djazayeri> This means that if the DSD has a parameter named "cohort.param1" it's not addressable, but I would blame user idiocy for that
20:56:39 <bwolfe> but if the dsd doesn't have param1, then it doesn't matter and is not needed
20:57:11 <djazayeri> bwolfe: yeah, but why would we go out of our way to support that? it just adds potential confusion
20:57:31 <djazayeri> and documenting &cohort=…&cohort.param=… is pretty easy
20:58:26 <bwolfe> because I can reuse my method more easily ;-)
20:58:36 <bwolfe> actually, its one method param to support the prefix, no worries
21:06:59 *** robbyoconnor has quit IRC
21:07:22 *** robbyoconnor has joined #openmrs
21:07:30 *** robbyoconnor has joined #openmrs
21:07:30 *** ChanServ sets mode: +v robbyoconnor
21:35:16 *** robbyoconnor has quit IRC
21:53:15 <OpenMRSBot> Recent updates in the world of openmrs: On Twitter: OpenMRS: RT @Sumiko_Mekaru: Dr. Hamish Fraser: Open Medical Record System (OpenMRS) for developing countries. Getting real time data on patient d ... <http://twitter.com/OpenMRS/statuses/170615627176869889>
21:53:47 <wyclif> djazayeri, and CohortInteger are maps between patientIds and Results, right?
21:55:58 <djazayeri> wyclif: CohortResult holds all the results for a cohort of patients, yes.
22:03:21 <bwolfe> djazayeri, committing the reportingrest now. I got hung up on testing the dataset. For some reason its not deserializing out of the seriazed_object table.
22:03:57 <bwolfe> djazayeri, might be something wrong with my reporting module though, I can't see rowperpatient/encounter dsds, says I need handlers
22:04:27 <bwolfe> its mostly done. needs some cleanup (and testing of the ds evaluating obviously)
22:07:15 *** bwolfe has quit IRC
22:07:18 *** bwolfe_ has joined #openmrs
22:07:30 *** ChanServ sets mode: +o bwolfe_
22:11:13 <djazayeri> bwolfe_: did you make sure to get reporting 0.7+?
22:11:56 *** bwolfe_ has quit IRC
22:53:55 *** downey has quit IRC
23:47:43 *** bryq has quit IRC