[{"data":1,"prerenderedAt":568},["ShallowReactive",2],{"navigation_docs_en":3,"-en-getting-started-5-workflow-definitions":110,"-en-getting-started-5-workflow-definitions-surround":563},[4,35,65,90,100],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":6},"Getting Started",false,"\u002Fen\u002Fgetting-started","en\u002F1.getting-started",[10,15,20,25,30],{"title":11,"path":12,"stem":13,"icon":14},"Introduction","\u002Fen\u002Fgetting-started\u002F1-introduction","en\u002F1.getting-started\u002F1-introduction","i-ph-book-open-duotone",{"title":16,"path":17,"stem":18,"icon":19},"Onboarding","\u002Fen\u002Fgetting-started\u002F2-onboarding","en\u002F1.getting-started\u002F2-onboarding","i-ph-buildings-duotone",{"title":21,"path":22,"stem":23,"icon":24},"Practitioners","\u002Fen\u002Fgetting-started\u002F3-staff-roles","en\u002F1.getting-started\u002F3-staff-roles","i-ph-users-three-duotone",{"title":26,"path":27,"stem":28,"icon":29},"Queue Setup","\u002Fen\u002Fgetting-started\u002F4-queue-management","en\u002F1.getting-started\u002F4-queue-management","i-ph-list-numbers-duotone",{"title":31,"path":32,"stem":33,"icon":34},"Workflow Setup","\u002Fen\u002Fgetting-started\u002F5-workflow-definitions","en\u002F1.getting-started\u002F5-workflow-definitions","i-ph-git-fork-duotone",{"title":36,"icon":6,"path":37,"stem":38,"children":39,"page":6},"Core Workflows","\u002Fen\u002Fcore-workflows","en\u002F2.core-workflows",[40,45,50,55,60],{"title":41,"path":42,"stem":43,"icon":44},"In-Person Walk-In","\u002Fen\u002Fcore-workflows\u002F1-in-person-walk-in","en\u002F2.core-workflows\u002F1-in-person-walk-in","i-ph-user-plus-duotone",{"title":46,"path":47,"stem":48,"icon":49},"Appointment Check-In","\u002Fen\u002Fcore-workflows\u002F2-appointment-to-walk-in","en\u002F2.core-workflows\u002F2-appointment-to-walk-in","i-ph-calendar-check-duotone",{"title":51,"path":52,"stem":53,"icon":54},"Telehealth","\u002Fen\u002Fcore-workflows\u002F3-telehealth","en\u002F2.core-workflows\u002F3-telehealth","i-ph-video-camera-duotone",{"title":56,"path":57,"stem":58,"icon":59},"Repeat Medication","\u002Fen\u002Fcore-workflows\u002F4-admin-repeat-medication","en\u002F2.core-workflows\u002F4-admin-repeat-medication","i-ph-arrows-counter-clockwise-duotone",{"title":61,"path":62,"stem":63,"icon":64},"Hybrid Lab Flow","\u002Fen\u002Fcore-workflows\u002F5-hybrid-flow","en\u002F2.core-workflows\u002F5-hybrid-flow","i-ph-flask-duotone",{"title":66,"icon":6,"path":67,"stem":68,"children":69,"page":6},"Clinical Playbooks","\u002Fen\u002Fclinical-playbooks","en\u002F3.clinical-playbooks",[70,75,80,85],{"title":71,"path":72,"stem":73,"icon":74},"Acute Care","\u002Fen\u002Fclinical-playbooks\u002F1-acute-care-playbook","en\u002F3.clinical-playbooks\u002F1-acute-care-playbook","i-ph-first-aid-duotone",{"title":76,"path":77,"stem":78,"icon":79},"Chronic Disease","\u002Fen\u002Fclinical-playbooks\u002F2-chronic-disease-management","en\u002F3.clinical-playbooks\u002F2-chronic-disease-management","i-ph-heartbeat-duotone",{"title":81,"path":82,"stem":83,"icon":84},"Vaccinations","\u002Fen\u002Fclinical-playbooks\u002F3-vaccinations-and-preventative","en\u002F3.clinical-playbooks\u002F3-vaccinations-and-preventative","i-ph-syringe-duotone",{"title":86,"path":87,"stem":88,"icon":89},"Admin & Workplace","\u002Fen\u002Fclinical-playbooks\u002F4-admin-and-workplace","en\u002F3.clinical-playbooks\u002F4-admin-and-workplace","i-ph-file-text-duotone",{"title":91,"icon":6,"path":92,"stem":93,"children":94,"page":6},"Advanced Settings","\u002Fen\u002Fintegrations-settings","en\u002F4.integrations-settings",[95],{"title":96,"path":97,"stem":98,"icon":99},"WhatsApp Setup","\u002Fen\u002Fintegrations-settings\u002F1-whatsapp-setup","en\u002F4.integrations-settings\u002F1-whatsapp-setup","i-ph-whatsapp-logo-duotone",{"title":101,"icon":6,"path":102,"stem":103,"children":104,"page":6},"Public Directory","\u002Fen\u002Fpublic-directory","en\u002F5.public-directory",[105],{"title":106,"path":107,"stem":108,"icon":109},"Maze.care Listing","\u002Fen\u002Fpublic-directory\u002F1-publish-to-mazecare","en\u002F5.public-directory\u002F1-publish-to-mazecare","i-ph-globe-duotone",{"id":111,"title":112,"body":113,"description":556,"extension":557,"links":558,"meta":559,"navigation":560,"path":32,"seo":561,"stem":33,"__hash__":562},"docs_en\u002Fen\u002F1.getting-started\u002F5-workflow-definitions.md","Workflow Definitions Setup",{"type":114,"value":115,"toc":544},"minimark",[116,136,139,142,147,152,185,189,192,197,233,237,240,290,293,307,313,317,328,332,335,440,444,447,508,512,515,536],[117,118,119,123,124,127,128,131,132,135],"p",{},[120,121,122],"strong",{},"Workflow Definitions"," are visual state machines that automate your clinic's patient journey. Each workflow defines the ",[120,125,126],{},"states"," (stages like Registration, Triage, Consultation) and ",[120,129,130],{},"transitions"," (the allowed paths between stages) that govern an ",[120,133,134],{},"Episode of Care"," from start to finish.",[117,137,138],{},"When a receptionist creates an Episode of Care for a patient, they select a Workflow Definition. The system then enforces the correct clinical sequence, automatically fires actions (like creating queue tickets or encounters), and prevents premature steps.",[140,141],"hr",{},[143,144,146],"h2",{"id":145},"detailed-step-by-step-configuration","Detailed Step-by-Step Configuration",[148,149,151],"h3",{"id":150},"step-1-access-the-workflow-definitions-dashboard","Step 1: Access the Workflow Definitions Dashboard",[153,154,155,163,175,178],"ol",{},[156,157,158,159,162],"li",{},"Log in to the Mazecare Console using an ",[120,160,161],{},"Administrator"," account.",[156,164,165,166,169,170,174],{},"Navigate to ",[120,167,168],{},"Settings → Workflow Definitions"," (",[171,172,173],"code",{},"\u002Fsettings\u002Fworkflow-definitions",").",[156,176,177],{},"The table lists all existing workflows. You can search, sort, and filter them.",[156,179,180,181,184],{},"Click ",[120,182,183],{},"+ New Workflow Definition"," to create a new Workflow Definition.",[148,186,188],{"id":187},"step-2-choose-a-creation-method","Step 2: Choose a Creation Method",[117,190,191],{},"A creation modal opens with three options:",[193,194,196],"h4",{"id":195},"option-a-ai-powered-generation-recommended","Option A: AI-Powered Generation (Recommended)",[153,198,199,206,213,216,227],{},[156,200,201,202,174],{},"Type a natural language description of your desired workflow in the AI prompt field (e.g., ",[203,204,205],"em",{},"\"Create a GP outpatient flow with registration, triage, consultation, prescription, and checkout\"",[156,207,208,209,212],{},"Press ",[120,210,211],{},"Enter",". The system creates a blank workflow and opens the visual editor.",[156,214,215],{},"The AI Assistant sidebar generates the complete workflow with states, transitions, and layout.",[156,217,218,219,222,223,226],{},"Review the draft on the canvas, then click ",[120,220,221],{},"Accept"," to save or ",[120,224,225],{},"Undo"," to start over.",[156,228,229,230,174],{},"You can refine the workflow by sending follow-up prompts (e.g., ",[203,231,232],{},"\"Add a pharmacy dispensing step after consultation\"",[193,234,236],{"id":235},"option-b-create-from-template","Option B: Create from Template",[117,238,239],{},"Select one of three pre-built templates. Each generates a complete, production-ready workflow with pre-configured states, transitions, and automation actions:",[241,242,243,256],"table",{},[244,245,246],"thead",{},[247,248,249,253],"tr",{},[250,251,252],"th",{},"Template",[250,254,255],{},"Description",[257,258,259,270,280],"tbody",{},[247,260,261,267],{},[262,263,264],"td",{},[120,265,266],{},"General Practitioner",[262,268,269],{},"Standard outpatient GP flow: Registration → Check-in → Triage → Queue → Consultation → Prescription → Discharge.",[247,271,272,277],{},[262,273,274],{},[120,275,276],{},"Patient Intake",[262,278,279],{},"Multi-line intake flow with consultation, discharge, and inpatient bed lines. Includes sub-workflow support for WhatsApp notifications.",[247,281,282,287],{},[262,283,284],{},[120,285,286],{},"WhatsApp Questionnaire",[262,288,289],{},"WhatsApp-based pre-visit questionnaire for collecting patient information before their appointment.",[117,291,292],{},"A two-step wizard guides you:",[153,294,295,301],{},[156,296,297,300],{},[120,298,299],{},"Select Template",": Choose your template card.",[156,302,303,306],{},[120,304,305],{},"Configure Context",": Fill in the required context variables for the selected template (e.g., Company, Consultation Item, Queue Lines, API credentials). These variables parameterize the workflow's automation actions.",[117,308,180,309,312],{},[120,310,311],{},"Create"," to generate the full workflow.",[193,314,316],{"id":315},"option-c-create-from-scratch","Option C: Create from Scratch",[153,318,319,325],{},[156,320,180,321,324],{},[120,322,323],{},"Create from scratch"," to start with a blank canvas.",[156,326,327],{},"You will manually build the workflow using the visual editor (see Step 3).",[148,329,331],{"id":330},"step-3-design-states-and-transitions-visual-editor","Step 3: Design States and Transitions (Visual Editor)",[117,333,334],{},"The editor page features a full-screen visual canvas powered by a node-based flow editor:",[153,336,337,363,369,403,429],{},[156,338,339,342,343,346,347,350,351,350,354,350,357,350,360,174],{},[120,340,341],{},"Add States",": Click ",[120,344,345],{},"Add State"," to place a new stage on the canvas (e.g., ",[203,348,349],{},"Registration",", ",[203,352,353],{},"Triage",[203,355,356],{},"Consultation",[203,358,359],{},"Billing",[203,361,362],{},"Completed",[156,364,365,368],{},[120,366,367],{},"Connect Transitions",": Drag from one state's connection handle to another to create a transition arrow.",[156,370,371,374,375],{},[120,372,373],{},"Configure State Properties",": Click any state node to open its side panel:\n",[376,377,378,385,396],"ul",{},[156,379,380,381,384],{},"Set the state ",[120,382,383],{},"Name",".",[156,386,387,388,391,392,395],{},"Mark it as ",[120,389,390],{},"Initial"," (starting point) or ",[120,393,394],{},"Final"," (endpoint that completes the workflow).",[156,397,398,399,402],{},"Add ",[120,400,401],{},"Entry\u002FExit Actions"," — automated HTTP calls that fire when the workflow enters or leaves this state (e.g., create an encounter, generate an invoice).",[156,404,405,408,409],{},[120,406,407],{},"Configure Transition Properties",": Click any transition edge to open its panel:\n",[376,410,411,423],{},[156,412,413,414,416,417,350,420,174],{},"Set the transition ",[120,415,383],{}," (e.g., ",[203,418,419],{},"\"Start Triage\"",[203,421,422],{},"\"Complete Consultation\"",[156,424,398,425,428],{},[120,426,427],{},"Conditions"," that must be met before the transition is allowed (e.g., require an encounter to be signed before transitioning to Billing).",[156,430,431,432,435,436,439],{},"Save your workflow with ",[120,433,434],{},"Cmd+S"," (Mac) or ",[120,437,438],{},"Ctrl+S"," (Windows).",[148,441,443],{"id":442},"step-4-configure-context-variables","Step 4: Configure Context Variables",[117,445,446],{},"Context variables are key-value pairs that parameterize your workflow's automation actions. They allow the same template to work across different configurations.",[153,448,449,456,502],{},[156,450,451,452,455],{},"Navigate to the ",[120,453,454],{},"Detail"," tab of your Workflow Definition.",[156,457,458,459,462,463],{},"In the ",[120,460,461],{},"Context","section, add or edit key-value pairs:\n",[376,464,465,478,490],{},[156,466,467,470,471,350,474,477],{},[120,468,469],{},"Authentication",": ",[171,472,473],{},"clientId",[171,475,476],{},"clientSecret"," — API credentials for automated actions.",[156,479,480,470,483,350,486,489],{},[120,481,482],{},"Entity References",[171,484,485],{},"consultationItemId",[171,487,488],{},"consultationUnitEntityId"," — IDs linking to your clinic's specific services and resources.",[156,491,492,470,495,350,498,501],{},[120,493,494],{},"Queue Configuration",[171,496,497],{},"consultLineId",[171,499,500],{},"dischargeLineId"," — IDs linking to your QMS Lines.",[156,503,180,504,507],{},[120,505,506],{},"Save"," to persist your context.",[148,509,511],{"id":510},"step-5-bind-to-episodes-of-care","Step 5: Bind to Episodes of Care",[117,513,514],{},"Once your workflow is ready:",[153,516,517,523,530,533],{},[156,518,519,520,522],{},"When clinical staff create a new ",[120,521,134],{}," for a patient, they select your Workflow Definition from the dropdown list.",[156,524,525,526,529],{},"The Episode's ",[120,527,528],{},"Workflow tab"," displays a live visualization of the patient's current position in the workflow.",[156,531,532],{},"Available transitions appear as action buttons. Staff click these to advance the patient through each stage.",[156,534,535],{},"All configured automation actions (queue tickets, encounters, invoices, notifications) fire automatically as the patient progresses.",[537,538],"u-alert",{"color":539,"description":540,"icon":541,"title":542,"variant":543},"warning","Ensure that all context variables (especially API credentials and entity IDs) are correctly configured before using the workflow in live operations. Missing context values will cause automated actions to fail silently.","i-ph-warning-bold","Important","soft",{"title":545,"searchDepth":546,"depth":546,"links":547},"",2,[548],{"id":145,"depth":546,"text":146,"children":549},[550,552,553,554,555],{"id":150,"depth":551,"text":151},3,{"id":187,"depth":551,"text":188},{"id":330,"depth":551,"text":331},{"id":442,"depth":551,"text":443},{"id":510,"depth":551,"text":511},"Configure clinical care pipelines using visual state machines that govern how Episodes of Care progress from intake to discharge.","md",null,{},{"title":31,"icon":34},{"title":112,"description":556},"vogH_3qc8QEMl6O-9vGX1iNLygCFR-dopNDM1tGJbjo",[564,566],{"title":26,"path":27,"stem":28,"description":565,"icon":29,"children":-1},"Configure QMS Lines, Service Points, priorities, and servant assignments for hospital queueing.",{"title":41,"path":42,"stem":43,"description":567,"icon":44,"children":-1},"Standard operating procedure for spontaneous clinic visits, from front-desk registration to pharmacy dispensing and checkout, governed by Workflow Definition state machines.",1780281881240]