... | ... | @@ -48,8 +48,7 @@ message AnyPatientConditionData |
|
|
}
|
|
|
}
|
|
|
```
|
|
|
With our changes in place, we will need to generate the appropriate bindings classes.
|
|
|
From the <path/to/pulse/build>/install/bin directory run the following command:
|
|
|
|
|
|
```
|
|
|
cmake -DTYPE:STRING=protoc -P run.cmake
|
|
|
# There is also .bat and .sh scripts to make this a little easier
|
... | ... | @@ -59,6 +58,23 @@ run protoc |
|
|
./run.sh protoc
|
|
|
```
|
|
|
|
|
|
Update Convergence Criteria
|
|
|
---------------------------
|
|
|
|
|
|
A condition is applied during patient stabilization in order to ensure the homeostatic baselines properly take into account any and all condition data set on the patient. Each condition can modify any values in the engine, with the goal of affecting various system level properties. At the end of stabilization all of these affected system properties need to be in a homeostatic state, i.e. at a relatively level value. We provide a way to define your convergence criteria for your condition in our [Data Spread Sheet](https://gitlab.kitware.com/physiology/engine/blob/master/data/Data.xlsx). You will need to add a convergence criteria block for your condition in this spreadsheet. We suggest you copy the standard convergence block and add system level data specific associated with your condition. You provide the amount change the value needs to stay within during stabilization to signal that the condition is stable and the engine can start simulation.
|
|
|
|
|
|
|
|
|
With our changes in place, we will need to generate the convergence data file.
|
|
|
From the <path/to/pulse/build>/install/bin directory run the following command:
|
|
|
```
|
|
|
cmake -DTYPE:STRING=genData -P run.cmake
|
|
|
# There is also .bat and .sh scripts to make this a little easier
|
|
|
# On windows, you can type
|
|
|
run genData
|
|
|
# or, on Linux
|
|
|
./run.sh genData
|
|
|
```
|
|
|
|
|
|
Create the Common Data Model C++ Condition
|
|
|
------------------------------------------
|
|
|
Now we are ready to create the C++ files specific to this condition class.
|
... | ... | |