> For the complete documentation index, see [llms.txt](https://meddroid.gitbook.io/meddroid-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://meddroid.gitbook.io/meddroid-docs/meddroid-sync-os/simulator.md). Agents can also search and read this documentation through its [MCP server](https://meddroid.gitbook.io/meddroid-docs/~gitbook/mcp).

# Hospital Simulator

Attach virtual department computers to the Sync box and watch a whole hospital run on MedDroid. Use it to show a hospital manager, or to test the box before go-live.

{% hint style="info" %}
Every simulated computer and patient is marked **SIM** / Simulated. **Stop** removes all of them. Your real records are never touched.
{% endhint %}

## Set up a demo hospital

1. Open **Simulator** (menu group **Clinic**).
2. Under **Set up a demo hospital**, type a **Name**.
3. Pick how many **Computers**: **3**, **9**, **12**, **25**, **50**, or **Custom** (up to 50).
4. Check the **Departments**. They fill in for the size you pick. Tap a name to rename it.
5. Pick a **Pace**: **Calm**, **Busy morning** or **Rush hour**.

![Set up a demo hospital and the capacity check](https://1327413857-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FElfYncUA5glVE76gf6bU%2Fuploads%2Fgit-blob-8d166a619746e148e23fca34d66b1b0d7670fa89%2Fsync-simulator-1-d.jpg?alt=media)

## Check the capacity bar

1. Read **Can this box handle it?** on the right. It shows the box's processor, free memory, free storage and graphics card.
2. The bar has three zones: green **Smooth**, amber **Tight**, red **May hang**. The black marker is the size you picked.
3. The line under the bar says what to expect, for example "12 computers: smooth. Good for the live demo."
4. For a live demo, stay in the green zone.

## Start and show the manager

1. Press **Start with N computers**. The computers join the box one by one.
2. The tiles show **Computers online**, **Patients in hospital**, **Records synced**, **Average sync time**, **Master Brain cards** and **Conflicts resolved**.
3. Under **Show the manager**, each button plays a real situation:
   * **Unplug** a ward (for example **Unplug Ward 2**, then **Plug Ward 2 back in**): the ward keeps working offline and catches up when it is back.
   * **Critical lab result**: Master Brain sends it to the doctor; the doctor's screen turns red.
   * **Two departments edit one record**: shows how a conflict is handled.
   * **Rush hour: 20 patients arrive**.
   * **Pause** / **Resume**.
4. Watch **Box load**, **Department computers**, **Patient journey** and **Live activity**.

![The simulator running with the demo buttons](https://1327413857-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FElfYncUA5glVE76gf6bU%2Fuploads%2Fgit-blob-cd9cdc853aa72aa5d1d4296cab09a5b879f8dcbd%2Fsync-simulator-2-d.jpg?alt=media)

## Look inside one computer

1. Click a computer screen under **Department computers**.
2. The **Computer** panel opens with three tabs:
   * **Inbox**: the Master Brain cards this department received.
   * **Apps**: install a Marketplace app on it.
   * **Send data**: fill a short form (for example a lab result) and send it through the box like a real computer.
3. Press **Close** to go back to Live activity.

![One simulated computer and its inbox](https://1327413857-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FElfYncUA5glVE76gf6bU%2Fuploads%2Fgit-blob-92f9402d668e56205c15bc8a477a352af7edbf6c%2Fsync-simulator-3-d.jpg?alt=media)

## Stop

1. Press **Stop and remove simulation** (red).
2. The box removes every simulated computer, patient and record, and shows how many it removed.

{% hint style="info" %}
Good to know: each simulated computer is a light connection inside the box (about 45 MB of memory), not a full copy of the Providers app. They connect from addresses on the box itself (127.0.0.21, .22, …), not from separate network cards. Network shows them with a **Simulated** tag.
{% endhint %}
