Monday, December 19, 2011

PTM-47

A quick update on what I'll be working on over the next few days.

James, Dr. Shaun, Ada and I had a call regarding PTM 47, which is aimed at moving the patientmatching module reports from a flat file system to the database.
This is going to be a complex task, but I feel that our call ironed out a lot of issues / complications that we were facing.
We are going to move the files into the database in two major stages. This will be keeping me very busy over the next few weeks.

More details on the ticket can be found here.

Sunday, December 18, 2011

I've been published in the Sunday Observer !!

Some more (slightly delayed) good news.

A article on myself and my OpenMRS work was published in this weeks Sunday Observer.
Now for those of you who don't know, the Sunday observer is Sri Lankas leading State owned English newspaper.
As I remember, their circulation is about 0.5 million copies (which is a very big deal in a country such as Sri Lanka.)
Basically, the article covers my comments on my OpenMRS work, and also some tips / hints on working in the community.
In fact, its the very same article on myself that was published in the IIT Student magazine. I cant remember if I ever blogged on that article, but let me check up on that.
I'm still looking for an online version of this item, but failing to find one, Ill upload a photo of the article.
But anyway, this article in not an actual 'victory', but rather a report of an old victory. Lets hope there'll be lots more victories over the next year ! :-)

PS: On an unrelated note, I just remembered that one of my key concerns during my days as a writer was how much longer it would take for an article about myself (as opposed to an article written by myself) to get published in a newspaper. Hmm...... So my pen name first appeared on a national newspaper at the age of 19. The first article about me was published when I'm 24. So, 24 -19 = 5  years :-)

Sunday, December 11, 2011

Mutual Scoring enhancements are committed !!

So, finally, after months of sweat and toil, Mutual Scoring (or MI for short) was committed today.

