{
  "openapi": "3.0.3",
  "info": {
    "title": "WHO PreQual Document Detail API",
    "description": "Logical model for document details\nfrom the WHO PreQual API (DocumentDetails).",
    "version": "1.0.0"
  },
  "paths": {
    "/StructureDefinition-PreQualDocumentDetail.schema.json": {
      "get": {
        "summary": "JSON Schema definition for the Logical Model StructureDefinition-PreQualDocumentDetail",
        "description": "This endpoint serves the JSON Schema definition for the Logical Model StructureDefinition-PreQualDocumentDetail.",
        "responses": {
          "200": {
            "description": "The JSON Schema for StructureDefinition-PreQualDocumentDetail",
            "content": {
              "application/schema+json": {
                "schema": {
                  "$ref": "./StructureDefinition-PreQualDocumentDetail.schema.json"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "StructureDefinition-PreQualDocumentDetail": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "$id": "http://smart.who.int/base/StructureDefinition-PreQualDocumentDetail.schema.json",
        "title": "WHO PreQual Document Detail",
        "description": "Logical model for document details\nfrom the WHO PreQual API (DocumentDetails).",
        "type": "object",
        "properties": {
          "resourceType": {
            "type": "string",
            "const": "PreQualDocumentDetail",
            "description": "Resource type identifier for PreQualDocumentDetail logical model"
          },
          "documentId": {
            "type": "object",
            "description": "Document ID"
          },
          "documentName": {
            "type": "string",
            "description": "Document name"
          },
          "documentType": {
            "type": "string",
            "description": "Document type code from PreQualDatabaseMetadata (e.g. ProductInsert, Photo, VSPAR)"
          },
          "versionId": {
            "type": "string",
            "description": "Document version ID"
          },
          "fileExtension": {
            "type": "string",
            "description": "File extension (e.g. pdf, jpg)"
          },
          "fileType": {
            "type": "string",
            "description": "File type (e.g. PDF, JPEG)"
          }
        },
        "required": [
          "resourceType"
        ],
        "resourceDefinition": "http://smart.who.int/pcmt-vaxprequal/StructureDefinition/PreQualDocumentDetail",
        "fhir:parent": "http://hl7.org/fhir/StructureDefinition/Base"
      }
    }
  }
}