src/Person.java
/**
	 * check whether a patient is hospitalized
	 *
	 * @return true if a patient is hospitalized, false if otherwise
	 */
check whether a patient is hospitalized
@return true if a patient is hospitalized, false if otherwise
check whether a patient is hospitalized @return true if a patient is hospitalized false if otherwise
public boolean checkHospitalize() {
		if(state == State.HOSPITALIZE)
			return true;
		else
			return false;
	}
public boolean checkHospitalize ( ) { if ( state == State . HOSPITALIZE ) return true ; else return false ; }
check whether a patient is hospitalized
 @return true if a patient is hospitalized, false if otherwise
check whether a patient is hospitalized @return true if a patient is hospitalized false if otherwise