The treatment will solely depend on the underlying cause. In cases of infections of the gastrointestinal tract, one will need to take suitable antibiotics or anthelminthics accordingly. For systemic conditions, like heart diseases and liver diseases, one will need to be treated on an emergency basis.