# Directly Setting Values in Patient From Code

**URL:** <https://discourse.kitware.com/t/directly-setting-values-in-patient-from-code/1223>\
**Category:** Pulse Physiology Engine\
**Created:** [February 22, 2024, 12:00pm UTC](https://discourse.kitware.com/t/directly-setting-values-in-patient-from-code/1223 "2024-02-22T12:00:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![NucleusDev](https://discourse.kitware.com/letter_avatar_proxy/v4/letter/n/ba8739/32.png) [@NucleusDev](https://discourse.kitware.com/u/NucleusDev)\
**Post date:** [February 22, 2024, 12:00pm UTC](https://discourse.kitware.com/t/directly-setting-values-in-patient-from-code/1223/1 "2024-02-22T12:00:13Z")

</div>

I want to create a function that can change certain parameters like temperature to begin with in the Patient… IM using the UNreal Plugin and wanted to know if there is a way to directly set a starting temperature that would not get overriden .

---

<div class="post-metadata">

**Author:** ![abray](https://discourse.kitware.com/user_avatar/discourse.kitware.com/abray/32/12_2.png) [@abray](https://discourse.kitware.com/u/abray)\
**Post date:** [February 22, 2024, 1:30pm UTC](https://discourse.kitware.com/t/directly-setting-values-in-patient-from-code/1223/2 "2024-02-22T13:30:19Z")

</div>

Currently, the energy and environment systems are the only systems influencing the patient’s temperature. So you would need to either have the patient perform some exercise, or turn up the ambient temperature in the environmental conditions. This may or may not put the physiology in the appropriate state for your specific scenario. You could potentially experiment with setting the initial patient Basal Metabolic Rate, but I am not sure if the downstream effects of that would be acceptable or not.

Of course the question is, why is the patient temperature increasing, and make sure that we model that fundamental reason appropriately

---

<div class="post-metadata">

**Author:** ![NucleusDev](https://discourse.kitware.com/letter_avatar_proxy/v4/letter/n/ba8739/32.png) [@NucleusDev](https://discourse.kitware.com/u/NucleusDev)\
**Post date:** [February 22, 2024, 2:10pm UTC](https://discourse.kitware.com/t/directly-setting-values-in-patient-from-code/1223/3 "2024-02-22T14:10:08Z")

</div>

I need the patient to be Hyperthermic as a result of an infection that I’m dealing with outside pulse. What would be the best approach for this

---

<div class="post-metadata">

**Author:** ![rachel.clipp](https://discourse.kitware.com/user_avatar/discourse.kitware.com/rachel.clipp/32/195_2.png) [@rachel.clipp](https://discourse.kitware.com/u/rachel.clipp)\
**Post date:** [February 22, 2024, 2:14pm UTC](https://discourse.kitware.com/t/directly-setting-values-in-patient-from-code/1223/4 "2024-02-22T14:14:09Z")

</div>

There is not a good way to do this in Pulse currently. We would need to model the effect of the infection on the patient, including the temperature change.
