← Back to team overview

dhis2-devs team mailing list archive

Re: Tracker Linking a Child to more than one Mother

 

Hi David,

I certainly understand the value of having this as an option, and I think
in general it would be nice to be able to (but not forced) to configure the
system to display a warning about preexisting relationships for that
particular TEI when the user creates a new relationship.

One question that must be addressed is whether there should be a warning
that lists all types of relationships, or just relationships of the same
type as the user is trying to create.

Knut

On Fri, Jun 24, 2016 at 2:30 PM, David Muturi <dnmuturi@xxxxxxxxx> wrote:

> Hi Knut,
> Thank you for you response. Looking at this outside the system, logically
> a child cannot belong to more than one mother when both mothers are alive.
> The system allows this to happen, another way of looking at it is when
> people share names one would want to pick the correct child for each
> mother, as it is now, one child may end up being assigned multiple mothers
> in mnch program for instance.
> I would not recommend restricting but rather a warning to the user that
> the child already has an existing relationship. I will put in a blue print
> for this as advised.
> rgds
> David
>
> 2016-06-24 15:21 GMT+03:00 Knut Staring <knutst@xxxxxxxxx>:
>
>> Hi David,
>>
>> Obviously, often you would want to have multiple relationships, e.g. a
>> mother often has more than one child. So I think what you are asking for is
>> a new functionality to be able to restrict some relationships to be of type
>> one-to-many, instead of many-to-many. You should probably write this up as
>> a blueprint to be considered for 2.25.
>>
>> Knut
>>
>> On Fri, Jun 24, 2016 at 8:47 AM, David Muturi <dnmuturi@xxxxxxxxx> wrote:
>>
>>> Hi Devs,
>>> Are there any plans to address the issue below like issuing a warning
>>> message when someone tries to link a record in a relation ship thats
>>> already linked to another?
>>> rgds
>>> David
>>> On 23 Jun 2016 20:50, "David Muturi" <dnmuturi@xxxxxxxxx> wrote:
>>>
>>>> Hi Devs,
>>>> I have noticed that it is possible to link a child enrolled in a child
>>>> program to more than one mother. I have even tested on the online dhis2
>>>> demo using the mnch and child programmes. Is it possible to prevent this or
>>>> atleast show a message that the child is already linked to a mother so that
>>>> the user knows that they are double linking the child ?
>>>> rgds
>>>> David
>>>>
>>>
>>> _______________________________________________
>>> Mailing list: https://launchpad.net/~dhis2-devs
>>> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
>>> Unsubscribe : https://launchpad.net/~dhis2-devs
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>>
>>
>>
>> --
>> Knut Staring
>> Dept. of Informatics, University of Oslo
>> Norway: +4791880522
>> Skype: knutstar
>> http://dhis2.org
>>
>
>


-- 
Knut Staring
Dept. of Informatics, University of Oslo
Norway: +4791880522
Skype: knutstar
http://dhis2.org

Follow ups

References