{
  "_doc": "Synthetic request bodies for testing the RadVector API with a sandbox or live key. Every value is invented; no field holds patient data. Served at /portal/fixtures/synthetic-reports.json. Expected answers are what the packs state on 2026-10-17; a draft pack answers advisory (not usable_for_output) until validated.",
  "fixtures": [
    {
      "id": "fleischner-solid-7mm-high-risk",
      "route": "POST /v1/inference/evaluate",
      "expect": "Fleischner 2017 authoritative: solid single 6-8 mm nodule, high risk -> CT at 6-12 months then 18-24 months.",
      "body": {
        "study": {
          "modality": "ct",
          "region": "thorax",
          "exam_description": "CT chest without contrast",
          "age_years": 64,
          "sex": "M",
          "attributes": {
            "risk": "high"
          }
        },
        "findings": [
          {
            "label": "nodule",
            "region": "thorax",
            "laterality": "right",
            "composition": "solid",
            "measurement": {
              "value_mm": 7
            },
            "attributes": {
              "multiplicity": "single"
            }
          }
        ],
        "include_references": false
      }
    },
    {
      "id": "fleischner-text-mode",
      "route": "POST /v1/inference/evaluate",
      "expect": "Same verdict as the structured case, read from text.",
      "body": {
        "study": {
          "modality": "ct",
          "region": "thorax",
          "age_years": 64,
          "sex": "M"
        },
        "text": "PROCEDURE: CT chest without contrast.\nFINDINGS:\nA 7 mm solid nodule in the right upper lobe. No other nodules. Patient is a heavy smoker.\n"
      }
    },
    {
      "id": "fleischner-below-age",
      "route": "POST /v1/inference/evaluate",
      "expect": "Advisory with the below-age-range caveat (pack minimum 35).",
      "body": {
        "study": {
          "modality": "ct",
          "region": "thorax",
          "age_years": 29,
          "sex": "F"
        },
        "findings": [
          {
            "label": "nodule",
            "region": "thorax",
            "composition": "solid",
            "measurement": {
              "value_mm": 5
            }
          }
        ]
      }
    },
    {
      "id": "birads-stated-category",
      "route": "POST /v1/inference/evaluate",
      "expect": "BI-RADS echoes the stated category 3 with its management.",
      "body": {
        "study": {
          "modality": "mammo",
          "region": "breast",
          "age_years": 52,
          "sex": "F"
        },
        "text": "PROCEDURE: Diagnostic mammogram right breast.\nFINDINGS:\nA 9 mm circumscribed oval mass in the right breast, probably benign.\nIMPRESSION:\nBI-RADS 3.\n"
      }
    },
    {
      "id": "dexa-osteoporosis",
      "route": "POST /v1/inference/evaluate",
      "expect": "DEXA authoritative: T-score -2.9 at the femoral neck -> osteoporosis.",
      "body": {
        "study": {
          "modality": "dexa",
          "region": "spine",
          "age_years": 71,
          "sex": "F"
        },
        "text": "PROCEDURE: DXA bone density.\nFINDINGS:\nT score lumbar spine L1-L4: -1.8. T score left femoral neck: -2.9.\n"
      }
    },
    {
      "id": "ti-rads-undocumented-features",
      "route": "POST /v1/inference/evaluate",
      "expect": "TI-RADS (validated) defers naming shape and margin; deferral_code undocumented.",
      "body": {
        "study": {
          "modality": "us",
          "region": "neck",
          "age_years": 45,
          "sex": "F"
        },
        "text": "PROCEDURE: Ultrasound thyroid.\nFINDINGS:\nRight lobe: a 2.0 cm solid hypoechoic nodule.\n"
      }
    },
    {
      "id": "ti-rads-tr4-fna",
      "route": "POST /v1/inference/evaluate",
      "expect": "TI-RADS (validated, usable_for_output): TR4 at 1.8 cm -> FNA threshold reached.",
      "body": {
        "study": {
          "modality": "us",
          "region": "neck",
          "age_years": 45,
          "sex": "F"
        },
        "text": "PROCEDURE: Ultrasound thyroid.\nFINDINGS:\nRight lobe: a 1.8 cm solid hypoechoic nodule, wider than tall, smooth margins, no echogenic foci.\n"
      }
    },
    {
      "id": "pack-pin-mismatch",
      "route": "POST /v1/inference/evaluate",
      "expect": "409 pack_version_mismatch naming the live Fleischner version.",
      "body": {
        "study": {
          "modality": "ct",
          "region": "thorax",
          "age_years": 60
        },
        "findings": [
          {
            "label": "nodule",
            "region": "thorax",
            "composition": "solid",
            "measurement": {
              "value_mm": 7
            }
          }
        ],
        "pack_versions": {
          "fleischner": "fleischner-2017-r1"
        }
      }
    },
    {
      "id": "batch-two-evaluates",
      "route": "POST /v1/inference/evaluate/batch",
      "expect": "Two answers in order, each metered as if sent alone.",
      "body": {
        "requests": [
          {
            "study": {
              "modality": "ct",
              "region": "thorax",
              "age_years": 60,
              "attributes": {
                "risk": "low"
              }
            },
            "findings": [
              {
                "label": "nodule",
                "region": "thorax",
                "composition": "solid",
                "measurement": {
                  "value_mm": 4
                }
              }
            ]
          },
          {
            "study": {
              "modality": "ct",
              "region": "thorax",
              "age_years": 60,
              "attributes": {
                "risk": "high"
              }
            },
            "findings": [
              {
                "label": "nodule",
                "region": "thorax",
                "composition": "solid",
                "measurement": {
                  "value_mm": 9
                }
              }
            ]
          }
        ]
      }
    },
    {
      "id": "context-prepare-two-priors",
      "route": "POST /v1/context/prepare",
      "expect": "Priors ranked same-type first, the prior nodule size bound to its lesion, Fleischner listed as applicable, the open follow-up recommendation carried forward.",
      "body": {
        "current_text": "CT chest without contrast. Follow-up of pulmonary nodule.",
        "study_date": "2026-10-01",
        "age_years": 64,
        "priors": [
          {
            "date": "2026-03-28",
            "exam": "CT chest without contrast",
            "text": "PROCEDURE: CT chest without contrast.\nFINDINGS:\nA 6 mm solid nodule in the right upper lobe.\nIMPRESSION:\n1. 6 mm right upper lobe nodule.\nRECOMMENDATIONS:\nFollow-up CT chest in 6-12 months.\n"
          },
          {
            "date": "2025-11-02",
            "exam": "Ultrasound abdomen",
            "text": "PROCEDURE: Ultrasound abdomen.\nFINDINGS:\nNormal liver, gallbladder and kidneys.\nIMPRESSION:\nNormal.\n"
          }
        ]
      }
    },
    {
      "id": "results-normalize-fhir-observation",
      "route": "POST /v1/results/normalize",
      "expect": "One finding read from the Observation (solid 7 mm thoracic nodule, source named), graded by Fleischner.",
      "body": {
        "format": "fhir",
        "study": {
          "modality": "ct",
          "region": "thorax",
          "age_years": 64,
          "sex": "M",
          "attributes": {
            "risk": "high"
          }
        },
        "document": {
          "resourceType": "Observation",
          "status": "final",
          "code": {
            "text": "Pulmonary nodule"
          },
          "bodySite": {
            "text": "right upper lobe"
          },
          "device": {
            "display": "ExampleDetect v2.3"
          },
          "component": [
            {
              "code": {
                "text": "diameter"
              },
              "valueQuantity": {
                "value": 7,
                "unit": "mm"
              }
            },
            {
              "code": {
                "text": "composition"
              },
              "valueString": "solid"
            }
          ]
        }
      }
    },
    {
      "id": "qa-report",
      "route": "POST /v1/qa/report",
      "expect": "Issues naming a follow-up interval the standard does not state.",
      "body": {
        "report_text": "PROCEDURE: CT chest without contrast.\nFINDINGS:\nA 7 mm solid nodule in the right upper lobe. Patient is a heavy smoker, age 64.\nIMPRESSION:\n1. 7 mm right upper lobe nodule.\nRECOMMENDATIONS:\nFollow-up CT chest in 3 months.\n"
      }
    }
  ]
}