madushan
(Dileka Madushan)
April 25, 2018, 3:16pm
1
@sthaiya @mwere Hi all, I am Madushan and I am going to work on the aforementioned project in this year’s GSOC.
Project Objectives-
Create patient summary review/feedback which allows providers
For feedback review, it should allow reviewers
to accept recommendations and make changes
to decline the recommednations with reasons
Currently I am hoping to add the first feature. Any guidance from the community who are experienced in this module is highly appreciated.
sthaiya
(Samuel Mbugua)
April 27, 2018, 1:00pm
2
@madushan we are happy to work with you on this project.
@madushan @mwere Thank you all for today’s e-meeting.
@madushan we have agreed that between now and Tuesday you continue familiarizing yourself with OpenMRS clinical summaries handling as well as derived concepts. We will proceed on Tuesday at the agreed time.
1 Like
madushan
(Dileka Madushan)
April 27, 2018, 1:38pm
3
@sthaiya @mwere Thank you for the meeting. I am extremely sorry for the inconvenience caused. It was out of my control. I will make sure this wouldn’t happen again. I will get familiarized with those during the time.
madushan
(Dileka Madushan)
May 21, 2018, 3:52pm
4
@sthaiya @mwere I am trying to create an html/text based output for my report which uses a sql dataset definition named ‘to_print_obs’.
I added a weight observation(conceptId = 5089) for patient ‘Dileka’.
My sql dataset definition brings the following result.
In my groovy script I added the following code to print obs copying from openMRS wiki .
There is no exception seen and no output is printed. Looking foreward for your help to get this fixed. Thanks
dkayiwa
(Daniel Kayiwa)
May 21, 2018, 4:59pm
5
Is this reproducible on the demo server? http://demo.openmrs.org/
madushan
(Dileka Madushan)
May 21, 2018, 5:46pm
6
@dkayiwa yes, I could reproduce given the credentials.
dkayiwa
(Daniel Kayiwa)
May 21, 2018, 5:56pm
7
What are the exact steps to reproduce locally?
dkayiwa
(Daniel Kayiwa)
May 22, 2018, 11:01pm
9
Can you reproduce it on demo.openmrs.org and then give me a direct link to check it out?
UserName: admin
Password: Admin123
madushan
(Dileka Madushan)
May 23, 2018, 12:27am
10
@dkayiwa Thank you very much for the support. I reproduced a report ‘to print obs’. Please check it
here
dkayiwa
(Daniel Kayiwa)
May 23, 2018, 6:23am
11
Can you point me to where you specify the column names that you are referencing in your groovy script?
madushan
(Dileka Madushan)
May 23, 2018, 7:36am
12
@dkayiwa I have written a sql query to get all columns from a single row from obs table.
dkayiwa
(Daniel Kayiwa)
May 23, 2018, 11:59am
13
Take a second look at the documentation you linked above in regards to column names.
madushan
(Dileka Madushan)
May 23, 2018, 12:02pm
14
@dkayiwa the document asks the column to be named ‘weight’. But there are multiple columns in the obs table.
madushan
(Dileka Madushan)
May 23, 2018, 12:22pm
16
@dkayiwa Thanks for the help. I modified the sql query like this.
select obs_id as weights, obs_datetime as obsDatetime, value_numeric as valueNumeric, date_created from obs where obs_id = 7
But it is still the same.
dkayiwa
(Daniel Kayiwa)
May 23, 2018, 12:53pm
17
Can you share a demo server link to your groovy script?
dkayiwa
(Daniel Kayiwa)
May 23, 2018, 2:39pm
19
Your link gives me a null pointer exception
madushan
(Dileka Madushan)
May 24, 2018, 11:57am
20
@dkayiwa I am sorry for the inconvenience caused. @sthaiya helped me to figure out the mistake. Thank you very much for your help.
`SELECT value_numeric as weights FROM obs'
would solve the issue.