IRC Chat : 2008-08-04 - OpenMRS

00:09:14 *** njero has joined #openmrs
00:09:17 *** ChanServ sets mode: +v njero
00:44:37 *** upul has quit IRC
02:09:47 *** Keelhaul has quit IRC
02:21:52 *** njero has quit IRC
02:26:26 *** huntp has quit IRC
02:46:22 *** Nzeyi has joined #openmrs
03:48:57 *** upul has joined #openmrs
04:15:56 *** njero has joined #openmrs
04:15:58 *** ChanServ sets mode: +v njero
05:00:39 *** njero_ has joined #openmrs
05:01:32 *** njero has quit IRC
05:22:23 *** Nzeyi has quit IRC
05:27:58 *** njero_ has quit IRC
06:15:37 *** sprasanna has joined #openmrs
06:21:38 *** Nzeyi has joined #openmrs
06:26:27 *** TorLye has joined #openmrs
06:29:28 *** upul has quit IRC
06:39:06 *** njero has joined #openmrs
06:39:06 *** ChanServ sets mode: +v njero
06:43:27 *** james_regen has joined #openmrs
06:43:27 *** ChanServ sets mode: +v james_regen
06:47:08 *** sprasanna has quit IRC
06:53:39 *** sprasanna has joined #openmrs
07:06:42 *** bwolfe has joined #openmrs
07:06:42 *** ChanServ sets mode: +o bwolfe
07:14:32 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Forum: Re: Problem with RemoteFormEntry Module Implementation <http://forum.openmrs.org/viewtopic.php?f=9&t=391#p1327>
07:15:54 <r0bby> morning bwolfe
07:16:24 <sprasanna> bwolfe: Hi Ben..
07:18:12 <sprasanna> r0bby: hi robby
07:18:37 <r0bby> :)
07:18:38 <bwolfe> hey all
07:18:43 * r0bby sighs
07:18:56 <sprasanna> oh Ben is here.... I thought he was not at his desk :P
07:19:56 *** tilugulilwa has joined #openmrs
07:20:18 <sprasanna> bwolfe: I got an error... dont know y it occurs
07:20:24 <sprasanna> here is the trace http://pastebin.com/m15a8a0b8
07:20:39 <sprasanna> any idea about the error
07:20:57 <bwolfe> Could not read mapping documents from jar: addresshierarchy-1.0.omod
07:21:13 <bwolfe> means you have a problem with your hbm mapping file(s)
07:21:19 <bwolfe> MappingException: invalid mapping]
07:21:23 <bwolfe> Element type "properry" must be declared.
07:21:40 <bwolfe> I'm guessing you have a <property...> tag outside of some <class...> tags
07:21:48 <tilugulilwa> hi Jacob
07:21:55 <sprasanna> i cross checked that anyways i will check it once again for you :)
07:22:01 <r0bby> http://failblog.files.wordpress.com/2008/07/fail-owned-starbucks-fail.jpg
07:22:04 <OpenMRSBot> <http://ln-s.net/27CM> (at failblog.files.wordpress.com)
07:22:29 <r0bby> http://icanhascheezburger.files.wordpress.com/2008/08/funny-pictures-basement-cat-whispers-to-your-pet-about-furniture.jpg
07:22:30 <OpenMRSBot> <http://ln-s.net/27CN> (at icanhascheezburger.files.wordpress.com)
07:23:46 <tilugulilwa> Hi room
07:23:54 <tilugulilwa> I am a newbie to Open MRS
07:24:14 <tilugulilwa> does this application run on Ubuntu distro
07:24:54 <sprasanna> ha i have written it as properry instead of property :(
07:31:31 *** tilugulilwa has quit IRC
07:36:23 *** bmckown has joined #openmrs
07:36:23 *** ChanServ sets mode: +o bmckown
07:41:32 <r0bby> who wants to tafer lives?!
07:41:44 <r0bby> trade*
07:50:17 <bwolfe> tilugulilwa didn't stay too long
07:50:32 <bwolfe> but to answer his question, yes, it does run on ubuntu
07:52:31 * r0bby ran it on ububntu
07:52:39 <r0bby> it runs on vista but wacts weird :)
07:52:47 <r0bby> deploy-web not working and all
07:52:55 <r0bby> :)
07:53:12 <r0bby> I'm trying to figure out how i want to go about editing forms
07:53:30 <r0bby> i think i'll do text field overlays when you mouse over :)
07:53:37 <r0bby> making links
07:53:51 <r0bby> or maybe just using the form id
07:54:19 <r0bby> since using the formid i can get all info GroovyFormsContainer.getForm(id).description
07:54:27 <r0bby> to avoid NPE
07:54:32 <r0bby> since using the formid i can get all info GroovyFormsContainer.getForm(id)?.description
07:54:42 *** nribeka has joined #openmrs
07:55:32 <r0bby> :D
07:55:39 * r0bby <3s it
07:56:13 <r0bby> technically i never expect it to be null unless a bug appears so I have to account for that potential case
07:56:48 <r0bby> the safe reference operator wraps it in try-catch catching NPE if i remember correctly
07:57:41 <r0bby> yup that's right
07:57:50 * r0bby will teach you all groovy
07:57:51 <r0bby> :)
08:16:49 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Forum: Re: Problem with RemoteFormEntry Module Implementation <http://forum.openmrs.org/viewtopic.php?f=9&t=391#p1328>
08:44:54 *** Keelhaul has joined #openmrs
08:44:54 *** ChanServ sets mode: +v Keelhaul
08:46:57 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Forum: Re: Problem with RemoteFormEntry Module Implementation <http://forum.openmrs.org/viewtopic.php?f=9&t=391#p1329>
09:01:05 *** litlfred has joined #openmrs
09:01:05 *** litlfred has quit IRC
09:02:51 *** litlfred has joined #openmrs
09:03:29 <litlfred> Hello, is anyone familiar with the implementation of OpenMRS in Tanzania?
09:05:06 <litlfred> I am currently in Zanzibar working with the ministry of health, focused on HR software.
09:06:03 <litlfred> tomorrow I am meeting at Mnazi Mmoja hospital. when I would like to discuss is them implementing something like openMRS.
09:06:43 <litlfred> If i had some details on where it is being used on the mainland, that would be great.
09:07:36 <bwolfe> litlfred: where in tanzania you mean ?
09:07:54 <litlfred> yeah.... and by whom CSSC? ministry of health?
09:08:20 *** jmiranda has joined #openmrs
09:08:20 *** ChanServ sets mode: +o jmiranda
09:08:58 <bwolfe> litlfred: I know the UCC is using it a lot there
09:09:02 <bwolfe> litlfred: http://openmrs.org/wiki/Summary_of_OpenMRS_Implementation_Sites
09:09:11 <OpenMRSBot> <http://ln-s.net/27Dd> (at openmrs.org)
09:09:41 <litlfred> sorry, i didn't see that on the website. it is really slow from here.
09:09:52 <litlfred> but thanks.
09:10:10 <bwolfe> litlfred: and there are some other sites funded through a grant by Dr Tierney
09:10:23 <litlfred> OK.
09:11:10 <litlfred> do you know where the Morogoro hospital implementation came about? through the ministry?
09:11:15 <litlfred> is it a pilot?
09:13:40 <litlfred> Sorry for the barrage of questions...here's one more. How feasible would it be to install a demo version on my laptop with sample data by tomorrow?
09:14:13 <bmckown> that's feasible.
09:14:28 <bmckown> you should be able to install it pretty quickly.
09:15:12 <litlfred> great.
09:15:19 <bmckown> you can download the latest version here:
09:15:22 <bmckown> http://openmrs.org/wiki/Downloads
09:15:25 <bmckown> and...
09:15:54 <bmckown> Installation instructions can be found here:
09:15:56 <bmckown> http://openmrs.org/wiki/Step-by-Step_Installation_for_Implementers
09:15:58 <OpenMRSBot> <http://ln-s.net/27Dh> (at openmrs.org)
09:16:23 <bmckown> A demo data set exists on the Downloads page.
09:17:10 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Forum: Re: Problem with RemoteFormEntry Module Implementation <http://forum.openmrs.org/viewtopic.php?f=9&t=391#p1330>
09:17:23 <litlfred> hopefully I will have the badwidth. cheers.
09:17:30 <bmckown> And one other idea... There is an Implementers mailing list you can subscribe to. That may be the easiest way to contact Implementers in Tanzania.
09:17:48 <bmckown> Those on the list are pretty helpful.
09:18:19 <bmckown> The mailing lists can be found here:
09:18:21 <bmckown> http://openmrs.org/wiki/Community
09:18:21 <litlfred> OK. I'll also give it to the IT guy here at the ministry of health.
09:19:54 <litlfred> another question... does openmrs support the indicator excange format?
09:20:29 <bmckown> I actually do not know what that is.
09:20:34 <litlfred> we are looking at options to dump our data out of our system. and this was suggested by someone working with DHIS
09:21:15 <bmckown> OpenMRS uses a MySQL database. There are many ways of dumping data from MySQL databases.
09:21:34 <litlfred> its a UN/WHO/etc standard xml form designed for health data (that is the extent of my knowledge)
09:21:44 *** atomicturtle has quit IRC
09:22:03 <litlfred> (form=format)
09:22:14 <litlfred> http://hips.ifi.uio.no:8080/confluence/display/REP/IXFhttp://hips.ifi.uio.no:8080/confluence/display/REP/IXF
09:22:37 <bmckown> okay. To my knowledge we do not currently export data in that format from the OpenMRS web application.
09:23:00 <litlfred> just shopping around for an easy way to implement inter-operability between various healthcare software.
09:23:28 <njero> litlfred: in general most people use HL7
09:23:49 <njero> litlfred: there are a couple of adapters that can plug into openmrs and create alternative endpoints
09:23:50 <litlfred> openmrs uses that yeah?
09:23:55 <njero> yup
09:24:11 <njero> In fact it is how all of the data for the InfoPath forms are handled
09:25:45 <bwolfe> litlfred: we have an intern project working on an export for that format right now. I think he used to work for DHIS, actually
09:26:00 <litlfred> good to know.
09:26:09 <bwolfe> err "that format" == indicator exchange
09:27:16 <litlfred> how is H7? is it useful/flexibale enough? would it handle HR (human resources) data?
09:29:18 <njero> At the durban conference some guys from Irvine had a magic box... they took their magic box, combined with Karl and the CDC Hl7 guys and in the end made the magic box magically convert openmrs to DHIS. Not sure if it used that format
09:29:18 <njero> bmckown: what was the box again?
09:29:18 * njero looks around for his stack of business cards
09:30:36 *** nribeka has quit IRC
09:32:52 <bwolfe> it was done by jacobb and the guys from mirth litlfred + njero
09:33:47 <njero> mirth, yup that was it
09:34:08 <njero> That was seriously pretty great... one of the many great things that came out of the conference
09:38:23 *** sioraiocht has joined #openmrs
09:38:55 <litlfred> hmm... looking at HL7 it looks fairly well designed around patient and billing issues. don't really see anything about HR data.
09:39:43 <bwolfe> litlfred: what do you mean by HR data ?
09:40:15 <bwolfe> litlfred: do you need to store it or do you need to just send the info back/forth between a different system ?
09:40:50 *** Nzeyi has quit IRC
09:40:54 <litlfred> we are looking to integrate the data output from various pieces of software for planning purposes.
09:41:17 <litlfred> i.e. conect HR data about the employees at a facility with the number of incidences of XXX
09:41:28 <litlfred> do some projections about hiring/training.
09:41:46 <litlfred> https://launchpad.net/ihris-suite
09:42:38 <litlfred> since you will be (thanks to your intern) eventually outputting data to IXF, DHIS already does. if we did it as well, we would have a good synthesis of infomation.
09:43:57 <litlfred> there also has been interest expressed on having one piece of software be the wharehouse for one set of data, another for another, and then share.
09:44:16 <litlfred> i think that this is a bit of a longer term project though.
09:47:15 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Forum: Re: Problem with RemoteFormEntry Module Implementation <http://forum.openmrs.org/viewtopic.php?f=9&t=391#p1332> || OpenMRS Forum: Re: Problem with RemoteFormEntry Module Implementation <http://forum.openmrs.org/viewtopic.php?f=9&t=391#p1331>
09:48:42 <litlfred> open possibility for an active link between iHRIS manage and openMRS would be to share doctor/nurse information or facility information.
09:52:14 *** atomicturtle has joined #openmrs
09:53:12 *** nribeka has joined #openmrs
10:05:10 <litlfred> thanks for your help.
10:05:21 *** litlfred has left #openmrs
10:10:32 *** njero has quit IRC
10:12:37 *** njero has joined #openmrs
10:12:37 *** ChanServ sets mode: +v njero
10:31:06 *** atomicturtle has quit IRC
10:32:40 <sgrannis> nribeka: how're things going?
10:32:58 *** atomicturtle has joined #openmrs
10:33:00 <nribeka> sgrannis: i'm stuck with the uploading stuff :(
10:33:22 <sgrannis> anything i or james can do to help nudge things forward
10:33:26 <sgrannis> ?
10:33:26 <nribeka> but i think i've found the solution to it now
10:33:36 <nribeka> i'm writing the code right now
10:33:36 <sgrannis> good
10:33:41 *** njero has quit IRC
10:33:42 <sgrannis> great
10:33:49 <nribeka> hopefully i can finish it up later on today :D
10:33:58 <sgrannis> exceelent
10:34:11 <nribeka> i will update u later on today
10:34:16 *** njero has joined #openmrs
10:34:16 *** ChanServ sets mode: +v njero
10:34:17 <nribeka> is it ok sgrannis??
10:34:24 <nribeka> ups two ? sign
10:35:51 *** jmiranda_ has joined #openmrs
10:40:58 <sgrannis> sorry -- stepped away
10:41:01 <sgrannis> back now
10:41:13 <sgrannis> yeps -- it's OK
10:41:21 <sgrannis> let's touch base later today -- may be tonight
10:45:46 <sgrannis> nribeka: have to run ... will touch base later
10:47:34 <OpenMRSBot> Recent updates in the world of openmrs: Tor Lye: Cake and grief counseling will be available at the conclusion of the test <http://tor-soc.blogspot.com/2008/08/cake-and-grief-counseling-will-be.html>
10:52:40 *** jmiranda has quit IRC
11:02:02 *** njero has quit IRC
11:08:50 *** upul has joined #openmrs
11:09:50 *** njero has joined #openmrs
11:09:50 *** ChanServ sets mode: +v njero
11:10:22 <upul> bwolfe: Hi
11:10:30 <bwolfe> hey upul
11:11:04 *** jmiranda_ is now known as jmiranda
11:11:13 *** ChanServ sets mode: +o jmiranda
11:11:21 <upul> i was thinking if update works from a module, to run the sql updates it has to first stop openmrs
11:11:45 <upul> bwolfe: that means module will not be running then
11:12:27 <bwolfe> upul: you're right
11:12:52 <bwolfe> upul: but that is only if you do updates like they are now
11:13:20 <upul> bwolfe: actually in that war i'm not stopping before running the sql order should be changed in that
11:13:23 <bwolfe> upul: if you added the ability for a war file to run any sql updates right before it starts, then your module doesn't have to worry about the sql diff
11:16:08 <bwolfe> upul: so if you made a patch to core that did the updates on startup, your module would be easier
11:35:38 <upul> bwolfe: sql-diff sqls won't run using jdbc, unless it's run through calling a mysql
11:36:07 <upul> like done in the update war there
11:36:49 <bwolfe> why couldn't the openmrs war do that same kind of call ?
11:37:09 <bwolfe> upul: the openmrs war would have to do it before anything else is started though
11:38:05 <upul> bwolfe: i mean should it call a external mysql and run the sql-diff
11:38:42 <bwolfe> upul: doing an external call to mysql is the only way I know how to do it
11:39:06 <bwolfe> upul: unless you change how we're doing the diffs and use that library that you found a few weeks ago for doing incremental updates
11:39:06 <upul> bwolfe: that would stick it to only mysql
11:40:13 <upul> bwolfe: that would work, but that would change how openmrs is doing sql updates
11:41:39 <bwolfe> upul: yes, it would change it
11:41:47 <bwolfe> upul: but if it works, its a better way. :-)
11:58:55 *** TorLye has quit IRC
12:13:54 *** atomicturtle has left #openmrs
12:16:36 *** nribeka has quit IRC
12:23:20 <sprasanna> bmckown: did you get my mail?
12:24:31 *** sioraioc_ has joined #openmrs
12:24:57 <bmckown> yes, sprasanna
12:25:22 <sprasanna> bmckown: no reply :(
12:25:44 *** sioraiocht has quit IRC
12:25:53 <bmckown> has daniel replied?
12:27:50 <sprasanna> not yet
12:28:20 <bmckown> Can you kindly point me to the date and which mailing list burke sent his suggestions?
12:29:43 <sprasanna> on july 18th subject is "Address Hierarchy follow-up thoughts"
12:29:58 *** nribeka has joined #openmrs
12:30:00 <bmckown> was that the interns mailing list or developers list?
12:30:29 <sprasanna> developers list
12:33:56 <bmckown> okay... but he doesn't say anything about dynamic table in that e-mail.
12:34:46 <bmckown> so, if i may ask, could you explain how you plan to use the dynamic table?
12:42:02 <sprasanna> dynamic table in the sense a table with drag and drop options to instead of having that move up and move down buttons suggested in the mail
12:43:22 *** sioraioc_ is now known as sioraiocht
12:43:31 <bmckown> from the e-mail i thought you meant a database table. you mean use a javascript table instead of a tree?
12:43:32 *** sprasanna has quit IRC
12:43:48 *** njero has quit IRC
12:43:58 <bmckown> (he left?)
12:44:06 *** sprasanna has joined #openmrs
12:44:10 <bmckown> he's back.
12:44:32 <bmckown> sprasanna, from the e-mail i thought you meant a database table. you mean use a javascript table instead of a tree?
12:44:59 <sprasanna> bmckown: oh sorry for the confusing mail...
12:45:41 <nribeka> bwolfe, i have a question
12:45:44 <sprasanna> bmckown: not instead of the tree but another page to manage hierarchy.... with a dynamic table so that i can set the hierarchy in the database
12:45:48 <nribeka> are u there? :D
12:46:20 <bmckown> that sounds fine.
12:46:42 <sprasanna> bmckown: thank you :)
12:46:47 <bmckown> sure. :-)
12:47:01 <sprasanna> i was scared whether you will reject it... because i am almost done with it :P
12:47:19 <bwolfe> whats up nribeka ?
12:47:35 <bmckown> why would i reject it? and if i did, i'm not the only one who's opinion matters anyway.
12:47:47 <bmckown> i think you have a good idea. go for it.
12:47:53 <nribeka> bwolfe, still about the accessing openmrs database from non web app
12:48:08 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Tickets: Ticket #953 (task created): Create page for FormEntry global properties <http://dev.openmrs.org/ticket/953>
12:48:12 <nribeka> i get exception when i use the startup method
12:48:22 <sprasanna> :)
12:48:28 <bmckown> go for it and happy coding, sprasanna. :-)
12:48:28 <nribeka> *my hack way is not working* :(
12:49:47 <bwolfe> nribeka: what is your hack way ?
12:50:28 <nribeka> i bypass the database checking in the startup method and give the login and password to hibernate :P
12:52:33 <bwolfe> nribeka: that startup method does other things, not just give the password to hibernate
12:52:48 <bwolfe> what is your exception ?
12:53:00 <bwolfe> why not just call Context.startup(username, password, etc)
12:55:10 <nribeka> this is my code originally
12:55:11 <nribeka> http://eugeneciurana.com/pastebin/pastebin.php?show=30999
12:55:11 <OpenMRSBot> <http://ln-s.net/26kM> (at eugeneciurana.com)
12:55:16 <nribeka> did i miss anything there?
12:58:00 *** upul has quit IRC
13:09:12 <bwolfe> nribeka: yep, looking at """public static void startup(String url, String username, String password, Properties properties)""" you forgot to set the application context
13:10:26 <nribeka> how can i do that bwolfe?
13:10:35 <nribeka> do you have any link to docs or example?
13:10:53 <bwolfe> nribeka: no link, just look at the Context class
13:11:00 <bwolfe> control-shift-t
13:11:02 <bwolfe> then type Context
13:11:10 <bwolfe> and open the org.openmrs.api.context one
13:13:12 <nribeka> yes, i'm opening it now
13:13:20 <nribeka> so i need to set the ContextDAO?
13:14:31 <bwolfe> I don't think so, you should just have to call that startup method
13:15:47 <nribeka> i don't get it bwolfe :(
13:15:59 <nribeka> i did call the Context.startup()
13:16:08 <bwolfe> you called the wrogn startup
13:16:28 <bwolfe> there are two startup methods
13:16:45 <bwolfe> one has just the properties parameters that you are calling
13:16:52 <bwolfe> the other has string string string properties
13:17:31 <nribeka> ooo ...
13:17:34 <nribeka> ok :D
13:28:23 *** bwolfe has quit IRC
13:30:14 <nribeka> bwolfe it workssssss ...
13:30:21 <nribeka> ehh, where's bwolfe ...
13:30:26 <nribeka> i wanna hug bwolfeeeeeee
13:30:36 <nribeka> bwolfe - man rockss ...
13:39:21 *** bwolfe has joined #openmrs
13:39:21 *** ChanServ sets mode: +o bwolfe
14:01:36 *** nribeka has quit IRC
14:18:28 <OpenMRSBot> Recent updates in the world of openmrs: Nzeyimana Antoine: GSOC OPENMRS Project news:Editing sync record items payload <http://nzeyi.wordpress.com/2008/08/04/gsoc-openmrs-project-newsediting-sync-record-items-payload/>
14:22:20 *** james_regen has quit IRC
14:38:25 *** jmiranda has quit IRC
14:45:59 <sgrannis> nribeka: how're things? did Ben set you straight?
14:53:38 *** nribeka has joined #openmrs
15:08:16 *** sgrannis has quit IRC
15:16:46 *** TorLye has joined #openmrs
15:21:51 <nribeka> it's allliiveee ...
15:21:57 <nribeka> bwolfe, thank you ...
15:22:01 * nribeka hug bwolfe
15:22:17 * nribeka run ...
15:22:26 * bwolfe awkwardly hugs nribeka back
15:22:39 <nribeka> lol ...
15:23:09 <nribeka> :D
15:46:09 *** TorLye has quit IRC
15:49:59 <nribeka> bwolfe another question :D
15:50:17 <bwolfe> yessir
15:50:57 <nribeka> PatientIdentifier patientIdentifier = new PatientIdentifier(identifier)
15:51:42 <nribeka> can we use the same identifier for the another PatientIdentifier object that have different identifier type?
15:53:48 <nribeka> for my case
15:53:53 <nribeka> i have uid and ssn
15:54:00 <bwolfe> yeah
15:54:18 <nribeka> thanks bwolfe :D
15:54:41 * nribeka shake bwolfe hand this time :D
16:10:19 <Keelhaul> hm
16:10:28 <Keelhaul> is it possible to overwrite members of a parent class?
16:16:47 *** nribeka has quit IRC
16:16:58 *** nribeka has joined #openmrs
16:17:33 <bwolfe> Keelhaul: in java land? yeah...
16:20:45 *** bwolfe has quit IRC
16:25:57 *** bmckown has quit IRC
16:27:00 *** nribeka has quit IRC
16:42:51 *** nribeka has joined #openmrs
17:26:30 *** huntp has joined #openmrs
17:27:20 <huntp> anyone there?
17:29:56 <Keelhaul> hi
17:33:53 *** nribeka has quit IRC
17:36:53 *** sioraiocht has quit IRC
17:38:43 <huntp> hi keehaul - just emailed the dev group re: some weirdness I'm getting back from the PersonService
17:39:03 <huntp> i'm receiving an object back of type "ord.openmrs.User" ... from a getPerson() call
17:42:41 <Keelhaul> =o
17:42:53 <Keelhaul> isnt user a subclass of person
17:43:02 <huntp> yip
17:43:10 <Keelhaul> well cant you cast it or smt
17:44:19 <huntp> smt ?
17:44:59 <Keelhaul> something
17:45:02 <Keelhaul> ;]
17:45:31 <huntp> ah ... yeah - difficulty is that I'm in ColdFusion
17:45:57 <Keelhaul> oh
17:46:03 <Keelhaul> why the hell
17:46:04 <Keelhaul> D=
17:46:06 <Keelhaul> lol
17:46:27 <Keelhaul> isnt that a proprietary macromedia language
17:46:45 <Keelhaul> no casting possible there?
17:46:47 <huntp> it's Adobe now ... it runs on top of Java
17:46:58 <Keelhaul> hmm how does the bot work..
17:47:01 <Keelhaul> @wiki
17:47:05 <Keelhaul> nope, not like that
17:48:32 <Keelhaul> public Person getPerson(Integer personId) throws APIException;
17:48:36 <Keelhaul> shouldnt be a user hmm
17:48:44 <huntp> yeah - weird huh
17:48:49 <Keelhaul> indeed
17:51:46 <Keelhaul> well it's Person all the way down to hibernate dao
17:51:52 <Keelhaul> =/
18:07:04 *** nribeka has joined #openmrs
18:59:40 *** sgrannis has joined #openmrs
18:59:44 *** ChanServ sets mode: +v sgrannis
19:03:48 *** atomicturtle has joined #openmrs
19:10:51 <nribeka> sgrannis, i manage to put patient data to the database
19:11:05 <sgrannis> awesome!
19:11:05 <nribeka> will post the test5 data to link later on tonight :D
19:11:16 <nribeka> i got something to do right now hehe :D
19:11:19 <sgrannis> congrats.
19:11:28 <nribeka> thank you sgrannis :)
19:11:29 <sgrannis> i know you worked hard on this..
19:12:06 <nribeka> hehe :D
19:13:42 <nribeka> thanks sgrannis :D
19:13:56 <sgrannis> i'll talk to you later
19:14:02 *** bwolfe has joined #openmrs
19:14:02 *** ChanServ sets mode: +o bwolfe
19:14:21 <sgrannis> ... looking forward to next steps :)
19:14:21 <nribeka> ok sgrannis :D
19:14:29 *** sgrannis has quit IRC
19:14:38 <nribeka> ok ok we will be start doing it after tomorrow
19:22:57 <Keelhaul> has anyone ever tried extending module services in another module?
19:23:49 <bwolfe> Keelhaul: extending them ?
19:23:54 <Keelhaul> yes
19:24:05 <bwolfe> Keelhaul: meaning public class myService extends otherModuleService { ?
19:24:11 <Keelhaul> yea
19:25:55 <bwolfe> Keelhaul: it should be possible
19:26:03 <Keelhaul> thats what i'm trying right now
19:26:13 <bwolfe> as long as myServiceModule sets otherModule as a required module
19:26:21 <Keelhaul> it is set
19:26:43 <Keelhaul> it also worked when i forgot to declare the services in moduleapplicationcontext
19:26:54 <Keelhaul> as soon as i did, it wont start anymore
19:27:37 <bwolfe> declare which services in moduleappcontext ?
19:28:21 <Keelhaul> servicecontext bean in the extending module's xml
19:30:57 <Keelhaul> http://rafb.net/p/B0K6y127.html
19:30:59 <Keelhaul> this is what i get
19:31:07 <Keelhaul> unless i forgot something somewhere
19:31:12 <Keelhaul> or made a typo
19:31:20 <Keelhaul> it might be some weird behavior
19:35:02 <Keelhaul> all because i need some additional checks in saveProblem() in the module
19:35:12 <Keelhaul> i bet if i knew AOP, i wouldnt need the services for it
19:47:02 *** sprasanna has quit IRC
19:52:46 <bwolfe> Keelhaul: looks like you're mixing daos
19:52:58 <bwolfe> whats your modappcontext setup ?
19:53:51 <Keelhaul> http://rafb.net/p/YxY9JT24.html
19:54:01 <Keelhaul> thats the child one
19:54:18 <Keelhaul> the parent one is exactly the same with a different module name
20:01:00 <bwolfe> Keelhaul: I'm confused
20:01:08 <bwolfe> Keelhaul: is one module requiring the other ?
20:01:17 <Keelhaul> yes
20:01:53 <bwolfe> so why not just have one module service call the other ?
20:02:01 *** nribeka has quit IRC
20:02:11 <bwolfe> why are you duplicating the elements in the modappcontext ?
20:03:35 <Keelhaul> i was going by the tmdugan school of extending objects..
20:04:11 <Keelhaul> acutally, all i need is a few extra checks in saveProblem()
20:04:17 <Keelhaul> not sure i even need a new DAO
20:04:29 <Keelhaul> can i jsut extend the service and use the old dao?
20:18:28 <bwolfe> Keelhaul: why not put the checks in a static util method in module1 and call that from module2 ?
20:19:21 <Keelhaul> because i use a custom Encounter type in module2
20:19:33 <Keelhaul> it doesnt have the members i have to check, they're unknown in module1
20:19:59 <Keelhaul> basically, i added another Set to Problem, which holds a set of these custom encounters
20:20:25 <bwolfe> give me some example code. I still don't understand :-p
20:20:28 <Keelhaul> so i have to make sure to check them when saving, and also that hibernate saves them properly with the problem
20:20:39 <Keelhaul> ok hold on
20:21:38 <Keelhaul> http://rafb.net/p/CtkHzI89.html
20:21:43 <Keelhaul> this would be the extension of Problem
20:23:18 <Keelhaul> the parent class already contains a Set<org.openmrs.Encounter>
20:23:35 <bwolfe> so inpatientcare requires medicalproblem
20:23:47 <Keelhaul> the child class adds another set, since i cant override the old one
20:23:47 <Keelhaul> yes
20:24:07 <Keelhaul> inpatientcare.Encounters contains new members like encounterDatetimeEnd
20:24:20 <Keelhaul> which need to be checked before saving
20:25:23 <bwolfe> ok
20:26:37 <bwolfe> show me both your module application contexts
20:27:08 <Keelhaul> http://rafb.net/p/yM1Al010.html
20:27:27 <Keelhaul> http://rafb.net/p/e4gZCi40.html
20:29:46 <bwolfe> so from your original error message:
20:30:03 <bwolfe> Failed to convert property value of type [org.openmrs.module.inpatientcare.db.hibernate.HibernateProblemDAO] to required type [org.openmrs.module.inpatientcare.db.ProblemDAO] for property 'problemDAO'
20:30:47 <bwolfe> means that spring is trying to do setProblemDAO(org.openmrs.module.inpatientcare.db.hibernate.HibProblemDAO)
20:31:15 <bwolfe> does HibProblemDAO extend/implement ProblemDAO ?
20:31:25 <Keelhaul> it implements the interface, yes
20:31:34 <Keelhaul> and extends the original hibernateproblemdao
20:32:06 <Keelhaul> oh lemme try something
20:34:43 <Keelhaul> ah
20:34:48 <Keelhaul> as usual, i'm an ox =/
20:35:07 <Keelhaul> the hibernateproblemdao was extending the original interface, not its own
20:35:26 <Keelhaul> stupid auto-imports
20:41:46 <Keelhaul> Unknown entity: org.openmrs.module.inpatientcare.Problem
20:41:47 <Keelhaul> lol..
20:41:58 <Keelhaul> why did they ask me to split this module into two
16:00:19 *** OpenMRSBot has joined #openmrs
16:00:19 *** ChanServ sets mode: +o OpenMRSBot
16:01:08 <bwolfe> Keelhaul: you might be able to with the discriminator
16:01:19 <bwolfe> not sure if hibernate will do that for you
16:04:16 *** nribeka has joined #openmrs
16:07:21 <Keelhaul> org.hibernate.ObjectNotFoundException
16:10:46 *** OpenMRSBot has joined #openmrs
16:10:46 *** ChanServ sets mode: +o OpenMRSBot
16:10:49 <OpenMRSBot> Recent updates in the world of openmrs: Nzeyimana Antoine: GSOC OPENMRS Project news:Editing sync record items payload <http://nzeyi.wordpress.com/2008/08/04/gsoc-openmrs-project-newsediting-sync-record-items-payload/> || Tor Lye: Cake and grief counseling will be available at the conclusion of the test <http://tor-soc.blogspot.com/2008/08/cake-and-grief-counseling-will-be.html> || OpenMRS Tickets: Ticket #953 (task created): Create page for FormEntry global properties <http://dev.openmrs.org/ticket/953> || OpenMRS Forum: Re: Problem with RemoteFormEntry Module Implementation <http://forum.openmrs.org/viewtopic.php?f=9&t=391#p1332> || OpenMRS Forum: Re: Problem with RemoteFormEntry Module Implementation <http://forum.openmrs.org/viewtopic.php?f=9&t=391#p1331> || OpenMRS Forum: Re: Problem with RemoteFormEntry Module Implementation <http://forum.openmrs.org/viewtopic.php?f=9&t=391#p1330> || OpenMRS Forum: Re: Problem with RemoteFormEntry Module Implementation <http://forum.openmrs.org/viewtopic.php?f=9&t=391#p1329> || OpenMRS Forum: Re: Problem with RemoteFormEntry Module Implementation <http://forum.openmrs.org/viewtopic.php?f=9&t=391#p1328> || OpenMRS Forum: Re: Problem with RemoteFormEntry Module Implementation <http://forum.openmrs.org/viewtopic.php?f=9&t=391#p1327> || Sam Ndichu: PatientVisitScheduler status <http://sndichu.blogspot.com/2008/08/patientvisitscheduler-status.html> || OpenMRS Tickets: Ticket #952 (enhancement created): Enable Cohorts to be defined with Concept Sets <http://dev.openmrs.org/ticket/952> || OpenMRS Tickets: Ticket #951 (enhancement created): Add Solaris operating system <http://dev.openmrs.org/ticket/951> || OpenMRS Modules: Remote FormEntry 1.8 uploaded to OpenMRS Module Repository <https://dev.openmrs.org/modules/view.jsp?module=remoteformentry&version=&1.8> || OpenMRS Modules: Patient Summary 1.2 uploaded to OpenMRS Module Repository <https://dev.openmrs.org/modules/view.jsp?module=patientsummary&version=&1.2> || OpenMRS Tickets: Ticket #950 (defect created): OrderService.getOrders does not correctly use ORDER_STATUS <http://dev.openmrs.org/ticket/950> || OpenMRS Tickets: Ticket #949 (task created): Clean up unit tests <http://dev.openmrs.org/ticket/949> || OpenMRS Tickets: Ticket #948 (enhancement closed): Convert test framework to juni4 <http://dev.openmrs.org/ticket/948#comment:1> || OpenMRS Tickets: Ticket #948 (enhancement created): Convert test framework to juni4 <http://dev.openmrs.org/ticket/948> || OpenMRS Tickets: Ticket #947 (defect closed): EncounterService.voidEncounter should void Orders <http://dev.openmrs.org/ticket/947#comment:3> || OpenMRS Tickets: Ticket #947 (defect created): EncounterService.voidEncounter should void Orders <http://dev.openmrs.org/ticket/947> || OpenMRS Tickets: Ticket #942 (defect closed): Setting Encounter on Obs or Order should set Patient <http://dev.openmrs.org/ticket/942#comment:5> || Shaun Grannis: Notes from 7/29/08 Patient Matching call <http://doctorshaun.blogspot.com/2008/07/notes-from-72908-patient-matching-call.html> || OpenMRS Tickets: Ticket #946 (defect created): No way to inactivate or reactivate locations <http://dev.openmrs.org/ticket/946> || OpenMRS Forum: Re: Problem with RemoteFormEntry Module Implementation <http://forum.openmrs.org/viewtopic.php?f=9&t=391#p1326> || OpenMRS Forum: Re: Problem with RemoteFormEntry Module Implementation <http://forum.openmrs.org/viewtopic.php?f=9&t=391#p1325> || OpenMRS Forum: Re: Problem with RemoteFormEntry Module Implementation <http://forum.openmrs.org/viewtopic.php?f=9&t=391#p1324> || OpenMRS Forum: Multi-line text issues in Data Exports <http://forum.openmrs.org/viewtopic.php?f=23&t=393#p1323> || OpenMRS Tickets: Ticket #945 (enhancement closed): Field to enter the value of an obs, given a concept <http://dev.openmrs.org/ticket/945#comment:1> || OpenMRS Tickets: Ticket #945 (enhancement created): Field to enter the value of an obs, given a concept <http://dev.openmrs.org/ticket/945> || OpenMRS Forum: Re: vmware image <http://forum.openmrs.org/viewtopic.php?f=15&t=282#p1322> || OpenMRS Tickets: Ticket #942 (defect reopened): Setting Encounter on Obs or Order should set Patient <http://dev.openmrs.org/ticket/942#comment:3> || OpenMRS Tickets: Ticket #943 (enhancement closed): Module support for tag files <http://dev.openmrs.org/ticket/943#comment:6> || OpenMRS Tickets: Ticket #942 (defect closed): Setting Encounter on Obs or Order should set Patient <http://dev.openmrs.org/ticket/942#comment:1> || OpenMRS Tickets: Ticket #944 (enhancement closed): Add accessionNumber to Order <http://dev.openmrs.org/ticket/944#comment:1> || OpenMRS Tickets: Ticket #944 (enhancement created): Add accessionNumber to Order <http://dev.openmrs.org/ticket/944> || OpenMRS Tickets: Ticket #943 (enhancement created): Module support for tag files <http://dev.openmrs.org/ticket/943> || OpenMRS Tickets: Ticket #942 (defect created): Setting Encounter on Obs or Order should set Patient <http://dev.openmrs.org/ticket/942> || OpenMRS Tickets: Ticket #941 (enhancement closed): Set a person's birthdate from their age on a date <http://dev.openmrs.org/ticket/941#comment:1> || OpenMRS Tickets: Ticket #941 (enhancement created): Set a person's birthdate from their age on a date <http://dev.openmrs.org/ticket/941> || OpenMRS Forum: Re: Problem with RemoteFormEntry Module Implementation <http://forum.openmrs.org/viewtopic.php?f=9&t=391#p1321> || OpenMRS Forum: Re: Problem with RemoteFormEntry Module Implementation <http://forum.openmrs.org/viewtopic.php?f=9&t=391#p1320>
16:14:29 <bwolfe> Keelhaul: recent bug, and fixed bug
16:14:35 <Keelhaul> ah
16:14:38 <Keelhaul> time to update then
16:15:34 <Keelhaul> could my doc not showing up on the provider widget have something to do with that too?
16:15:34 <Keelhaul> and not being searchable in it either
16:15:34 <Keelhaul> it is in the db though
16:17:32 <bwolfe> maybe
16:17:39 <bwolfe> should give you errors in the tomcat logs
16:17:46 <Keelhaul> well i hope so
16:18:02 <Keelhaul> because w/o adding an encounter, i cant test whether it can use the old problemservice
16:18:32 <Keelhaul> i'll go hit the stairmaster while it updates
16:27:08 *** OpenMRSBot has joined #openmrs
16:27:08 *** ChanServ sets mode: +o OpenMRSBot
16:50:51 *** OpenMRSBot has joined #openmrs
16:50:51 *** ChanServ sets mode: +o OpenMRSBot
17:13:22 <r0bby> I should blog I've been quiet
17:23:31 <Keelhaul> bwolfe: same bug with 1.4.0.01 Build 5139 =/
17:24:05 <bwolfe> Keelhaul: you can go into the db and just change that one setting
17:24:14 <bwolfe> run the 1.3.0.15 update manually
17:24:55 *** upul has joined #openmrs
17:25:28 <Keelhaul> from where
17:25:34 <Keelhaul> it's not in any diff i can see
17:25:53 <Keelhaul> the trunk one jumps from 1.3.0.14 to 1.4
17:28:25 <Keelhaul> bwolfe: i just changed the priv name in the db
17:28:34 <Keelhaul> though it seems that this spelling is less correct
17:28:40 <Keelhaul> but thats what the code expects it to be
17:29:00 <bwolfe> Keelhaul: hmm, thought I had committed that, maybe not :-/
17:30:51 <Keelhaul> so whats new in 1.4?
17:30:55 <Keelhaul> why the jump
17:32:39 <bwolfe> because its whats in devel right now
17:32:49 <bwolfe> trunk is always one step ahead of the released code
17:33:21 <Keelhaul> sure
17:33:50 <Keelhaul> you flip versions once the previous one has officially been released?
17:38:49 <bwolfe> yeah
17:38:54 <Keelhaul> ok
17:39:18 <Keelhaul> well, it seems like reloading a module that depends on another module can make it not find some classes from the first module for some reason
17:39:21 <Keelhaul> and thus fail to start
17:39:38 <Keelhaul> Following superclasses referenced in extends not found: org.openmrs.module.medicalproblem.Problem
17:39:46 <Keelhaul> medicalproblem is up and running though
17:39:58 <Keelhaul> and i removed all extensions of that class from inpatientcare for now
18:10:59 <bwolfe> Keelhaul: not sure why its doing that
18:11:49 <bwolfe> Keelhaul: perhaps you could go a different route
18:11:59 <bwolfe> Keelhaul: as you said, if you knew AOP you'd know how to get around it :-p
18:12:25 <bwolfe> Keelhaul: add some "before" type of AOP advice against the ProblemService
18:12:50 <bwolfe> Keelhaul: have it match on the save* methods and check for the existence of the right things
18:13:16 <bwolfe> upul: if you could get an internal-to-the-war-sql-diff going, that would be HUGE
18:13:35 <bwolfe> upul: it doesn't matter if its a custom xml like I set up for the modules or if you use that other package
18:13:53 <upul> i thinking of using the third part library
18:14:02 <upul> bwolfe: i looks possible
18:14:04 <bwolfe> upul: but if you got that working, that would be about 50% of the "wizard configuration" that burke wants for startup
18:14:09 <upul> it looks possible
18:15:30 <bwolfe> upul: do you have the link handy?
18:15:49 <upul> http://www.liquibase.org/
18:16:17 <Keelhaul> bwolfe: yea aop sounds like an easy path around things
18:18:28 <bwolfe> upul: ah yes. looks like your only option would be to use their spring connector
18:18:38 <upul> bwolfe: i'm thinking of calling it programmatically
18:19:06 <upul> maybe putting a listener at the top and using the db connection details
18:20:12 <bwolfe> yes, that is your other option
18:20:23 <upul> bwolfe: i'm not sure what would happen when spring just initialize hibernate and all beans
18:20:53 <upul> and this oen
18:21:09 <bwolfe> yep, thats my concern exactly. :-)
18:21:20 <bwolfe> liquibase has to run before spring fully initializes
18:21:34 <upul> and it asks for jndi and datasources
18:21:54 <upul> doing it programmatically could skip them
18:22:34 <bwolfe> we don't have a jndi connection, but there is a datasource in spring, right ?
18:23:04 <upul> i'm not sure, i could just use Connection
18:23:20 <upul> or otherwise build a datasource programmatically and use
18:25:52 <bwolfe> yeah
18:25:56 <bwolfe> anyway
18:26:05 <bwolfe> I'm pretty excited about the possibility :-)
18:26:29 <bwolfe> the install/installer becomes a lot easier with the whole sql step built in
18:26:55 <upul> bwolfe: i'll try that
18:28:44 <bwolfe> awesome
18:28:47 <bwolfe> I'm off to bed
18:28:50 <bwolfe> cya guys
18:28:55 <upul> good night
18:28:57 <nribeka> cya bwolfe
18:28:58 <nribeka> :D
18:28:58 *** bwolfe has quit IRC
18:29:45 *** sgrannis has joined #openmrs
18:30:03 *** ChanServ sets mode: +v sgrannis
18:33:12 <upul> Hi nribeka
18:33:22 <nribeka> hi upul
18:33:30 <upul> what time is it there
18:34:03 <nribeka> sgrannis, the patient data is in link :D
18:34:10 <nribeka> 12.35 est :D
18:34:25 <upul> good my clock show the right time
18:34:32 <sgrannis> great ... next step is to test data source reader james has written
18:34:35 <nribeka> what time is there ...
18:34:41 <sgrannis> same
18:34:44 <sgrannis> 12:35
18:34:51 <upul> 10:00AM here
18:34:56 <nribeka> i just put the the testA sgrannis
18:35:04 <nribeka> do you want me to put the B as well?
18:35:08 <sgrannis> yep
18:35:14 <sgrannis> please
18:40:40 <sgrannis> nyoman, are the attributes (CC, CCnum, etc) in OpenMRS?
18:40:55 <nribeka> yes
18:41:05 <nribeka> do you want me to strip it?
18:41:38 <sgrannis> no -- its all dummy data
18:42:02 <nribeka> ah ic ... if it's real, then i'll be a rich man now :P
18:42:05 <nribeka> lol ...
18:42:16 <sgrannis> i see an error on the http://link.regenstrief.org/openmrs/admin/patients/patient.form?patientId=1035 page:
18:42:17 <OpenMRSBot> <http://ln-s.net/27Ow> (at link.regenstrief.org)
18:42:40 <sgrannis> Cannot handle type []. Please add a module to handle this type.
18:42:42 <nribeka> yep
18:42:50 <nribeka> i missed the attribute type
18:43:00 <nribeka> will check for some more before i can say it's done
18:43:51 <nribeka> btw, i'm putting the everything as an attribute
18:44:26 <sgrannis> SSN?
18:44:55 <nribeka> do you want me to put ssn as identifier (person_identifier)?
18:45:20 <nribeka> if we have the same identifier, the database will reject it for sure (i think)
18:45:41 <sgrannis> i don't think it's clear where SSN *should* go
18:46:00 <sgrannis> are you saying each person identifier must be unique for a given person?
18:46:10 <sgrannis> e.g. no two persons can have the same SSN?
18:46:58 <nribeka> i got this exception when i try to put two patient with the same UID as the identifier
18:47:01 <nribeka> An error occurred while executing this method. Error message: Identifier 7500 already in use by patient #3002
18:47:01 <nribeka> org.openmrs.api.IdentifierNotUniqueException: Identifier 7500 already in use by patient #3002
18:47:30 <nribeka> that's when i try to add the test data B into the database
18:47:33 <sgrannis> yep -- there are 2500 dupes between fileA and fileB
18:48:13 <nribeka> what do you think sgrannis?
18:48:54 <sgrannis> so if SSN is a person_attribute it can be duplicated, but not when it's a patient_identifier?
18:49:18 <nribeka> i think it's duplicable
18:49:38 <sgrannis> sounds like SSN needs to be an attribute for now (assuming attributes can be duplicated)
18:50:06 <nribeka> yes, i thought so
18:50:18 <nribeka> lemme revert the database first
18:50:30 <sgrannis> looking in link, it looks like we have a patient_identifier of SSN -- that'll need to change to an attribute
18:50:36 <sgrannis> okay -- revert away!
18:53:38 <sgrannis> also -- i might be wrong, but it looks like all patients are female?
18:56:05 <nribeka> really?
18:56:15 <nribeka> ahhh i delete the data :P
18:58:11 <huntp> hey - how do I refresh a cohort?
18:59:18 <huntp> I've added new patients that should exist as part of a cohort - but they're not being returned by "getCohortsContainingPatientId(patientID)"
19:03:56 <nribeka> sgrannis, adding new data now
19:04:34 <nribeka> huntp, all other mentors are gone except sgrannis :D
19:04:51 <nribeka> my mentor rocks :D
19:05:09 <nribeka> my mentors rocks :D
19:10:09 <nribeka> argh ... why did i put the last name in the middle and middle name in the last :(
19:19:18 <nribeka> nobody's here anymore or i'm disconnected?
19:34:16 *** huntp has quit IRC
21:06:53 *** njero has joined #openmrs
21:06:59 *** ChanServ sets mode: +v njero
21:18:15 *** Keelhaul has quit IRC
21:38:11 *** huntp has joined #openmrs
21:40:44 *** sioraiocht has joined #openmrs
22:02:51 *** TorLye has joined #openmrs
22:13:11 *** njero_ has joined #openmrs
22:13:14 *** njero has quit IRC
22:16:15 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Tickets: Ticket #954 (task created): CohortService - getCohort('nameofcohort') <http://dev.openmrs.org/ticket/954>
22:16:17 *** njero_ has quit IRC
22:16:38 *** njero has joined #openmrs
22:16:38 *** ChanServ sets mode: +v njero
22:19:11 *** njero_ has joined #openmrs
22:19:12 *** njero has quit IRC
22:36:56 *** sioraiocht has quit IRC
22:43:18 *** TorLye has quit IRC
23:10:02 *** upul has quit IRC
23:22:19 *** sioraiocht has joined #openmrs
23:27:40 *** openmrs_1302 has joined #openmrs
23:31:50 *** njero_ has quit IRC
23:58:55 *** sgrannis has quit IRC