$schema: "https://json-schema.org/draft/2020-12/schema"
title: "Report"
type: "object"

properties:
  report_id:
    $ref: '../ids.json#/definitions/ReportId'
  run_id:
    $ref: '../ids.json#/definitions/RunId'
  report_dataset_id:
    $ref: '../ids.json#/definitions/DataSetId'
  stage:
    $ref: "../core.json#/definitions/ReportStage"
  status:
    $ref: "../core.json#/definitions/Status"
  supersedes_report_id:
    $ref: '../ids.json#/definitions/ReportId'
  labels:
    type: array
    items:
      $ref: '../core.json#/definitions/ReportLabel'
  released_to_patient:
    $ref: '../core.json#/definitions/ReleasedToPatient'
  released_to_provider:
    $ref: '../core.json#/definitions/ReleasedToProvider'

required:
  - report_id
