IRC Chat : 2011-08-05 - OpenMRS

00:00:57 *** wyclif has quit IRC
00:38:11 <jprice> Does anybody know the email for 'Taras Chorny' ?
01:26:40 <downeym> hi jprice - if you email me i can pass your mail on to him
01:26:44 <downeym> michael at openmrs dot org
01:27:52 <jprice> thanks i will send it now
01:28:48 <downeym> jprice: sent it along. :)
01:28:56 <jprice> thanks !
01:29:05 <downeym> All -- fyi .. JIRA is down for upgrades for a bit
01:29:37 <jprice> i am trying to get some help on how to use the WebServices API to send an HL7 message to openMRS and I see he worked on that
01:30:26 <downeym> he is one of our google summer of code students but yeah, he may be able to give you some ideas
01:30:35 <downeym> he's in ukraine so should be waking up in a bit
01:31:53 <jprice> ok. any other suggestion who might be helpful in that area ? (seems like everyone on this list is ultra-helpful)
01:32:30 <downeym> jprice: i'm way behind on email but did you write to the dev@openmrs list yet?
01:33:05 <jprice> i have not rcvd ur email yet. i emailed to implementers@openmrs list but no response yet
01:33:57 <jprice> is dev@ a different list ?
01:34:10 <downeym> jprice: hmm, i don't see it having gone through yet to the mailing list. make sure you're subscribed? https://wiki.openmrs.org/display/RES/Mailing+Lists
01:34:11 <OpenMRSBot> <http://ln-s.net/8ZWD> (at wiki.openmrs.org)
01:39:17 <jprice> downeym : did u get a bounceback on the email you sent ?
01:42:59 <downeym> jprice: The mail to Taras? No.
01:48:36 *** wyclif has joined #openmrs
01:49:15 <jprice> oh, i thought you had said you would send me his, but i understand not wanting to give it out. can i send u an email to forward to him ?
01:49:30 <downeym> jprice: Sure. I forwarded him your first mail but am happy to send another. :)
01:49:55 <downeym> jprice: By the way, your mails aren't reaching the lists because you're not subscribed, according to the database. Head to https://wiki.openmrs.org/display/RES/Mailing+Lists and follow the "subscribe" links to sign up, then you'll want to re-send the message.
01:49:56 <OpenMRSBot> <http://ln-s.net/8ZWD> (at wiki.openmrs.org)
01:52:36 <jprice> thanks. i just subscribed about 10 minutes ago and sent to dev and implementers, and sent u a mail to forward to Taras. Thanks much for your help!
01:54:13 <downeym> jprice: no problem. i saw your subscription go through
01:56:10 <jprice> to both lists dev and implementers ?
01:56:25 *** Kenshin has joined #openmrs
01:56:32 <downeym> Hi Kenshin and welcome to the #openmrs IRC channel.
01:56:37 <Kenshin> Thanks!
01:57:36 <Kenshin> I'm planning the move over to an electronical medical record system for a healthcare project that my medical school coducts in the Dominican Republic. It's good to know there's help out there.
01:58:05 <downeym> hi Kenshin
01:58:36 <downeym> (i guess that was redundant :)
01:58:46 * downeym is kind of distracted this evening
02:08:00 *** nribeka has joined #openmrs
02:08:00 *** ChanServ sets mode: +v nribeka
02:16:07 <downeym> hey nribeka
02:16:22 <downeym> Kenshin: Did you find us from Facebook earlier? :)
02:16:41 *** gbastien has quit IRC
02:36:38 <downeym> JIRA upgrade is complete … have a lot of fun :P
02:48:33 *** pusakat has joined #openmrs
02:48:46 <downeym> Hi pusakat and welcome to the #openmrs IRC channel.
02:49:04 <pusakat> thank you
03:03:49 <Kenshin> Hey downeym
03:04:01 <Kenshin> yes I saw a post on facebook, was that you?
03:04:20 <downeym> Kenshin: Yep. :)
03:04:25 <Kenshin> awesome.
03:04:35 *** upul` has joined #openmrs
03:04:44 *** ChanServ sets mode: +v upul`
03:04:49 <downeym> hey upul`
03:05:01 <Kenshin> Tomorrow i will be downloading the standlone on one of our laptops to test it out and I will be demonstrating to my group at the next meeting.
03:05:05 <upul`> hi downeym
03:05:16 <Kenshin> I hope to stay in contact with you via facebook and this IRC room is also a great resource!
03:05:34 <Kenshin> I'm out for now. Good luck with everything!
03:05:35 <downeym> Kenshin: Cool. Let us know how we can help. We've got some really active mailing lists full of people who have gone through a similar process.
03:05:39 <downeym> cya ;)
03:05:49 <Kenshin> quick question.
03:06:18 <Kenshin> actually nevermind.
03:06:26 <downeym> heh. ok
03:06:40 <Kenshin> I think the mailing list is a great resource, as people might ask questions I haven't even thought of yet, or I might come into similar problems
03:06:58 <Kenshin> I need to see what the limits of the system are in terms of recording patient data, and how customizable it can be.
03:07:04 <Kenshin> Can I also run the software in spanish?
03:07:07 <downeym> yep
03:07:12 <Kenshin> perfect!
03:07:18 <downeym> Have you seen http://openmrs.org/demo ?
03:07:22 <Kenshin> well cya soon. thanks for all your support.
03:07:25 <Kenshin> I have.
03:07:27 <downeym> ok good.
03:07:34 <downeym> have a good one, see you around :)
03:07:38 <Kenshin> I followed the guide...
03:07:45 <Kenshin> but I found it somewhat difficult to follow
03:07:54 <downeym> we're actively working to improve them.
03:08:02 <downeym> so your feedback would be valuable if you care to write it up
03:08:30 <Kenshin> the only thing is, that when I come across a problem, I want a place where I can go to ask and get help.
03:08:33 <Kenshin> but we already have that.
03:08:37 <Kenshin> so it's perfect.
03:08:37 <downeym> that you do
03:08:53 <Kenshin> see you on the flipside.
03:08:55 <Kenshin> have a good night.
03:09:10 *** Kenshin has quit IRC
03:14:33 *** surangak has joined #openmrs
03:14:49 <surangak> djazayeri, helooo, r u around ?
03:23:58 *** surangak_ has joined #openmrs
03:35:34 *** surangak has quit IRC
03:35:48 *** surangak has joined #openmrs
03:35:51 *** downeym has quit IRC
03:35:53 *** surangak__ has joined #openmrs
03:36:43 *** surangak_ has quit IRC
03:38:27 *** mccallumg has joined #openmrs
03:38:27 *** ChanServ sets mode: +v mccallumg
03:39:28 <mccallumg> surangak__: hi there
03:40:10 <surangak> mccallumg, helooo
03:40:20 <surangak> mccallumg, hows it going ?
03:41:10 <mccallumg> surangak: good. holding baby and typing with one hand
03:41:38 <mccallumg> surangak: how has your week been?
03:41:51 <surangak> mccallumg, wow, be careful :)
03:42:09 <surangak> mccallumg, hmm... its been pretty productive, i think...
03:42:31 <surangak> mccallumg, I patched up unit tests
03:42:38 <surangak> mccallumg, and added some validations
03:42:47 <mccallumg> surangak: I've been watching for wiki page update :)
03:42:55 <surangak> mccallumg, :)
03:43:00 <mccallumg> surangak: what did you do for validations?
03:43:02 <surangak> mccallumg, i will have to do that :(
03:43:20 <mccallumg> surangak: validate after page submit?
03:43:25 <surangak> mccallumg, I was improving on obsValidator class
03:43:29 <surangak> mccallumg, yeps...
03:43:38 <mccallumg> surangak: ok. makes sense.
03:43:53 <surangak> mccallumg, thats right, addedvalidations for complex obs data, plus test cases for that...
03:44:13 <surangak> mccallumg, did u see the jira convosation, regarding page refresh ?
03:44:27 <mccallumg> surangak: yes I did
03:45:21 <surangak> mccallumg, i've just done it his way, but had to do some extra tweaking
03:45:54 <mccallumg> surangak: fair enough
03:45:56 <surangak> mccallumg, otherwise the submit data was getting validated each and every time, even in case of plain page refresh actions
03:46:02 <surangak> mccallumg, i wlll be comitting that today
03:46:18 <surangak> mccallumg, and then, to the docs, and presentation ...
03:48:00 <mccallumg> surangak: ok. presentation firest. I'm eager to see that. ;)
03:48:11 *** surangak_ has joined #openmrs
03:48:30 <surangak_> mccallumg, sorry, got dropped from IRC, did u say anything ?
03:48:44 *** surangak has quit IRC
03:48:53 *** surangak__ has quit IRC
03:49:09 <mccallumg> surangak_: you there?
03:49:15 *** surangak has joined #openmrs
03:49:29 <surangak_> mccallumg, sorry, i got dropped from IRC a min back
03:49:44 <surangak_> mccallumg, did u say anything :(
03:50:01 <mccallumg> surangak_: hey. I was just saying to work on the ppt first ;) I'm eager to see it.
03:50:32 <surangak_> mccallumg, oh, will do that then, I will take care of that...
03:50:41 <surangak_> mccallumg, when would u like to see it by :)
03:51:30 <mccallumg> surangak_: it's up to you. But we need to practice :)
03:52:29 <surangak_> mccallumg, I will send you the slides by tomorrow evening ? and then maybe we could practise on monday ? like we did last time ...
03:52:59 <mccallumg> surangak_: yes. let's practice lots. I send you slide feedback over the weekend.
03:53:24 <surangak_> mccallumg, sure, will do that way...
03:53:47 <surangak_> mccallumg, i was wondering, after Gsco is done, how will they be integrating my branch to the trunk ?
03:53:56 <surangak_> mccallumg, do we need to take care of that ?
03:54:53 <mccallumg> surangak_: no. we won't do that. It will be added as a task to a release. A full-time developer will do it. Which release depends on priority among other features.
03:58:49 <surangak_> mccallumg, would there be anything else we would need to take care of before the end ?
04:08:39 <surangak_> mccallumg, our mutual friend Adeniyi has responded, this is looking very much possible right now too :)
04:12:11 *** nribeka has quit IRC
04:23:40 *** mccallumg has quit IRC
04:27:19 *** mccallumg has joined #openmrs
04:27:19 *** ChanServ sets mode: +v mccallumg
04:27:34 <mccallumg> surangak_: my apologies for disappearing
04:27:47 <surangak_> mccallumg, i wondered what happend :)
04:27:58 <surangak_> mccallumg, I guessed u were at Dinner
04:29:02 <mccallumg> surangak_: Let's see if any final items come from the presentation next week. But I believe you're nearing the end.
04:29:18 <surangak_> mccallumg, :(
04:29:32 <surangak_> mccallumg, it was a pretty intresting summer !
04:30:01 <mccallumg> surangak_: I agree. It's been a great summer.
04:31:08 <surangak_> mccallumg, I only hope we hav enough time to implement handler configs too
04:31:37 <mccallumg> surangak_: that would be a bonus. When do your classes start?
04:32:15 <surangak_> mccallumg, not till september, but thats not a problem,I can do in between...
04:33:31 <mccallumg> surangak_: I'm glad my colleague from the university has been helpful. He's a good friend.
04:34:04 <surangak_> mccallumg, good thing I have 2 years to plan :P
04:34:29 <mccallumg> surangak_: is there a lot of preparation to do?
04:34:40 <surangak_> mccallumg, hopefully, ill come see u in two years time :)
04:34:52 <surangak_> mccallumg, I want to see how the paperwork will be
04:35:05 <surangak_> mccallumg, plus if there are any exams that will help improve my chances...
04:37:32 <mccallumg> surangak_: I'll be here when you come. keep your grades up in the meantime.
04:37:55 <surangak_> mccallumg, :)
04:38:12 <surangak_> mccallumg, ill be starting final year now, so i guess that will become extremely importaint
04:38:41 <surangak_> mccallumg, oh, by the way, has Sri Lanka gained some notorioty in your media over the past few weeks ?
04:39:09 <surangak_> mccallumg, just curious, have u heard the term 'channel 4' in reference to our country ?
04:40:38 <mccallumg> surangak_: never heard of channel 4 except on TV
04:41:13 <surangak_> mccallumg, just being curious, not to worry, looks like u havent heard about it then :)
04:42:13 <mccallumg> surangak_: looking now
04:43:14 <surangak_> mccallumg, dont worry about it, I was checking to see if we were as notorious as our politicians claim we are
04:43:23 <mccallumg> surangak_: I see it now.
04:43:53 <surangak_> mccallumg, wooops, this is embarasing :(
04:44:01 <mccallumg> surangak_: UN, amnesty international ..
04:45:16 <surangak_> mccallumg, well, there are some things i dont want to say on a publicly visible IRC group....
04:47:02 <mccallumg> surangak_: yes. I'm sure that's true. But I see that the authenticity of the material on channel 4 has been questioned. i'm not in a position to make a judgement.
04:48:20 <surangak_> mccallumg, I agree, I dont want to prejudice either party either...
04:49:18 <mccallumg> surangak_: alright. I'm headed to bed. good night.
04:49:35 <surangak_> mccallumg, sure, ill send those mails
04:49:43 <surangak_> mccallumg, good night...
04:49:57 *** mccallumg has quit IRC
04:50:22 *** pusakat has quit IRC
04:55:38 *** batkinson has quit IRC
05:00:25 *** jwishnie has quit IRC
05:04:20 *** jwishnie has joined #openmrs
05:08:48 *** jwishnie has quit IRC
05:26:18 *** surangak_ has quit IRC
05:26:22 *** bryq has joined #openmrs
05:26:22 *** ChanServ sets mode: +v bryq
05:38:53 *** bryq has quit IRC
05:58:03 *** dkayiwa has joined #openmrs
06:00:01 <dkayiwa> hi bwolfe
06:06:46 <bwolfe> hi daneil
06:08:09 <bwolfe> err, daniel
06:11:58 <surangak> bwolfe, Heloo Ben
06:12:04 <surangak> bwolfe, Happy birthday !
06:12:11 <dkayiwa> hahahahah
06:12:15 <bwolfe> thanks!
06:12:17 <surangak> bwolfe, I see u are enjoying a 'working' birthday :)
06:12:22 <dkayiwa> happy birthday bwolfe
06:12:30 <dkayiwa> :D birth day
06:12:38 <surangak> bwolfe, your skype gave you away...
06:15:58 <bwolfe> surangak: its a half working bday
06:16:12 <bwolfe> going to uganda this afternoon. hopefully hang out with daniel some tomorrow night!
06:16:20 <bwolfe> dkayiwa: how late do you stay up?
06:16:37 <dkayiwa> bwolfe it varies
06:17:05 <dkayiwa> bwolfe: depends on what makes me stay up :)
06:17:18 <bwolfe> ha
06:17:22 <bwolfe> on average though...
06:17:56 <dkayiwa> i do not sleep before midnight (thats a rule :D )
06:18:38 <bwolfe> haha
06:18:44 <bwolfe> lately I haven't been either...
06:18:51 <dkayiwa> hahahahaha
06:18:53 <bwolfe> but thats only because the ONLY time I have to do things for myself is after 9pm!
06:19:05 <dkayiwa> lolllllllllllllllll
06:21:01 <dkayiwa> bwolfe: yesterday i slept early though because we had no electricity
06:21:15 <dkayiwa> i think am gonna buy solar
06:27:00 <dkayiwa> hi surangak
06:27:29 <surangak> dkayiwa, hello Daniel
06:28:00 <dkayiwa> surangak: do you know that am older than Ben?
06:28:05 <dkayiwa> :)
06:28:19 <surangak> dkayiwa, :D
06:28:31 <surangak> actually, until now, I thought Ben was in his thirties
06:28:42 <dkayiwa> lollllll me toooo
06:28:44 <surangak> dkayiwa, how old are you ?
06:29:15 <dkayiwa> surangak am either 31 or 32 :D
06:29:49 <dkayiwa> i dont know my birth month and day :)
06:30:09 <surangak> dkayiwa, really ?
06:30:16 <dkayiwa> i forged one though :D
06:30:17 <dkayiwa> yes
06:40:11 <OpenMRSBot> Recent updates in the world of openmrs: New Changeset: OpenMRS (obs-codes-expanded): Fix to prevent obsForm input data falling off whenever a page is refreshed. All scenarios covered. <http://feedproxy.google.com/~r/OMRStrunk/~3/zVWRPfdYZ0M/OpenMRS>
06:59:40 *** yanokwa has joined #openmrs
06:59:48 *** ChanServ sets mode: +v yanokwa
07:17:49 *** yanokwa has quit IRC
07:33:12 <dkayiwa> hi bwolfe
07:34:07 <bwolfe> hey
07:35:03 <dkayiwa> bwolfe: are you able to install the rest-webservices module using the modules list page by browsing and autoinstall it dirrectly from the module repo?
07:35:50 <bwolfe> I haven't tried recently
07:35:53 <bwolfe> what error are you getting?
07:36:42 <dkayiwa> bwolfe: to give you some background first, i want to try send an hl7 message in order to answer Jeff's email to the dev list
07:37:31 <bwolfe> I see
07:37:34 <bwolfe> ok
07:44:12 <dkayiwa> bwolfe: let me first try it again and see what i get
07:44:13 <OpenMRSBot> Recent updates in the world of openmrs: New Changeset: OpenMRS (providers): [TRUNK-2267] Fixed the review comments around moving the tests to correct place. <http://feedproxy.google.com/~r/OMRStrunk/~3/-Z2TV39kdsE/OpenMRS>
07:48:15 <dkayiwa> bwolfe: looks like its a conflict with the metadatasharing module's classscanner which i copied from Rafa :)
07:48:17 <dkayiwa> org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [applicationContext-service.xml]; nested exception is java.lang.IllegalStateException: Annotation-specified bean name 'openmrsClassScanner' for bean class [org.openmrs.module.webservices.rest.web.OpenmrsClassScanner] conflicts with existing, non-compatible bean definition of same name and class
07:48:17 <dkayiwa> [org.openmrs.module.metadatasharing.reflection.OpenmrsClassScanner]
07:48:50 <bwolfe> hmm, so those two modules can't work together
07:49:00 <bwolfe> we should change the classname in the ws module so that it doesn't conflict
07:49:22 <dkayiwa> bwolfe: yes
07:49:38 <bwolfe> if its getting injected by spring by classname and both extend the same class, we might have other issues
07:49:50 <dkayiwa> ok
07:50:13 <bwolfe> but my guess is that its going off of just classname or spring bean id
07:50:40 <dkayiwa> ok
07:59:57 *** magoo has joined #openmrs
08:03:48 <dkayiwa> hi bwolfe:
08:04:06 <bwolfe> hi
08:04:10 <dkayiwa> bwolfe: is it that am not allowed to access the rest web services from localhost?
08:04:15 <dkayiwa> bwolfe: i get java.lang.IllegalArgumentException: Invalid IP in the candidateIps parameter
08:04:45 <dkayiwa> at org.openmrs.module.webservices.rest.web.RestUtil.ipMatches(RestUtil.java:156)
08:04:45 <dkayiwa> at org.openmrs.module.webservices.rest.web.RestUtil.isIpAllowed(RestUtil.java:117)
08:04:47 *** wayne_ has joined #openmrs
08:05:40 <bwolfe> you should be able to
08:05:48 <bwolfe> is it an ipv6 thingts/
08:05:50 <bwolfe> *thing?
08:05:57 <bwolfe> if you leave the gp blank I think it lets in everyone
08:06:21 <dkayiwa> bwolfe: so i should change it from * to empty?
08:06:43 <bwolfe> hmm
08:06:44 <bwolfe> perhaps
08:06:49 <dkayiwa> ok
08:06:51 <bwolfe> thats one thing to try anyway
08:07:02 <bwolfe> it was changed half way through the sprint
08:07:04 <dkayiwa> ok
08:07:07 <bwolfe> so perhaps you have an old version
08:07:10 <bwolfe> blame it on rafal ;-)
08:07:19 <dkayiwa> i just downloaded from the module repository
08:07:31 <dkayiwa> just to make sure i go through what Jeff is going to test with
08:07:33 <dkayiwa> :)
08:07:42 <dkayiwa> bwolfe
08:08:16 <bwolfe> right
08:08:25 <bwolfe> but your setup is probably from half way through the sprint
08:08:28 <bwolfe> does a blank string work?
08:08:36 <dkayiwa> let me test that
08:12:20 <dkayiwa> bwolfe: i get no exception with empty string. let me continue look into the returned error: errorThrown: undefined
08:12:45 <bwolfe> ha
08:12:50 <bwolfe> helpful!
08:12:58 *** magoo has quit IRC
08:13:00 <dkayiwa> sure :)
08:23:26 <dkayiwa> bwolfe: have you ever successfully done a POST using out rest webservices Test page?
08:23:50 <dkayiwa> am getting
08:23:51 <dkayiwa> error!
08:23:52 <dkayiwa> msg: error
08:23:52 <dkayiwa> errorThrown: undefined
08:23:52 <dkayiwa> req: [object XMLHttpRequest]
08:23:57 <bwolfe> I don't think I've tried it
08:24:04 <dkayiwa> looks like i may need to run the module in debug mode
08:24:08 <bwolfe> are you putting the right stuff in the body?
08:24:51 <dkayiwa> {uuid:'f25b2e26-7aca-11df-8120-7778f4620a0f', source:'1', sourceKey:'4XaL1KXdqL2T4Xbj4kZM', messageState:'2', data:'hl7data'}
08:25:12 <dkayiwa> bwolfe: thats my body
08:25:27 <dkayiwa> bwolfe: doing a POST at url: /openmrs/ws/rest/v1/hl7
08:26:55 <bwolfe> are you putting in real data though?
08:27:09 <bwolfe> actually, it just writes to the queue, so it doesn't matter
08:27:18 *** rcrichton has joined #openmrs
08:27:23 <dkayiwa> yes the actual value of hl7data is:
08:27:23 <dkayiwa> MSH|^~\&|FORMENTRY|AMRS.ELD|HL7LISTENER|AMRS.ELD|20110805104142||ORU^R01|REl7wt78q9Pzlqe9ecJB|P|2.5|1||||||||3^AMRS.ELD.FORMID
08:27:24 <dkayiwa> PID|||3^^^^||Patient^John^D||
08:27:24 <dkayiwa> PV1||O|1||||1|||||||||||||||||||||||||||||||||||||20110805|||||||V
08:27:24 <dkayiwa> ORC|RE||||||||20110805104141|1^Super User
08:27:25 <dkayiwa> OBR|1|||1238^MEDICAL RECORD OBSERVATIONS^99DCT
08:27:25 <dkayiwa> OBX|1|NM|5089^WEIGHT (KG)^99DCT||67.2|||||||||20110805
08:27:36 <bwolfe> I can't remember the params/body that is expected, so you'll have to do some debugging :-/
08:27:42 <dkayiwa> ok
08:32:45 *** rcrichton has quit IRC
08:46:33 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Forum: Create new Concept <http://forum.openmrs.org/viewtopic.php?f=8&t=803#p3031>
08:50:08 *** magoo has joined #openmrs
09:13:46 *** wayne_ has quit IRC
09:18:43 <surangak> if anyone wants to do commit number 22222, they should plan now, because we're up to 22209......
09:37:57 *** rcrichton has joined #openmrs
09:44:44 *** rcrichton has quit IRC
09:45:14 *** rcrichton has joined #openmrs
09:45:14 *** ChanServ sets mode: +v rcrichton
09:54:49 *** wayne_ has joined #openmrs
09:57:43 <wayne_> Hi All, when trying to checkout the occmodule trunk I get a null-pointer exception, any suggestions?
09:58:07 <dkayiwa> how do you check it out?
09:58:49 <wayne_> I've tried pulling the code down through svn and running mvn eclipse:eclipse, but that doesn't seem to resolve the dependency issues I'm getting
09:59:00 <wayne_> So I tried checking it out through eclipse
09:59:09 <wayne_> as a Maven Project
10:00:10 <dkayiwa> are you using m2eclipse?
10:00:20 <wayne_> I am
10:00:36 <dkayiwa> does it open three projects after checkout?
10:00:53 <wayne_> yes it does
10:01:08 <dkayiwa> which of those has errors?
10:01:35 <wayne_> the omod
10:02:50 <dkayiwa> does it have a .classpath
10:03:37 <wayne_> I'm pulling the module down again, will check and let you know
10:03:43 <dkayiwa> ok
10:08:22 <wayne_> Thanks Daniel, it was the missing classpath
10:08:29 <dkayiwa> ok
10:24:33 <OpenMRSBot> Recent updates in the world of openmrs: New Changeset: OpenMRS (obs-codes-expanded): Adding meaningful comments to handler classes <http://feedproxy.google.com/~r/OMRStrunk/~3/7U-pHzrRd_k/OpenMRS>
10:25:50 *** cta has joined #openmrs
10:27:36 <cta> jprice: Hello, jeff! I've already sent email for you. I guess, it contains information that will be helpfull for you.
10:33:43 <magoo> dkayiwa the svn link you gave does not install it break all the time
10:34:07 <dkayiwa> which one
10:36:38 <magoo> http://svn.openmrs.org/openmrs-modules
10:38:04 <magoo> dkayiwa http://svn.openmrs.org/openmrs-modules/
10:42:15 <dkayiwa> look at it in your browser and select a module to checkout
10:43:23 <magoo> dkayiwa and when i try to re-install i do gate the following message http://pastebin.com/Ag9biEiJ
10:48:33 <dkayiwa> to reinstall what?
10:50:32 <magoo> dkayiwa re-installing the openmrs modules
10:50:42 <dkayiwa> which module?
10:51:07 <magoo> the modules from the svn link
10:51:15 <dkayiwa> they are many
10:51:19 <dkayiwa> which one?
10:52:35 <magoo> the entire openmrs module for example http://svn.openmrs.org/openmrs-modules i think that link is supposed to load all the modules
10:54:20 <dkayiwa> check out one by one
10:54:38 <magoo> dkayiwa or am supposed to just select a specific module
10:54:44 <dkayiwa> yes
10:56:00 <magoo> dkayiwa for us beginners its a bit tricky to choose the module to install
10:56:25 <dkayiwa> thats why i said you chose the basicmodule
11:01:41 <magoo> dkayiwa but i dont see the basicmodules
11:02:10 <dkayiwa> minus the last s
11:03:57 *** surangak has quit IRC
11:11:22 *** vchircu has joined #openmrs
11:13:49 <magoo> okay
11:23:39 *** jportela has joined #openmrs
11:23:39 *** ChanServ sets mode: +v jportela
11:30:54 *** james_regen has joined #openmrs
11:30:54 *** ChanServ sets mode: +v james_regen
11:30:58 *** vchircu has quit IRC
11:42:58 *** upul` has quit IRC
11:49:06 *** jportela has quit IRC
12:11:35 *** pascal` has joined #openmrs
12:11:35 *** ChanServ sets mode: +v pascal`
12:31:11 <magoo> dkayiwa this is the message i get http://pastebin.com/Q06qUi0a when i install the module following this link http://svn.openmrs.org/openmrs-modules/basicmodule
12:31:12 <OpenMRSBot> <http://ln-s.net/1l1P> (at svn.openmrs.org)
12:32:33 <dkayiwa> try another module like xforms
12:34:58 *** bwolfe has quit IRC
12:37:44 *** wyclif has quit IRC
12:57:33 *** nribeka has joined #openmrs
12:57:33 *** ChanServ sets mode: +v nribeka
12:57:57 *** bwolfe has joined #openmrs
12:57:57 *** ChanServ sets mode: +o bwolfe
12:59:14 *** downeym has joined #openmrs
12:59:14 *** ChanServ sets mode: +o downeym
12:59:14 *** OpenMRSBot sets mode: +o downeym
13:12:27 *** upul` has joined #openmrs
13:12:31 *** upul` has joined #openmrs
13:12:31 *** ChanServ sets mode: +v upul`
13:14:39 <upul`> pottermore.com registration is now open for today
13:19:56 *** gbastien has joined #openmrs
13:21:42 *** magoo has quit IRC
13:23:33 *** wyclif has joined #openmrs
13:31:41 *** nribeka has quit IRC
13:54:07 *** mathiaslin has joined #openmrs
14:03:39 <djazayeri> bwolfe, wyclif, dkayiwa, hi
14:04:10 <dkayiwa> hi djazayeri
14:04:11 <wyclif> hi
14:04:41 <djazayeri> shall we give our updates?
14:06:33 *** wayne_ has quit IRC
14:07:08 <pascal`> hey downeym
14:07:31 <pascal`> downeym, have you ever set up etherpad? Makes OpenMRS look like a one-click install =D
14:09:21 <djazayeri> I'll go first
14:09:23 <djazayeri> Thursday:
14:09:23 <djazayeri> * Dev and leadership calls
14:09:23 <djazayeri> * code reviews for Suranga, Janet, and Aja
14:09:23 <djazayeri> * got occ and occ-server projects checked out and compiling
14:09:24 <djazayeri> Today:
14:09:24 <djazayeri> * OCC ticket(s)
14:09:31 <downeym> pascal`: indeed :)
14:09:45 <djazayeri> dkayiwa: your turn
14:09:50 <djazayeri> (no blockers)
14:10:15 <dkayiwa> djazayeri: still typing to paste when complete. :)
14:10:46 *** wayne_ has joined #openmrs
14:10:59 <downeym> Hi wayne_ and welcome to the #openmrs IRC channel.
14:14:01 *** cta has quit IRC
14:15:59 <dkayiwa> IRC
14:15:59 <dkayiwa> Fixed bug which prevented me to run REST Web Services module on my system when metadatasharing module was loaded. Wanted to test sending hl7 messages before responding to Jeff's email.
14:16:00 <dkayiwa> Worked on https://tickets.openmrs.org/browse/OCC-36 - OCC-36
14:16:00 <dkayiwa> Worked on https://tickets.openmrs.org/browse/OCC-67 - OCC-67
14:16:00 <dkayiwa> Worked on https://tickets.openmrs.org/browse/OCC-76 - OCC-76
14:16:00 <dkayiwa> Now working on https://tickets.openmrs.org/browse/OCC-68 - OCC-68
14:16:00 <dkayiwa> And responding to review comments for the above tickets
14:16:46 <djazayeri> was the bug in the restws module, or in metadata sharing?
14:17:01 <dkayiwa> in the restws module
14:17:08 <djazayeri> !ticket occ-36
14:17:09 <OpenMRSBot> djazayeri: [#OCC-36] Record information about the last time the OCC Module syncd with the OCC server - OpenMRS JIRA - https://tickets.openmrs.org/browse/occ-36
14:17:15 <djazayeri> !ticket occ-67
14:17:16 <OpenMRSBot> djazayeri: [#OCC-67] Unhelpful error when occ server is down - OpenMRS JIRA - https://tickets.openmrs.org/browse/occ-67
14:17:27 <djazayeri> !ticket occ-76
14:17:28 <OpenMRSBot> djazayeri: [#OCC-76] Fix getId() methods in all domain objects to return the occ object id - OpenMRS JIRA - https://tickets.openmrs.org/browse/occ-76
14:17:32 <djazayeri> !ticket occ-68
14:17:33 <OpenMRSBot> djazayeri: [#OCC-68] OCC search should be triggered from any field when creating concept - OpenMRS JIRA - https://tickets.openmrs.org/browse/occ-68
14:18:37 <djazayeri> okay, cool
14:18:40 <djazayeri> no blockers, I assume?
14:18:47 <dkayiwa> no blockers for now
14:19:26 <djazayeri> okay
14:19:31 <djazayeri> wyclif: your turn
14:20:30 <wyclif> yesterday:
14:20:30 <wyclif> * Dev call
14:20:30 <wyclif> * spent time with Ankur to respond to some technical questions he had
14:20:30 <wyclif> * !ticket OCC-55
14:20:30 <wyclif> * !ticket OCC-33
14:20:32 <wyclif> * Added datasets for simulating concepts to be uploaded and added some unit tests
14:20:34 <wyclif> today:
14:20:36 <wyclif> * !ticket OCC-69 Revisiting it to implement what said on the design call
14:20:38 <wyclif> * !ticket OCC-70
14:20:40 <wyclif> * blocker on !ticket OCC-70
14:21:28 <djazayeri> hmm, somehow the bot didn't pick those up
14:21:36 <djazayeri> !ticket occ-55
14:21:37 <OpenMRSBot> djazayeri: [#OCC-55] Retain uuid exporting a concept to the OCC server - OpenMRS JIRA - https://tickets.openmrs.org/browse/occ-55
14:21:41 <wyclif> apparently i got the !ticket thing wrong
14:21:46 <djazayeri> !ticket occ-33
14:21:47 <OpenMRSBot> djazayeri: [#OCC-33] Duplicate Concept Sources uploaded - OpenMRS JIRA - https://tickets.openmrs.org/browse/occ-33
14:22:01 <downeym> wyclif: don't put a * before it
14:22:17 <wyclif> ok
14:22:27 <djazayeri> !ticket occ-69
14:22:28 <OpenMRSBot> djazayeri: [#OCC-69] Make sure concepts are linked that were initially downloaded - OpenMRS JIRA - https://tickets.openmrs.org/browse/occ-69
14:22:33 <djazayeri> !ticket occ-70
14:22:34 <OpenMRSBot> djazayeri: [#OCC-70] Change way concepts are linked in occ server - OpenMRS JIRA - https://tickets.openmrs.org/browse/occ-70
14:23:35 <djazayeri> you are blocked on occ-70?
14:23:49 <wyclif> yes
14:24:03 <djazayeri> okay, what's the question?
14:24:11 <wyclif> basically conceptIds are not deserialised
14:24:28 <wyclif> meaning there is no way to tell a concept being reuploaded
14:25:13 <djazayeri> so, the issue is that I download concept A from the OCC. Therefore I make a copy (B), and I immediately re-upload that.
14:25:25 <wyclif> now that we added uuids, i suggest we use this and source to populate the natural keep map
14:25:31 <djazayeri> take a step back
14:25:44 <djazayeri> isn't the point that B is exactly identical to A except for uuid and pk?
14:26:10 <wyclif> yes
14:26:21 <djazayeri> so, can't you determine that it's exactly identical that way?
14:26:31 <djazayeri> you don't have to know that it was copied from A.
14:26:41 <wyclif> when a is downloaded, it gets a new uuid
14:26:52 <wyclif> and a new conceptId
14:27:00 <djazayeri> right, but when we're comparing for identical concepts we should be ignoring conceptId and uuid.
14:27:30 <wyclif> and saying on the occ server, comparing should be by source and uuid
14:27:55 <wyclif> because now uuids are copied to the server
14:28:40 <wyclif> conceptId is not copied to the server, so it is useless
14:28:45 <djazayeri> The client should _look up_ concepts on the occ server by source and uuid.
14:29:07 <djazayeri> But when the OCC server is deciding if two concepts are identical, it should look at the business content of the concepts
14:29:21 <djazayeri> e.g. datatype, names, descriptions
14:29:53 <djazayeri> if those are identical, the concepts are identical
14:30:05 <djazayeri> it doesn't matter if they have different concept_id and different UUID
14:30:18 <djazayeri> (in fact you always expect them to have different conceptId and uuid)
14:31:41 <djazayeri> wyclif: does that make sense?
14:31:45 <djazayeri> or am I misunderstanding?
14:31:46 <wyclif> not really
14:32:00 *** chopin has joined #openmrs
14:32:14 <djazayeri> You upload a concept:
14:32:17 <chopin> anyone know the purpose for Role.recurseOverParents()?
14:32:39 <djazayeri> never heard of it
14:32:44 <chopin> looks like it doesn't just return inherited roles ... returns, like, all roles.
14:32:45 <djazayeri> check svn annotations
14:32:49 <chopin> k
14:33:00 <djazayeri> wyclif: let's say you upload the concept
14:33:05 <chopin> javadoc = "Returns the full set of roles be looping over inherited roles. Duplicate roles are dropped."
14:33:26 <djazayeri> id=5089, datatype=numeric, name="weight in kg"
14:33:30 <djazayeri> uuid = A
14:33:35 <djazayeri> now, I download that
14:33:42 <djazayeri> so I save locally a concept like
14:33:50 <wyclif> my assumption was that, user A at Ampath downloads concept A because they want to edit say the description, they edit it and reupload it because they want the changes to get synced to the occ server, so saying that comparison is done by fields like descritpionn would defeat tthis
14:33:56 <djazayeri> id=6789, datatype=numeric, name="weight in kg" uuid=B
14:34:17 <djazayeri> ah, that's the confusion
14:34:24 <djazayeri> so for _now_
14:34:35 <djazayeri> (and I haven't looked at all the tickets to verify that ben has written things this way)
14:34:41 <djazayeri> for now we're being very conservative
14:35:13 <djazayeri> i.e. if you change one single thing about a concept (e.g. its description), it is treated as no longer identical. instead it is just similar
14:35:36 <wyclif> so the question, what is the purpose of reuploading
14:35:54 <wyclif> or are we trying to avoid duplicate concepts on the server?
14:36:10 <wyclif> which of the above are we solving with this ticket occ-70
14:36:24 <djazayeri> wyclif: my personal opinion is that it's not useful to reupload. But Burke, Ben, and Paul disagree with me.
14:37:15 <djazayeri> the reason we reupload an identical concept is so the OCC knows that the concept is in use in one more place
14:37:33 <wyclif> or can we say occ-70 is aimed at minimising duplicates on occ server and editing will be restricted to be on the server
14:37:36 <djazayeri> also, it means that if the original owner of A modifies theirs, OCC can know that yours (B) is now different
14:38:03 <djazayeri> wyclif: we're _not_ trying to minimize duplicates on the occ server
14:38:11 <djazayeri> the opposite actually—we want to store duplicates there
14:38:35 <chopin> do we not have tests for POJOs?
14:38:46 <chopin> nvm
14:38:54 <wyclif> then i think reuploading is for updating already uploaded concepts
14:39:11 <djazayeri> occ-70 is aimed at fixing the way we do bookkeeping on the server side
14:39:29 <wyclif> and that is why i still think comparison should be done by source+conceptId or source+uuid
14:39:43 <djazayeri> chopin: some pojos have tests. it's just not done often because usually it's just trivial getters and setters
14:39:51 <chopin> right on
14:39:53 <chopin> k
14:39:58 <djazayeri> wyclif: what comparison?
14:40:26 <djazayeri> when?
14:40:27 <wyclif> a comparison if it is a new concept or existing concept on the server
14:40:40 <wyclif> from a given implemenatation
14:41:04 <djazayeri> what i'm saying is that that isn't necessary
14:41:18 <djazayeri> if I download A, and then I immediately upload it as B,
14:41:25 <djazayeri> B is identical to A in all fields except for UUID and pk.
14:41:28 <wyclif> i.e Ampath and PIH rwanda can both upload a concept with the same contents but what makes them different is because they are from different implemantations
14:41:30 <djazayeri> Also, it will share concept maps
14:42:03 <djazayeri> wyclif: but the entire point of OCC is that the server recognizes that those are actually identical concepts, and it links them (with the link_id)
14:42:42 <wyclif> djazayeri, how does it tell that they are identical?
14:43:03 <djazayeri> in this first pass: names exactly the same, descriptions exactly the same, datatype and class exactly the same
14:43:17 <djazayeri> (eventually we'll improve our algorithms so we can detect when concepts are identical even if their descriptions and names are a bit different)
14:43:34 <djazayeri> wyclif: I assume there's a ticket for deciding which concepts are identical on upload, right?
14:43:42 <wyclif> i guess
14:44:08 <wyclif> well, i will implement it with contents as you say for now
14:44:31 <djazayeri> but the point is for the server to notice that concepts are "the same" and link them
14:44:34 <wyclif> and this will be for concepts from the same source right?
14:44:47 <djazayeri> even though we expect them to have different uuids and pks.
14:44:55 <djazayeri> no, they don't have to be from the same source
14:45:02 *** upul` has quit IRC
14:45:11 <djazayeri> (and typically they won't be, because one source can't have two concepts with identical names)
14:45:41 *** rcrichton has quit IRC
14:45:54 <djazayeri> i.e. ampath uploads a concept, and pih duplicates it
14:46:10 <wyclif> so you mean, if ampath uploads a concept that matches the contents of another concept on the server but from pih rwanda, then it is a 'duplicate'
14:46:25 <wyclif> i.e it is exact
14:46:35 <djazayeri> yes
14:46:46 *** wayne_ has quit IRC
14:47:00 <wyclif> ok
14:48:59 <wyclif> and am assuming concepts names will be deemed similar if 2 concepts have the same name count(does this include voided ones) and the name field and locales match each other
14:49:22 <djazayeri> wyclif: you shouldn't have to write that code for this ticket, should you?
14:49:28 <djazayeri> look for a ticket where ben has described this
14:49:41 <wyclif> then how will check similar names
14:50:20 <wyclif> or for now i can just do datatype, class, description
14:50:45 <djazayeri> if it were up to me, I would do something like you're saying, i.e. they must have all the same non-voided names in the same locales. I'd say it's okay if they have different concept_name_types.
14:50:54 <djazayeri> but you need to check datatype, class, description, and names
14:51:45 <wyclif> ok
14:52:10 <djazayeri> !ticket occ-58
14:52:11 <OpenMRSBot> djazayeri: [#OCC-58] Automatic and Suggested mappings on uploaded concepts - OpenMRS JIRA - https://tickets.openmrs.org/browse/occ-58
14:52:34 <djazayeri> here ben says: "If a concept in the occ and an uploaded concept share a conceptMapping (all ALL other fields are identical) the two concepts should be mapped together in the occ server database"
14:53:27 <djazayeri> I haven't found a ticket with a more detailed description yet
14:58:12 *** asgoyal has joined #openmrs
15:00:33 <wyclif> ok
15:02:38 <chopin> hmm
15:02:49 <chopin> well, looks like i just wrote a test that verifies the code really does work
15:02:52 <chopin> heh
15:03:02 <chopin> guess it's still worth committing
15:03:22 <wyclif> so if concepts A at ampath has a mapping to a concept C in snomed and concept B at PIH rwanda has a mapping too to concept C still in snomed and the other fields are similar, then they are duplicates otherwise no
15:04:06 <wyclif> chopin i also just looked at getAllinherited roled
15:04:17 <wyclif> and it looked strange
15:04:39 <wyclif> am note sure if they are getting ony parent roled OR child roles OR both
15:05:15 <wyclif> chopin, am not sure if they are getting only parent roles OR child roles OR both
15:07:37 <wyclif> chopin, apparently after searching on the web, it said in a couple of places that it is bad practice to associate a class itself without creating a separate entity to hold the relationship data
15:08:40 <wyclif> chopin, in this case Roles is associated to Roles and we have no class to represent this relationship, it all done with the same Roles class
15:08:50 <wyclif> it is even had to mantain this table
15:09:20 <chopin> wyclif: i just wrote a test to verify
15:09:23 <chopin> wyclif: somehow it works
15:09:47 <chopin> wyclif: it's just a doubly linked list ... no problem
15:09:54 <chopin> (kinda)
15:11:34 <djazayeri> wyclif: regarding the ampath/pih/snomed example, as long as the other fields are "the same", then they get linked
15:12:05 <djazayeri> In the big picture for OCC, we're not talking about "duplicates", we're talking about concepts that are sufficiently similar that they get linked.
15:12:42 <djazayeri> but for now it's the same thing.
15:17:12 <wyclif> chopin, what i want you to test is if you have a role that has rows in both columns in the role_role table, what does getInheritedRoles return
15:17:33 <wyclif> does it return those in the first column or right column or both
15:31:01 *** dkayiwa has quit IRC
15:41:06 *** gbastien has quit IRC
15:55:30 *** mathiaslin has quit IRC
16:09:03 *** lh has quit IRC
16:14:07 <djazayeri> Is anyone here using HTML Form Entry in OpenMRS 1.7+?
16:15:59 *** wluyima has joined #openmrs
16:16:45 *** wyclif has quit IRC
16:27:05 *** jportela has joined #openmrs
16:27:05 *** ChanServ sets mode: +v jportela
16:34:41 <jprice> hi djazayeri ! thanks for the help yesterday...and today i am back for a little more 'fun'
16:37:17 <jprice> so at risk of embarrassing myself because I know nothing about http, i got a few responses to a email on how to use the WebServices API. by doing the POST. Do I do this by opening a socket on port 80 and writing that text to the socket ?
16:37:26 <djazayeri> no
16:38:37 <djazayeri> http://www.w3schools.com/html/html_forms.asp
16:38:42 <djazayeri> http://www.w3.org/TR/html4/interact/forms.html
16:39:04 <djazayeri> first, learn how to write a <form> in html
16:39:09 <djazayeri> use that to do a post to the relevant url
16:40:12 <jprice> thanks i will read those links. if i want to do it from a program without requiring user interaction how would that work. i will be getting data from a device and want my app to do the POST
16:40:50 <djazayeri> You can do it programmatically too, in any modern language, but it's easiest to test out with a simple html page
16:42:10 <jprice> i will definitely do that first, but when i want to do it prgammatically how do i do that ?
16:42:16 <djazayeri> what language?
16:42:29 <jprice> C or C++
16:43:53 <djazayeri> hmm, okay. I've never done any network programming in C/C++
16:44:28 <djazayeri> I'm sure there's a library out there for it.
16:46:53 <djazayeri> try libcurl
16:48:50 <jprice> just found that on google. i will read about it. too bad i just cant open a tcp socket and do the write of text. that is very simple to do
16:49:01 <jprice> and btw, thanks for the help
16:49:01 <djazayeri> you _can_ do that
16:49:14 <djazayeri> just it's really better style to use existing libraries for this stuff...
16:51:46 *** magoo has joined #openmrs
16:51:57 <OpenMRSBot> Recent updates in the world of openmrs: Shazin Sadakath: Integrating EJB3 Session Bean with Spring Security 3 <http://shazsterblog.blogspot.com/2011/08/integrating-ejb3-session-bean-with.html>
16:53:16 <djazayeri> downeym: fwiw, that blog post the bot just mentioned doesn't actually have anything to do with openmrs...
17:00:11 <jprice> one more probably obvious and thus dumb question : in the POST is "/openmrs/ws/rest/v1/hl7" supposed to be a file/url pathname to a file or app called 'hl7' ?
17:00:49 <djazayeri> it's a (relative?) uri
17:03:44 <jprice> so should i have something called ...ws/rest/v1/hl7 somewhere on the server where i installed openMRS ?
17:03:57 <djazayeri> yes
17:05:14 <jprice> thats what i thought. i do not see any directories called 'ws' or 'rest' where i installed 1.8.1-standalone-with-WS version
17:05:44 <djazayeri> it's a web application
17:05:47 <djazayeri> they're handled dynamically
17:10:49 *** lh has joined #openmrs
17:16:34 *** asgoyal has quit IRC
17:26:30 *** magoo has quit IRC
17:28:30 <jprice> sorry djazayeri i am a bit confused as to what i should specify for the fully-qualified url if i do not have something called ws/rest/hl7. after just reading about http post it says you post to a resource which i assumed is something that exists on the server you are posting to
17:29:07 <djazayeri> something like "http://localhost:8080/openmrs/ws/rest/v1/hl7"
17:31:23 <jprice> ok i will try that
18:05:19 *** gbastien has joined #openmrs
18:13:14 *** james_regen has left #openmrs
18:13:34 *** Echidna has quit IRC
18:17:14 *** Suranga has joined #openmrs
18:17:29 *** Echidna has joined #openmrs
18:17:29 *** ChanServ sets mode: +v Echidna
18:26:40 *** goutham has joined #openmrs
18:26:50 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Forum: Re: Create new Concept <http://forum.openmrs.org/viewtopic.php?f=8&t=803#p3032>
18:27:47 <djazayeri> Doeas anybody here know how to get the MVP/CIEL dictionary?
18:28:25 *** wluyima has quit IRC
18:28:34 *** wyclif has joined #openmrs
18:33:22 *** goutham has quit IRC
18:38:49 *** goutham has joined #openmrs
18:46:02 *** Suranga has quit IRC
18:46:31 *** Suranga has joined #openmrs
19:03:26 *** goutham has quit IRC
19:05:13 *** goutham has joined #openmrs
19:11:52 *** Suranga has quit IRC
19:15:58 *** Suranga has joined #openmrs
19:25:04 *** goutham has quit IRC
19:26:33 *** goutham has joined #openmrs
19:29:44 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Announcements List: Save the Date: 2011 Implementers Meeting <https://listserv.iupui.edu/cgi-bin/wa-iupui.exe?A2=ind1108&L=openmrs-announce-l&P=76>
19:43:06 *** Suranga has quit IRC
19:52:56 *** djazayeri has quit IRC
20:04:55 *** yanokwa has joined #openmrs
20:04:55 *** ChanServ sets mode: +v yanokwa
20:33:11 *** djazayeri has joined #openmrs
20:33:11 *** ChanServ sets mode: +o djazayeri
20:34:43 <djazayeri> jprice: <form …><input type="hidden" name="source" value="BP Monitor"/> … </form>
20:41:56 *** chopin has quit IRC
20:45:32 <downeym> Hi all … you'll soon receive a mail about this, but you'll need to change your OpenMRS ID password before using any of our services further. Details: https://wiki.openmrs.org/display/RES/OpenMRS+ID+Password+Reset
20:45:37 <OpenMRSBot> <http://ln-s.net/92fq> (at wiki.openmrs.org)
20:47:56 *** goutham has quit IRC
20:48:04 *** goutham has joined #openmrs
20:54:32 *** goutham has quit IRC
21:05:30 *** yanokwa has quit IRC
21:05:48 *** yanokwa has joined #openmrs
21:05:48 *** ChanServ sets mode: +v yanokwa
21:37:14 *** downeym_ has joined #openmrs
21:37:14 *** ChanServ sets mode: +o downeym_
21:39:49 *** downeym has quit IRC
21:39:49 *** downeym_ is now known as downeym
21:47:13 <djazayeri> downeym: btw, I filled out the form, but didn't get the email. (maybe delivery is just slow)
21:47:49 <downeym> djazayeri: your account is a special case - what did you enter in the form - email address? user id?
21:48:03 <djazayeri> I did djazayeri. Then eventually I tried darius
21:48:13 <djazayeri> and I just got the email for that 2nd one
21:48:46 <downeym> ok the latter ID should have sent out a mail to that id @openmrs.org
21:48:52 <downeym> and we also just sent a mass email
21:49:19 <djazayeri> downeym: btw, when I try to enter my new password, I put something in, and the field turns red, presumably because it's too weak, but there's no indication of why, or what the requirements are.
21:50:37 <downeym> djazayeri: thanks, we'll add a message on that screen.
21:50:47 <downeym> i assume you were able to change it ok?
21:50:51 <djazayeri> yes
21:50:58 <downeym> ok, thanks
22:06:36 <jprice> when I execute the following form : Apache returns with a 404 status saying - requested resource /openmrs/ws/rest/hl7
22:07:03 <jprice> <html> <body> <h1>This is my HL7 Test Page</h1> <form name ="input" action="http://localhost:8080/openmrs/ws/rest/v1/hl7" method="post"> <body> "source":BP Monitor", "sourceKey":"1234", "data":"My HL7 Message"MSG" </body> <input type="submit" value="Submit" /> </form> </html>
22:08:32 <jprice> I am running 1.8.1-stable-with-WS-alpha standalone version
22:09:00 <djazayeri> look at .../ws/rest/v1/catalog
22:09:04 <djazayeri> does that url give you something?
22:10:17 <djazayeri> also, what you're doing with <body> is wrong
22:10:28 <djazayeri> google around for html form tutorial or something
22:10:40 <djazayeri> you need to learn about <input> and <textarea> tags.
22:15:34 <jprice> i still get resource unavailable for catalog
22:15:46 <djazayeri> look at Admin -> Manage Modules
22:15:49 <djazayeri> is the module started?
22:17:36 <jprice> i see 'Rest Web Services' verion 0.8.21639
22:17:55 <djazayeri> and it's started? (i.e. it has a stop sign next to it rather than a play button)?
22:19:14 <jprice> it has a green arrow head but says [Not Started]
22:19:18 <djazayeri> start it
22:19:44 <djazayeri> The ui is sort of backwards. The big red "stop sign" actually means it is _started_.
22:19:58 *** wyclif has quit IRC
22:20:53 <jprice> oh isee. it went back to the red stop sign. i thought the red stop meant it was stopped. it still does not see the resource
22:22:02 <djazayeri> for the catalog url?
22:26:34 <jprice> "http://localhost:8080/openmrs/ws/rest/v1/catalog" also has same result. can't find resource
22:26:55 <djazayeri> I'm downloading the standalone to see how it works.
22:28:42 <jprice> ok. thanks. btw, i see <input> tag is for user input. other than the submit button why do i have to care about any other user input since i am providing everthing in the body, or is the ,input. tag used to do that as well ?
22:29:03 <djazayeri> only inputs are submitted with a form, not text
22:31:03 <jprice> thats what i thought (just learned). what other input does my form need ? or do just need textarea tab (besides submit button to make the post happen)
22:31:19 <jprice> tag not tab
22:32:12 <djazayeri> the url shouldn't be /openmrs, it should be /openmrs-standalone
22:34:00 <jprice> thanks, when i tried that and pressed submit , it took me to OpenMRS Installation Wizard page
22:34:37 <djazayeri> if you're starting the app for the first time, you may need to go through the first time setup wizard
22:38:26 <jprice> do u mean the openMRS app, because yesterday i clicked on the ,jar file and it started openMRS and I have been playing with it
22:39:04 <djazayeri> when you start the standalone app, it should open a browser window to some url like localhost:808x/openmrs-standalone
22:39:37 <djazayeri> you want to submit your form to an url starting with that exact same address
22:39:41 <jprice> yes it is : http://localhost:8081/openmrs-standalone/index.htm
22:42:09 <jprice> well that seemed to work better but now I get a message that says 'This XML file does not appear to have any style information associated with it. then there is a
22:42:28 <jprice> big file starting with : <org.openmrs.module.webservices.rest.SimpleObject serialization="custom">
22:43:05 <djazayeri> after doing your form's POST?
22:43:13 <jprice> sorry. yes
22:43:22 <djazayeri> presumably that's what you'd expect
22:43:46 <djazayeri> I.e. you POST an hl7 message and what you get back is the default representation of the resource you just created
22:44:06 <djazayeri> although, it shouldn't necessarily be "simpleobject"
22:44:16 <djazayeri> can you pastebin the outcome?
22:44:27 *** yanokwa has quit IRC
22:44:44 <jprice> sure. how do you pastebin ?
22:44:45 *** yanokwa has joined #openmrs
22:44:45 *** ChanServ sets mode: +v yanokwa
22:44:52 <djazayeri> pastebin.com
22:45:07 <djazayeri> you paste your big blob of text there, then you paste the link to it here
22:47:22 <djazayeri> downeym: tickets.openmrs.org down
22:47:36 <downeym> sorry - burke broke it
22:47:41 <downeym> i am doing some db repairs now
22:48:55 <jprice> i feel stupid....or blind... but i do not see where the pastebin is
22:50:20 <jprice> ok. i am on the pastebin site
22:51:35 <jprice> http://pastebin.com/9pbYcVw8
22:53:32 <djazayeri> what does the <form> tag in your test page look like?
22:53:34 <jprice> my script/form : http://pastebin.com/4fJwdju2
22:55:47 <djazayeri> get rid of the <body> tag inside the form
22:56:07 <djazayeri> and the data you're submitting doesn't go inside the textarea like that
22:56:37 <djazayeri> <input type="hidden" name="source" value="BP Monitor"/>
22:56:38 <djazayeri> etc.
22:57:01 <djazayeri> (the <textarea> where you'll put the actual hl7 message needs a name="…" attribute too.
22:57:26 *** gbastien has quit IRC
22:57:39 <jprice> ok i will try that thank you
23:17:01 <jprice> looks like same result using : http://pastebin.com/aMDmL7rR
23:19:00 <djazayeri> try posting to the same url, with .json as a suffix and see if that changes anything
23:19:36 <jprice> ...hl7.json ?
23:19:42 <djazayeri> yes
23:20:48 <jprice> same result
23:21:15 <djazayeri> okay, so can you report that as a bug, at tickets.openmrs.org?
23:21:32 <jprice> does my form look correct now ?
23:21:40 <djazayeri> (file the bug for the RESTWS project, aka Web Service.REST
23:21:43 <djazayeri> yes, form looks about right
23:21:58 <djazayeri> I think you're still missing one required field, but that's not what's causing the error.
23:24:04 <jprice> ok i will report the bug. does this mean i cannot proceed further doing what i need to do until that issue is addressed ?
23:24:32 <djazayeri> You can proceed
23:25:48 <jprice> i can ignore the bug ? any clue as to what the missing required field should be ?
23:27:20 <djazayeri> So, I'd forgotten that for our web service module, you actually need to send the content in either json or xml
23:27:35 <djazayeri> (you can't just post a form, which gets www-form-encoded)
23:27:55 <djazayeri> So, instead you'll need to do the http post to the web service from the command line
23:28:11 <djazayeri> You'll want to use curl for this.
23:28:22 <djazayeri> See https://groups.google.com/a/openmrs.org/group/dev/browse_thread/thread/79402138b34bbb54/74948de5de19942c?lnk=gst&q=helpful+curl+commands#74948de5de19942c
23:28:26 <OpenMRSBot> <http://ln-s.net/92hP> (at groups.google.com)
23:29:17 <djazayeri> the urls are no longer exactly right, but basically the idea is that you send a json string with the curl command.
23:29:32 <djazayeri> if you're using linux or mac, that should be straightforward. :-)
23:29:38 <djazayeri> if windows, I'm sure there's an alternative.
23:30:29 <jprice> thank. i guess more new stuff to learn ! i feel like i should send you a check ! should I still file a bug ? I can Cygwin which is linux on windows
23:30:50 <djazayeri> cygwin should work fine, I assume
23:31:15 <djazayeri> Alternately I'm sure this can be done with a few lines of C#
23:31:26 <djazayeri> nah, you can skip the bug report.
23:38:54 <jprice> ok looks like the cygwin i have supports curl. you said the url i was using should be something different ?
23:42:11 <OpenMRSBot> Recent updates in the world of openmrs: New Changeset: OpenMRS (1.7.x): Incorrect max length of text field when creating/editing a Concept Source - TRUNK-2518 <http://feedproxy.google.com/~r/OMRStrunk/~3/d7-Np099pAc/OpenMRS> || New Changeset: OpenMRS (1.8.x): Incorrect max length of text field when creating/editing a Concept Source - TRUNK-2518 <http://feedproxy.google.com/~r/OMRStrunk/~3/-PJPXzFcZzg/OpenMRS>
23:48:56 *** wyclif has joined #openmrs
23:53:03 <djazayeri> downeym: Doh, I'm supposed to apply for the doc camp, right?
23:53:13 <downeym> djazayeri: I think you were included in the group application
23:53:27 <djazayeri> ah, okay, wasn't sure there was a group application.
23:53:39 <downeym> some folks not associated with projects applied individually
23:53:45 <djazayeri> gotcha
23:53:53 <djazayeri> okay, well, glad I don't have to do anything.
23:53:55 <downeym> willing victims
23:53:57 <downeym> err, volunteers :)
23:54:11 *** goutham has joined #openmrs
23:57:38 <jprice> djazayeri: how do i find out what the urls are to use with the curl approach ?
23:57:49 <djazayeri> same urls you were using with the html form approach
23:58:00 <djazayeri> just that the ones in the email I refer to don't have the v1 I think
23:58:15 <djazayeri> (and you'd have -standalone, and maybe a different port than 8080