{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/ValueSets.schema.json",
  "title": "ValueSet Enumeration Schema",
  "description": "JSON Schema defining the structure of the ValueSet enumeration endpoint response",
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "valueset",
      "description": "The type of schemas enumerated (valueset)"
    },
    "count": {
      "type": "integer",
      "description": "Total number of schemas available"
    },
    "schemas": {
      "type": "array",
      "description": "Array of available schemas",
      "items": {
        "type": "object",
        "properties": {
          "filename": {
            "type": "string",
            "description": "Schema filename"
          },
          "id": {
            "type": "string",
            "description": "Schema $id"
          },
          "title": {
            "type": "string",
            "description": "Schema title"
          },
          "description": {
            "type": "string",
            "description": "Schema description"
          },
          "url": {
            "type": "string",
            "description": "Relative URL to the schema file"
          },
          "valueSetUrl": {
            "type": "string",
            "description": "FHIR canonical URL of the ValueSet"
          },
          "codeCount": {
            "type": "integer",
            "description": "Number of codes in the ValueSet"
          }
        },
        "required": [
          "filename",
          "title",
          "url"
        ]
      }
    }
  },
  "required": [
    "type",
    "count",
    "schemas"
  ],
  "example": {
    "type": "valueset",
    "count": 24,
    "schemas": [
      {
        "filename": "ValueSet-CDHIv2.2.schema.json",
        "id": "http://smart.who.int/base/ValueSet-CDHIv2.2.schema.json",
        "title": "Digital Health Interventions for Healthcare Providers Schema",
        "description": "JSON Schema for Digital Health Interventions for Healthcare Providers ValueSet codes. Values are represented as Coding objects with 'system' and 'code' properties.",
        "url": "./ValueSet-CDHIv2.2.schema.json",
        "valueSetUrl": "http://smart.who.int/base/ValueSet/CDHIv2.2"
      },
      {
        "filename": "ValueSet-CDHIv2.1.schema.json",
        "id": "http://smart.who.int/base/ValueSet-CDHIv2.1.schema.json",
        "title": "Digital Health Interventions for Persons Schema",
        "description": "JSON Schema for Digital Health Interventions for Persons ValueSet codes. Values are represented as Coding objects with 'system' and 'code' properties.",
        "url": "./ValueSet-CDHIv2.1.schema.json",
        "valueSetUrl": "http://smart.who.int/base/ValueSet/CDHIv2.1"
      },
      {
        "filename": "ValueSet-CDHIv2.3.schema.json",
        "id": "http://smart.who.int/base/ValueSet-CDHIv2.3.schema.json",
        "title": "Digital Health Interventions for Health Management and Support Personnel Schema",
        "description": "JSON Schema for Digital Health Interventions for Health Management and Support Personnel ValueSet codes. Values are represented as Coding objects with 'system' and 'code' properties.",
        "url": "./ValueSet-CDHIv2.3.schema.json",
        "valueSetUrl": "http://smart.who.int/base/ValueSet/CDHIv2.3"
      },
      {
        "filename": "ValueSet-CDSCv1.schema.json",
        "id": "http://smart.who.int/base/ValueSet-CDSCv1.schema.json",
        "title": "Health System Challenges Schema",
        "description": "JSON Schema for Health System Challenges ValueSet codes. Values are represented as Coding objects with 'system' and 'code' properties.",
        "url": "./ValueSet-CDSCv1.schema.json",
        "valueSetUrl": "http://smart.who.int/base/ValueSet/CDSCv1"
      },
      {
        "filename": "ValueSet-SGAuthoringPersonaTypesVS.schema.json",
        "id": "http://smart.who.int/base/ValueSet-SGAuthoringPersonaTypesVS.schema.json",
        "title": "SMART Guidelines Authoring Persona Types ValueSet Schema",
        "description": "JSON Schema for SMART Guidelines Authoring Persona Types ValueSet ValueSet codes. Values are represented as Coding objects with 'system' and 'code' properties.",
        "url": "./ValueSet-SGAuthoringPersonaTypesVS.schema.json",
        "valueSetUrl": "http://smart.who.int/base/ValueSet/SGAuthoringPersonaTypesVS"
      },
      {
        "filename": "ValueSet-CDHIv1.2.schema.json",
        "id": "http://smart.who.int/base/ValueSet-CDHIv1.2.schema.json",
        "title": "Digital Health Interventions for Health Workers Schema",
        "description": "JSON Schema for Digital Health Interventions for Health Workers ValueSet codes. Values are represented as Coding objects with 'system' and 'code' properties.",
        "url": "./ValueSet-CDHIv1.2.schema.json",
        "valueSetUrl": "http://smart.who.int/base/ValueSet/CDHIv1.2"
      },
      {
        "filename": "ValueSet-CDSCv2.D.schema.json",
        "id": "http://smart.who.int/base/ValueSet-CDSCv2.D.schema.json",
        "title": "Services and Application Types: Data Management Services Schema",
        "description": "JSON Schema for Services and Application Types: Data Management Services ValueSet codes. Values are represented as Coding objects with 'system' and 'code' properties.",
        "url": "./ValueSet-CDSCv2.D.schema.json",
        "valueSetUrl": "http://smart.who.int/base/ValueSet/CDSCv2.D"
      },
      {
        "filename": "ValueSet-CDSCv2.C.schema.json",
        "id": "http://smart.who.int/base/ValueSet-CDSCv2.C.schema.json",
        "title": "Services and Application Types: Registries and Directories Schema",
        "description": "JSON Schema for Services and Application Types: Registries and Directories ValueSet codes. Values are represented as Coding objects with 'system' and 'code' properties.",
        "url": "./ValueSet-CDSCv2.C.schema.json",
        "valueSetUrl": "http://smart.who.int/base/ValueSet/CDSCv2.C"
      },
      {
        "filename": "ValueSet-CDHIv1.schema.json",
        "id": "http://smart.who.int/base/ValueSet-CDHIv1.schema.json",
        "title": "Classification of Digital Health Interventions v1 Schema",
        "description": "JSON Schema for Classification of Digital Health Interventions v1 ValueSet codes. Values are represented as Coding objects with 'system' and 'code' properties.",
        "url": "./ValueSet-CDHIv1.schema.json",
        "valueSetUrl": "http://smart.who.int/base/ValueSet/CDHIv1"
      },
      {
        "filename": "ValueSets.schema.json",
        "id": "#/ValueSets.schema.json",
        "title": "ValueSet Enumeration Schema",
        "description": "JSON Schema defining the structure of the ValueSet enumeration endpoint response",
        "url": "./ValueSets.schema.json"
      },
      {
        "filename": "ValueSet-CoreDataElementTypeVS.schema.json",
        "id": "http://smart.who.int/base/ValueSet-CoreDataElementTypeVS.schema.json",
        "title": "Core Data Element Type Value Set Schema",
        "description": "JSON Schema for Core Data Element Type Value Set ValueSet codes. Values are represented as Coding objects with 'system' and 'code' properties.",
        "url": "./ValueSet-CoreDataElementTypeVS.schema.json",
        "valueSetUrl": "http://smart.who.int/base/ValueSet/CoreDataElementTypeVS"
      },
      {
        "filename": "ValueSet-CDHIv1.3.schema.json",
        "id": "http://smart.who.int/base/ValueSet-CDHIv1.3.schema.json",
        "title": "Digital Health Interventions for Health System Managers Schema",
        "description": "JSON Schema for Digital Health Interventions for Health System Managers ValueSet codes. Values are represented as Coding objects with 'system' and 'code' properties.",
        "url": "./ValueSet-CDHIv1.3.schema.json",
        "valueSetUrl": "http://smart.who.int/base/ValueSet/CDHIv1.3"
      },
      {
        "filename": "ValueSet-SGAuthoringSkillsVS.schema.json",
        "id": "http://smart.who.int/base/ValueSet-SGAuthoringSkillsVS.schema.json",
        "title": "SMART Guidelines Authoring Skills ValueSet Schema",
        "description": "JSON Schema for SMART Guidelines Authoring Skills ValueSet ValueSet codes. Values are represented as Coding objects with 'system' and 'code' properties.",
        "url": "./ValueSet-SGAuthoringSkillsVS.schema.json",
        "valueSetUrl": "http://smart.who.int/base/ValueSet/SGAuthoringSkillsVS"
      },
      {
        "filename": "ValueSet-CDSCv2.A.schema.json",
        "id": "http://smart.who.int/base/ValueSet-CDSCv2.A.schema.json",
        "title": "Services and Application Types: Point of Service Schema",
        "description": "JSON Schema for Services and Application Types: Point of Service ValueSet codes. Values are represented as Coding objects with 'system' and 'code' properties.",
        "url": "./ValueSet-CDSCv2.A.schema.json",
        "valueSetUrl": "http://smart.who.int/base/ValueSet/CDSCv2.A"
      },
      {
        "filename": "ValueSet-SGPersonaTypesVS.schema.json",
        "id": "http://smart.who.int/base/ValueSet-SGPersonaTypesVS.schema.json",
        "title": "Smart Guidelines Persona Types Value Set Schema",
        "description": "JSON Schema for Smart Guidelines Persona Types Value Set ValueSet codes. Values are represented as Coding objects with 'system' and 'code' properties.",
        "url": "./ValueSet-SGPersonaTypesVS.schema.json",
        "valueSetUrl": "http://smart.who.int/base/ValueSet/SGPersonaTypesVS"
      },
      {
        "filename": "ValueSet-CDHIv1.4.schema.json",
        "id": "http://smart.who.int/base/ValueSet-CDHIv1.4.schema.json",
        "title": "Digital Health Interventions: Data Services Schema",
        "description": "JSON Schema for Digital Health Interventions: Data Services ValueSet codes. Values are represented as Coding objects with 'system' and 'code' properties.",
        "url": "./ValueSet-CDHIv1.4.schema.json",
        "valueSetUrl": "http://smart.who.int/base/ValueSet/CDHIv1.4"
      },
      {
        "filename": "ValueSet-ISCO08ValueSet.schema.json",
        "id": "http://smart.who.int/base/ValueSet-ISCO08ValueSet.schema.json",
        "title": "ISCO-08 Value Set Schema",
        "description": "JSON Schema for ISCO-08 Value Set ValueSet codes. Values are represented as Coding objects with 'system' and 'code' properties.",
        "url": "./ValueSet-ISCO08ValueSet.schema.json",
        "valueSetUrl": "http://smart.who.int/base/ValueSet/ISCO08ValueSet"
      },
      {
        "filename": "ValueSet-CDHIv1.1.schema.json",
        "id": "http://smart.who.int/base/ValueSet-CDHIv1.1.schema.json",
        "title": "Digital Health Interventions for Clients Schema",
        "description": "JSON Schema for Digital Health Interventions for Clients ValueSet codes. Values are represented as Coding objects with 'system' and 'code' properties.",
        "url": "./ValueSet-CDHIv1.1.schema.json",
        "valueSetUrl": "http://smart.who.int/base/ValueSet/CDHIv1.1"
      },
      {
        "filename": "ValueSet-CDSCv2.B.schema.json",
        "id": "http://smart.who.int/base/ValueSet-CDSCv2.B.schema.json",
        "title": "Services and Application Types: Health System/Provider Administration Schema",
        "description": "JSON Schema for Services and Application Types: Health System/Provider Administration ValueSet codes. Values are represented as Coding objects with 'system' and 'code' properties.",
        "url": "./ValueSet-CDSCv2.B.schema.json",
        "valueSetUrl": "http://smart.who.int/base/ValueSet/CDSCv2.B"
      },
      {
        "filename": "ValueSet-CDHIv2.4.schema.json",
        "id": "http://smart.who.int/base/ValueSet-CDHIv2.4.schema.json",
        "title": "Digital Health Interventions: Data Services Schema",
        "description": "JSON Schema for Digital Health Interventions: Data Services ValueSet codes. Values are represented as Coding objects with 'system' and 'code' properties.",
        "url": "./ValueSet-CDHIv2.4.schema.json",
        "valueSetUrl": "http://smart.who.int/base/ValueSet/CDHIv2.4"
      },
      {
        "filename": "ValueSet-CDSCv2.schema.json",
        "id": "http://smart.who.int/base/ValueSet-CDSCv2.schema.json",
        "title": "Services and Application Types Schema",
        "description": "JSON Schema for Services and Application Types ValueSet codes. Values are represented as Coding objects with 'system' and 'code' properties.",
        "url": "./ValueSet-CDSCv2.schema.json",
        "valueSetUrl": "http://smart.who.int/base/ValueSet/CDSCv2"
      },
      {
        "filename": "ValueSet-DecisionTableActions.schema.json",
        "id": "http://smart.who.int/base/ValueSet-DecisionTableActions.schema.json",
        "title": "Smart Guidelines Decision Table Actions Schema",
        "description": "JSON Schema for Smart Guidelines Decision Table Actions ValueSet codes. Values are represented as Coding objects with 'system' and 'code' properties.",
        "url": "./ValueSet-DecisionTableActions.schema.json",
        "valueSetUrl": "http://smart.who.int/base/ValueSet/DecisionTableActions"
      },
      {
        "filename": "ValueSet-CDSCv2.E.schema.json",
        "id": "http://smart.who.int/base/ValueSet-CDSCv2.E.schema.json",
        "title": "Services and Application Types: Surveillance and Response Schema",
        "description": "JSON Schema for Services and Application Types: Surveillance and Response ValueSet codes. Values are represented as Coding objects with 'system' and 'code' properties.",
        "url": "./ValueSet-CDSCv2.E.schema.json",
        "valueSetUrl": "http://smart.who.int/base/ValueSet/CDSCv2.E"
      },
      {
        "filename": "ValueSet-CDHIv2.schema.json",
        "id": "http://smart.who.int/base/ValueSet-CDHIv2.schema.json",
        "title": "Classification of Digital Health Interventions v2 Schema",
        "description": "JSON Schema for Classification of Digital Health Interventions v2 ValueSet codes. Values are represented as Coding objects with 'system' and 'code' properties.",
        "url": "./ValueSet-CDHIv2.schema.json",
        "valueSetUrl": "http://smart.who.int/base/ValueSet/CDHIv2"
      }
    ]
  }
}