{
  "name": "Extract Medical Record",
  "nodes": [
    {
      "parameters": {
        "content": "## Extract Medical Record\n\nHealthcare providers and clinical software platforms use this recipe to digitize a patient record. Upload a medical document and receive structured JSON with patient details, diagnosis codes, and medication list \u2014 ready for integration with your EHR or clinical database.\n\n**Note:** This workflow uses the Iteration Layer community node (`n8n-nodes-iterationlayer`). Install it via Settings > Community Nodes on self-hosted n8n, or add it directly on n8n Cloud with Verified Community Nodes enabled.",
        "height": 280,
        "width": 500,
        "color": 2
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        200,
        40
      ],
      "id": "acff055e-c5f3-432a-ad13-7ba4b47fb3a6",
      "name": "Overview"
    },
    {
      "parameters": {
        "content": "### Step 1: Extract Data\nResource: **Document Extraction**\n\nConfigure the Document Extraction parameters below, then connect your credentials.",
        "height": 160,
        "width": 300,
        "color": 6
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        475,
        100
      ],
      "id": "3ec7e1a2-d227-42d7-93a5-7711a7a353b7",
      "name": "Step 1 Note"
    },
    {
      "parameters": {},
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        250,
        300
      ],
      "id": "e1f2a3b4-c5d6-7890-efab-901234567890",
      "name": "Manual Trigger"
    },
    {
      "parameters": {
        "resource": "documentExtraction",
        "schemaInputMode": "rawJson",
        "schemaJson": "{\"fields\":[{\"name\":\"patient_name\",\"type\":\"TEXT\",\"description\":\"Full name of the patient\"},{\"name\":\"date_of_birth\",\"type\":\"DATE\",\"description\":\"Patient date of birth\"},{\"name\":\"diagnoses\",\"type\":\"ARRAY\",\"description\":\"List of diagnoses\",\"fields\":[{\"name\":\"code\",\"type\":\"TEXT\",\"description\":\"Diagnosis or ICD code\"},{\"name\":\"description\",\"type\":\"TEXT\",\"description\":\"Diagnosis description\"}]},{\"name\":\"medications\",\"type\":\"ARRAY\",\"description\":\"List of prescribed medications\",\"fields\":[{\"name\":\"name\",\"type\":\"TEXT\",\"description\":\"Medication name\"},{\"name\":\"dosage\",\"type\":\"TEXT\",\"description\":\"Prescribed dosage\"}]}]}",
        "files": {
          "fileValues": [
            {
              "fileInputMode": "url",
              "fileName": "medical-record.pdf",
              "fileUrl": "https://example.com/records/medical-record.pdf"
            }
          ]
        }
      },
      "type": "n8n-nodes-iterationlayer.iterationLayer",
      "typeVersion": 1,
      "position": [
        500,
        300
      ],
      "id": "f2a3b4c5-d6e7-8901-fabc-012345678901",
      "name": "Extract Data",
      "credentials": {
        "iterationLayerApi": {
          "name": "<your credential>"
        }
      }
    }
  ],
  "connections": {
    "Manual Trigger": {
      "main": [
        [
          {
            "node": "Extract Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  }
}