{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cms-gov/json-schema/cms-gov-bundle-response-schema.json",
  "title": "BundleResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cms-gov-job-api-openapi.yml#/components/schemas/BundleResponse",
  "type": "object",
  "properties": {
    "entry": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/EntryResponse"
      },
      "x-go-name": "Entry"
    },
    "resourceType": {
      "description": "Bundle",
      "type": "string",
      "x-go-name": "ResourceType"
    },
    "total": {
      "description": "Total number of entries",
      "type": "integer",
      "format": "int64",
      "x-go-name": "Total"
    },
    "type": {
      "description": "Searchset",
      "type": "string",
      "x-go-name": "Type"
    }
  },
  "x-go-package": "github.com/CMSgov/bcda-app/bcda/models",
  "$defs": {
    "EntryResponse": {
      "type": "object",
      "properties": {
        "resource": {
          "type": "object",
          "properties": {
            "ExecutionPeriod": {
              "type": "object",
              "properties": {
                "end": {
                  "description": "Time job completed",
                  "type": "string",
                  "format": "date-time",
                  "x-go-name": "End"
                },
                "start": {
                  "description": "Time job started",
                  "type": "string",
                  "format": "date-time",
                  "x-go-name": "Start"
                }
              }
            },
            "identifier": {
              "type": "object",
              "properties": {
                "system": {
                  "description": "Url for jobs statuses",
                  "type": "string",
                  "x-go-name": "System"
                },
                "use": {
                  "description": "Official",
                  "type": "string",
                  "x-go-name": "Use"
                },
                "value": {
                  "description": "Job Id",
                  "type": "string",
                  "x-go-name": "Value"
                }
              },
              "x-go-name": "Identifier"
            },
            "input": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "object",
                    "properties": {
                      "text": {
                        "description": "BULK FHIR Export",
                        "type": "string",
                        "x-go-name": "Text"
                      }
                    },
                    "x-go-name": "Type"
                  },
                  "valueString": {
                    "description": "Original job request url",
                    "type": "string",
                    "x-go-name": "ValueString"
                  }
                }
              },
              "x-go-name": "Input"
            },
            "intent": {
              "description": "Order",
              "type": "string",
              "x-go-name": "Intent"
            },
            "resourceType": {
              "description": "Task",
              "type": "string",
              "x-go-name": "ResourceType"
            },
            "status": {
              "description": "Job Status",
              "type": "string",
              "x-go-name": "Status"
            }
          },
          "x-go-name": "Resource"
        }
      },
      "x-go-package": "github.com/CMSgov/bcda-app/bcda/models"
    }
  }
}