{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/optum/json-schema/optum-pas-capability-statement-response-schema.json",
  "title": "PasCapabilityStatementResponse",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/optum-pascapabilitystatement-api-openapi.yml#/components/schemas/PasCapabilityStatementResponse",
  "type": "object",
  "properties": {
    "resourceType": {
      "type": "string"
    },
    "id": {
      "type": "string"
    },
    "text": {
      "$ref": "#/$defs/Narrative"
    },
    "name": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "date": {
      "type": "string",
      "format": "date-time"
    },
    "publisher": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "kind": {
      "type": "string"
    },
    "software": {
      "$ref": "#/$defs/CapabilityStatementSoftware"
    },
    "implementation": {
      "$ref": "#/$defs/CapabilityStatementImplementation"
    },
    "fhirVersion": {
      "type": "string"
    },
    "format": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "rest": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CapabilityStatementRest"
      }
    }
  },
  "$defs": {
    "CapabilityStatementImplementation": {
      "type": "object",
      "properties": {
        "description": {
          "type": "string"
        },
        "url": {
          "type": "string",
          "format": "uri"
        }
      }
    },
    "CapabilityStatementInteraction": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string"
        }
      }
    },
    "CapabilityStatementOperation": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "definition": {
          "type": "string",
          "format": "uri"
        }
      }
    },
    "CapabilityStatementResource": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string"
        },
        "profile": {
          "type": "string",
          "format": "uri"
        },
        "searchInclude": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "interaction": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CapabilityStatementInteraction"
          }
        },
        "operation": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CapabilityStatementOperation"
          }
        }
      }
    },
    "CapabilityStatementRest": {
      "type": "object",
      "properties": {
        "mode": {
          "type": "string"
        },
        "resource": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CapabilityStatementResource"
          }
        },
        "operation": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CapabilityStatementOperation"
          }
        }
      }
    },
    "CapabilityStatementSoftware": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "version": {
          "type": "string"
        }
      }
    },
    "Narrative": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string"
        },
        "div": {
          "type": "string"
        }
      }
    }
  }
}