[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openmrs-dev
Subject:    Re: Concept dictionary csv download in compressed format
From:       Darius Jazayeri <darius () openmrs ! org>
Date:       2013-02-28 8:14:46
Message-ID: CAA-nHncjB9tGxY75+zYSfW_92xqJr1CcX+2XJh+YdGZgkuyYaQ () mail ! gmail ! com
[Download RAW message or body]

Hi Owais,

I haven't used this myself, but the REST Web Services module supports
requesting custom representations. See https://wiki.openmrs.org/x/P4IaAQ

-Darius


On Wed, Feb 27, 2013 at 8:46 PM, Owais Hussain <
owais.hussain@irdinformatics.org> wrote:

> Hi Darius,
>
> Thanks for the tip. This is what I plan to do, but I have to find more
> ways to keep the data exchange as minimum as possible. Is it possible to
> define what fields (like uuid, display) to pick when retrieving concepts?
>
>
> Best Regards,
>
> OWAIS AHMED
>
> Senior Software Engineer
>
> IRD Pakistan
> www.irdresearch.org
>
> Official: +922134327697
> Personal: +923453174270
> Skype: owais.a.hussain
>
>
> On Wed, Feb 27, 2013 at 10:21 PM, Darius Jazayeri <darius@openmrs.org>wrote:
>
>> Hi Owais,
>>
>> If this is your goal, I suggest that you write some custom code to do
>> this, producing output with exactly the concept fields that you care about.
>> (Each concept has a lot of potential data/details, from synonyms, to
>> mappings.)
>>
>> -Darius
>>
>>
>> On Tue, Feb 26, 2013 at 10:34 PM, Owais Hussain <
>> owais.hussain@irdinformatics.org> wrote:
>>
>>> Hi Ben,
>>>
>>> I am using RESTWS for this purpose but my aim is to download the concept
>>> dictionary on first login and prepare metadata locally using Sqlite
>>> database on the phone, so that I'm not having to make server calls very
>>> often.
>>> I know that this can be done by fetching concepts in multiple calls and
>>> parsing them, but that too will consume more time and potentially more cost
>>> more because the JSON objects returned contain more information than I
>>> need. On the other hand, if I could download the dictionary in a single go,
>>> things will be quite easy and efficient...
>>>
>>>
>>> Best Regards,
>>>
>>> OWAIS AHMED
>>>
>>> Senior Software Engineer
>>>
>>> IRD Pakistan
>>> www.irdresearch.org
>>>
>>> Official: +922134327697
>>> Personal: +923453174270
>>> Skype: owais.a.hussain
>>>
>>>
>>> On Wed, Feb 27, 2013 at 9:51 AM, Ben Wolfe <ben@openmrs.org> wrote:
>>>
>>>> Whats your use case?  Is the mobile client going to be searching for
>>>> clients?  Or is it just a once-a-week download to get all the latest
>>>> concepts?
>>>>
>>>> Have you looked into using the web services module to accomplish your
>>>> goal?  With that you could get only the types of concepts you want and only
>>>> the parts of the data that you want depending on how you architect the ws
>>>> call.
>>>>
>>>> Ben
>>>>
>>>> On Tue, Feb 26, 2013 at 1:18 AM, Owais Hussain <
>>>> owais.hussain@irdinformatics.org> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I'm working on a custom mobile client for Open MRS and I was
>>>>> wondering if there's a way to download csv in compressed format.
>>>>> Downloading existing dictionary in csv will not only take long, but also be
>>>>> very expensive on GPRS...
>>>>>
>>>>> Best Regards,
>>>>>
>>>>> OWAIS AHMED
>>>>>
>>>>> Senior Software Engineer
>>>>>
>>>>> IRD Pakistan
>>>>> www.irdresearch.org
>>>>>
>>>>> Official: +922134327697
>>>>> Personal: +923453174270
>>>>> Skype: owais.a.hussain
>>>>>
>>>>> --
>>>>> OpenMRS Developers: http://go.openmrs.org/dev
>>>>> Post: dev@openmrs.org
>>>>> Unsubscribe: dev+unsubscribe@openmrs.org
>>>>> Manage your OpenMRS subscriptions at https://id.openmrs.org/
>>>>>
>>>>>
>>>>>
>>>>
>>>>  --
>>>> OpenMRS Developers: http://go.openmrs.org/dev
>>>> Post: dev@openmrs.org
>>>> Unsubscribe: dev+unsubscribe@openmrs.org
>>>> Manage your OpenMRS subscriptions at https://id.openmrs.org/
>>>>
>>>>
>>>>
>>>
>>>  --
>>> OpenMRS Developers: http://go.openmrs.org/dev
>>> Post: dev@openmrs.org
>>> Unsubscribe: dev+unsubscribe@openmrs.org
>>> Manage your OpenMRS subscriptions at https://id.openmrs.org/
>>>
>>>
>>>
>>
>>  --
>> OpenMRS Developers: http://go.openmrs.org/dev
>> Post: dev@openmrs.org
>> Unsubscribe: dev+unsubscribe@openmrs.org
>> Manage your OpenMRS subscriptions at https://id.openmrs.org/
>>
>>
>>
>
>  --
> OpenMRS Developers: http://go.openmrs.org/dev
> Post: dev@openmrs.org
> Unsubscribe: dev+unsubscribe@openmrs.org
> Manage your OpenMRS subscriptions at https://id.openmrs.org/
>
>
>

-- 
OpenMRS Developers: http://go.openmrs.org/dev
Post: dev@openmrs.org
Unsubscribe: dev+unsubscribe@openmrs.org
Manage your OpenMRS subscriptions at https://id.openmrs.org/



[Attachment #3 (text/html)]

<div dir="ltr">Hi Owais,<div><br></div><div>I haven&#39;t used this myself, but the \
REST Web Services module supports requesting custom representations. See <a \
href="https://wiki.openmrs.org/x/P4IaAQ">https://wiki.openmrs.org/x/P4IaAQ</a> </div>

<div><br></div><div>-Darius</div></div><div class="gmail_extra"><br><br><div \
class="gmail_quote">On Wed, Feb 27, 2013 at 8:46 PM, Owais Hussain <span \
dir="ltr">&lt;<a href="mailto:owais.hussain@irdinformatics.org" \
target="_blank">owais.hussain@irdinformatics.org</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><font color="#006600"><font face="verdana,sans-serif">Hi \
Darius,</font></font><div><font color="#006600"><font face="verdana,sans-serif"><br>

</font></font></div><div><font color="#006600"><font face="verdana,sans-serif">Thanks \
for the tip. T</font></font><span \
style="font-family:verdana,sans-serif;color:rgb(0,102,0)">his is what I plan to do, \
but I have to find more ways to keep the data exchange as minimum as possible. Is it \
possible to define what fields (like uuid, display) to pick when retrieving \
concepts?</span></div>



<div><font color="#006600"><font \
face="verdana,sans-serif"><br></font></font></div><div><div class="im"><font \
color="#006600"><font face="verdana,sans-serif"><br \
clear="all"></font></font><div><span style>Best Regards,</span><br \
style="color:rgb(102,102,102)">



<br style="color:rgb(102,102,102)"><span style="color:rgb(102,102,102)">OWAIS \
AHMED</span><br style="color:rgb(102,102,102)"><br \
style="color:rgb(102,102,102)"><span style="color:rgb(102,102,102)">Senior Software \
Engineer</span><br style="color:rgb(102,102,102)">



<br style="color:rgb(102,102,102)"><span style="color:rgb(102,102,102)">IRD \
Pakistan</span><br style="color:rgb(102,102,102)"><a style="color:rgb(102,102,102)" \
href="http://www.irdresearch.org/" target="_blank">www.irdresearch.org</a><br \
style="color:rgb(102,102,102)">



<br style="color:rgb(102,102,102)"><span style="color:rgb(102,102,102)">Official: <a \
href="tel:%2B922134327697" value="+922134327697" \
target="_blank">+922134327697</a></span><br style="color:rgb(102,102,102)"><span \
style="color:rgb(102,102,102)">Personal: <a href="tel:%2B923453174270" \
value="+923453174270" target="_blank">+923453174270</a><br>

Skype: owais.a.hussain<br>

</span></div>
<br><br></div><div><div class="h5"><div class="gmail_quote">On Wed, Feb 27, 2013 at \
10:21 PM, Darius Jazayeri <span dir="ltr">&lt;<a href="mailto:darius@openmrs.org" \
target="_blank">darius@openmrs.org</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">

<div dir="ltr">Hi Owais,<div><br></div><div>If this is your goal, I suggest that you \
write some custom code to do this, producing output with exactly the concept fields \
that you care about. (Each concept has a lot of potential data/details, from \
synonyms, to mappings.)</div>



<span><font color="#888888">

<div><br></div><div>-Darius</div></font></span></div><div><div><div \
class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Feb 26, 2013 at 10:34 \
PM, Owais Hussain <span dir="ltr">&lt;<a \
href="mailto:owais.hussain@irdinformatics.org" \
target="_blank">owais.hussain@irdinformatics.org</a>&gt;</span> wrote:<br>





<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><font color="#006600"><font face="verdana,sans-serif">Hi \
Ben,</font></font><div><font color="#006600"><font face="verdana,sans-serif"><br>





</font></font></div><div><font color="#006600"><font face="verdana,sans-serif">I am \
using RESTWS for this purpose but my aim is to download the concept dictionary on \
first login and prepare metadata locally using Sqlite database on the phone, so that \
I&#39;m not having to make server calls very often.</font></font></div>







<div><font color="#006600"><font face="verdana,sans-serif">I know that this can be \
done by fetching concepts in multiple calls and parsing them, but that too will \
consume more time and potentially more cost more because the JSON objects returned \
contain more information than I need. On the other hand, if I could download the \
dictionary in a single go, things will be quite easy and \
efficient...</font></font></div>







<div><font color="#006600"><font \
face="verdana,sans-serif"><br></font></font></div><div><div><font \
color="#006600"><font face="verdana,sans-serif"><br \
clear="all"></font></font><div><span>Best Regards,</span><br \
style="color:rgb(102,102,102)">







<br style="color:rgb(102,102,102)"><span style="color:rgb(102,102,102)">OWAIS \
AHMED</span><br style="color:rgb(102,102,102)"><br \
style="color:rgb(102,102,102)"><span style="color:rgb(102,102,102)">Senior Software \
Engineer</span><br style="color:rgb(102,102,102)">







<br style="color:rgb(102,102,102)"><span style="color:rgb(102,102,102)">IRD \
Pakistan</span><br style="color:rgb(102,102,102)"><a style="color:rgb(102,102,102)" \
href="http://www.irdresearch.org/" target="_blank">www.irdresearch.org</a><br \
style="color:rgb(102,102,102)">







<br style="color:rgb(102,102,102)"><span style="color:rgb(102,102,102)">Official: <a \
href="tel:%2B922134327697" value="+922134327697" \
target="_blank">+922134327697</a></span><br style="color:rgb(102,102,102)"><span \
style="color:rgb(102,102,102)">Personal: <a href="tel:%2B923453174270" \
value="+923453174270" target="_blank">+923453174270</a><br>





Skype: owais.a.hussain<br>

</span></div>
<br><br></div><div><div><div class="gmail_quote">On Wed, Feb 27, 2013 at 9:51 AM, Ben \
Wolfe <span dir="ltr">&lt;<a href="mailto:ben@openmrs.org" \
target="_blank">ben@openmrs.org</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">







Whats your use case?  Is the mobile client going to be searching for clients?  Or is \
it just a once-a-week download to get all the latest concepts?<br><br>Have you looked \
into using the web services module to accomplish your goal?  With that you could get \
only the types of concepts you want and only the parts of the data that you want \
depending on how you architect the ws call.<br>









<br>Ben<br><br><div class="gmail_quote"><div><div>On Tue, Feb 26, 2013 at 1:18 AM, \
Owais Hussain <span dir="ltr">&lt;<a href="mailto:owais.hussain@irdinformatics.org" \
target="_blank">owais.hussain@irdinformatics.org</a>&gt;</span> wrote:<br>









</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex"><div><div><div><font color="#006600"><font \
face="verdana,sans-serif">Hi,</font></font></div><div>

<br></div><div><font color="#006600" face="verdana, sans-serif">I&#39;m working on a \
custom mobile client for Open MRS and </font><span \
style="color:rgb(0,102,0);font-family:verdana,sans-serif">I was wondering if \
there&#39;s a way to download csv in compressed format. Downloading existing \
dictionary in csv will not only take long, but also be very expensive on \
GPRS...</span></div>











<font color="#006600"><font face="verdana,sans-serif"><br \
clear="all"></font></font><div><span>Best Regards,</span><br \
style="color:rgb(102,102,102)"><br style="color:rgb(102,102,102)"><span \
style="color:rgb(102,102,102)">OWAIS AHMED</span><br style="color:rgb(102,102,102)">











<br style="color:rgb(102,102,102)"><span style="color:rgb(102,102,102)">Senior \
Software Engineer</span><br style="color:rgb(102,102,102)"><br \
style="color:rgb(102,102,102)"><span style="color:rgb(102,102,102)">IRD \
Pakistan</span><br style="color:rgb(102,102,102)">











<a style="color:rgb(102,102,102)" href="http://www.irdresearch.org/" \
target="_blank">www.irdresearch.org</a><br style="color:rgb(102,102,102)"><br \
style="color:rgb(102,102,102)"><span style="color:rgb(102,102,102)">Official: <a \
href="tel:%2B922134327697" value="+922134327697" \
target="_blank">+922134327697</a></span><br style="color:rgb(102,102,102)">











<span style="color:rgb(102,102,102)">Personal: <a href="tel:%2B923453174270" \
value="+923453174270" target="_blank">+923453174270</a><br>Skype: \
owais.a.hussain<span><font color="#888888"><br></font></span></span></div>

</div></div><span><font color="#888888"><span><font color="#888888">

<p></p>

-- <br>
OpenMRS Developers: <a href="http://go.openmrs.org/dev" \
                target="_blank">http://go.openmrs.org/dev</a><br>
Post: <a href="mailto:dev@openmrs.org" target="_blank">dev@openmrs.org</a><br>
Unsubscribe: <a href="mailto:dev%2Bunsubscribe@openmrs.org" \
target="_blank">dev+unsubscribe@openmrs.org</a><br> Manage your OpenMRS subscriptions \
at <a href="https://id.openmrs.org/" target="_blank">https://id.openmrs.org/</a><br>  \
<br>  <br>
</font></span></font></span></blockquote></div><span><font color="#888888"><br>

<p></p>

-- <br>
OpenMRS Developers: <a href="http://go.openmrs.org/dev" \
                target="_blank">http://go.openmrs.org/dev</a><br>
Post: <a href="mailto:dev@openmrs.org" target="_blank">dev@openmrs.org</a><br>
Unsubscribe: <a href="mailto:dev%2Bunsubscribe@openmrs.org" \
target="_blank">dev+unsubscribe@openmrs.org</a><br> Manage your OpenMRS subscriptions \
at <a href="https://id.openmrs.org/" target="_blank">https://id.openmrs.org/</a><br>  \
<br>  <br>
</font></span></blockquote></div><br></div></div></div><div><div>

<p></p>

-- <br>
OpenMRS Developers: <a href="http://go.openmrs.org/dev" \
                target="_blank">http://go.openmrs.org/dev</a><br>
Post: <a href="mailto:dev@openmrs.org" target="_blank">dev@openmrs.org</a><br>
Unsubscribe: <a href="mailto:dev%2Bunsubscribe@openmrs.org" \
target="_blank">dev+unsubscribe@openmrs.org</a><br> Manage your OpenMRS subscriptions \
at <a href="https://id.openmrs.org/" target="_blank">https://id.openmrs.org/</a><br>  \
<br>  <br>
</div></div></blockquote></div><br></div>

<p></p>

-- <br>
OpenMRS Developers: <a href="http://go.openmrs.org/dev" \
                target="_blank">http://go.openmrs.org/dev</a><br>
Post: <a href="mailto:dev@openmrs.org" target="_blank">dev@openmrs.org</a><br>
Unsubscribe: <a href="mailto:dev%2Bunsubscribe@openmrs.org" \
target="_blank">dev+unsubscribe@openmrs.org</a><br> Manage your OpenMRS subscriptions \
at <a href="https://id.openmrs.org/" target="_blank">https://id.openmrs.org/</a><br>  \
<br>  <br>
</div></div></blockquote></div><br></div></div></div><div class="HOEnZb"><div \
class="h5">

<p></p>

-- <br>
OpenMRS Developers: <a href="http://go.openmrs.org/dev" \
                target="_blank">http://go.openmrs.org/dev</a><br>
Post: <a href="mailto:dev@openmrs.org" target="_blank">dev@openmrs.org</a><br>
Unsubscribe: <a href="mailto:dev%2Bunsubscribe@openmrs.org" \
target="_blank">dev+unsubscribe@openmrs.org</a><br> Manage your OpenMRS subscriptions \
at <a href="https://id.openmrs.org/" target="_blank">https://id.openmrs.org/</a><br>  \
<br>  <br>
</div></div></blockquote></div><br></div>

<p></p>

-- <br />
OpenMRS Developers: <a \
                href="http://go.openmrs.org/dev">http://go.openmrs.org/dev</a><br />
Post: dev@openmrs.org<br />
Unsubscribe: dev+unsubscribe@openmrs.org<br />
Manage your OpenMRS subscriptions at <a \
href="https://id.openmrs.org/">https://id.openmrs.org/</a><br /> &nbsp;<br />
&nbsp;<br />



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic