// This file is provides a way to dynamically link the state of the body
// in Phic to the pathology engine. It is then possible to use pathological
// terms to describe values that are out of range. Ultimately, the
// pathology program will be able to diagnose the cause of the clinical
// picture given by these problems, e.g. 
// Hyperkalaemia + Hypovolaemia = Addison disease
// (See medical pathology engine, separate program)

[Pathology]
//Biochem
Hypokalaemia = Low body.blood.PK
Hyperkalaemia = High body.blood.PK
Hyponatraemia = Low body.blood.PNa
Hypernatraemia = High body.blood.PNa
Hyperglycaemia = High body.blood.glucose
Hypoglycaemia = Low body.blood.glucose
Hypercalcaemia = High body.blood.Ca
Hypocalcaemia  = Low body.blood.Ca
Hypoalbuminaemia = Low body.blood.PAlb
Acidosis = Low body.blood.pH
Alkalosis = High body.blood.pH
High creatinine = High body.blood.PCreat
Hyperthyroidism = High body.blood.Thyr
Hypothyroidism = Low body.blood.Thyr

//Respiratory
Hypercapnia = High body.blood.arterial.PCO2
Hypocapnia = Low body.blood.arterial.PCO2
Cyanosis = Low body.blood.SatO2
Anaemia = Low body.blood.Hct
Polycythaemia = High body.blood.Hct
Tachypnoea = High body.lungs.RespR
Ventilatory failure = Low body.lungs.RespR
Pulmonary oedema = High body.lungs.Oedema

//Cardiovascular
Hypervolaemia = High body.blood.volume
Hypovolaemia = Low body.blood.volume
Hypertension = High body.CVS.AP
Shock = Low body.CVS.AP
Tachycardia = High body.CVS.heart.rate
Bradycardia = Low body.CVS.heart.rate
Raised JVP = High body.CVS.heart.RAP

Myocardial ischaemia = Low body.CVS.heart.flow
Cerebral hypoxia = Low body.brain.O2Supply
Oedema = High body.ecf.volume
Dehydration = Low body.ecf.volume

//Renal
Polyuria = High body.kidney.urineFlow
Oliguria = Low body.kidney.urineFlow
Glycosuria = High body.kidney.urine.glucose
//Uraemia = High body.blood.urea

//Other
Fever = High body.Temp
Hypothermia = Low body.Temp
Ketosis = High body.blood.ketones
Obesity = High body.Fat.mass

[Simulate]
Conn syndrome = Produce body.blood.Aldosterone
