{
  "format": "zenject.lab",
  "version": 1,
  "instructions": [
    "HOW TO USE THIS FILE WITH AN AI (Claude, ChatGPT, etc.):",
    "1. Give this file to the AI together with your lab results (paste the text, or attach the PDF / a photo of the report).",
    "2. Ask it to fill in the 'draws' array using the same structure as the example below, then return the completed JSON.",
    "3. Save the AI's result as a file ending in '.zenjectlab.json', then open it on your iPhone to import into Zenject. It previews before anything is saved.",
    "",
    "RULES FOR THE AI:",
    "- Keep 'format' and 'version' exactly as they are.",
    "- 'exportedAt' and each draw 'date' must be ISO-8601. Anchor draw dates to noon UTC (e.g. 2026-04-30T12:00:00Z) so the calendar day never shifts.",
    "- Put one object in 'draws' for each blood draw / collection date, with all of that date's markers in its 'results'.",
    "- 'fasted' is true or false. 'source', 'labName', and 'notes' are optional (use null if unknown).",
    "- Each result needs: 'name' (the marker name as written on the report), 'value' (a NUMBER only), and 'unit' (a string or null).",
    "- For results reported as '<15' or '>1500', use the boundary number (15, 1500). Symbols are not allowed in 'value'.",
    "- Leave 'markerId' as null. Zenject matches markers to its library by name automatically. (Only set 'markerId' if you happen to know Zenject's internal id for a marker.)",
    "- You may delete this 'instructions' field; Zenject ignores it either way.",
    "- Output ONLY valid JSON.",
    "",
    "The 'draws' below is a filled-in EXAMPLE. Replace it with the user's real data."
  ],
  "exportedAt": "2026-01-01T12:00:00Z",
  "source": "Your lab or clinic name",
  "draws": [
    {
      "date": "2026-01-01T12:00:00Z",
      "labName": "Your lab or clinic name",
      "fasted": true,
      "notes": null,
      "results": [
        { "markerId": null, "name": "Total Testosterone", "value": 650, "unit": "ng/dL" },
        { "markerId": null, "name": "Estradiol", "value": 28, "unit": "pg/mL" },
        { "markerId": null, "name": "HDL Cholesterol", "value": 55, "unit": "mg/dL" },
        { "markerId": null, "name": "A marker not in Zenject's list", "value": 1.23, "unit": null }
      ]
    }
  ]
}
