////////////////////////////////////////////////////////////////////////////
//
// Script file C:\Java\WebRoot\PHIC\CLASSES\phic\resources\scripts\test.txt
// Last saved Sun Nov 09 23:42:34 GMT 2003
//
//////////////////////////////////////////////////////////////////////////
//
//  [Script name]
//  Description       = long description of purpose of script
//  Body              = code_to_execute(elapsedTime) - statements separated by semicolons
//  Continuous        = true | false - whether to call the code regularly
//  ExecutionInterval = time in seconds between successive calls, when in continuous mode
//
///////////////////
//

[Haemofiltration]
Description=This performs haemofiltration on the blood by ultrafiltering a fixed volume per hour, and adding and equal volume of a replacement fluid.
Body=f=blood.ultraFiltrate(0.2*elapsedTime); blood.add(Fluids.get("Lactasol",f .volume))
Continuous=false
ExecutionInterval=1800.0

[Vasogenic shock]
Description=Simulates septic shock by regularly adding a vasodilator to the blood.
Body=gitract.stomach.add(Pharmacy.dispenseAmpoule("Hydralazine",0.600))
Continuous=false
ExecutionInterval=3600.0

[Diurnal temperature]
Description=Simulates variation of ambient temperature over day and night.
Body=environment.Temp.lowPassQuantity(ramp( mod(clock.getTime()/1000,60*60*24)/(60*60*12) ), 0.01)
Continuous=false;
ExecutionInterval=36
