{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "BBMRI Metadata",
    "description": "This is the blueprint of the metadata block specific for the BBMRI community",
    "type": "object",
    "properties": {
        "study_id": {
            "title": "Study ID",
            "description": "The unique ID or acronym for the study",
            "type": "string"
        },
        "study_name": {
            "title": "Study name",
            "description": "The name of the study in English",
            "type": "string"
        },
        "study_description": {
            "title": "Study Description",
            "description": "A description of the study aim",
            "type": "string"
        },
        "principal_investigator": {
            "title": "Principal Investigator",
            "description": "The name of the person responsible for the study or the principal investigator",
            "type": "string"
        },
        "study_design": {
            "title": "Study design",
            "description": "The type of study. Can be one or several of the following values.",
            "type": "array",
            "items": {
                "type": "string",
                "enum": [
                    "Case-control",
                    "Cohort",
                    "Cross-sectional",
                    "Longitudinal",
                    "Twin-study",
                    "Quality control",
                    "Population-based",
                    "Other"
                ]
            }
        },
        "disease": {
            "title": "Disease",
            "description": "The disease of main interest in the sample collection, if any. Can be several values MIABIS-21",
            "type": "string"
        },
        "categories_of_data_collected": {
            "title": "Categories of data collected",
            "description": "The type of data collected in the study, and if biological samples are part of the study. Can be one or several of the following values: Biological samples, Register data, Survey data, Physiological measurements, Imaging data, Medical records, Other",
            "type": "array",
            "items": {
                "type": "string",
                "enum": [
                    "Biological samples",
                    "Register data",
                    "Survey data",
                    "Physiological measurements",
                    "Imaging data",
                    "Medical records",
                    "Other"
                ]
            }
        },
        "planned_sampled_individuals": {
            "title": "Planned sampled individuals",
            "description": "Number of individuals with biological samples planned for the study",
            "type": "integer"
        },
        "planned_total_individuals": {
            "title": "Planned total individuals",
            "description": "Total number of individuals planned for the study with or without biological samples",
            "type": "integer"
        },
        "sex": {
            "title": "Sex",
            "description": "The sex of the study participants.",
            "type": "array",
            "items": {
                "type": "string",
                "enum": [
                    "Female",
                    "Male",
                    "Other"
                ]
            }
        },
        "age_interval": {
            "title": "Age interval",
            "description": "Age interval of youngest to oldest study participant, for example 40-80",
            "type": "string"
        },
        "material_type": {
            "title": "Material type",
            "description": "The nature of the biological samples that are included in the study, if any. Can be one or several of the following values: Whole blood, Plasma, Serum, Urine, Saliva, CSF, DNA, RNA, Tissue, Faeces, Other",
            "type": "array",
            "items": {
                "type": "string",
                "enum": [
                    "Whole blood",
                    "Plasma",
                    "Serum",
                    "Urine",
                    "Saliva",
                    "CSF",
                    "DNA",
                    "RNA",
                    "Tissue",
                    "Faeces",
                    "Other"
                ]
            }
        }
    },
    "additionalProperties": false
}