{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/gematik-health-care-provider-institution-list/latest.json",
  "title": "HCPIsRepository",
  "description": "List of all hcpis",
  "x-lintel": {
    "source": "https://www.schemastore.org/gematik-test-hcpis.json",
    "sourceSha256": "191d3925627f5304c3e0ec768f0944ef1c11a629161a662c3472650ba9465018",
    "fileMatch": [
      "**/testdata/institution/hcpi.yml",
      "**/testdata/institution/hcpi.yaml"
    ],
    "parsers": [
      "yaml"
    ]
  },
  "type": "object",
  "properties": {
    "hcpis": {
      "type": "object",
      "existingJavaType": "java.util.Map<String, Hcpi>",
      "additionalProperties": {
        "$ref": "#/$defs/Hcpi",
        "type": "object"
      }
    }
  },
  "$defs": {
    "Hcpi": {
      "title": "HCPI",
      "description": "An HCPI",
      "type": "object",
      "required": [
        "hcpiData",
        "cards"
      ],
      "properties": {
        "hcpiData": {
          "type": "object",
          "required": [
            "name",
            "telematik-id",
            "hcpiRole"
          ],
          "properties": {
            "name": {
              "type": "string"
            },
            "telematik-id": {
              "type": "string"
            },
            "hcpiRole": {
              "type": "string"
            }
          },
          "additionalProperties": false
        },
        "ownerTestsuite": {
          "type": "string"
        },
        "cards": {
          "type": "array",
          "items": {
            "$ref": "https://catalog.lintel.tools/schemas/schemastore/gematik-health-care-provider-institution-list/_shared/latest--gematik-test-patients.json#/$defs/Card",
            "type": "object"
          }
        }
      },
      "additionalProperties": false
    }
  }
}
