{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "$id": "https://taxonmark.com/api/v1/types/neurotech-data-descriptor",
    "title": "Neurotech (BCI) Device + Neural-Data Consent Descriptor",
    "type": "object",
    "required": [
        "data_modality",
        "consent_scope",
        "ethics_approval",
        "no_raw_data"
    ],
    "properties": {
        "device_udi_di": {
            "title": "Device UDI-DI",
            "type": "string",
            "maxLength": 1000
        },
        "data_modality": {
            "title": "Data modality",
            "type": "string",
            "enum": [
                "EEG",
                "ECoG",
                "intracortical",
                "fNIRS",
                "other"
            ]
        },
        "consent_scope": {
            "title": "Consent scope",
            "type": "string",
            "x-widget": "textarea",
            "maxLength": 20000
        },
        "ethics_approval": {
            "title": "Ethics board approval",
            "type": "string",
            "maxLength": 1000
        },
        "retention_policy": {
            "title": "Retention policy",
            "type": "string",
            "maxLength": 1000
        },
        "no_raw_data": {
            "title": "Confirm: descriptor only, no raw data",
            "type": "boolean"
        }
    },
    "additionalProperties": true
}