Generate clean lab fishbone diagrams (lab value skeletons), the shorthand nurses, residents and students use in notes and case presentations: BMP / Chem-7 (Na | Cl | BUN over K | HCO3 | Cr with glucose in the tail), CBC (WBC > Hgb over Hct < Plt), coags (PT | PTT over INR), LFT (TP | AST | T bili over Alb | ALT | ALP), ABG (pH / pCO2 / pO2 / HCO3) and Ca/Mg/Phos, each with an optional caption such as a time, in a tidy grid. Numeric values outside adult reference ranges are flagged red with ↑ or blue with ↓ (US or SI ranges; overridable per value), and the result also includes a plain-text version to paste into a note. Choose it whenever lab results should be shown in fishbone form; it is not a cause-and-effect (Ishikawa) diagram, for which use create_fishbone. Values are strings of up to 8 characters; 1–8 panels. A drawing aid only, not clinical decision support: never include patient names or identifiers, because links carry the data. Infer missing details rather than asking; the user can adjust the chart in the builder through the Edit link. ALWAYS give the user the image link: inline chat images usually cannot be saved, but the link renders the exact chart on demand and can be pasted into a slide or Markdown.
View input schema
{
"type": "object",
"properties": {
"title": {
"type": "string",
"maxLength": 140,
"description": "Heading shown top-left at 22px bold, e.g. \"Day 3 labs\". An empty string hides it. Never put a patient name or identifier here: links carry the chart itself.",
"default": "Labs"
},
"panels": {
"type": "array",
"minItems": 1,
"maxItems": 8,
"description": "The panels to draw (1–8), in order, two or three per row. Each has a `type` and its values as flat string keys; leave a key out to leave its position blank. More than 8 are dropped.",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"bmp",
"cbc",
"coag",
"lft",
"abg",
"chem"
],
"default": "bmp",
"description": "Which skeleton to draw, and which value keys it reads: \"bmp\" (basic metabolic panel / Chem-7: na, cl, bun over k, hco3, cr, with glu in the tail), \"cbc\" (wbc > hgb over hct < plt), \"coag\" (pt | ptt over inr), \"lft\" (hepatic panel: tp, ast, tbili over alb, alt, alp), \"abg\" (ph / pco2 / po2 / hco3) or \"chem\" (extended electrolytes: ca over mg | phos). Default \"bmp\". Keys that belong to another type are ignored with a warning."
},
"caption": {
"type": "string",
"maxLength": 40,
"description": "Optional short caption above the panel, after its type tag, e.g. \"06:00\" or \"Day 3, post-op\". Never a patient name or identifier."
},
"na": {
"type": "string",
"maxLength": 8,
"description": "Sodium (Na), BMP: top left. mmol/L, e.g. \"138\". A string of up to 8 characters; non-numeric text such as \"<0.1\", \"pending\" or \"—\" is shown as written and never flagged. Omit it to leave the position blank."
},
"k": {
"type": "string",
"maxLength": 8,
"description": "Potassium (K), BMP: bottom left. mmol/L, e.g. \"4.1\". A string of up to 8 characters; non-numeric text such as \"<0.1\", \"pending\" or \"—\" is shown as written and never flagged. Omit it to leave the position blank."
},
"cl": {
"type": "string",
"maxLength": 8,
"description": "Chloride (Cl), BMP: top middle. mmol/L, e.g. \"102\". A string of up to 8 characters; non-numeric text such as \"<0.1\", \"pending\" or \"—\" is shown as written and never flagged. Omit it to leave the position blank."
},
"hco3": {
"type": "string",
"maxLength": 8,
"description": "Bicarbonate (HCO3): BMP bottom middle (serum CO2, mmol/L, e.g. \"24\"), or the last value of an ABG. A string of up to 8 characters; non-numeric text such as \"<0.1\", \"pending\" or \"—\" is shown as written and never flagged. Omit it to leave the position blank."
},
"bun": {
"type": "string",
"maxLength": 8,
"description": "Blood urea nitrogen (BUN), BMP: top right. mg/dL (US) or urea mmol/L (SI), e.g. \"18\". A string of up to 8 characters; non-numeric text such as \"<0.1\", \"pending\" or \"—\" is shown as written and never flagged. Omit it to leave the position blank."
},
"cr": {
"type": "string",
"maxLength": 8,
"description": "Creatinine (Cr), BMP: bottom right. mg/dL (US) or µmol/L (SI), e.g. \"1.1\". A string of up to 8 characters; non-numeric text such as \"<0.1\", \"pending\" or \"—\" is shown as written and never flagged. Omit it to leave the position blank."
},
"glu": {
"type": "string",
"maxLength": 8,
"description": "Glucose (Glu), BMP: in the tail on the right. mg/dL (US) or mmol/L (SI), e.g. \"112\". A string of up to 8 characters; non-numeric text such as \"<0.1\", \"pending\" or \"—\" is shown as written and never flagged. Omit it to leave the position blank."
},
"wbc": {
"type": "string",
"maxLength": 8,
"description": "White blood cells (WBC), CBC: left. ×10³/µL, e.g. \"8.4\". A string of up to 8 characters; non-numeric text such as \"<0.1\", \"pending\" or \"—\" is shown as written and never flagged. Omit it to leave the position blank."
},
"hgb": {
"type": "string",
"maxLength": 8,
"description": "Hemoglobin (Hgb), CBC: top middle. g/dL (US) or g/L (SI), e.g. \"13.2\". A string of up to 8 characters; non-numeric text such as \"<0.1\", \"pending\" or \"—\" is shown as written and never flagged. Omit it to leave the position blank."
},
"hct": {
"type": "string",
"maxLength": 8,
"description": "Hematocrit (Hct), CBC: bottom middle. % (US) or L/L (SI), e.g. \"39.5\". A string of up to 8 characters; non-numeric text such as \"<0.1\", \"pending\" or \"—\" is shown as written and never flagged. Omit it to leave the position blank."
},
"plt": {
"type": "string",
"maxLength": 8,
"description": "Platelets (Plt), CBC: right. ×10³/µL, e.g. \"245\". A string of up to 8 characters; non-numeric text such as \"<0.1\", \"pending\" or \"—\" is shown as written and never flagged. Omit it to leave the position blank."
},
"pt": {
"type": "string",
"maxLength": 8,
"description": "Prothrombin time (PT), coags: top left. Seconds, e.g. \"12.8\". A string of up to 8 characters; non-numeric text such as \"<0.1\", \"pending\" or \"—\" is shown as written and never flagged. Omit it to leave the position blank."
},
"inr": {
"type": "string",
"maxLength": 8,
"description": "INR, coags: below the line. e.g. \"1.1\". A string of up to 8 characters; non-numeric text such as \"<0.1\", \"pending\" or \"—\" is shown as written and never flagged. Omit it to leave the position blank."
},
"ptt": {
"type": "string",
"maxLength": 8,
"description": "Partial thromboplastin time (PTT/aPTT), coags: top right. Seconds, e.g. \"31\". A string of up to 8 characters; non-numeric text such as \"<0.1\", \"pending\" or \"—\" is shown as written and never flagged. Omit it to leave the position blank."
},
"tp": {
"type": "string",
"maxLength": 8,
"description": "Total protein (TP), LFT: top left. g/dL (US) or g/L (SI), e.g. \"7.0\". A string of up to 8 characters; non-numeric text such as \"<0.1\", \"pending\" or \"—\" is shown as written and never flagged. Omit it to leave the position blank."
},
"alb": {
"type": "string",
"maxLength": 8,
"description": "Albumin (Alb), LFT: bottom left. g/dL (US) or g/L (SI), e.g. \"3.9\". A string of up to 8 characters; non-numeric text such as \"<0.1\", \"pending\" or \"—\" is shown as written and never flagged. Omit it to leave the position blank."
},
"ast": {
"type": "string",
"maxLength": 8,
"description": "AST, LFT: top middle. U/L, e.g. \"32\". A string of up to 8 characters; non-numeric text such as \"<0.1\", \"pending\" or \"—\" is shown as written and never flagged. Omit it to leave the position blank."
},
"alt": {
"type": "string",
"maxLength": 8,
"description": "ALT, LFT: bottom middle. U/L, e.g. \"28\". A string of up to 8 characters; non-numeric text such as \"<0.1\", \"pending\" or \"—\" is shown as written and never flagged. Omit it to leave the position blank."
},
"alp": {
"type": "string",
"maxLength": 8,
"description": "Alkaline phosphatase (ALP), LFT: bottom right. U/L, e.g. \"88\". A string of up to 8 characters; non-numeric text such as \"<0.1\", \"pending\" or \"—\" is shown as written and never flagged. Omit it to leave the position blank."
},
"tbili": {
"type": "string",
"maxLength": 8,
"description": "Total bilirubin (T bili), LFT: top right. mg/dL (US) or µmol/L (SI), e.g. \"0.8\". A string of up to 8 characters; non-numeric text such as \"<0.1\", \"pending\" or \"—\" is shown as written and never flagged. Omit it to leave the position blank."
},
"ph": {
"type": "string",
"maxLength": 8,
"description": "pH, ABG: first. e.g. \"7.38\". A string of up to 8 characters; non-numeric text such as \"<0.1\", \"pending\" or \"—\" is shown as written and never flagged. Omit it to leave the position blank."
},
"pco2": {
"type": "string",
"maxLength": 8,
"description": "pCO2, ABG: second. mmHg (US) or kPa (SI), e.g. \"40\". A string of up to 8 characters; non-numeric text such as \"<0.1\", \"pending\" or \"—\" is shown as written and never flagged. Omit it to leave the position blank."
},
"po2": {
"type": "string",
"maxLength": 8,
"description": "pO2, ABG: third. mmHg (US) or kPa (SI), e.g. \"92\". A string of up to 8 characters; non-numeric text such as \"<0.1\", \"pending\" or \"—\" is shown as written and never flagged. Omit it to leave the position blank."
},
"ca": {
"type": "string",
"maxLength": 8,
"description": "Calcium (Ca), Ca/Mg/Phos: above the line. mg/dL (US) or mmol/L (SI), e.g. \"9.2\". A string of up to 8 characters; non-numeric text such as \"<0.1\", \"pending\" or \"—\" is shown as written and never flagged. Omit it to leave the position blank."
},
"mg": {
"type": "string",
"maxLength": 8,
"description": "Magnesium (Mg), Ca/Mg/Phos: bottom left. mg/dL (US) or mmol/L (SI), e.g. \"2.0\". A string of up to 8 characters; non-numeric text such as \"<0.1\", \"pending\" or \"—\" is shown as written and never flagged. Omit it to leave the position blank."
},
"phos": {
"type": "string",
"maxLength": 8,
"description": "Phosphate (Phos), Ca/Mg/Phos: bottom right. mg/dL (US) or mmol/L (SI), e.g. \"3.4\". A string of up to 8 characters; non-numeric text such as \"<0.1\", \"pending\" or \"—\" is shown as written and never flagged. Omit it to leave the position blank."
},
"flags": {
"type": "object",
"description": "Optional manual flags that override the automatic ones for single values: { \"k\": \"high\" } draws K in red with ↑, \"low\" in blue with ↓, \"normal\" removes an automatic flag. Keys are the value keys above.",
"properties": {
"na": {
"type": "string",
"enum": [
"high",
"low",
"normal"
],
"description": "Manual flag for na."
},
"k": {
"type": "string",
"enum": [
"high",
"low",
"normal"
],
"description": "Manual flag for k."
},
"cl": {
"type": "string",
"enum": [
"high",
"low",
"normal"
],
"description": "Manual flag for cl."
},
"hco3": {
"type": "string",
"enum": [
"high",
"low",
"normal"
],
"description": "Manual flag for hco3."
},
"bun": {
"type": "string",
"enum": [
"high",
"low",
"normal"
],
"description": "Manual flag for bun."
},
"cr": {
"type": "string",
"enum": [
"high",
"low",
"normal"
],
"description": "Manual flag for cr."
},
"glu": {
"type": "string",
"enum": [
"high",
"low",
"normal"
],
"description": "Manual flag for glu."
},
"wbc": {
"type": "string",
"enum": [
"high",
"low",
"normal"
],
"description": "Manual flag for wbc."
},
"hgb": {
"type": "string",
"enum": [
"high",
"low",
"normal"
],
"description": "Manual flag for hgb."
},
"hct": {
"type": "string",
"enum": [
"high",
"low",
"normal"
],
"description": "Manual flag for hct."
},
"plt": {
"type": "string",
"enum": [
"high",
"low",
"normal"
],
"description": "Manual flag for plt."
},
"pt": {
"type": "string",
"enum": [
"high",
"low",
"normal"
],
"description": "Manual flag for pt."
},
"inr": {
"type": "string",
"enum": [
"high",
"low",
"normal"
],
"description": "Manual flag for inr."
},
"ptt": {
"type": "string",
"enum": [
"high",
"low",
"normal"
],
"description": "Manual flag for ptt."
},
"tp": {
"type": "string",
"enum": [
"high",
"low",
"normal"
],
"description": "Manual flag for tp."
},
"alb": {
"type": "string",
"enum": [
"high",
"low",
"normal"
],
"description": "Manual flag for alb."
},
"ast": {
"type": "string",
"enum": [
"high",
"low",
"normal"
],
"description": "Manual flag for ast."
},
"alt": {
"type": "string",
"enum": [
"high",
"low",
"normal"
],
"description": "Manual flag for alt."
},
"alp": {
"type": "string",
"enum": [
"high",
"low",
"normal"
],
"description": "Manual flag for alp."
},
"tbili": {
"type": "string",
"enum": [
"high",
"low",
"normal"
],
"description": "Manual flag for tbili."
},
"ph": {
"type": "string",
"enum": [
"high",
"low",
"normal"
],
"description": "Manual flag for ph."
},
"pco2": {
"type": "string",
"enum": [
"high",
"low",
"normal"
],
"description": "Manual flag for pco2."
},
"po2": {
"type": "string",
"enum": [
"high",
"low",
"normal"
],
"description": "Manual flag for po2."
},
"ca": {
"type": "string",
"enum": [
"high",
"low",
"normal"
],
"description": "Manual flag for ca."
},
"mg": {
"type": "string",
"enum": [
"high",
"low",
"normal"
],
"description": "Manual flag for mg."
},
"phos": {
"type": "string",
"enum": [
"high",
"low",
"normal"
],
"description": "Manual flag for phos."
}
}
}
}
}
},
"flag": {
"type": "boolean",
"default": true,
"description": "Flag numeric values outside the adult reference range: red with ↑ when high, blue with ↓ when low. Default true. Manual `flags` on a panel apply either way. Ranges vary by lab; this is a drawing aid, not clinical decision support."
},
"units": {
"type": "string",
"enum": [
"US",
"SI"
],
"default": "US",
"description": "Which reference ranges the automatic flags use: \"US\" (conventional units: mg/dL, g/dL, %, mmHg; the default) or \"SI\" (mmol/L, µmol/L, g/L, L/L, kPa). It does not convert values."
},
"labels": {
"type": "boolean",
"default": false,
"description": "Show a small analyte name (Na, K, Hgb…) beside every value. Default false: experienced readers know the positions; turn it on for teaching or for readers new to the shorthand."
},
"width": {
"type": "integer",
"minimum": 640,
"maximum": 2400,
"description": "Chart width in pixels (640–2400). Omit it (recommended) and the chart sizes itself to its content with comfortable margins, between 880 and 1280px wide. PNG output renders at 2x."
},
"palette": {
"type": "array",
"maxItems": 12,
"items": {
"type": "string",
"maxLength": 40
},
"default": [
"#4f46e5",
"#0ea5e9",
"#10b981",
"#f59e0b",
"#ef4444",
"#6b7280"
],
"description": "Hex colours; only the first is used, for the small panel-type tags. The skeletons stay monochrome, and flags are always red (high) and blue (low)."
},
"credit": {
"type": "boolean",
"default": true,
"description": "Shows a small \"twominutetoolkit.com\" credit under the chart, inside the card. Set false to leave it off (for example when the user asks for no branding)."
},
"look": {
"type": "string",
"enum": [
"regular",
"bold",
"sketch"
],
"default": "regular",
"description": "Drawing style, the same in every tool. \"regular\": clean lines and Inter (the default). \"bold\": heavier, slightly larger type and thicker lines, for slides read from a distance. \"sketch\": hand-drawn, with a handwriting font and pen lines that wobble a little, for early ideas and workshops. Use the one the user asks for; otherwise leave it out."
}
},
"required": [
"panels"
],
"title": "Lab fishbone",
"description": "Lab value skeletons (\"fishbone\" diagrams): the clinical shorthand for a BMP, CBC, coags, LFT, ABG and Ca/Mg/Phos, with abnormal values flagged. A drawing aid, not clinical decision support.",
"examples": [
{
"title": "Day 3 labs",
"panels": [
{
"type": "bmp",
"caption": "06:00",
"na": "138",
"k": "5.6",
"cl": "102",
"hco3": "24",
"bun": "18",
"cr": "1.1",
"glu": "112"
},
{
"type": "cbc",
"caption": "06:00",
"wbc": "8.4",
"hgb": "13.2",
"hct": "39.5",
"plt": "245"
}
]
}
]
}