InfraCityOpen editor

A prescription order · work flow

Not infrastructure: a prescription order passing between the web shop, the pharmacist, the vet and dispatch, with responsibility drawn as a boundary.

A prescription order · work flow, drawn as an isometric city

The CityScript

This is all there is to it. Change it in the editor and the city redraws.

%% A prescription order in a veterinary pharmacy: from the order form to the customer's door.
%% Not infrastructure, so it asks for the work flow pack (packs=workflow): buildings are teams, rooms are the
%% forms, inboxes, checks and records they work with, and a boundary is who carries professional responsibility.
%% Every link that crosses it is guarded: a prescription never reaches a desk that may not see it.
city 42x26 packs=workflow

district front "Web shop" 3,4..8,9
district inside "Pharmacy" 12,4..18,9
district outside "Vet practice" 12,12..18,17
district sending "Dispatch" 22,4..28,9
district doorstep "Customer" 32,4..37,9

building web counter at 4,5 "Web shop" owner="Shop"
  floor web.f "Order"
    room web.form form "Order form"
    room web.upload form "Prescription upload"
    room web.notice notice "Order confirmed"

building pharmacy office at 13,5 "Pharmacy" owner="Pharmacist"
  floor pharmacy.desk "At the desk"
    room pharmacy.inbox inbox "Orders to check"
    room pharmacy.rule rule "Needs a prescription?"
    room pharmacy.check review "Pharmacist's check"
    room pharmacy.prepare task "Prepare the medicine"
    room pharmacy.refuse notice "Tell the customer: no"
  floor pharmacy.files "In the files"
    room pharmacy.records records "Prescriptions, kept 5 years"

building vets office at 13,13 "Vet practice" owner="Vet"
  floor vets.f "At the practice"
    room vets.inbox inbox "Requests to confirm"
    room vets.confirm review "Vet confirms"

building dispatch office at 23,5 "Dispatch" owner="Warehouse team"
  floor dispatch.f "Sending"
    room dispatch.inbox inbox "Ready to pack"
    room dispatch.pack task "Pack and label"
    room dispatch.notice notice "Shipping notice"

building home counter at 33,5 "Customer" owner="Customer"
  floor home.f "At home"
    room home.inbox notice "Customer's messages"

boundary regulated "Professional responsibility" members=pharmacy,vets

gate orders at 0,6 "Orders come in"
road orders -> web

link web.form -> pharmacy.inbox "order" variant=security
link web.upload -> pharmacy.inbox "prescription" variant=security
link pharmacy.inbox -> pharmacy.rule "which medicine"
link pharmacy.rule -> pharmacy.check "prescription needed" variant=emphasis
link pharmacy.check -> pharmacy.records "keep a copy" variant=dashed
link pharmacy.check -> vets.inbox "ask the vet" variant=emphasis
link vets.inbox -> vets.confirm "to confirm"
link vets.confirm -> pharmacy.check "confirmed"
link pharmacy.check -> pharmacy.prepare "approved" variant=emphasis
link pharmacy.check -> pharmacy.refuse "not approved" variant=dashed
link pharmacy.prepare -> dispatch.inbox "approved order" variant=security
link dispatch.inbox -> dispatch.pack "to pack"
link dispatch.pack -> dispatch.notice "shipped"
link dispatch.notice -> home.inbox "tracking"
link pharmacy.refuse -> home.inbox "reason" variant=security
link web.notice -> home.inbox "order confirmed" variant=dashed

%% The way of an order, and of one that is refused.
pipeline order "A prescription order" web -> [place] -> pharmacy -> [check] -> vets -> [confirm] -> pharmacy -> [approve] -> dispatch -> [pack] -> home
  step web "The customer orders a prescription"
  step pharmacy "The pharmacy receives the order and checks it"
  step vets "The vet confirms the prescription"
  step pharmacy "The pharmacy approves the order"
  step dispatch "The order is packed and handed to dispatch"
  step home "It arrives at the customer's door"
pipeline refused "An order that is refused" pharmacy -> [refuse] -> home
  step pharmacy "The pharmacy cannot fill the order"
  step home "The customer is told it was refused"