Write the daily platelet ordering policy for a hospital transfusion service for a quarter in which a cardiac surgery programme opens and the supplier switches to shorter-dated pathogen-reduced units; it is scored by simulation over hidden quarters.
harbor run -t reactive-labs/platelet-orderingharbor download reactive-labs/platelet-orderingYou are Renata Okafor, Transfusion Service Supervisor at Merrow Valley Medical Center in Ashcombe. Every morning at 07:00 the platelet bench counts the shelf and places the next routine order with Allegra Regional Blood Center (ARBC), plus a STAT order if one is needed. Today is Monday 1 March 2027. Hal Brennan, Director of Laboratory Operations, wrote to you this morning:
I want the ordering rule for the quarter that starts Monday 8 March (through Sunday 6 June) written as a policy the bench can run every morning, in the format Dev's PLT-Plan model takes, so we can test it against the model before it goes live and the LIS team can wire it to the 07:00 review screen. It will be judged on the TS-POL-014 section 9 cost for the quarter and on never breaching section 6.
In /app/inputs:
RE_Q2_platelet_ordering_policy_go-live_8_March.eml: the thread with Hal, Finance, LIS and ARBCMVMC_TS-POL-014_Platelet_Inventory_Management_RevF.docx: the platelet inventory policyARBC-HSA-2026-0147_Hospital_Supply_Agreement.docx and
ARBC-HSA-2026-0147_Amendment_No2_Pathogen_Reduced_Platelets.pdf: the supply agreement and its amendmentMVMC_CT_Surgery_Programme_Launch_Memo_2027-02-17.docx: the cardiothoracic programme's opening planHemaTrack_PLT_activity_...csv (every platelet
receipt, issue and discard), HemaTrack_HemOnc_morning_PLT_counts_...csv, ORIS_type_and_screen_case_list_...csv,
ED_trauma_activations_...csv and ARBC_LinkOrder_billing_lines_...csvIn /app/sim: PLT-Plan, the model the department uses to test ordering rules (README.md explains it and the
policy interface), with starter_policy.py (current practice) and the Q4 2026 baseline config and seeds 1-20.
Run it from /app with python -m sim.run --policy <file> --seeds 1-20.
/app/output/policy.py, defining a class Policy exactly as in /app/sim/README.md:
Policy() is constructed once per quarter with no arguments; it may load data files that you put in
/app/output next to it (find them relative to __file__).decide(obs) is called once a day at the 07:00 review with the observation described in the README: the
date, the shelf by unit (group, low-titer flag, product, days left), the routine deliveries already on order,
the requests since the last review, the oncology census with this morning's platelet counts, scheduled
oncology admissions for the next 10 days, and the OR type-and-screen list for today and the next 3 days. It
returns {"routine": {"O": n, "A": n, "B": n, "AB": n}, "stat": {"O": n, "A": n, "B": n, "AB": n}} with
non-negative integers. routine is the routine delivery on routine_delivery_date, two days later (ignored
when that is null); stat is delivered at 10:00 the same day.Your policy will be run, call by call, over many simulated quarters like the one Hal describes, 8 March to 6 June 2027, under the agreement and TS-POL-014 as they apply to that quarter. Each quarter is scored on its TS-POL-014 section 9 cost as the share of the possible saving you capture: zero at what current practice (Appendix B par levels) costs on the same quarter, full marks at what a plan costs that knew that quarter's every request and delivery in advance. No rule that has to order ahead of the facts can reach full marks; every dollar saved counts. A quarter in which any 07:00 review ends with the trauma reserve short of section 6, or in which the policy fails, returns an invalid order or breaks the time limits, scores zero.