← Back to team overview

dhis2-devs team mailing list archive

Re: Data elements with both option set and free text

 

Hi,

I hadn't tested adding such values using the various API resources, so
thanks for that clarification.

That said - it just dawned on me that our Baganda bandits (Alex & Prosper
;-) ) may have a better solution for one scenario I had in mind:
Where users want a mix of pre-specified text options but also have the
opportunity to add free text, in order to describe specific phenomena in a
rich picture way: What they have done for SYMPTOMS in the Rwanda Disease
Surveillance system is to have a multi-select form with pre-defined options
(common symptoms), where each selected symptom is added to the text data
element, separated by e.g. semi-colons. Users can then add free text to
that. Example using Sigourney Weaver:

Standard symptoms                         Non-standard symptoms
Fever; Hunger; Temporary coma;     X-ray show lizard-like creature with
lots of teeth in abdomen...

Best regards
Calle


On 26 September 2016 at 11:34, Lars Helge Øverland <lars@xxxxxxxxx> wrote:

>
>
> On Mon, Sep 26, 2016 at 11:26 AM, Jason Pickering <
> jason.p.pickering@xxxxxxxxx> wrote:
>
>> Hi Calle,
>>
>> The problem as I see it still in the current version is that it is
>> actually possible to do exactly this. If you use curl, you can upload a
>> value which is not part of the option set. If the option set has a numeric
>> value type, you can upload any option, not just those which are part of the
>> option set. I thought this had actually been fixed, but it seems not to be
>> the case. So, I suppose using a custom form, you could create a control to
>> allow people to enter data from a list, or to specify it.
>>
>>
> This is true but just for the "dataValue" resource, we block this during
> data import / through the "dataValueSet" resource. We will add it, just
> need to do it in a way which performs appropriately.
>
> regards,
>
> Lars
>
>
>
>
>
>
>
> --
> Lars Helge Øverland
> Lead developer, DHIS 2
> University of Oslo
> Skype: larshelgeoverland
> lars@xxxxxxxxx
> http://www.dhis2.org <https://www.dhis2.org/>
>
>


-- 

*******************************************

Calle Hedberg

46D Alma Road, 7700 Rosebank, SOUTH AFRICA

Tel/fax (home): +27-21-685-6472

Cell: +27-82-853-5352

Iridium SatPhone: +8816-315-19119

Email: calle.hedberg@xxxxxxxxx

Skype: calle_hedberg

*******************************************

References