Skip to content

Class: Choice

A single permissible value for a dropdown, radio, or checkbox field. In REDCap CSV format, choices are encoded as a pipe-delimited string, but this class provides a structured representation for programmatic generation and validation.

URI: [redcap_dd:Choice](https://w3id.org/linkml/redcap-data-dictionary/Choice)
 classDiagram
    class Choice
    click Choice href "../Choice/"
      Choice : label

      Choice : raw_value
## Slots | Name | Cardinality and Range | Description | Inheritance | | --- | --- | --- | --- | | [raw_value](raw_value.md) | 1
[String](String.md) | The stored value (code) for this choice | direct | | [label](label.md) | 1
[String](String.md) | The human-readable display label for this choice (e | direct | ## Identifier and Mapping Information ### Schema Source * from schema: https://w3id.org/linkml/redcap-data-dictionary ## Mappings | Mapping Type | Mapped Value | | --- | --- | | self | redcap_dd:Choice | | native | redcap_dd:Choice | ## LinkML Source ### Direct
name: Choice
description: A single permissible value for a dropdown, radio, or checkbox field.
  In REDCap CSV format, choices are encoded as a pipe-delimited string, but this class
  provides a structured representation for programmatic generation and validation.
from_schema: https://w3id.org/linkml/redcap-data-dictionary
attributes:
  raw_value:
    name: raw_value
    description: The stored value (code) for this choice. In ontology-based models,
      this typically encodes the ontology prefix and concept ID (e.g., 'snomedct_248152002').
      Must contain only lowercase letters, numbers, and underscores to comply with
      REDCap naming rules.
    from_schema: https://w3id.org/linkml/redcap-data-dictionary
    rank: 1000
    domain_of:
    - Choice
    range: string
    required: true
    pattern: ^[a-z0-9_]*$
  label:
    name: label
    description: The human-readable display label for this choice (e.g., 'Female',
      'Male', 'Unknown').
    from_schema: https://w3id.org/linkml/redcap-data-dictionary
    rank: 1000
    domain_of:
    - Choice
    range: string
    required: true
### Induced
name: Choice
description: A single permissible value for a dropdown, radio, or checkbox field.
  In REDCap CSV format, choices are encoded as a pipe-delimited string, but this class
  provides a structured representation for programmatic generation and validation.
from_schema: https://w3id.org/linkml/redcap-data-dictionary
attributes:
  raw_value:
    name: raw_value
    description: The stored value (code) for this choice. In ontology-based models,
      this typically encodes the ontology prefix and concept ID (e.g., 'snomedct_248152002').
      Must contain only lowercase letters, numbers, and underscores to comply with
      REDCap naming rules.
    from_schema: https://w3id.org/linkml/redcap-data-dictionary
    rank: 1000
    owner: Choice
    domain_of:
    - Choice
    range: string
    required: true
    pattern: ^[a-z0-9_]*$
  label:
    name: label
    description: The human-readable display label for this choice (e.g., 'Female',
      'Male', 'Unknown').
    from_schema: https://w3id.org/linkml/redcap-data-dictionary
    rank: 1000
    owner: Choice
    domain_of:
    - Choice
    range: string
    required: true