Now, it can be done with a branch (for instance), but it would be far more elegant to have an specific verb for this. Leave, stop, drop...?
So instead of
patient <- create_trajectory() %>%
seize("bed", 1, priority=induction1) %>%
timeout(induction1_timeout) %>%
branch(induction1_prob_continue, c(T, F),
create_trajectory() %>% release("bed"),
create_trajectory() %>% release("bed")) %>%
seize("bed", 1, priority=induction2) %>%
...
we could do this:
patient <- create_trajectory() %>%
seize("bed", 1, priority=induction1) %>%
timeout(induction1_timeout) %>%
release("bed") %>%
leave(induction1_prob_leave) %>%
seize("bed", 1, priority=induction2) %>%
...
Now, it can be done with a
branch(for instance), but it would be far more elegant to have an specific verb for this. Leave, stop, drop...?So instead of
we could do this: