{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$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.",
  "type": "object",
  "required": [
    "system",
    "code"
  ],
  "additionalProperties": false,
  "properties": {
    "system": {
      "type": "string"
    },
    "code": {
      "type": "string"
    }
  },
  "oneOf": [
    {
      "properties": {
        "system": {
          "const": "http://smart.who.int/trust/CodeSystem/Participants"
        },
        "code": {
          "enum": [
            "WHO"
          ]
        }
      }
    },
    {
      "properties": {
        "system": {
          "const": "http://smart.who.int/refmart/CodeSystems/REF_COUNTRY"
        },
        "code": {
          "enum": [
            "ALB",
            "AND",
            "ARM",
            "BEL",
            "BRA",
            "CYP",
            "CZE",
            "BEN",
            "EST",
            "FRO",
            "FIN",
            "FRA",
            "ISL",
            "IDN",
            "IRL",
            "LVA",
            "LTU",
            "MYS",
            "MLT",
            "MCO",
            "OMN",
            "NLD",
            "NZL",
            "POL",
            "PRT",
            "SMR",
            "SGP",
            "SVK",
            "SVN",
            "ESP",
            "SWE",
            "THA",
            "TGO",
            "TUR"
          ]
        }
      }
    }
  ],
  "narrative": "This schema validates Coding-shaped objects for the WHO GDHCN Trust Network Participant ValueSet. Each value must be an object with 'system' (CodeSystem URI) and 'code' (fragment after '#') properties. Display values are available at http://smart.who.int/trust/ValueSet-Participants.displays.json. The canonical IRI for a code can be reconstructed as system + '#' + code. For a complete listing of all ValueSets, see artifacts.html#terminology-value-sets.",
  "fhir:displays": "http://smart.who.int/trust/ValueSet-Participants.displays.json",
  "fhir:valueSet": "http://smart.who.int/trust/ValueSet/Participants",
  "fhir:version": "1.5.0",
  "fhir:expansionTimestamp": "2026-04-27T07:15:30+00:00"
}