Hi Uwe On 27 May 2016 at 12:45, Uwe Wahser <u...@wahser.de> wrote: > Hi Lars, > > can you kindly verify your explanation about uniqueness of option codes? > > It would be great if they hadn't to be unique system-wide, but I just tested > it > on snapshot, and it seems to me that option codes codes must still be unique. > Which is in fact not really interesting: this way you cannot use simple F and > M > for female/male as F might stand for False in another category. This is > especially difficult when you are dependent on the codes that are coming from > a > source system.
Agree. That is in fact what address in my proposal. codes (and labels) should be unique within the scope of a codelist. Many categories can draw off a codelist. There can be many codelists. Codelists represent a list of possible codes for a given concept ( age_group, gender, disease, stock status etc). Codelists should be importable/exportable to other systems. Hence there are no uniqueness requirements across codelists. Your temporary solution is probably best you can do at present. > My temporary solution is to prefix each code with a code for the category e.g. > GEN.F/GEN.M for gender female/male and HPY.T/HPY.F for happy or not happy. But > that's not really nice for the outputs and exports. Imagine having a simple > number code (like Month) that is presented as MON.10, Mon.11 etc. in charts > and > pivots ... > > Thanks and regards, > > Uwe > >> Bob Jolliffe <bobjolli...@gmail.com> hat am 23. Mai 2016 um 15:09 >> geschrieben: >> >> >> I think (semantically) the correct way is to create a new "Unknown" >> option, though it should have a different code and uid from other >> unknowns. The displayed label just happens to be the same but the >> underlying concept is different. That is, they actually represent the >> likes of "Unknown age", "Unknown test result", "Unknown sex" etc. >> Despite sharing the same text label, they are really quite different >> options. >> >> There is a similar issue we have grappled with >> categories/categoryOptions which is resolved in a different (also >> slightly unsatisfactory) way. >> >> My longer term view is that options should be able to be reused in >> different optionsets, but not in a completely free manner. >> >> There is some experience of the problem outside of dhis2 and I believe >> the established consensus is that >> (i) codes/options in a controlled vocabulary are contained in a code >> list. Every item in that list should be uniquely identifiable. >> (ii) these items should relate to a specific concept (age, disease, >> test result etc) >> (ii) value sets (such as categories and optionsets in dhis2) should >> be selected from one and only one codelist. There can be any number >> of valuesets for any one codelist. This allows for reuse of items but >> disallows a valueset with mixed concepts (ie you couldn't construct an >> optionset containing 'Malaria','Male','under5','Unknown') >> >> If we do get to re-examine our model in this area, this is the >> approach I would advocate. >> >> >> >> On 23 May 2016 at 12:35, Lars Helge Øverland <l...@dhis2.org> wrote: >> > Hi Lise, >> > >> > at the moment you must create a new "Unknown" option. You can give it the >> > same name and code though as the other Unknowns. The uid will be different. >> > >> > It is debatable whether this is the right way. We are considering whether >> > to >> > change the design to allow for re-use of options. >> > >> > regards, >> > >> > Lars >> > >> > >> > On Sun, May 22, 2016 at 6:50 PM, GROUT, Lise <gro...@who.int> wrote: >> >> >> >> Dear Markus and Prosper, >> >> >> >> >> >> >> >> Thank you for your help! >> >> >> >> >> >> >> >> So if I understand correctly, I have to create different options (with >> >> different UID and codes) but I can reuse the same option name? >> >> >> >> >> >> >> >> Thank you! >> >> >> >> >> >> >> >> Lise. >> >> >> >> >> >> >> >> From: Prosper BT [mailto:ptb3...@gmail.com] >> >> Sent: 22 May 2016 18:11 >> >> To: GROUT, Lise; dhis2-users@lists.launchpad.net >> >> Subject: Re: [Dhis2-users] Option, option set and dataelement >> >> >> >> >> >> >> >> Dear Lise >> >> >> >> >> >> >> >> We don't have uniqueness in options across different option sets. So it's >> >> possible to use same options names in different options sets. >> >> >> >> >> >> >> >> Regards >> >> >> >> 22, 2016, 6:51 PM GROUT, Lise <gro...@who.int> wrote: >> >> >> >> Dear all, >> >> >> >> >> >> >> >> Sorry for this basic question but I prefer to ask for confirmation. >> >> >> >> >> >> >> >> Can we use the same option in different option sets (for example >> >> positive/negative in different option Sets) and the same option sets in >> >> different dataelements (for example the option sets results for different >> >> tests)? >> >> >> >> >> >> >> >> Thanks! >> >> >> >> >> >> >> >> Lise. >> >> >> >> >> >> >> >> _______________________________________________ >> >> Mailing list: https://launchpad.net/~dhis2-users >> >> Post to : dhis2-users@lists.launchpad.net >> >> Unsubscribe : https://launchpad.net/~dhis2-users >> >> More help : https://help.launchpad.net/ListHelp >> >> >> >> >> >> _______________________________________________ >> >> Mailing list: https://launchpad.net/~dhis2-users >> >> Post to : dhis2-users@lists.launchpad.net >> >> Unsubscribe : https://launchpad.net/~dhis2-users >> >> More help : https://help.launchpad.net/ListHelp >> >> >> > >> > >> > >> > -- >> > Lars Helge Øverland >> > Lead developer, DHIS 2 >> > University of Oslo >> > Skype: larshelgeoverland >> > l...@dhis2.org >> > http://www.dhis2.org >> > >> > >> > _______________________________________________ >> > Mailing list: https://launchpad.net/~dhis2-users >> > Post to : dhis2-users@lists.launchpad.net >> > Unsubscribe : https://launchpad.net/~dhis2-users >> > More help : https://help.launchpad.net/ListHelp >> > >> >> _______________________________________________ >> Mailing list: https://launchpad.net/~dhis2-users >> Post to : dhis2-users@lists.launchpad.net >> Unsubscribe : https://launchpad.net/~dhis2-users >> More help : https://help.launchpad.net/ListHelp _______________________________________________ Mailing list: https://launchpad.net/~dhis2-users Post to : dhis2-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~dhis2-users More help : https://help.launchpad.net/ListHelp