I wish to implement new “states” for the engine as to simulate a variety of arythmic cardiac patterns. I am wondering if you might have advise or guidance on how to go about that? where to look? where to start? Does it already exists and I just missed it?
Here is what I understood so far:
I think I will have to download the c++ source code, add my stuff and compile it again.
I will have to add some “cases” into the C# project in unity in order to find them.
I am not sure to understand fully how the changes on the curves are applied and would like to understand the philosophy and architecture of the engine before going into “details”.
ofc I would like to contribute and publish this on your rep if you allow me and would do my best to comply to your “standards”.
Oh, and the project I work on runs in unity.
While looking forward for getting an answer I wish you all the best!
enum eHeartRhythm
{
NormalSinus = 0; /**<< @brief Normal electical signal and mechanical function. */
SinusBradycardia = 1; /**<< @brief Normal electical signal with reduced heart rate. */
SinusTachycardia = 2; /**<< @brief Normal electical signal and increased heart rate. */
SinusPulselessElectricalActivity = 3; /**<< @brief Electical signal, but no mechanical function. */
Asystole = 4; /**<< @brief No electrical signal or mechanical function. */
CoarseVentricularFibrillation = 5; /**<< @brief No organized electrical signal, no mechanical function. */
FineVentricularFibrillation = 6; /**<< @brief No organized electrical signal, reduced amplitude compared to coarse VF, no mechanical function. */
PulselessVentricularTachycardia = 7; /**<< @brief Normal electical signal with reduced amplitude, but no mechanical function. */
StableVentricularTachycardia = 8; /**<< @brief Ventricular tachycardia electrical signal with increased heart rate. */
UnstableVentricularTachycardia = 9; /**<< @brief Ventricular tachycardia electrical signal with increased heart rate, reduced heart elastance. */
}
Generally,
You will need to do a literature search and find citations in papers describing how this new arrhythmia affects the physiology
(Does it increase\decrease blood pressures\heart rates? and by how much 2x/3x etc.)
Some guidance on code contribution can be found in our wiki here.
You would be extending the Arrhythmia action.
If you would like to discuss this, we would be happy to have a quick call to give some guidance. You are welcome to email me at rachel.clipp@kitware.com to set up a time to talk.
hi,I added three patterns and ECG wavefrom. Then, export dll to unity. It runs good with standmale.json. But when I test howtocreatepatient in c++ solution, it crash. HeartBaseline pointer is null. I don’t know why.
Put a break point in SEScalarFrequency& SEPatient::GetHeartRateBaseline()
This method will be hit and the m_HeartRateBaseline pointer should be null in that function and get allocated there
Then break in the double SEPatient::GetHeartRateBaseline(const FrequencyUnit& unit) const and ensure the m_HeartRateBaseline pointer has the same memory address that it was allocated to
I fix it. I invoke GetCurrentPatient in SubstanceManager::InitializeLiquidCompartmentNonGases() . Then replace GetInitialPatient. It works.
Thanks!
pulse is very good. I like it.