Wiki Spaces

Documentation
Projects
Resources

Get Help from Others

Q&A: Ask OpenMRS »
Discussion: OpenMRS Talk »
Real-Time: IRC Chat

IRC Logs

Child pages
  • 2008-07-30 - OpenMRS
Skip to end of metadata
Go to start of metadata
00:00:07 <nribeka_> for the patient, personname, personaddress class
00:00:25 <sgrannis> ok - i have the confif file open on link.rg
00:00:46 <sgrannis> fire away
00:00:55 <nribeka_> the row name will take form: patientmatching.<fully-qualified-class-name>.<property-of-the-class>
00:01:19 <sgrannis> ok
00:01:36 <nribeka_> while for PersonAttribute and PatientIdentifier --> it will take the human readable form
00:01:38 <sgrannis> we'll have to map that to the actual field in the DB
00:01:47 <sgrannis> ?
00:01:51 <nribeka_> like "Health Centre"
00:02:12 <nribeka_> so we might need to treat this two type differently if we want to map it to the database
00:02:15 <sgrannis> are PersonAttribute and PatientIdentifier not in any object
00:02:16 <sgrannis> ?
00:02:49 <nribeka_> they are an object
00:03:07 <nribeka_> but unlike the other
00:03:08 <sgrannis> why are PersonAttribute and PatientIdentifier referenced differntly?
00:03:13 <nribeka_> for example:
00:03:17 <sgrannis> :)
00:03:37 <nribeka_> PersonName have property firstName and value "Shaun"
00:03:44 <nribeka_> but for PersonAttribute:
00:04:02 <nribeka_> they have property "name" with value "firstName"
00:04:17 <nribeka_> and another property "value" with value "Shaun"
00:04:34 <nribeka_> i hope i explain it well enough :P
00:04:59 <sgrannis> one sec
00:05:03 <nribeka_> so, we may need to treat this two type attribute differently
00:05:10 <nribeka_> that's my issue :D
00:05:13 <nribeka_> ok ok
00:05:53 <sgrannis> The PersonAttribute use an EAV model, right?
00:06:03 <nribeka_> yep
00:06:12 <sgrannis> e.g. attribute name 'firstName'
00:06:23 <sgrannis> attribute value = 'Shaun'
00:06:27 <nribeka_> yep
00:06:48 <nribeka_> but the personname, personaddress, patient ... not using eav
00:07:22 <sgrannis> why wouldn't we refernce by PersonAttribute.AttributeName, which woudl return the PersonAttribute.AttributeValue
00:07:28 *** njero has quit IRC
00:08:24 <sgrannis> e.g., getAttributeValue(AttributeName firstName) returns 'Shaun'
00:09:09 <sgrannis> acutally should be: getAttributeValue(AttributeName firstName, patientID) returns 'Shaun'
00:10:12 <nribeka_> hmm ... that's works
00:10:30 <sgrannis> Again, I'm a little loopy (tired) but seems like we should be able to reference as something like PersonAttribute.attributeName, no? Is that a bad idea? Feel free to ouch basck
00:10:40 <sgrannis> ouch basck = 'puch back'
00:10:44 <sgrannis> ouch basck = 'push back'
00:12:13 <nribeka_> mapping it to the database will be a bit complicated, right?
00:12:19 <nribeka_> when we retrieve the data?
00:12:32 <nribeka_> no? what do you think sgrannis?
00:12:43 <sgrannis> right, mapping (I think) will be the hard part
00:12:57 <nribeka_> if you're too tired, we can discuss it through mail :)
00:13:28 <sgrannis> I'm OK for now.
00:13:31 <nribeka_> introspecting is fairly straightforward :)
00:13:32 <sgrannis> so if we said "(Attribute) SSN"
00:13:49 <sgrannis> we know that we need the "value" for the attribute "named" SSN
00:14:02 <sgrannis> so equivalencing:
00:14:27 <sgrannis> "(Attribute) SSN" == "Attribute.SSN"
00:14:53 <sgrannis> how do you do introspection? In hibernate? in Spring? In POJO?
00:15:01 <nribeka_> in pojo
00:15:44 <sgrannis> ic
00:17:43 <nribeka_> Attribute.SSN --> get value column of the row with attribute-name=SSN
00:18:02 <nribeka_> btw, the attribute name is not in the PersonAttribute (i think)
00:18:12 <nribeka_> it's in PersonAttributeType
00:18:34 <sgrannis> Attribute.SSN or "(Attribute) SSN" -> SELECT * FROM PatientAttribute where attribute_name='SSN' and patientID=XX
00:18:34 <nribeka_> so SSN is not in PersonAttribute but in PersonAttributeType hehe ... :)
00:18:47 <sgrannis> ah yes yes
00:19:21 <sgrannis> i need to look at those tables ...
00:19:39 <nribeka_> you can do that tonight or tomorrow sgrannis :)
00:20:37 <sgrannis> ok - just looked at it
00:21:16 <nribeka_> select * from person_attribute_type will list all available attribute-name
00:21:23 <sgrannis> SSN will have a person_attribute_type_id om the person_attribute type table
00:21:31 <nribeka_> yep ...
00:22:16 <sgrannis> so select * from patient_attribute_type where name='SSN' will return the attribute_type_id
00:22:21 <sgrannis> then ..
00:22:41 <nribeka_> need to select it to the person_attribute to get the value ...
00:22:47 <nribeka_> or join both table
00:22:57 <nribeka_> :)
00:23:35 <nribeka_> so in PersonName -> select * from person_name
00:23:37 <sgrannis> select attribute from person_attribute where person_attribute_type_id=<result from first query> <--- yes we do a join
00:23:48 <sgrannis> got it now
00:23:48 <nribeka_> for custom attribute --> we do join :)
00:23:54 <sgrannis> yep
00:24:01 <nribeka_> two different thing right :d
00:24:02 <nribeka_> :D
00:24:04 <sgrannis> or as we say in the midwest
00:24:12 <sgrannis> "yepper doo"
00:24:19 <nribeka_> haha ... lol ...
00:25:13 <nribeka_> so we need to have the knowledge of which one we need to join and which one we don't need join :)
00:25:39 <nribeka_> or we can hardcode it :)
00:25:44 <sgrannis> A couple questions:
00:26:08 <nribeka_> yes
00:26:10 <sgrannis> 1) can you clairfy what the "two different thing right" are
00:26:16 <sgrannis> and 2) ....
00:26:39 <sgrannis> what is a "custom attribute" versus any other type of attribute?
00:27:02 <nribeka_> two different thing: one need join and one don't need join :)
00:27:31 <nribeka_> custom attribute: credit card, cvc
00:28:15 <nribeka_> other type, i mean identifier of a patient -> driving license, ssn, student id etc
00:29:05 <nribeka_> custom att goes to PersonAttribute
00:29:21 <nribeka_> patient identifiers goes to PatientIdentifier
00:32:25 <nribeka_> is it clear enough sgrannis :P
00:32:36 <nribeka_> i don't think so right ... :(
00:33:02 <sgrannis> yes
00:33:07 <sgrannis> here's my take on it:
00:33:14 <sgrannis> attributes are always custom
00:33:31 <sgrannis> attribute are identifiers/traits that aren't hard coded into the data model
00:33:43 <r0bby> zzzz
00:33:46 <r0bby> nini
00:33:49 <sgrannis> they are place in the person attribute table
00:33:55 <r0bby> (goodnight)(
00:33:58 <sgrannis> is that accurate from your perspective
00:34:06 <nribeka_> nite r0bby
00:34:07 <sgrannis> g'night r0bbert
00:34:19 <sgrannis> ;)
00:34:41 <nribeka_> sleep is for weak r0bby ;)
00:34:43 <nribeka_> lol
00:34:48 <sgrannis> :)
00:34:58 <nribeka_> that's what r0bby always said sgrannis :P
00:35:06 <sgrannis> :)
00:35:08 <nribeka_> back to attribute
00:35:14 *** njero has joined #openmrs
00:35:14 *** ChanServ sets mode: +v njero
00:36:01 <nribeka_> it's accurate enough ...
00:36:30 <sgrannis> anything that is an "attribute" is described in the person_attribute and person_attribute_type tables
00:36:50 <sgrannis> (my definition of attribute) ^^^^^^^^^
00:37:31 <nribeka_> so we don't take anything from patient_identifier?
00:37:40 <sgrannis> not sure what you mean?
00:37:44 <sgrannis> "take" ?
00:38:17 <nribeka_> because attribute and identifier are two separate thing (from what i understand :D)
00:38:32 *** njero has quit IRC
00:38:34 <nribeka_> so there are person_attribute and patient_identifier
00:38:41 <sgrannis> i *think* identifiers are codes
00:38:58 <sgrannis> e.g., SSN may *actually* belong in a patient identifier
00:39:09 <nribeka_> ah ic ic what you mean sgrannis :)
00:39:15 <sgrannis> medical record number may belong in patient identifier
00:39:15 <nribeka_> sorry took me a while to get it :D
00:39:27 <sgrannis> well, I'm not sure I fully "get it" yet :)
00:39:43 <sgrannis> but burke and i had a talk on attributes and identifiers a ways back
00:40:27 <nribeka_> hehe ... for now i consider myself "get it" :)
00:40:44 <sgrannis> but in OpenMRS "mother's maiden name" is an attribute, not an identifier
00:40:59 <nribeka_> yep
00:41:14 <sgrannis> alright ... anything else we need to chat about?
00:41:36 <nribeka_> i think that's about it for now sgrannis :)
00:41:47 <nribeka_> it's time for u to "gnite" :)
00:41:53 <sgrannis> good talking with you. have a g'nite
00:41:57 <sgrannis> :)
00:41:59 <nribeka_> ok ok sgrannis
00:42:10 <nribeka_> will discuss about it again tomorrow i think :D
00:42:17 <sgrannis> okee dokee
00:42:22 <sgrannis> cya
00:42:29 <nribeka_> gnite sgrannis
00:42:33 <nribeka_> cya tomorrow :)
00:42:35 *** sgrannis has quit IRC
00:43:55 *** njero has joined #openmrs
00:44:06 *** ChanServ sets mode: +v njero
01:53:57 *** njero has quit IRC
01:57:02 *** njero has joined #openmrs
01:57:05 *** ChanServ sets mode: +v njero
01:57:23 *** nribeka_ has quit IRC
03:20:06 *** TorLye has joined #openmrs
03:51:56 *** PhilippeAtWHO has joined #openmrs
05:02:19 *** njero has quit IRC
05:22:47 *** njero has joined #openmrs
05:22:47 *** ChanServ sets mode: +v njero
05:23:34 *** njero has quit IRC
05:26:05 *** atomicturtle1 has joined #openmrs
05:39:36 *** atomicturtle has quit IRC
06:23:23 *** njero has joined #openmrs
06:23:23 *** ChanServ sets mode: +v njero
06:23:28 *** njero has quit IRC
06:27:49 *** upul has quit IRC
06:33:08 *** james_regen has joined #openmrs
06:33:08 *** ChanServ sets mode: +v james_regen
06:34:21 *** njero has joined #openmrs
06:34:21 *** ChanServ sets mode: +v njero
07:02:32 *** sioraiocht has joined #openmrs
07:11:24 *** sioraiocht has quit IRC
07:11:33 *** bwolfe has joined #openmrs
07:11:34 *** ChanServ sets mode: +o bwolfe
07:11:38 *** sioraiocht has joined #openmrs
07:30:07 *** nribeka has joined #openmrs
07:37:55 *** njero_ has joined #openmrs
07:38:59 *** njero has quit IRC
07:48:02 <bwolfe> nribeka: how is your csv data set up ?
07:48:54 <nribeka> haven't got the chance to write it last night bwolfe :P
07:49:13 <nribeka> planning to today or later on today
07:49:29 <nribeka> sgrannis also suggest to try post it on the dev list ...
07:49:29 <bwolfe> thats not what I meant
07:49:37 <bwolfe> what form is your csv data in right now ?
07:49:39 <nribeka> ah sorry ...
07:50:06 <nribeka> one row per record
07:50:26 <nribeka> uid, first name, last name etc ... separated by |
07:50:27 <bwolfe> what are the columns ?
07:52:48 <nribeka> uid, sex, last, mid, first name, address, city, state, zip, country, email, phone, mother maiden name, dob, cc type, cc num, cvc, ssn
07:53:06 <nribeka> i think that's all the columns in the data
07:53:39 <bwolfe> I see
07:54:15 <nribeka> do you happen to know any useful tool bwolfe ;)
07:55:03 <bwolfe> well I was thinking I wrote a python script to convert some csv data into sql insert statements
07:55:06 <bwolfe> I just need to find it
07:56:41 <nribeka> ah ic. hope you can find it :)
08:38:29 *** njero_ has quit IRC
08:44:12 *** sprasanna has joined #openmrs
08:49:03 *** sunbiz has joined #openmrs
08:53:23 <sunbiz> How do I display a field from an Object returned by formBackingObject??
08:53:43 <sunbiz> I think I was making it work earlier.. but now it isnt working
08:54:15 <sunbiz> bwolfe: ??
08:55:15 <bwolfe> you are returning a map from formBackingObject, right? what is the key of the object in there ?
08:55:43 <sunbiz> nope... Im returning an Object of the Patient type
08:56:53 <bwolfe> oh, right, formBackingObject, sorry
08:57:04 <bwolfe> whats the commandName you've set for that page ?
08:57:17 <bwolfe> you set that in your applicationContext
08:57:42 <sunbiz> patient
08:58:43 <bwolfe> so in your jsp you can do ${patient.personName.givenName}
08:59:07 <bwolfe> just remove the "get" and lowercase the first letter on any of the methods on the object
08:59:08 <sunbiz> yes.... Im doing exactly that... and I think it was working earlier...
08:59:13 <sunbiz> but now it isnt working ??
08:59:48 <bwolfe> put xx${patient}xx into your jsp just to make sure you're getting an object
09:00:01 <bwolfe> because jsp fails silently with null if you put it in ${}
09:00:21 <sunbiz> didnt quite understand the last part
09:00:34 <sunbiz> xx${patient}xx... ??
09:03:32 <bwolfe> if you just put ${patient} or ${patient.patientId} in the jsp, you will see nothing
09:03:38 <bwolfe> (if patient is null)
09:04:00 <bwolfe> if you put xx${patient.patientId}xx you will either see xx1234xx or just xxxx
09:04:10 <bwolfe> if you just see xxxx, then you know you're not even getting a patient object
09:04:11 <sunbiz> bwolfe: u r the man!!!!!!
09:04:26 <sunbiz> finally after hitting my head for 2 days on the wall
09:04:56 <sunbiz> ur exception joined at the source of JSP pages has helped !!!
09:05:15 <sunbiz> bwolfe: wow.... how did u do that ??
09:05:31 <bwolfe> I don't know what you mean by "exception joined at the source"
09:05:52 <bwolfe> because I've run into errors like this all the time. never hesitate to ask
09:06:13 <sunbiz> I mean... the exception is commented ...and can be seen when u view source
09:06:16 <sunbiz> on a JSP page
09:06:38 *** jmiranda has joined #openmrs
09:06:38 *** ChanServ sets mode: +o jmiranda
09:06:40 <bwolfe> oh yeah, thats sweet. thats a pretty new thing
09:07:07 <bwolfe> just had to set the error handler in the openmrs header
09:07:09 <sunbiz> bwolfe: didnt u add that... I mean showing exception that can be seen when u view source on a JSP
09:07:15 <bwolfe> yeah
09:07:27 <bwolfe> so you were getting an exception, is that why is stopped working ?
09:07:44 <sunbiz> man... why didnt I think about it before... it was just an exception and the page wasnt being displayed....
09:07:54 <sunbiz> I had changed everything just for this !!
09:08:14 <sunbiz> :D :P :D :P
09:08:52 <sunbiz> why wasnt the tomcat showing the exception... I wouldnt have wasted so much time!!
09:08:55 <sunbiz> thanks ben !!
09:11:42 <sunbiz> actually feel like kicking myself for wasting so much time and not coming to the experts earlier
09:11:57 <sunbiz> probably my ego wanted to solve it myself... :(
09:15:43 <bwolfe> hehe, we all have that same ego problem sunbiz :-)
09:22:24 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Tickets: Ticket #947 (defect created): EncounterService.voidEncounter should void Orders <http://dev.openmrs.org/ticket/947>
09:23:10 *** sunbiz has left #openmrs
09:24:55 *** sunbiz has joined #openmrs
09:25:18 <sunbiz> bwolfe: BTW do we have the review tomorrow
09:25:35 <sunbiz> bwolfe: I havent had my review
09:26:01 <bwolfe> are you on the agenda ?
09:26:06 <bwolfe> !conferencecall
09:26:06 <OpenMRSBot> bwolfe: Error: "conferencecall" is not a valid command.
09:26:25 <sunbiz> !sunbiz
09:26:25 <OpenMRSBot> sunbiz: "sunbiz" --- Just Another Developer
09:26:26 <bwolfe> !learn conferencecall as http://openmrs.org/wiki/Developers_Conference_Call
09:26:27 <OpenMRSBot> bwolfe: The operation succeeded.
09:26:30 <bwolfe> !conferencecall
09:26:30 <OpenMRSBot> bwolfe: "conferencecall" --- http://openmrs.org/wiki/Developers_Conference_Call
09:26:34 <bwolfe> !devcall
09:26:34 <OpenMRSBot> bwolfe: Error: "devcall" is not a valid command.
09:26:42 <sunbiz> !conferencecall
09:26:42 <OpenMRSBot> sunbiz: "conferencecall" --- http://openmrs.org/wiki/Developers_Conference_Call
09:27:09 <bwolfe> sunbiz: can you create the page for tomorrows call and add yourself? :-)
09:27:29 <sunbiz> bwolfe: yes... I'll do that !!
09:29:25 <sunbiz> bwolfe: isn't brian at office today ??
09:29:47 <bwolfe> he is here somewhere I think
09:33:25 *** sunbiz has left #openmrs
09:43:13 *** sunbiz has joined #openmrs
09:43:42 <sunbiz> bwolfe: any idea why formBackingObject gets called twice ??
09:44:11 <bwolfe> there is a spring writeup on it
09:44:13 <bwolfe> one sec
09:46:49 *** njero has joined #openmrs
09:46:50 *** ChanServ sets mode: +v njero
09:58:21 <bwolfe> sunbiz: https://listserv.iupui.edu/cgi-bin/wa-iupui.exe?A2=ind0805&L=OPENMRS-DEVEL-L&P=R34053&X=3915CD09DABE62AF4E&Y=bwolfe%40regenstrief.org
09:58:23 <OpenMRSBot> <http://ln-s.net/26AW> (at listserv.iupui.edu)
09:58:54 <bwolfe> if you don't have sessionForm=true, then #4 calls formBackingObject() again
09:59:40 <sunbiz> bwolfe: yes... I have that as true
10:00:50 <sunbiz> that has to be made true in the moduleApplicationContext when defining the Controller's bean right ??
10:10:15 *** sioraiocht has quit IRC
10:10:17 <bwolfe> sessionForm has to be set in the modAppContext, yes
10:10:24 <bwolfe> if you set it at all...
10:12:58 <sunbiz> that being set to true or false or even that property not being there doesnt change ... its still called twice
10:13:00 <sunbiz> :(
10:15:45 <bwolfe> very interesting
10:16:06 <bwolfe> you can determine if its on page load or page submit with a method call
10:16:14 <bwolfe> can't remember what its called though
10:16:36 <bwolfe> isFormSubmission(request(
10:16:40 <bwolfe> (==)
10:18:31 *** sioraiocht has joined #openmrs
10:21:17 <nribeka> yyaayy ... dwr working :)
10:21:51 <nribeka> away now for a moments ...
10:23:35 <sunbiz> bwolfe: is the moduleContextApplication or the Module's Context being cached someplace ??
10:23:53 <sunbiz> or is it the same webapplicationContext that is available to the modules ??
10:24:04 <bwolfe> no, shouldn't be cached
10:24:27 <bwolfe> what do you mean "is available" ?
10:24:47 <sunbiz> I mean... when I write Context.something() ... this Conteext is Spring context right ??
10:24:59 <sunbiz> or does the module have a separate context of its own?
10:27:09 <sunbiz> God knows what happened... I undeployed openmrs from tomcat... then updated openmrs-trunk from SVN and then did a dist and then deployed the new war.... Now it isnt calling formBackingObject twice !!
10:27:27 <sunbiz> this was super wierd !! :o
10:33:27 <sunbiz> bwolfe: ...am back again at formBackingObject beign called twice .... :'(
10:33:35 * sunbiz wants to pull my hair out
10:34:22 *** bmckown has joined #openmrs
10:34:22 *** ChanServ sets mode: +o bmckown
10:35:11 <bwolfe> sunbiz: Context is an openmrs object...its different than the "spring context" (spring calls its objects springApplicationContext). but yes, there is only one Context. your module is registered to that one when you load it
10:35:30 <bwolfe> sunbiz: throw some log output in there to figure out when/why
10:38:23 <sunbiz> hi bmckown
10:38:35 <bmckown> Hi, sunbiz
10:39:58 *** njero has quit IRC
10:41:04 <sunbiz> wth... I get java.lang.OutOfMemoryError: PermGen space now !!!!
10:41:44 <bmckown> That should be fixable with the tomcat startup parameters.
10:41:56 <bmckown> they are located...
10:41:59 <sunbiz> yes... I already have it at 512
10:42:09 <sunbiz> how much more does it need... :(
10:42:31 * r0bby dances
10:42:44 <sunbiz> welcome r0bby !!
10:42:46 <r0bby> today will be spent setting up mah laptop :)
10:43:04 <bmckown> located here http://openmrs.org/wiki/Out_Of_Memory_Errors
10:43:13 <bmckown> hmm but 512 should be plenty
10:43:36 <sunbiz> yes... 512M is quite a bit for what Im doing...
10:43:44 <sunbiz> just manager and openmrs runing
10:43:50 <bmckown> for sure.
10:44:11 <sunbiz> somehow lately... Im beginning to hate Tomcat
10:44:16 <bmckown> you're using the netbeans internal tomcat, right?
10:44:18 <sunbiz> lot of other problems
10:44:31 <sunbiz> not the built-in
10:44:42 <sunbiz> but yea... starrting it from within netbeans
10:44:51 <sunbiz> Glassfish rocks...
10:45:01 <sunbiz> v3 glassfish rocks big time!!!!
10:45:09 <bwolfe> sunbiz: tomcat leaks memory every time you reload openmrs. so after 3-5 reloads you're out of memory with 512M
10:45:28 <sunbiz> yes... thats what I meant tomcat problems
10:45:32 <bwolfe> sunbiz: openmrs should work in glassfish just fine, why not just use that? ;-)
10:45:34 <sunbiz> how much more does it need
10:45:43 <sunbiz> yes.... I've just done that now !!
10:45:47 <bmckown> just needs stop/start tomcat i guess.
10:46:03 <bwolfe> sunbiz: you'll always run out. just know that you have to stop the tomcat process every 4 openmrs reloads or so
10:46:54 <bmckown> and always clean the module before you build it. (you probably knew that)
10:47:29 <bwolfe> bmckown: really? I rarely do. what errors do you get if you don't ?
10:47:35 <sunbiz> yes... I did 3 undeploy and deploy of openmrs
10:47:40 <sunbiz> and it finished 512M
10:47:47 <bmckown> things like what sunbiz is getting above i thought.
10:48:41 <bmckown> if you change a class and its still holding on to the previous cached version no?
10:49:11 <sunbiz> yes... thats what I thought happens...
10:49:37 <bmckown> thing is, since i had problems with that i've always cleaned before each package-module for over a year now.
10:49:53 <sunbiz> bmckown: I was doing the deploy-web ant target... and it doesn't load moduleApplicationContext
10:50:09 <bmckown> and i thought bwolfe had told me over a year ago to be sure to clean the module to avoid those problems.
10:50:35 <sunbiz> bmckown: I followed ur advice and u bwolfe and was doing deploy-web
10:50:38 <r0bby> !oom
10:50:39 <OpenMRSBot> r0bby: "oom" --- Tomcat's memory management sucks. Increase your memory available to tomcat. See http://openmrs.org/wiki/Out_Of_Memory_Errors
10:50:43 <sunbiz> and it doesnt work well with windows
10:50:47 <r0bby> bmckown: ^ '
10:51:01 <bmckown> yea, it might not. i only use deploy-web for the simple jsp pages. not for things like openmrs-servlet.xml or the moduleApplicationContext etc
10:51:15 *** PhilippeAtWHO has quit IRC
10:51:32 <bmckown> r0bby: ' ^
10:51:37 <bwolfe> deploy-web only copies *.jsp, *.css to the web layer
10:51:44 <bwolfe> it won't copy and rstart spring for you
10:52:33 <bmckown> and now we have deploy-web explained much more clearly. thanks, bwolfe I always suspected that but never investigated it.
10:52:36 <sunbiz> bwolfe: why oh why...doesnt it!! I think deploy meant nice deploy!! ;-)
10:53:38 <bwolfe> it really should be deploy-just-the-web-files-so-that-I-dont-have-to-compile-my-module-and-reload-it-again
10:53:42 <bwolfe> but thats a little too long I think
10:53:54 <bmckown> hmm. i kind of like it.
10:56:40 <r0bby> NEVER
10:56:43 <r0bby> NEVAR
10:56:52 <r0bby> it also copies *.js files
10:57:16 *** atomicturtle1 is now known as atomicturtle
10:57:20 <r0bby> bmckown: by the way if you get the urge to try my module, it creates -- but doesn't do much else
10:58:04 <bmckown> okay.
10:58:44 <r0bby> I noticed your bug report :P
11:00:02 <nribeka> off to bed at the library ... lol
11:00:25 <bmckown> which one, r0bby ?
11:00:34 <nribeka> r0bby, thanks for the dwr :D
11:00:44 <r0bby> patient dash
11:01:10 <sunbiz> bwolfe: glassfish has some problems with loading the module resources
11:01:22 <sunbiz> CSS, images and js scripts
11:01:45 <sunbiz> and I have to uninstall NOD32 :(
11:01:46 <bwolfe> sunbiz: hmm
11:01:47 <r0bby> sunbiz: how does it deploy in jboss :P
11:01:59 <bwolfe> whats nod32 ?
11:02:07 <r0bby> nribeka: it's cool aint it :)P
11:02:12 <bwolfe> whats the error with the resources ?
11:02:24 <r0bby> pebkac!
11:02:31 <sunbiz> NOD32 is an antivirus... which is only used in Windows
11:02:39 <sunbiz> not for *nix guys like u!! :P
11:02:43 <nribeka> r0bby, yeah :) it's not difficult after all
11:02:53 <sunbiz> the resources dont load...
11:03:05 <sunbiz> they dont come up on the address
11:03:19 <nribeka> off for now talk to you guys again later :D
11:03:25 *** nribeka has quit IRC
11:03:29 <r0bby> you specify which methods to include, their signatures, a POJO, and the rest is JS
11:03:40 <r0bby> meh ehs gone
11:06:35 <sunbiz> sorry... everything works fine with glassfish as well... I was on a wrong port in the runtime-properties
11:06:37 <bwolfe> sunbiz: any error ?
11:06:39 *** sioraiocht has quit IRC
11:06:55 <sunbiz> bwolfe: no its running perfect now...
11:07:18 <sunbiz> and I've undeployed...deployed... 10 time already just for the sake of it...
11:07:20 *** sioraiocht has joined #openmrs
11:07:21 *** TorLye has quit IRC
11:07:24 <bmckown> yea, r0bby the groovy forms module still doesn't play nicely with the patient dashboard.
11:07:30 <sunbiz> and its not crossed 220M yet!!
11:07:39 <bwolfe> sunbiz: nice. so glassfish does memory stuff correctly then. :-)
11:07:57 <bmckown> that's okay... you haven't gotten to it yet, r0bby .
11:08:46 <sunbiz> now... if I can only figure out why formBackingObject is wierdly running twice sometime and sometimes only once
11:09:06 <sunbiz> bwolfe: yes... it seems to
11:09:27 <r0bby> bmckown: I've been focusing on other things
11:09:32 <sunbiz> bwolfe: only startup takes a lot of time... understandably due to all the stuff that it loads being a real web application
11:09:42 <r0bby> like getting them created, saving the model, view, and controller, etc :P
11:09:43 *** TorLye has joined #openmrs
11:09:50 <bmckown> yea that's okay. hehe
11:10:10 <r0bby> the patient dash kinda required that
11:10:23 <r0bby> but it also depends on the rendering servlet :P
11:10:23 <bmckown> yea. but...
11:10:24 <bwolfe> sunbiz: startup takes about 30 seconds on tomcat. how long on glassfish ?
11:10:42 <bmckown> the link to groovy documentation... maybe an additional link to the groovy module page?
11:10:42 <r0bby> benchmark jboss too.
11:10:51 <sunbiz> on my machine tomcat starts in 17secs now
11:11:06 <sunbiz> and glassfish in 36secs
11:11:08 <r0bby> how fast?
11:11:15 <r0bby> sunbiz: jboss
11:11:18 <r0bby> :P
11:11:24 <sunbiz> no jboss on this machine
11:11:28 <r0bby> grab it :P
11:11:44 <r0bby> I'll load it onto my new laptop and deploy openmrs
11:11:45 <sunbiz> BTW I like jBoss and websphere
11:11:54 <sunbiz> they r also pretty good for production systems
11:12:09 <sunbiz> just slower to start than even glassfish
11:12:28 <sunbiz> and the default RAM usage is over 350M
11:17:53 <sunbiz> bwolfe: r u sure... formBackingObject getting called twice happens only in module ??
11:17:59 <sunbiz> doesnt it happen elsewhere ??
11:18:45 <bwolfe> it should be called twice only if you set sessionForm=false for your controller
11:19:55 <sunbiz> yes... thats the ideal thing... but is the ideal thing happening in OpenMRS ??
11:20:31 <sunbiz> because its happening in other forms as well... not just my module
11:20:57 <sunbiz> I did a System.out.println at other formBackingObject... and it seems to happen randomly at other places
11:21:06 <sunbiz> atleast on my machine
11:21:13 <bwolfe> sunbiz: we have some controllers that are sessionForms and some that aren't
11:24:39 * r0bby doesn'
11:24:46 <r0bby> t use Spring controllers
11:24:53 <r0bby> I dont wanna learn them
11:25:05 <r0bby> there are some things i'd rather not learn
11:25:06 *** sgrannis has joined #openmrs
11:25:20 <r0bby> servlets I understand
11:25:21 *** ChanServ sets mode: +v sgrannis
11:25:38 * r0bby takes sgrannis's wallet
11:25:54 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Tickets: Ticket #947 (defect closed): EncounterService.voidEncounter should void Orders <http://dev.openmrs.org/ticket/947#comment:3>
11:27:17 *** nribeka has joined #openmrs
11:29:33 *** sioraiocht has quit IRC
11:32:23 * bmckown scolds r0bby a.k.a. "you've got to pick a pocket or two" rob.
11:33:05 * nribeka dances while watching bmckown scolding r0bby :)
11:35:36 <bmckown> he didn't cry.
11:36:41 <bmckown> i think he went shopping.
11:37:28 <nribeka> r0bby? shopping? :D
11:39:24 <r0bby> no
11:39:27 <r0bby> the laptop is bought
11:42:37 <bmckown> the wallet?
11:42:49 <bmckown> it was a (rather dry) joke.
12:24:53 *** sprasanna has left #openmrs
12:27:38 <bwolfe> I got the joke bmckown. r0bby should be known as --r0bby "likes to make random /me statements" oconnor --
12:28:09 <bmckown> hehe
12:28:09 <bwolfe> r0bby: controllers are just simplified servlets
12:28:44 <bwolfe> r0bby: servlets have a doGet and a doPost...controllers have a onSubmit and a few essentially doGet methods (formBackingObject and referenceData)
12:40:29 *** [mharrison] has quit IRC
12:44:47 <r0bby> bwolfe: yeh I know :X
13:13:36 <sunbiz> bmckown: who wrote the projects wiki page ??
13:13:51 <sunbiz> bwolfe: did u write it by any chances ??
13:13:57 <sunbiz> or was it burke and paul ?
13:14:29 <bwolfe> sunbiz: you mean projects.openmrs.org ?
13:14:44 <bwolfe> I think paul was the one that originally refactored it to give it the look it has nwo
13:14:48 <bwolfe> nwo==now
13:14:58 <sunbiz> yes.... the one which describes what is expected of projects ??
13:19:05 <bwolfe> sunbiz: yeah, paul and burke did the first draft. then other people add to it. why ?
13:19:35 <sunbiz> I was thinking if people could add other projects to that page
13:21:11 <bwolfe> sunbiz: are you wanting to add one? why not make a ticket for it first? then you/me/burke/paul or someone can graduate it to a "project"
13:22:28 <sunbiz> bwolfe: ok... got it... just wanted to know how to develop a project
13:22:56 <sunbiz> I've been gettign queries from my students who want to build on OpenMRS
13:23:18 <sunbiz> I told a few people that they could make modules... and expand openmrs
13:30:28 <OpenMRSBot> Recent updates in the world of openmrs: 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>
13:31:29 <bwolfe> sunbiz: http://openmrs.org/wiki/Projects#Tickets_Marked_as_Trivial
13:31:33 <OpenMRSBot> <http://ln-s.net/26EN> (at openmrs.org)
13:31:34 <bwolfe> !trivialtickets
13:31:36 <OpenMRSBot> bwolfe: Error: "trivialtickets" is not a valid command.
13:31:39 <bwolfe> !trivial
13:31:40 <OpenMRSBot> bwolfe: "trivial" --- Looking for a trivial ticket to tackle for OpenMRS? http://dev.openmrs.org/report/16
13:34:31 <sunbiz> bwolfe: they hope to make projects that they can help in their degree requirements
13:37:40 *** r0bby has quit IRC
13:47:31 *** sunbiz has left #openmrs
13:58:39 *** [mharrison] has joined #openmrs
14:07:58 *** sioraiocht has joined #openmrs
14:08:06 *** sgrannis_ has joined #openmrs
14:08:22 *** sioraiocht has quit IRC
14:08:39 *** sioraiocht has joined #openmrs
14:12:56 *** bwolfe has quit IRC
14:19:59 *** r0bby|vista has joined #openmrs
14:20:12 <r0bby|vista> argh
14:20:16 <r0bby|vista> I hate this OS so much
14:20:41 <r0bby|vista> :'(
14:27:55 *** sioraioc_ has joined #openmrs
14:28:29 *** sioraiocht has quit IRC
14:32:20 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Tickets: Ticket #949 (task created): Clean up unit tests <http://dev.openmrs.org/ticket/949>
14:36:13 <nribeka> sgrannis_ i got the email from sandy :D
14:36:38 <sgrannis_> good :)
14:37:55 <sgrannis_> do you have a sense of which dates work?
14:40:48 <nribeka> either way is fine for me :)
14:41:02 <nribeka> which one is better for you?
14:41:09 <james_regen> nribeka: when do your classes start again?
14:42:24 <nribeka> lemme check the schedule :)
14:43:12 <r0bby|vista> nribeka: i hate you
14:43:26 * r0bby|vista also hates vista
14:43:30 <sgrannis_> date is our call. either works on our end :)
14:45:07 <nribeka> class start on august 25
14:45:18 <nribeka> all class start august 25
14:45:24 <nribeka> r0bby|vista: why?
14:45:33 *** sioraiocht has joined #openmrs
14:45:47 <r0bby|vista> do I need a reason to hate you? :P
14:45:59 <nribeka> dwr works r0bby|vista lol
14:46:10 *** sioraioc_ has quit IRC
14:46:15 *** sioraiocht has quit IRC
14:46:15 <nribeka> it's fairly straightforward :P
14:46:21 <r0bby|vista> no duh :P
14:46:28 <nribeka> i like it
14:46:29 *** sioraiocht has joined #openmrs
14:46:32 <r0bby|vista> :)
14:46:42 <r0bby|vista> just understand that you need callbacks
14:46:50 <nribeka> i thought it's difficult the first time i see your code
14:46:59 <r0bby|vista> and function(foo) { // foo will be the ret value }
14:46:59 <nribeka> i was like ... what is this lol
14:47:20 <r0bby|vista> nribeka: JS has closures, and functions are first class objects
14:47:44 <r0bby|vista> hence allowing me to directly pass a function into the function call
14:50:04 <nribeka> that's what confuse me :P
14:51:28 <r0bby|vista> the fact i passed a function in?
14:51:33 <r0bby|vista> burke's code was clearer
14:51:42 <r0bby|vista> look at the groovy module
14:52:01 <r0bby|vista> DWR is used in the patient selector widget
14:52:24 <r0bby|vista> in the concept selector, etc
14:54:55 *** sioraioc_ has joined #openmrs
14:54:57 *** r0bby|vista has quit IRC
14:55:33 *** sioraiocht has quit IRC
14:55:59 *** sioraioc_ has quit IRC
14:56:23 *** sioraiocht has joined #openmrs
14:59:46 *** njero has joined #openmrs
14:59:46 *** ChanServ sets mode: +v njero
14:59:47 *** njero has quit IRC
15:00:46 *** sioraiocht has quit IRC
15:00:53 *** r0bby|vista has joined #openmrs
15:01:14 *** sioraiocht has joined #openmrs
15:01:24 *** sioraiocht has quit IRC
15:01:49 *** sioraiocht has joined #openmrs
15:03:20 *** sioraioc_ has joined #openmrs
15:03:50 *** sioraiocht has quit IRC
15:05:32 *** sioraioc_ has quit IRC
15:05:57 *** sioraiocht has joined #openmrs
15:08:41 *** sioraiocht has quit IRC
15:16:13 *** james_regen has quit IRC
15:19:26 *** sioraioc_ has joined #openmrs
15:19:39 *** sioraioc_ has quit IRC
15:20:03 *** sioraioc_ has joined #openmrs
15:21:17 *** sioraioc_ has quit IRC
15:25:18 <r0bby|vista> I so need to get linux onto this thing
15:29:44 *** r0bby|vista is now known as r0bby
15:30:04 *** ChanServ sets mode: +v r0bby
15:30:07 *** sioraiocht has joined #openmrs
15:32:49 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Tickets: Ticket #950 (defect created): OrderService.getOrders does not correctly use ORDER_STATUS <http://dev.openmrs.org/ticket/950>
15:46:59 *** huntp has joined #openmrs
15:49:16 <huntp> hi guys, you'll be pleased to know - i've finally *really* got the API working with ColdFusion!
15:50:36 <r0bby> blog it!
15:50:50 <r0bby> I gotta blog
15:55:33 <r0bby> I finally reached a major milestone
16:00:43 <huntp> with the API, how could I get a list of users at a given Location ?
16:01:02 *** sioraioc_ has joined #openmrs
16:04:36 *** agruetz has joined #openmrs
16:04:43 *** sioraiocht has quit IRC
16:05:42 *** sioraioc_ has quit IRC
16:08:47 <r0bby> huntp: patients or users?
16:09:07 <r0bby> you could probably do it via the user service
16:09:25 <r0bby> i cant wait til i can code again
16:09:28 <r0bby> god
16:09:29 <bmckown> location may be stored as a PersonAddress, a PersonAttribute, or a location on an encounter
16:09:30 <r0bby> I can finnally close the lid!
16:09:30 <r0bby> :D
16:09:46 <bmckown> i was thinking the patient service or maybe the person service
16:09:49 <r0bby> bmckown: to run my code
16:09:57 <r0bby> change the admin user to have a username
16:10:05 <r0bby> I know you're following it :X
16:10:24 <r0bby> Burke/Paul have a lot of faith in me
16:10:55 <r0bby> I wrote a patch to reverse (or at least provide the ability to remove) this code I wrote; I screwed up 5x :X
16:11:04 <bmckown> what do you mean r0bby ?
16:11:48 <r0bby> 1st time i had code that wasn't relevent in the patch (i was implementing Access Control Lists for Factoids
16:11:52 <r0bby> (adding/removing)
16:11:54 <huntp> it looks like - the UserService ... maybe fire getAllUsers(), then filter with getUserProperties() on the result set ?
16:12:10 *** sgrannis_ has quit IRC
16:12:19 <bmckown> oh, yea you want users.
16:12:30 <bmckown> not patients...
16:12:31 <huntp> i reckon it would make sense to have a method called getUserByLocation on the UserService
16:12:41 <r0bby> propose it :)
16:12:49 <r0bby> this is a collaborative effort
16:13:00 <r0bby> on an off note, my lack of experience screwed me over
16:13:07 <huntp> what is the channel for proposing this?
16:13:15 <r0bby> the dev list
16:13:20 <bmckown> it's probably not there just because no one has needed it yet.
16:13:39 <huntp> ok - should be quite easy to create eh?
16:13:49 <bmckown> but they may say that it belongs in the PersonService
16:14:33 <bmckown> yea, to create is easy.
16:15:13 <huntp> is this the type of thing I could write and submit to the SVN, or is there a core dev team that takes these requests and implements them?
16:16:42 <r0bby> don't commit, submit a patch to trac
16:17:41 <bmckown> that is correct
16:18:44 *** bmckown has quit IRC
16:22:22 *** TorLye has quit IRC
16:37:33 *** TorLye has joined #openmrs
17:11:30 *** sgrannis has quit IRC
17:13:08 *** r0bby_ has joined #openmrs
17:13:08 *** ChanServ sets mode: +v r0bby_
17:13:57 *** sgrannis has joined #openmrs
17:13:57 *** irc.freenode.net sets mode: +v sgrannis
17:37:07 *** sioraiocht has joined #openmrs
17:46:51 *** sioraiocht has quit IRC
17:47:24 *** sioraiocht has joined #openmrs
17:47:43 <nribeka> auto away deactivated :D
18:19:26 *** jmiranda_ has joined #openmrs
18:31:24 *** r0bby has quit IRC
18:36:36 *** jmiranda has quit IRC
18:57:04 *** nribeka has quit IRC
19:35:25 *** sgrannis_ has joined #openmrs
19:55:35 *** agruetz has quit IRC
20:10:37 *** sgrannis_ has quit IRC
20:21:54 *** sioraiocht has quit IRC
20:28:28 *** Keelhaul has joined #openmrs
20:28:28 *** ChanServ sets mode: +v Keelhaul
20:29:22 *** sioraiocht has joined #openmrs
20:56:49 <Keelhaul> i wish there way a way to add variable names to strings
21:21:25 *** upul has joined #openmrs
21:34:00 *** nribeka has joined #openmrs
21:50:35 *** sioraiocht has quit IRC
21:55:10 *** r0bby_ is now known as r0bby
21:56:25 *** r0bby has joined #openmrs
21:56:25 *** ChanServ sets mode: +v r0bby
21:59:04 *** sioraiocht has joined #openmrs
22:02:51 *** jmiranda_ is now known as jmiranda
22:03:04 *** ChanServ sets mode: +o jmiranda
22:13:56 *** nribeka has quit IRC
23:06:15 <Keelhaul> http://www.eatliver.com/i.php?n=3348
23:13:20 *** nribeka has joined #openmrs
23:18:47 * r0bby sighs
23:18:51 <r0bby> working on vista
23:18:57 <nribeka> same here
23:19:00 <r0bby> good news is, is that now i can test IE7
23:19:24 <r0bby> groovy is installed
23:19:31 <r0bby> now i need to install subversion
23:20:14 <r0bby> why do I hate vista let me count the ways
23:20:36 <r0bby> maybe it'll grow on me
23:22:27 <r0bby> Groovy, Java, IDEA
23:22:33 <r0bby> what's missing :X
23:23:42 <nribeka> mysql + tomcat :P
23:24:35 <r0bby> ugh
23:33:03 *** Keelhaul has quit IRC
23:33:16 *** Keelhaul has joined #openmrs
23:33:16 *** ChanServ sets mode: +v Keelhaul
  • No labels