{
 "schema": "aiblocks-page/1",
 "id": "validate-lab-data-before-system-import",
 "type": "workflow",
 "name": "Prepare lab data for a checked import",
 "summary": "Attach instrument exports and a target schema. Get mapped records, checked scientific labels and an import exception list.",
 "headline": "Prepare lab data for a checked import",
 "subhead": "Attach instrument exports and a target schema. Get mapped records, checked scientific labels and an import exception list.",
 "job": {
  "id": "research-topics",
  "name": "Research a topic properly"
 },
 "level": "advanced",
 "thinking": "high",
 "tested": true,
 "updated": "2026-11-03",
 "first_published": "2026-10-25",
 "inputs": [
  {
   "type": "document",
   "required": true,
   "label": "Document",
   "what": "a finished document, such as a Word file, a PDF or a page of notes"
  },
  {
   "type": "spreadsheet",
   "required": true,
   "label": "Spreadsheet",
   "what": "a spreadsheet with its data, formulas and charts"
  },
  {
   "type": "question",
   "required": true,
   "label": "Question",
   "what": "the problem, decision or piece of work you want help with, and what a good outcome looks like"
  }
 ],
 "outputs": [
  {
   "type": "document",
   "required": true,
   "label": "Document",
   "what": "a finished document, such as a Word file, a PDF or a page of notes"
  },
  {
   "type": "spreadsheet",
   "required": true,
   "label": "Spreadsheet",
   "what": "a spreadsheet with its data, formulas and charts"
  },
  {
   "type": "audit_report",
   "required": true,
   "label": "Audit report",
   "what": "findings with evidence, severity, missing inputs and next actions"
  }
 ],
 "you_give": [
  "INSTRUMENT_EXPORTS: attach original CSV, Excel, TXT or PDF files; identify the instrument and run.",
  "TARGET_SCHEMA: give the ASM version, field definitions, units, vocabulary and an approved example.",
  "LABEL_SCOPE: name scientific columns needing ontology terms and supply sample context.",
  "EXECUTION_SCOPE: identify permitted local processing and destination owner; supply no credentials."
 ],
 "you_get": [
  "Converted draft records and source-field map",
  "Verified-term table and blocked import rows"
 ],
 "use_when": [
  "Preparing instrument data for a research data handoff"
 ],
 "skip_when": [
  "You only want to convert instrument files, with no term checks: use Lab instrument data converter.",
  "You only want to score the quality of a data set: use Data quality auditor.",
  "You want a method validation plan, not a data import: use Lab test validation planner."
 ],
 "output_sample": {
  "input": [
   "Your original instrument export files (CSV, Excel, TXT or PDF) and which instrument and run they came from",
   "The target schema, with version, field definitions, units and an approved example",
   "The scientific columns that need ontology terms, with sample context",
   "What processing is allowed on your computer and who owns the destination"
  ],
  "prerequisites": [
   "An AI that can run code on your files, or it will return draft structures marked NOT RUN"
  ],
  "output": [
   {
    "name": "Converted records",
    "contains": "Draft JSON and flat CSV, or the proposed structure if no files could be made."
   },
   {
    "name": "Mapping table",
    "contains": "Source file and field, target field, rule, unit, evidence and approval state for each field."
   },
   {
    "name": "Verified-term table",
    "contains": "Original label, checked term ID and definition, with unclear matches left open."
   },
   {
    "name": "Row-level exceptions",
    "contains": "Accepted and blocked rows, with count checks against the raw files."
   },
   {
    "name": "Import-owner handoff",
    "contains": "What the destination owner must still do, with PASS, FAIL or NOT RUN for every check."
   }
  ]
 },
 "how_to_use": [
  "Download the complete workflow or agent pack and unzip it.",
  "Give the complete folder to your AI. Start with START_HERE.txt, then provide the named inputs in the coordinator skill.",
  "Follow its checkpoints and check the evidence before using any output. Agent packs run one requested cycle; they do not create a schedule."
 ],
 "checks": [
  "Each transformed field traces to a source and documented rule.",
  "Ontology IDs are verified against term details, not recalled from memory.",
  "Raw and converted counts reconcile; exclusions remain visible.",
  "Destination import is pending owner action."
 ],
 "steps": [
  {
   "position": 1,
   "id": "lab-instrument-data-converter",
   "name": "Lab instrument data converter",
   "summary": "Convert lab instrument files into Allotrope JSON or flat CSV, with parser code for handoff.",
   "url": "https://useaiblocks.com/skills/lab-instrument-data-converter"
  },
  {
   "position": 2,
   "id": "ontology-id-matcher",
   "name": "Scientific ontology ID matcher",
   "summary": "Share scientific labels or existing IDs. Search public term services, check meanings and flag ambiguous or unverified matches.",
   "url": "https://useaiblocks.com/skills/ontology-id-matcher"
  },
  {
   "position": 3,
   "id": "data-quality-auditor",
   "name": "Data quality auditor",
   "summary": "Share data and quality rules. Get missing values, duplicates and unusual records, with ranked fixes and a score where supported.",
   "url": "https://useaiblocks.com/skills/data-quality-auditor"
  }
 ],
 "next": [
  {
   "name": "Scientific manuscript drafter",
   "url": "https://useaiblocks.com/skills/scientific-manuscript-drafter",
   "why": "Scientific manuscript drafter"
  }
 ],
 "source": null,
 "credits": [],
 "files": [
  "references/practice-case.md"
 ],
 "links": {
  "page": "https://useaiblocks.com/workflows/validate-lab-data-before-system-import",
  "markdown": "https://useaiblocks.com/workflows/validate-lab-data-before-system-import.md",
  "json": "https://useaiblocks.com/workflows/validate-lab-data-before-system-import.json",
  "instructions": "https://useaiblocks.com/skills/validate-lab-data-before-system-import/SKILL.md",
  "download": "https://useaiblocks.com/skills/validate-lab-data-before-system-import.zip",
  "api_item": "https://useaiblocks.com/api/v1/items/validate-lab-data-before-system-import",
  "api_document": "https://useaiblocks.com/api/v1/documents/workflow/validate-lab-data-before-system-import",
  "mcp": "https://useaiblocks.com/mcp"
 }
}
