{
  "openapi": "3.1.0",
  "info": {
    "title": "Health Interventions and Recommendations (DAK) API",
    "description": "Logical Model for representing Health Interventions and Recommendations from a DAK. Overview of the health interventions and WHO, regional or national recommendations included within the DAK.",
    "version": "1.0.0"
  },
  "paths": {
    "/StructureDefinition-HealthInterventions.schema.json": {
      "get": {
        "summary": "JSON Schema definition for the Logical Model StructureDefinition-HealthInterventions",
        "description": "This endpoint serves the JSON Schema definition for the Logical Model StructureDefinition-HealthInterventions.",
        "responses": {
          "200": {
            "description": "The JSON Schema for StructureDefinition-HealthInterventions",
            "content": {
              "application/schema+json": {
                "schema": {
                  "$ref": "./StructureDefinition-HealthInterventions.schema.json"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "StructureDefinition-HealthInterventions": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "$id": "http://smart.who.int/base/StructureDefinition-HealthInterventions.schema.json",
        "title": "Health Interventions and Recommendations (DAK)",
        "description": "Logical Model for representing Health Interventions and Recommendations from a DAK. Overview of the health interventions and WHO, regional or national recommendations included within the DAK.",
        "type": "object",
        "properties": {
          "resourceType": {
            "type": "string",
            "const": "HealthInterventions",
            "description": "Resource type identifier for HealthInterventions logical model"
          },
          "id": {
            "type": "string",
            "description": "An identifier for the health intervention"
          },
          "description[x]": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "string",
                "format": "uri"
              }
            ],
            "description": "Description of the health intervention - either Markdown content or a URI to a Markdown file (absolute or relative to repository root)"
          },
          "reference": {
            "type": "array",
            "items": {
              "$ref": "StructureDefinition-DublinCore.schema.json"
            },
            "minItems": 1,
            "description": "Reference data element using Dublin Core metadata"
          }
        },
        "required": [
          "resourceType",
          "id",
          "reference"
        ],
        "allOf": [
          {
            "$ref": "./StructureDefinition-FHIRSchemaBase.schema.json"
          },
          {
            "type": "object",
            "properties": {
              "resourceDefinition": {
                "type": "string",
                "format": "uri",
                "const": "http://smart.who.int/base/StructureDefinition/HealthInterventions"
              },
              "fhir:parent": {
                "type": "string",
                "const": "http://hl7.org/fhir/StructureDefinition/Base"
              }
            }
          }
        ]
      }
    }
  }
}