{
  "$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"
    },
    "count": {
      "type": "integer"
    },
    "schemas": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "filename": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "valueSetUrl": {
            "type": "string"
          },
          "codeCount": {
            "type": "integer"
          }
        },
        "required": [
          "filename",
          "title",
          "url"
        ]
      }
    }
  },
  "required": [
    "type",
    "count",
    "schemas"
  ],
  "example": {
    "type": "valueset",
    "count": 13,
    "schemas": [
      {
        "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. Generated from FHIR expansions using IRI format.",
        "url": "./ValueSet-Actors.schema.json",
        "valueSetUrl": "http://smart.who.int/trust/ValueSet/Actors",
        "codeCount": 5
      },
      {
        "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. Generated from FHIR expansions using IRI format.",
        "url": "./ValueSet-PayloadTypes.schema.json",
        "valueSetUrl": "http://smart.who.int/trust/ValueSet/PayloadTypes",
        "codeCount": 1
      },
      {
        "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. Generated from FHIR expansions using IRI format.",
        "url": "./ValueSet-KeyUsage.schema.json",
        "valueSetUrl": "http://smart.who.int/trust/ValueSet/KeyUsage",
        "codeCount": 10
      },
      {
        "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. Generated from FHIR expansions using IRI format.",
        "url": "./ValueSet-ConnectionTypes.schema.json",
        "valueSetUrl": "http://smart.who.int/trust/ValueSet/ConnectionTypes",
        "codeCount": 2
      },
      {
        "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. Generated from FHIR expansions using IRI format.",
        "url": "./ValueSet-KeyUsage-UAT.schema.json",
        "valueSetUrl": "http://smart.who.int/trust/ValueSet/KeyUsage-UAT",
        "codeCount": 10
      },
      {
        "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. Generated from FHIR expansions using IRI format.",
        "url": "./ValueSet-Domains-UAT.schema.json",
        "valueSetUrl": "http://smart.who.int/trust/ValueSet/Domains-UAT",
        "codeCount": 4
      },
      {
        "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. Generated from FHIR expansions using IRI format.",
        "url": "./ValueSet-Domains-DEV.schema.json",
        "valueSetUrl": "http://smart.who.int/trust/ValueSet/Domains-DEV",
        "codeCount": 4
      },
      {
        "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. Generated from FHIR expansions using IRI format.",
        "url": "./ValueSet-Domains.schema.json",
        "valueSetUrl": "http://smart.who.int/trust/ValueSet/Domains",
        "codeCount": 4
      },
      {
        "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. Generated from FHIR expansions using IRI format.",
        "url": "./ValueSet-Transactions.schema.json",
        "valueSetUrl": "http://smart.who.int/trust/ValueSet/Transactions",
        "codeCount": 3
      },
      {
        "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. Generated from FHIR expansions using IRI format.",
        "url": "./ValueSet-Participants-UAT.schema.json",
        "valueSetUrl": "http://smart.who.int/trust/ValueSet/Participants-UAT",
        "codeCount": 48
      },
      {
        "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. Generated from FHIR expansions using IRI format.",
        "url": "./ValueSet-Participants.schema.json",
        "valueSetUrl": "http://smart.who.int/trust/ValueSet/Participants",
        "codeCount": 35
      },
      {
        "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. Generated from FHIR expansions using IRI format.",
        "url": "./ValueSet-Participants-DEV.schema.json",
        "valueSetUrl": "http://smart.who.int/trust/ValueSet/Participants-DEV",
        "codeCount": 50
      },
      {
        "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. Generated from FHIR expansions using IRI format.",
        "url": "./ValueSet-KeyUsage-DEV.schema.json",
        "valueSetUrl": "http://smart.who.int/trust/ValueSet/KeyUsage-DEV",
        "codeCount": 10
      }
    ]
  }
}