To me, this represents a major milestone in my internship. Firstly, it marks my involvement in real research work   with the top minds in the industry. (to put it more clearly, I can now say that I've "been there, done that, and got the tee shirt"). Secondly, it marks  my commitment to this industry, and what it has to offer, and finally, that i'm doing my best to follow the advice given by Professor Szolovits, and am following in at least the general direction that he suggested.

Of course, I admit that there is a lot more that I can do, but I still have two more years until I graduate, so hopefully I'll get better.

You're welcome to check out the changes in the patientMatching module.  Right now, these enhancements are very 'nerd' friendly, but not very user friendly.
I'm planning to take care of that along with the second phase of mutual scoring, which i'm hoping to start work on as soon as I take care of a few course works. (mustn't forget that I have to finish my degree as well :-)

So right now, I can happily say that phase one of MI scoring is over, and I can return to the drawing board for phase two.

Im indebted to the support given by Dr. Grannis (THE Dr. Shaun Grannis) and James Egg of Regenstrief.. I could never have done this without them.


Best Regards,

Suranga

Monday, December 5, 2011

My tee shirts have arrived !

So, as the heading says, my tee shirts arrived today. As anticipated, the Sri Lankan postal department had torn open the parcel to see if they can steal anything. Unfortunately for them, the parcel contained only items of sentimental value (I had especially asked Ada NOT to send anything valuable) So all the contents of the parcel were pretty much intact.

I got the Muzungu shirt (mentioned in previous post) an AMPATH tee shirt and finally, an awesome Regenstrief tee shirt.
The tee shirt is rather big, but I really really love it.

I'll post a pic of me wearing this shirt here. Please excuse my unusual apperance in this photo. It was taken shortly after I just work up :-)



Thanks to everyone who helped get the shirts from Kenya -> Indiana -> Sri Lanka !!!!!!!!!!

Tuesday, November 15, 2011

Hectic Times


I've been unable to update this blog regularly because, as you can see by my title, I've been going through hectic times.
Firstly, i'm still very much involved in AMPATH work - so much so that I've been unable to spend any time with my beloved OpenMRS core over the past month or so.
However, We've definitely making progress. Ada is even getting me an AMPATH tee shirt (So that I can say 'I've been there, and done that'. ) Poor Ben (our Director) has been asked to do the purchasing (since he's frequently flying to and fro between Eldoret and Indy).

I'm also getting an Muzungu tee shirt. Muzungu is basically African for 'the white people' (in Swahili is means 'confused person wondering about' :-D ).

 I guess Muzungu Tee shirts are somewhat of a fad of Regenstrief and PIH employees. I think its also very popular among westerners working in Africa. But anyway, I'm really looking forward to the tee shirts, and hoping that Ben wont get them in the lemon green and pink colours that he suggested :-)

Other than this, I'm also working on two other OpenMRS related projects, as part of something that Professor Solovitz of MIT suggested. Dr. Mamlin is helping me with one of these, while my favorite lecturer from IIT is helping with the other. (well, formerly IIT, and now with the Swinburne University, AUS).

Hopefully, we'll know the outcome of these efforts by Dec - Jan. But until that, its all confidential.

I'm also trying to continue with Dr. Shauns' Patient matching improvements, but its been really hard to find the free time.
And plus, my university does not understand that I'm really busy, and keeps assigning Course works.

Oh well.......




Friday, November 11, 2011

My work with AMPATH - Part two

                     
It's been some time since I published part 1 of my AMPATH story. I couldn't follow up with part two because the project is still very much ongoing, and I've only just committed the latest changes....


But let me try to pick up this story where I left off, and write at least a chapter or so on our progress.


Well, (resuming our narrative...) Ada tried out my new omod on an openmrs server, and sure enough it worked.
So she went ahead and uploaded the new module to the AMPATH research server, and suddenly it did not work.


The error was as follows,




Error Starting Module – Patient Matching
Error while trying to start module
Error while running sql: DROP TABLE IF EXISTS `openmrs`.`persistreportdata` . Message: DROP command denied to user 'amrs_user'@'localhost' for table 'persistreportdata'

I has just started digging into this problem when I got a mail from Win (Nyoman Ribeka) a Regenstrief developer and one of the fist contributors (well, actually THE first contributor) to the patientmatching module.

Apparently Ada had forwarded him the stack trace, and it had taken Win all of five minutes to come up with the solution.

The problem was that we had tested out the fixes using an 'openmrs' database, while the  AMPATH database was named 'amrs' ! . The issue was being caused by a database dependent code snippet that had somehow by-passed our vigorous code review process.

So naturally our fixes worked on the openmrs test environment, and crashed on the AMPATH environment.

But anyway, it was quite easy to fix once we understood the cause. we traced the faulty code to the sqldiff file ( an SQL inset into statement had the database name 'openmrs' prepended to the end. This was unnecessary, and was causing our problems. )

So I fixed it, tested it out and sent Ada the latest omod...

And was that the end of our problems ? not quite, 

But that is for later. Do stay tuned for part -3 !

Thursday, November 3, 2011

My work with AMPATH - Part one


I've been busy working with AMPATH engineers over the past week. We did a lot of important work to help AMPATH switch to the latest patient Matching module, and I'm happy to have played a role in getting this up and running.

For all of you who don't know what AMPATH is, its practically one of OpenMRS's birthplaces. For more details, please visit here.

It all started off after I got a mail from Dr. Shaun (THE Dr. Shaun from Regenstrief) asking if I could help the AMPATH people upgrade their system to the latest patient matching release. basically, AMPATH was using OpenMRS 1.8.2, and wanted to move on to the latest version of our module (which was supposed to be 1.2.2, but ultimately turned out to be 1.2.4 due to all the changes that we made)

Naturally, I was pleased to jump in and help out (who wouldn't ?)

So I contacted Ada (Ada Yeung, who works with AMPATH)  got access to AMPATH test server, and started checking out the system. Unfortunately, the test server was somewhat muddled up, mainly due to the large number of tomcat and OpenMRS modules installed everywhere.

So I contacted James (James Egg from Regenstrief) sorted everything out, upgraded the test server and got the latest running. The Upgrading process went pretty smoothly ( You will really admire the OpenMRS design once you see how easy it is to switch to - fro and upgrade with a live DB) and I didnt have any data problems at all.

So I went ahead and fixed a number of major showstoppers.

Dr. Shaun and Ada were very happy with my work, especially with the bug fixes.

So I committed the new changes, and stood down for the testing to begin.

And so was that the end of the story ? oh no, this was just the beginning. It all got pretty complicated after that...

Expect the full details in the next blog post !!!!