drnikki / open-demographics

Open Demographics Initiative: An open standard for collecting identity/demographic data in open source communities.
http://open-demographics.com
Creative Commons Attribution Share Alike 4.0 International
107 stars 33 forks source link

Indicating that questions should allow a self-identify box #44

Open drnikki opened 6 years ago

drnikki commented 6 years ago

Problem: Some questions like sexual orientation include a "Self Identify" option as one of their choices.

It makes sense to me to include this as a property of the question object, like the prompt, rather than explicitly as the text of a choice. I'm wondering if "self-identify": "false", is sufficient to indicate to the consumer that they'll need to add that option and box to the choice list.

Note: there's a lot of work to do on this, and the scope of this issue is only how to indicate self-identify. Other parts of the schema are reviewed in other issues.

Proposed solution:

         ... more stuff up here
       "question": {
           "id-of-this-single-question-in-this-category" : {
             "type":"select-one",
             "self-identify": "false",
             "prompt": "How old are you?",
             "choices": [
               { "id": "019", "value": "0-19", "label": "0 - 19" },
               { "id": "2039", "value": "20-39", "label": "20 - 39" },
               { "id": "age-decline", "value": "decline", "label": "Prefer not to answer" }
               ]
             }
       }
 .... more stuff down here