{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "$id": "https://taxonmark.com/api/v1/types/ai-medical-software-lineage",
    "title": "AI-Enabled Medical Software Lineage Record",
    "type": "object",
    "required": [
        "device_name",
        "manufacturer",
        "udi_di",
        "regulator"
    ],
    "properties": {
        "device_name": {
            "title": "Device / SaMD name",
            "type": "string",
            "maxLength": 1000
        },
        "manufacturer": {
            "title": "Manufacturer",
            "type": "string",
            "maxLength": 1000
        },
        "udi_di": {
            "title": "UDI-DI",
            "type": "string",
            "maxLength": 1000
        },
        "udi_pi": {
            "title": "UDI-PI (version)",
            "type": "string",
            "maxLength": 1000
        },
        "regulator": {
            "title": "Regulator",
            "type": "string",
            "enum": [
                "FDA",
                "EU MDR",
                "CDSCO",
                "MHRA",
                "TGA",
                "PMDA",
                "other"
            ]
        },
        "clearance_number": {
            "title": "Clearance / certificate number",
            "type": "string",
            "maxLength": 1000
        },
        "risk_class": {
            "title": "Device risk class",
            "type": "string",
            "maxLength": 1000
        },
        "model_release_doi": {
            "title": "AI system release ID",
            "type": "string",
            "format": "doi",
            "description": "A Taxonmark ID (for example TM.AI.2026.7KQ2X) or a DOI registered elsewhere"
        },
        "validation_refs": {
            "title": "Validation study IDs",
            "type": "array",
            "items": {
                "type": "string"
            },
            "description": "Taxonmark IDs (for example TM.AI.2026.7KQ2X) or DOIs registered elsewhere"
        },
        "pccp": {
            "title": "Predetermined change control plan",
            "type": "boolean"
        },
        "post_market_report_url": {
            "title": "Post-market performance report",
            "type": "string",
            "format": "uri"
        }
    },
    "additionalProperties": true
}