IRC Chat : 2011-02-05 - OpenMRS

00:00:55 *** gbastien has joined #openmrs
00:05:27 *** gbastien has quit IRC
00:54:33 *** lh has quit IRC
01:00:06 *** lh has joined #openmrs
01:14:18 *** lh has quit IRC
01:21:41 *** gbastien has joined #openmrs
01:26:26 *** gbastien has quit IRC
01:34:27 *** gbastien has joined #openmrs
01:39:06 *** gbastien has quit IRC
01:52:08 *** gbastien has joined #openmrs
01:56:30 *** gbastien has quit IRC
02:09:44 *** gbastien has joined #openmrs
02:14:15 *** gbastien has quit IRC
02:27:16 *** gbastien has joined #openmrs
02:31:51 *** gbastien has quit IRC
02:43:50 *** gbastien has joined #openmrs
02:48:10 *** gbastien has quit IRC
02:54:03 *** gbastien has joined #openmrs
02:58:55 *** gbastien has quit IRC
03:12:07 *** gbastien has joined #openmrs
03:16:28 *** gbastien has quit IRC
03:28:22 *** gbastien has joined #openmrs
03:32:39 *** gbastien has quit IRC
03:39:27 *** gbastien has joined #openmrs
03:43:48 *** gbastien has quit IRC
03:57:11 *** gbastien has joined #openmrs
04:08:50 *** gbastien has quit IRC
04:24:14 *** diptanuc has joined #openmrs
05:31:56 *** buddhika has joined #openmrs
05:38:29 *** buddhika has quit IRC
06:48:02 *** diptanuc has quit IRC
06:54:00 *** diptanuc has joined #openmrs
06:55:18 *** diptanuc has left #openmrs
07:04:42 *** pascal` has joined #openmrs
07:09:57 *** pascal` has quit IRC
07:25:36 *** pascal` has joined #openmrs
10:58:31 *** netepal has quit IRC
11:43:12 *** rafa has joined #openmrs
11:46:27 *** netepal has joined #openmrs
12:04:32 *** pascal` has quit IRC
13:23:39 *** rafa has quit IRC
14:09:27 *** pascal` has joined #openmrs
14:47:16 *** gbastien has joined #openmrs
14:52:14 *** gbastien has quit IRC
15:04:54 *** gbastien has joined #openmrs
15:09:06 *** gbastien has quit IRC
15:22:56 *** gbastien has joined #openmrs
15:27:36 *** gbastien has quit IRC
15:39:05 *** gbastien has joined #openmrs
16:04:14 *** gbastien has quit IRC
16:13:46 *** rafa has joined #openmrs
16:30:33 *** gbastien has joined #openmrs
16:35:01 *** gbastien has quit IRC
16:35:34 *** netepal has quit IRC
16:43:03 *** rafa has quit IRC
16:50:02 *** pascal` has quit IRC
16:55:06 *** pascal` has joined #openmrs
17:49:47 *** goutham has joined #openmrs
18:06:24 *** goutham has quit IRC
18:25:18 *** pascal` has quit IRC
18:28:29 *** dkayiwa has joined #openmrs
18:56:49 *** rafa has joined #openmrs
19:04:37 *** diptanuc has joined #openmrs
19:05:01 <diptanuc> Hey dkayiwa!
19:07:28 <dkayiwa> Hey
19:08:03 <diptanuc> I was just checking out your xforms module. Good work with that!
19:08:42 <dkayiwa> oh thanks :)
19:08:53 <diptanuc> We had written a separate webapp which deserializes the openxdata forms and that used to post the data to our openmrs through an webservice.
19:09:18 <dkayiwa> yes i read about that from your redmine wiki
19:09:28 <diptanuc> My gut feeling is that we could use your module to serve forms to openxdata clients from openmrs itself.
19:09:37 <diptanuc> And could de-serialize in openmrs
19:09:59 <dkayiwa> yes
19:11:07 <diptanuc> Can we write our handlers for the forms though?
19:11:20 <diptanuc> To process the data and do some more validations?
19:11:50 <dkayiwa> what would you want to do when the validation fails?
19:12:41 <diptanuc> We want to send the error message back to the clients which can be either web forms or mobile clients
19:13:33 <dkayiwa> ok
19:14:11 <dkayiwa> i think you should generally be able to do that with your custom handler
19:15:09 <diptanuc> ok
19:17:45 <dkayiwa> So do you work on that stuff with Brent?
19:17:50 <diptanuc> Yeah
19:18:45 <dkayiwa> oh good
19:18:53 <diptanuc> Brent forked out Openxdata to optimize for MoTeCH
19:18:54 <diptanuc> :)
19:18:58 <diptanuc> You know him?
19:19:09 <dkayiwa> very well
19:19:21 <diptanuc> Oh that's great!
19:19:36 <dkayiwa> infact his mobile fork is now used as the official for openxdata client :D
19:20:14 <diptanuc> Awesome! Yeah he did a great job with it. Did some good performance optimizations.
19:20:35 <dkayiwa> yes
19:20:46 <diptanuc> Right now we have separate OpenMRS web forms and separate xforms for data collection. We want to unify them.
19:21:05 <dkayiwa> ok
19:21:23 <diptanuc> So I am trying to look at the possible ways. I was kinda excited to see your work with the xforms module.
19:21:33 <diptanuc> :)
19:21:52 <dkayiwa> :D
19:22:08 <dkayiwa> did you look at the htmlformentry
19:22:10 <dkayiwa> ?
19:22:18 <diptanuc> Yeah i did
19:22:44 <dkayiwa> It gives more flexibility when it comes to the form looks
19:23:26 <diptanuc> Yeah, but we would also need to serve the same forms to mobile clients, so we will have to xforms.
19:23:36 <dkayiwa> oh i see
19:23:40 <dkayiwa> makes sense
19:23:43 <diptanuc> Unless there is something which would translate html forms to xforms
19:23:52 <dkayiwa> ok
19:24:04 <diptanuc> I was actually thinking to write a translator to myself.
19:24:10 <dkayiwa> ok
19:24:17 <dkayiwa> using xslt?
19:24:20 <diptanuc> Yeah
19:24:40 <diptanuc> But could not find much documentation about the xml that OpenXdata consumes.
19:25:17 <dkayiwa> if you can translate to xforms, oxd would be happy
19:25:22 <diptanuc> I was wondering if it's a common standard that all these projects use - ODK, Openxdata, JavaRosa/OpenRosa
19:25:52 <dkayiwa> JavaRosa has some xforms extensions that oxd does not yet support
19:25:58 <diptanuc> Ok
19:26:02 <dkayiwa> but the xforms module can produce both
19:26:10 <diptanuc> I see
19:26:40 <dkayiwa> yup
19:26:42 <diptanuc> Is there any documentation around what OXD support?
19:27:39 <dkayiwa> for oxd, you only need to have an xform
19:27:47 <dkayiwa> meaning the xforms spec
19:27:51 <dkayiwa> is the documentation
19:27:59 <diptanuc> Ok I see
19:28:02 <dkayiwa> but ofcourse a subset
19:28:14 <dkayiwa> like 10% or less of the spec
19:28:37 <diptanuc> Xforms 1.1?
19:28:44 <dkayiwa> yes
19:29:44 <diptanuc> Ok, I will float around the idea of translating html forms to xforms, and see how people feel. Will keep you updated :)
19:30:43 <dkayiwa> as long as you give them a reason for doing so :D
19:31:02 <diptanuc> Yeah!
19:32:08 <diptanuc> Right now in MoTeCH we have adapters which makes the data collected using OXD to translate to the Domain model OpenMRS understands.
19:32:22 <diptanuc> And the validations are duplicated.
19:32:32 <dkayiwa> ok
19:36:48 <dkayiwa> So is Thoughtworks volunteering for MoTeCH?
19:40:50 <diptanuc> Yeah we are working on MoTeCH
19:42:22 <diptanuc> So, is there a way to register forms with OpenMRS? So when i open the Patient Xforms design, it loads up our patient registration form and shows all the fields.
19:42:43 *** rafa has quit IRC
19:42:45 <diptanuc> How does it happen?
19:43:06 <dkayiwa> the first time you open that form, it opens the default
19:43:15 <dkayiwa> which you can customize and save
19:43:16 <diptanuc> Ok
19:43:56 <diptanuc> Ok
19:44:27 <diptanuc> So there is an OpenMRS API to override the default form?
19:45:34 <dkayiwa> do you mean default patient xform?
19:47:14 <diptanuc> I meant, can the xforms module override the default openmrs patient registration form ? If yes, how?
19:47:37 <dkayiwa> yes it can
19:47:47 <dkayiwa> by setting an xforms global property
19:48:32 <dkayiwa> xforms.usePatientXform
19:48:35 <dkayiwa> = true
19:48:48 <diptanuc> And can you tell me what happens underneath when i set that property to true
19:50:18 <dkayiwa> the xforms module provides a url handler mapping for "/admin/patients/newPatient.form"
19:50:36 <dkayiwa> and when that property has a value of true, it just displays the xform
19:50:45 <diptanuc> Aah, I see
19:50:56 <dkayiwa> otherwise it just lets openmrs go ahead and display the default built in form
19:51:09 *** gbastien has joined #openmrs
19:51:19 <diptanuc> Ok, makes sense.
19:53:51 *** rafa has joined #openmrs
19:55:23 *** gbastien has quit IRC
19:56:16 *** rafa has quit IRC
20:10:16 *** gbastien has joined #openmrs
20:14:43 *** gbastien has quit IRC
20:26:49 *** gbastien has joined #openmrs
20:30:53 *** dkayiwa has quit IRC
20:31:16 *** gbastien has quit IRC
20:43:42 *** gbastien has joined #openmrs
20:48:02 *** rafa has joined #openmrs
20:48:10 *** gbastien has quit IRC
21:18:43 *** gbastien has joined #openmrs
21:23:32 *** gbastien has quit IRC
21:33:56 *** rafa has quit IRC
22:01:15 *** diptanuc has quit IRC
22:45:40 *** gbastien has joined #openmrs
22:49:59 *** gbastien has quit IRC
23:02:38 *** gbastien has joined #openmrs
23:07:32 *** gbastien has quit IRC
23:19:07 *** gbastien has joined #openmrs
23:23:41 *** gbastien has quit IRC
23:36:54 *** gbastien has joined #openmrs
23:41:13 *** gbastien has quit IRC
23:53:14 *** gbastien has joined #openmrs
23:57:30 *** gbastien has quit IRC