Mathf.InverseLerp is giving Input.mousePosition.x as a percentage between 0 and Screen.width. This means if the screen is 800 wide, and mouseX is 160, then what is returned is 0.2 or 20% ( 0.2 * 800 = 160 ).
This is what you need to change to make it work with health. If the minimum and maximum is 0 and Screen.width, change it to 0 and maximumHealth variable. Then for Input.mousePosition.x, change this to your health variable.