IRC Chat : 2013-05-05 - OpenMRS

00:09:49 *** wyclif has joined #openmrs
00:12:56 *** portablejim has quit IRC
00:12:56 *** tcalder2 has joined #openmrs
00:18:41 *** ArcTanSusan has quit IRC
00:25:41 *** ArcTanSusan has joined #openmrs
00:30:45 <jblaya> nribeka, do you have an example of creating a user?
00:30:56 <jblaya> I looked here https://github.com/openmrs/openmrs-core/blob/master/api/src/test/java/org/openmrs/api/ProviderServiceTest.java but it doesn't have an example
00:31:00 <OpenMRSBot> <http://ln-s.net/-7MQ> (at github.com)
00:31:18 <jblaya> I'm trying to create a script that sets all users to be providers and I'm getting a not very helpful error
00:31:22 <jblaya> the same one as before...
00:31:43 <nribeka> https://github.com/openmrs/openmrs-core/blob/master/api/src/test/java/org/openmrs/api/UserServiceTest.java
00:31:45 <OpenMRSBot> <http://ln-s.net/-7MR> (at github.com)
00:31:48 <nribeka> how about that one jblaya
00:32:39 <jblaya> oh, it's not setting the ROle provider, but rather creating them as a provider in the providers table
00:34:11 <jblaya> nribeka, does that make sense?
00:46:59 <nribeka> https://github.com/openmrs/openmrs-core/blob/master/api/src/test/java/org/openmrs/api/ProviderServiceTest.java#L189 this unit tests doesn't work?
00:47:03 <OpenMRSBot> <http://ln-s.net/-7Mb> (at github.com)
00:47:18 <nribeka> i mean creating provider like that unit test?
00:47:55 <jblaya> but dow do I set the identifier?
00:47:59 <jblaya> also I was trying it this way
00:48:10 <jblaya> Person per = new Person(pid);
00:48:10 <jblaya> Provider p = new Provider();
00:48:10 <jblaya> p.setPerson(per);
00:48:10 <jblaya> ps.saveProvider(p);
00:48:16 <jblaya> but no dice
00:48:35 <jblaya> because I have a user that I want to make a provider, not create a provider with a name and identifier
00:49:10 *** sashrika has joined #openmrs
00:53:59 *** ArcTanSusan has quit IRC
00:58:48 <nribeka> hmmm
01:00:25 <nribeka> with your code above, it will fail because you need to assign identifier to the provider
01:00:48 <nribeka> so depending how you plan to assign the identifier for the provider jblaya
01:01:09 *** wyclif has quit IRC
01:02:43 <jblaya> well, nribeka but in the provider pae in openmrs you can just say, this user is a provider
01:02:51 <jblaya> ah, needs to be a user not a person
01:03:29 <jblaya> but the problem is that the provider id is not the same as the user id, and I'm thinking if there's some way to autoincrement the provider id
01:04:16 <jblaya> because identifier in the provider table is not mandatory
01:05:44 <nribeka> eh you're right. identifier is non mandatory.
01:06:05 <nribeka> but you lost me jblaya. so what are you trying to do? just adding more provider?
01:06:46 <jblaya> yes, I want to have all users in the system be providers
01:06:50 <jblaya> and not have to do it manually
01:07:05 <jblaya> that's not that crazy right, nribeka ?
01:08:22 <nribeka> yeah, that's not crazy :)
01:08:45 <jblaya> :D
01:08:56 <jblaya> I figured I'd put that one on the wiki
01:11:32 <nribeka> did you figure it out?
01:12:40 <jblaya> nop, I think I'm goign to place that one on hold and write to the wiki
01:12:49 <jblaya> sorry, write to the implementers mailing list
01:13:09 <jblaya> I have to go now because some family is coming over,
01:13:17 <nribeka> hahahahaha ...
01:13:19 <jblaya> and my brain is totally fried...
01:13:23 <nribeka> enjoy the party jblaya :)
01:13:29 <jblaya> thanks nribeka!
01:14:32 *** Anuruddha has joined #openmrs
01:30:53 *** sashrika has quit IRC
01:33:53 *** jblaya has quit IRC
01:49:49 *** jblaya has joined #openmrs
01:58:20 *** annarm has joined #openmrs
02:15:38 *** jennparise has quit IRC
02:20:03 *** ArcTanSusan has joined #openmrs
02:20:54 *** ruwanego has joined #openmrs
02:25:21 *** wyclif has joined #openmrs
02:34:25 *** portablejim has joined #openmrs
02:34:25 *** portablejim has joined #openmrs
02:43:53 *** ruwanego has quit IRC
02:48:43 *** ArcTanSusan has quit IRC
02:49:39 *** sashrika has joined #openmrs
02:51:52 *** Aishiko has quit IRC
03:06:33 *** sgrannis has quit IRC
03:27:40 *** annarm has quit IRC
03:37:30 *** wyclif has quit IRC
03:42:19 *** ArcTanSusan has joined #openmrs
04:02:53 *** wyclif has joined #openmrs
04:11:36 *** jblaya has quit IRC
04:14:35 *** harshadura has joined #openmrs
04:22:45 *** jblaya has joined #openmrs
04:24:09 *** harshadura_ has joined #openmrs
04:26:48 *** harshadura has quit IRC
04:27:27 *** Hasintha_i has joined #openmrs
04:32:38 *** jblaya has quit IRC
04:47:49 *** wyclif has quit IRC
04:48:49 *** jblaya has joined #openmrs
05:05:55 *** pulasthi7 has joined #openmrs
05:13:54 <Hasintha_i> suranga, hi
05:15:15 *** jblaya has quit IRC
05:25:53 *** sashrika has quit IRC
05:33:24 *** ArcTanSusan has quit IRC
06:09:11 *** ArcTanSusan has joined #openmrs
06:10:19 *** harshadura_ has quit IRC
06:11:37 *** jb360 has quit IRC
06:31:33 *** tcalder2 has quit IRC
06:44:50 *** ishara-p has joined #openmrs
06:47:18 *** ArcTanSusan has quit IRC
07:16:33 *** DraggonZ has joined #openmrs
07:31:51 *** harshadura has joined #openmrs
07:43:13 *** harshadura_ has joined #openmrs
07:45:00 *** harshadura_ has quit IRC
07:45:13 *** harshadura_ has joined #openmrs
07:46:42 *** harsz89 has quit IRC
07:59:26 *** harsz89 has joined #openmrs
08:02:28 *** b0b has quit IRC
08:05:17 *** b0b has joined #openmrs
08:26:35 *** tcalder2 has joined #openmrs
08:32:07 *** ishara-p has quit IRC
09:05:26 *** harshadura_ has quit IRC
09:05:39 *** harshadura_ has joined #openmrs
09:13:03 *** dkayiwa has joined #openmrs
09:22:09 *** tcalder2 has quit IRC
09:37:03 *** sashrika has joined #openmrs
09:44:18 *** k-joseph has joined #openmrs
10:08:53 *** k-joseph has quit IRC
10:09:44 *** k-joseph has joined #openmrs
10:16:21 *** k-joseph has quit IRC
10:16:39 *** k-joseph has joined #openmrs
10:17:51 *** Anuruddha has quit IRC
10:22:23 *** downey has quit IRC
10:23:47 *** pulasthi7 has quit IRC
10:23:47 *** igor_stama has quit IRC
10:26:08 *** rday has quit IRC
10:26:08 *** docpaul has quit IRC
10:26:09 *** Echidna has quit IRC
10:26:13 *** downey_ has joined #openmrs
10:26:14 *** downey_ has joined #openmrs
10:26:15 *** downey_ has joined #openmrs
10:26:15 *** ChanServ sets mode: +o downey_
10:26:46 *** igor_sta- has joined #openmrs
10:26:46 *** igor_sta- is now known as igor_stama
10:26:47 *** k-joseph has quit IRC
10:28:05 *** docpaul has joined #openmrs
10:28:05 *** Echidna has joined #openmrs
10:28:05 *** zelazny.freenode.net sets mode: +ov docpaul Echidna
10:33:49 *** tcalder2 has joined #openmrs
10:34:22 *** docpaul has quit IRC
10:34:22 *** Echidna has quit IRC
10:34:24 *** suranga has quit IRC
10:34:25 *** harshadura_ has quit IRC
10:34:25 *** portablejim has quit IRC
10:34:25 *** mseaton has quit IRC
10:34:25 *** downey_ has quit IRC
10:34:25 *** ryates has quit IRC
10:34:26 *** Iome has quit IRC
10:34:26 *** akwatuha has quit IRC
10:34:27 *** cpower has quit IRC
10:34:27 *** Hasintha_i has quit IRC
10:34:27 *** burke has quit IRC
10:34:27 *** sunbiz has quit IRC
10:34:27 *** jkeiper has quit IRC
10:34:28 *** harshadura has quit IRC
10:34:28 *** ojwangantony_ has quit IRC
10:34:29 *** b0b has quit IRC
10:34:29 *** flaushy has quit IRC
10:36:04 *** robbyoconnor has quit IRC
10:36:04 *** k-joseph has joined #openmrs
10:36:42 *** sashrika has quit IRC
10:37:09 *** robbyoconnor has joined #openmrs
10:37:09 *** ChanServ sets mode: +v robbyoconnor
10:41:48 *** Echidna has joined #openmrs
10:41:48 *** docpaul has joined #openmrs
10:41:48 *** downey_ has joined #openmrs
10:41:48 *** harshadura_ has joined #openmrs
10:41:48 *** b0b has joined #openmrs
10:41:48 *** harshadura has joined #openmrs
10:41:48 *** Hasintha_i has joined #openmrs
10:41:48 *** portablejim has joined #openmrs
10:41:48 *** mseaton has joined #openmrs
10:41:48 *** zelazny.freenode.net sets mode: +voov Echidna docpaul downey_ mseaton
10:41:48 *** suranga has joined #openmrs
10:41:48 *** akwatuha has joined #openmrs
10:41:48 *** ryates has joined #openmrs
10:41:48 *** burke has joined #openmrs
10:41:48 *** sunbiz has joined #openmrs
10:41:48 *** jkeiper has joined #openmrs
10:41:48 *** zelazny.freenode.net sets mode: +oovv ryates burke sunbiz jkeiper
10:41:48 *** ojwangantony_ has joined #openmrs
10:41:48 *** cpower has joined #openmrs
10:41:48 *** Iome has joined #openmrs
10:41:48 *** flaushy has joined #openmrs
10:41:48 *** zelazny.freenode.net sets mode: +v cpower
10:42:01 *** downey_ is now known as downey
10:42:01 *** pulasthi7 has joined #openmrs
10:42:01 *** k-joseph_ has joined #openmrs
10:42:01 *** Anuruddha has joined #openmrs
10:42:15 *** k-joseph_ is now known as k-joseph
11:33:16 <Hasintha_i> hi suranga
11:39:24 <Hasintha_i> dkayiwa, hi
11:39:32 <dkayiwa> Hasintha_i: hi
11:40:06 <Hasintha_i> can you please let me know the status of issue https://tickets.openmrs.org/browse/HLQRY-50
11:42:40 *** tcalder2 has quit IRC
11:43:00 <Hasintha_i> dkayiwa, is this in progress ? or have u resolve it ?
11:44:53 <dkayiwa> Hasintha_i: doesn't JIRA show you the ticket status?
11:50:05 <Hasintha_i> dkayiwa, it shows as unresolved, but you have done some pulls and there are some comments by bwolfe. I dont understand what he says :-( , can you please help
12:04:00 <dkayiwa> Hasintha_i: did you fix as per ben's comments on the pull request?
12:05:42 <Hasintha_i> dkayiwa, no
12:09:02 <dkayiwa> Hasintha_i: so then how you expect the ticket to be resolved when you have not fixed them? :)
12:11:52 *** sashrika has joined #openmrs
12:12:00 <Hasintha_i> dkayiwa, he he, nope, i am a beginner. just wanted to know about the issue from you since you have worked on it
12:13:00 <dkayiwa> Hasintha_i: the ticket shows whats remaining :)
12:14:50 *** dkayiwa has quit IRC
12:15:45 *** lh has joined #openmrs
12:25:51 *** lh has quit IRC
12:48:25 *** DraggonZ has quit IRC
12:52:01 *** jblaya has joined #openmrs
12:56:16 *** harshadura has quit IRC
13:14:51 <nribeka> jblaya: maybe try saving the person first and then saving the provider?
13:16:09 <jblaya> nribeka, but the person already exists, I'm not creating or adding anything to the person, just setting them as a provider
13:17:52 <nribeka> yeah, i thought you're creating new person too.
13:27:50 <nribeka> jblaya, tested
13:28:04 <nribeka> yeah, that new Person(pid) won't work
13:28:19 <nribeka> you need to do Person per = person.getPerson(pid);
13:28:37 <jblaya> ah, sweet, I'll test it now
13:29:16 <jblaya> where person is a PersonService?
13:29:18 <nribeka> you can also (instead of using sql to get the person id), just use the api to get all the person object that you want
13:29:36 <nribeka> person --> PersonService in groovy module
13:29:48 <nribeka> blame burke for not just calling it personService
13:30:56 <nribeka> https://wiki.openmrs.org/display/docs/Groovy+Module#GroovyModule-Setup
13:31:17 <nribeka> you can still get it using PersonService personService = Context.getPersonService()
13:31:22 <nribeka> i hope that make sense :D
13:31:32 <jblaya> yep totally
13:31:34 <jblaya> trying it out now
13:31:37 <nribeka> cool
13:32:33 <jblaya> nribeka, brilliant!!!
13:32:36 <jblaya> it worked
13:33:43 <jblaya> thanks
13:35:42 <nribeka> cool cool :D
13:36:41 <jblaya> don't know what I would have done without your help
13:36:49 <jblaya> because this system needs to be running on monday
13:37:10 <nribeka> cool jblaya :)
13:37:20 <nribeka> just remember to bring lots of diet coke IV :D
13:37:52 <jblaya> nribeka, ok, but just remember I've only placed one IV in my life
13:37:58 <nribeka> hahahaha
13:39:09 <jblaya> nribeka, ok, last script to work on, then done
13:39:26 <nribeka> wooohooooo ...
13:45:36 *** k-joseph has quit IRC
13:53:44 *** ruwanego has joined #openmrs
14:05:17 *** tcalder2 has joined #openmrs
14:18:33 *** harsz89 has quit IRC
14:23:45 *** harsz89 has joined #openmrs
14:27:51 *** harshadura_ has quit IRC
14:32:42 *** tcalder2 has quit IRC
14:40:28 *** harshadura_ has joined #openmrs
14:50:36 *** wyclif has joined #openmrs
14:56:22 <jblaya> nribeka, done! I won't bug you anymore (at least for groovy scripts)
14:57:36 <nribeka> hahahaha ... nice jblaya. mission accomplished :)
14:57:42 *** k-joseph has joined #openmrs
14:58:06 <nribeka> by frying your brain the entire weekend!
14:58:09 <nribeka> hahahahahahahahahaha
14:58:30 <jblaya> yep, now all that's left is getting my mirth imports working
14:59:03 <nribeka> yeah, good luck jblaya
14:59:12 <jblaya> nribeka, thanks so much, have a great sunday
14:59:36 <nribeka> yep. you too. waiting for barcelona. :D
15:00:15 *** harshadura_ has quit IRC
15:37:47 *** wyclif has quit IRC
15:50:47 *** portablejim has quit IRC
16:12:57 *** k-joseph has quit IRC
16:37:52 *** Anuruddha has quit IRC
16:59:24 *** dkayiwa has joined #openmrs
16:59:49 *** hybridivy has joined #openmrs
17:01:22 *** hybridivy has quit IRC
17:12:51 *** ArcTanSusan has joined #openmrs
17:18:39 *** k-joseph has joined #openmrs
17:32:13 *** ArcTanSusan has quit IRC
17:44:25 *** ruwanego has quit IRC
17:46:08 *** harsz89 has quit IRC
17:49:34 *** ArcTanSusan has joined #openmrs
17:50:44 *** ruwanego has joined #openmrs
17:54:36 *** Hasintha_i has quit IRC
17:59:52 *** harsz89 has joined #openmrs
17:59:54 *** jb360 has joined #openmrs
18:03:09 *** ArcTanSusan has quit IRC
18:13:19 *** ruwanego has quit IRC
18:17:05 *** annarm has joined #openmrs
18:27:34 *** wyclif has joined #openmrs
18:58:22 *** sashrika has quit IRC
19:29:12 *** k-joseph has quit IRC
19:40:45 *** k-joseph has joined #openmrs
20:06:49 *** wyclif has quit IRC
20:21:47 *** wyclif has joined #openmrs
20:25:58 *** pulasthi7 has quit IRC
20:32:30 *** k-joseph has quit IRC
20:36:38 *** k-joseph has joined #openmrs
20:41:11 *** jblaya has quit IRC
20:56:04 *** Univ_ has joined #openmrs
20:56:31 <Univ_> Hello?
20:57:42 <dkayiwa> hey
21:01:57 <Univ_> Hi there, do you use OpenMRS- I have some questions about using without internet access?
21:10:53 *** k-joseph has quit IRC
21:30:18 *** breeze has joined #openmrs
21:35:38 *** ArcTanSusan has joined #openmrs
21:41:47 *** breeze has quit IRC
21:46:07 <dkayiwa> Univ_: hi
21:51:57 *** ArcTanSusan has quit IRC
21:52:07 *** Univ_ has quit IRC
22:00:33 *** robbyoconnor has quit IRC
22:06:54 *** robbyoconnor has joined #openmrs
22:06:54 *** ChanServ sets mode: +v robbyoconnor
22:19:14 *** dkayiwa has left #openmrs
22:45:02 *** harsz89 has quit IRC
22:48:35 *** h3llborn has joined #openmrs
23:00:42 *** wyclif has quit IRC
23:18:20 *** sunbiz has quit IRC
23:34:25 *** h3llborn has quit IRC