{
  "$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": 15,
    "schemas": [
      {
        "filename": "ValueSet-Participants.schema.json",
        "id": "http://smart.who.int/trust/ValueSet-Participants.schema.json",
        "title": "WHO GDHCN Trust Network Participant Schema",
        "description": "JSON Schema for WHO GDHCN Trust Network Participant ValueSet codes. Values are represented as Coding objects with 'system' and 'code' properties.",
        "url": "./ValueSet-Participants.schema.json",
        "valueSetUrl": "http://smart.who.int/trust/ValueSet/Participants"
      },
      {
        "filename": "ValueSet-Domains-DEV.schema.json",
        "id": "http://smart.who.int/trust/ValueSet-Domains-DEV.schema.json",
        "title": "WHO GDHCN Trust Domains - DEV Schema",
        "description": "JSON Schema for WHO GDHCN Trust Domains - DEV ValueSet codes. Values are represented as Coding objects with 'system' and 'code' properties.",
        "url": "./ValueSet-Domains-DEV.schema.json",
        "valueSetUrl": "http://smart.who.int/trust/ValueSet/Domains-DEV"
      },
      {
        "filename": "ValueSet-Domains-UAT.schema.json",
        "id": "http://smart.who.int/trust/ValueSet-Domains-UAT.schema.json",
        "title": "WHO GDHCN Trust Domains - UAT Schema",
        "description": "JSON Schema for WHO GDHCN Trust Domains - UAT ValueSet codes. Values are represented as Coding objects with 'system' and 'code' properties.",
        "url": "./ValueSet-Domains-UAT.schema.json",
        "valueSetUrl": "http://smart.who.int/trust/ValueSet/Domains-UAT"
      },
      {
        "filename": "ValueSet-Domains.schema.json",
        "id": "http://smart.who.int/trust/ValueSet-Domains.schema.json",
        "title": "WHO GDHCN Trust Domains Schema",
        "description": "JSON Schema for WHO GDHCN Trust Domains ValueSet codes. Values are represented as Coding objects with 'system' and 'code' properties.",
        "url": "./ValueSet-Domains.schema.json",
        "valueSetUrl": "http://smart.who.int/trust/ValueSet/Domains"
      },
      {
        "filename": "ValueSet-KeyUsage-UAT.schema.json",
        "id": "http://smart.who.int/trust/ValueSet-KeyUsage-UAT.schema.json",
        "title": "WHO GDHCN  Key Usage ValueSet - UAT Schema",
        "description": "JSON Schema for WHO GDHCN  Key Usage ValueSet - UAT ValueSet codes. Values are represented as Coding objects with 'system' and 'code' properties.",
        "url": "./ValueSet-KeyUsage-UAT.schema.json",
        "valueSetUrl": "http://smart.who.int/trust/ValueSet/KeyUsage-UAT"
      },
      {
        "filename": "ValueSet-Actors.schema.json",
        "id": "http://smart.who.int/trust/ValueSet-Actors.schema.json",
        "title": "WHO GDHCN Actor ValueSet of actor codes Schema",
        "description": "JSON Schema for WHO GDHCN Actor ValueSet of actor codes ValueSet codes. Values are represented as Coding objects with 'system' and 'code' properties.",
        "url": "./ValueSet-Actors.schema.json",
        "valueSetUrl": "http://smart.who.int/trust/ValueSet/Actors"
      },
      {
        "filename": "ValueSet-Participants-DEV.schema.json",
        "id": "http://smart.who.int/trust/ValueSet-Participants-DEV.schema.json",
        "title": "WHO GDHCN Trust Network Participant - DEV Schema",
        "description": "JSON Schema for WHO GDHCN Trust Network Participant - DEV ValueSet codes. Values are represented as Coding objects with 'system' and 'code' properties.",
        "url": "./ValueSet-Participants-DEV.schema.json",
        "valueSetUrl": "http://smart.who.int/trust/ValueSet/Participants-DEV"
      },
      {
        "filename": "ValueSet-WHORegionalOffices.schema.json",
        "id": "http://smart.who.int/trust/ValueSet-WHORegionalOffices.schema.json",
        "title": "WHO Regional Offices Schema",
        "description": "JSON Schema for WHO Regional Offices ValueSet codes. Values are represented as Coding objects with 'system' and 'code' properties.",
        "url": "./ValueSet-WHORegionalOffices.schema.json",
        "valueSetUrl": "http://smart.who.int/trust/ValueSet/WHORegionalOffices"
      },
      {
        "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-ConnectionTypes.schema.json",
        "id": "http://smart.who.int/trust/ValueSet-ConnectionTypes.schema.json",
        "title": "WHO GDHCN Connection Types Schema",
        "description": "JSON Schema for WHO GDHCN Connection Types ValueSet codes. Values are represented as Coding objects with 'system' and 'code' properties.",
        "url": "./ValueSet-ConnectionTypes.schema.json",
        "valueSetUrl": "http://smart.who.int/trust/ValueSet/ConnectionTypes"
      },
      {
        "filename": "ValueSet-Transactions.schema.json",
        "id": "http://smart.who.int/trust/ValueSet-Transactions.schema.json",
        "title": "WHO GDHCN Transaction Codes Schema",
        "description": "JSON Schema for WHO GDHCN Transaction Codes ValueSet codes. Values are represented as Coding objects with 'system' and 'code' properties.",
        "url": "./ValueSet-Transactions.schema.json",
        "valueSetUrl": "http://smart.who.int/trust/ValueSet/Transactions"
      },
      {
        "filename": "ValueSet-KeyUsage-DEV.schema.json",
        "id": "http://smart.who.int/trust/ValueSet-KeyUsage-DEV.schema.json",
        "title": "WHO GDHCN  Key Usage ValueSet - DEV Schema",
        "description": "JSON Schema for WHO GDHCN  Key Usage ValueSet - DEV ValueSet codes. Values are represented as Coding objects with 'system' and 'code' properties.",
        "url": "./ValueSet-KeyUsage-DEV.schema.json",
        "valueSetUrl": "http://smart.who.int/trust/ValueSet/KeyUsage-DEV"
      },
      {
        "filename": "ValueSet-KeyUsage.schema.json",
        "id": "http://smart.who.int/trust/ValueSet-KeyUsage.schema.json",
        "title": "WHO GDHCN  Key Usage ValueSet Schema",
        "description": "JSON Schema for WHO GDHCN  Key Usage ValueSet ValueSet codes. Values are represented as Coding objects with 'system' and 'code' properties.",
        "url": "./ValueSet-KeyUsage.schema.json",
        "valueSetUrl": "http://smart.who.int/trust/ValueSet/KeyUsage"
      },
      {
        "filename": "ValueSet-Participants-UAT.schema.json",
        "id": "http://smart.who.int/trust/ValueSet-Participants-UAT.schema.json",
        "title": "WHO GDHCN Trust Network Participant - UAT Schema",
        "description": "JSON Schema for WHO GDHCN Trust Network Participant - UAT ValueSet codes. Values are represented as Coding objects with 'system' and 'code' properties.",
        "url": "./ValueSet-Participants-UAT.schema.json",
        "valueSetUrl": "http://smart.who.int/trust/ValueSet/Participants-UAT"
      },
      {
        "filename": "ValueSet-PayloadTypes.schema.json",
        "id": "http://smart.who.int/trust/ValueSet-PayloadTypes.schema.json",
        "title": "WHO GDHCN Payload Types Schema",
        "description": "JSON Schema for WHO GDHCN Payload Types ValueSet codes. Values are represented as Coding objects with 'system' and 'code' properties.",
        "url": "./ValueSet-PayloadTypes.schema.json",
        "valueSetUrl": "http://smart.who.int/trust/ValueSet/PayloadTypes"
      }
    ]
  }
}