title: "Family Variant Testing Report Writing"
type: "object"

properties:
  toplines:
    title: Topline Finding(s)
    type: array
    minItems: 1
    items:
      allOf:
      - $ref: '../../structs.json#/definitions/ToplineFinding'
      - properties:
          finding:
            $ref: '../../core.json#/definitions/RareDiseaseToplineFinding'
  classifications:
    title: Classifications
    minItems: 1
    type: array
    items:
      $ref: '#/definitions/FamilyVariantClassification'
  next_steps:
    $ref: '../../structs.json#/definitions/ReportNextSteps'
  sample_limitations:
    title: Sample Limitations
    type: array
    items:
      type: string

definitions:
  FamilyVariantClassification:
    type: object
    additionalProperties: false
    required:
      - familial_variant_detected
      - location
      - classification
      - zygosity
    properties:
      variantfinding_id:
        $ref: '../../ids.json#/definitions/VariantFindingId'
      finding_type:
        $ref: '../../core.json#/definitions/FindingType'
      familial_variant_detected:
        title: Result
        $ref: '../../core.json#/definitions/FamilialVariantResult'
      location:
        title: Location
        type: string
      classification:
        title: ACMG Classification
        $ref: '../../core.json#/definitions/ACMGPlusNegativeClassification'
      zygosity:
        title: Zygosity
        $ref: '../../core.json#/definitions/Zygosity'
      variation:
        title: Variant Summary
        $ref: '../../structs.json#/definitions/FamilyVariantVariation'
      interpretation_description:
        title: Interpretation Description
        type: string
      variant_evidence:
        title: Variant Evidence
        type: string
      gene_info:
        title: Gene Information
        type: [ "string", "null" ]