Skip to content

Conversation

@denispol
Copy link

@denispol denispol commented Nov 8, 2025

When merged this pull request will:

  • Align dose cloning with the engine’s clone-before-apply pattern by adding ACE_Medical_Dose::CloneDose and ForceExpire() to guarantee per-patient instances.
  • Override CloneDose() in bolus and infusion to copy subclass fields and reset flags, and add ACE_Medical_Infusion::Stop() with expiration based on blood-flow–scaled rate.
  • Scale IV infusion delivery by circulation in ACE_Medical_Infusion::ComputeConcentration using ACE_Medical_GetBloodFlowScale().
  • Pass ACE_Medical_CharacterContext and float timeSlice through ACE_Medical_Medication_SimulationJob and all ApplyEffect overrides to match the engine’s EOnFrame(float timeSlice) processing.
  • Implement ACE_Medical_ConsumableSalineInfusion (subclass of SCR_ConsumableSalineBag) that clones configured doses server-side and prevents stacking active SALINE infusions (a single saline bag can be administered at the time being).
  • Add ACE_Medical_SalineBagUserAction to validate consumable availability and wire UI text/icon for starting the infusion.
  • Update SalineBag_01_base.et to use the new consumable, zero absolute regeneration, and configure a single ACE_Medical_Infusion prototype at 0.83– ml/s for 600 s.
  • Introduce ACE_Medical_EDrugType::SALINE and add SALINE pharmacokinetics to Settings.conf (activation/deactivation = 1) so fluid calculations use config.
  • Add ACE_Medical_MedicationComponent::StopInfusionsForDrug to stop and force-expire SALINE infusions automatically when blood volume reaches capacity.
  • Expand diagnostics under ENABLE_DIAG (via ACE_Medical_Medication_DiagState) to display base/effective ml/s, delivered volume, bag capacity, and patient uptake with smoothed readouts.

Documentation not updated

@denispol denispol force-pushed the medical/fix-iv-bloodflow branch from 6f4b326 to 61279b9 Compare November 8, 2025 22:00
@Kexanone Kexanone added kind/feature Release Notes: **ADDED:** status/blocked Waiting for dependency to be merged first labels Nov 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/feature Release Notes: **ADDED:** status/blocked Waiting for dependency to be merged first

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants