$schema: "https://json-schema.org/draft/2020-12/schema"

title: "PGx interpretation format"
description: "PGx interpretation format"
type: "object"

unevaluatedProperties: false

allOf:
  - $ref: "#/definitions/PGxInterpretations"
  - properties:
      _version:
        $ref: "../../core.json#/definitions/Version"
      sample_limitations:
        type: array
        items:
          type: string

definitions:
  PGxDrugGuidance:
     type: array
     items:
       type: object
       $ref: "../../structs.json#/definitions/PGxDrugGuidance"
  PGxFindings:
    type: array
    items:
      type: object
      $ref: "../../structs.json#/definitions/PGxFinding"
  PGxInterpretations:
    properties:
      findings:
        $ref: "#/definitions/PGxFindings"
      drug_guidance:
        $ref: "#/definitions/PGxDrugGuidance"
