{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "$id": "https://taxonmark.com/api/v1/types/clinical-pathway-version",
    "title": "Clinical Pathway / Hospital Protocol Version",
    "type": "object",
    "required": [
        "institution",
        "pathway_name",
        "version",
        "effective_date"
    ],
    "properties": {
        "institution": {
            "title": "Institution",
            "type": "string",
            "maxLength": 1000
        },
        "pathway_name": {
            "title": "Pathway / protocol name",
            "type": "string",
            "maxLength": 1000
        },
        "version": {
            "title": "Version",
            "type": "string",
            "maxLength": 1000
        },
        "approved_by": {
            "title": "Approved by (committee)",
            "type": "string",
            "maxLength": 1000
        },
        "effective_date": {
            "title": "Effective date",
            "type": "string",
            "format": "date"
        },
        "accreditation_ref": {
            "title": "Accreditation reference (e.g. NABH)",
            "type": "string",
            "maxLength": 1000
        },
        "guideline_dois": {
            "title": "Guideline recommendation IDs followed",
            "type": "array",
            "items": {
                "type": "string"
            },
            "description": "Taxonmark IDs (for example TM.AI.2026.7KQ2X) or DOIs registered elsewhere"
        }
    },
    "additionalProperties": true
}