An Object Event Simulation (OES) example model. You can download and inspect its code from the OES GitHub repo.
Process Design Model

Diagnostic-Department-2

Like in Diagnostic-Department-1, the two primary business activities modeled are "perform electrocardiography (ECG)" and "perform ultrasound scan (US)", but now also the activities of patients walking to the ECG room and then to the US room are taken into consideration. While in Diagnostic-Department-1 "perform ECG" and "perform US" are modeled as two processing nodes ("servers") that subsume all secondary activities as implicit factors, we now model all relevant activities explicitly, no longer using processing nodes, but rather processing activity nodes.

Notice the special resource role association end (a dot with a bar) at the resource object type rectangle "ECG spot". It represents deferred resource de-allocation, implying that the ECG spot of a "perform ECG" activity is not released when the activity ends, but only when the follow-up activity "walk patient to US bed" starts.

The default scenario has 3 ECG spots in the ECG room, 3 US beds in the US room, 3 ECG technicians (with IDs 1-3), 3 ECG machines, and 3 doctors (with IDs 11–13).

Simulation Log
StepTimeCurrent EventsSystem StateFuture Events