openapi: 3.2.0 info: title: AB2D 1. Export API description: This API Provides Part A (Hospital Insurance) & B (Medical Insurance) claim data to Part D (Prescription Drug Benefit) sponsors. Consistent with CMS' Final Rule to implement Section 50354 of the Bipartisan Budget Act of 2018, CMS is providing standalone Medicare Part D plan (PDP) sponsors the opportunity to request access to Medicare claims data. Access to Medicare claims data for their enrollees will help plans promote the appropriate use of medications and improve health outcomes, among other benefits. servers: - url: https://sandbox.ab2d.cms.gov description: Generated server url security: - bearerAuth: [] tags: - name: 1. Export description: API through which an authenticated and authorized PDP sponsor may request a bulk-data export from a server. paths: /api/v1/fhir/Patient/$export: get: tags: - 1. Export summary: Initiate Part A & B bulk claim export job operationId: exportAllPatients_2 parameters: - name: _type in: query description: String of comma-delimited FHIR resource objects. Only resources of the specified resource types(s) SHALL be included in the response. Currently, only ExplanationOfBenefit objects are supported required: false schema: type: string enum: - ExplanationOfBenefit - name: _outputFormat in: query description: The format for the requested bulk data files to be generated. Currently, only application/fhir+json is supported. required: false schema: type: string enum: - application/fhir+ndjson - application/ndjson - ndjson - name: _since in: query description: Beginning time of query. Returns all records "since" this time. At this time, it must be after 2020-02-13T00:00:00.000-05:00 required: false schema: type: date-time description: '2020-02-13T00:00:00.000-05:00' - name: _until in: query description: The _until parameter is only available with version 2 and version 3 of the API. required: false schema: type: date-time description: '2024-01-01T00:00:00.000-05:00' - name: Prefer in: header description: Value must be respond-async required: true schema: type: string default: respond-async enum: - respond-async responses: '202': description: Export request has started headers: Content-Location: description: Absolute URL of an endpoint for subsequent status requests (polling location) style: simple schema: type: string '429': description: Too many jobs are currently running. Either wait for currently running jobs to finish or cancel some/all of those jobs. headers: Content-Location: description: URLs of currently running jobs. To cancel one of those jobs, invoke the Status DELETE call. style: simple schema: type: string content: application/fhir+json: schema: $ref: '#/components/schemas/OperationOutcome' /api/v1/fhir/Group/{contractNumber}/$export: get: tags: - 1. Export summary: Initiate Part A & B bulk claim export job for a given contract number, DEPRECATED operationId: exportPatientsWithContract_1 parameters: - name: contractNumber in: path description: A contract number required: true schema: type: string minLength: 1 example: Z0000 - name: _type in: query description: String of comma-delimited FHIR resource objects. Only resources of the specified resource types(s) SHALL be included in the response. Currently, only ExplanationOfBenefit objects are supported required: false schema: type: string enum: - ExplanationOfBenefit - name: _outputFormat in: query description: The format for the requested bulk data files to be generated. Currently, only application/fhir+json is supported. required: false schema: type: string enum: - application/fhir+ndjson - application/ndjson - ndjson - name: _since in: query description: Beginning time of query. Returns all records "since" this time. At this time, it must be after 2020-02-13T00:00:00.000-05:00 required: false schema: type: date-time example: '2020-02-13T00:00:00.000-05:00' - name: _until in: query required: false schema: type: string format: date-time - name: Prefer in: header description: Value must be respond-async required: true schema: type: string default: respond-async enum: - respond-async responses: '202': description: Export request has started headers: Content-Location: description: Absolute URL of an endpoint for subsequent status requests (polling location) style: simple schema: type: string '429': description: Too many jobs are currently running. Either wait for currently running jobs to finish or cancel some/all of those jobs. headers: Content-Location: description: URLs of currently running jobs. To cancel one of those jobs, invoke the Status DELETE call. style: simple schema: type: string content: application/fhir+json: schema: $ref: '#/components/schemas/OperationOutcome' deprecated: true components: securitySchemes: bearerAuth: type: http name: bearerAuth scheme: bearer bearerFormat: JWT