public boolean userCanRead(String uid, String uunit, Patient person, JournalEntry entry) {
		int type = findType(uid);
		if (type == TYPE_GOV) {
			return true;
		} else if (type == TYPE_DOCTOR) {
			if (entry.getDoctorId().equals(uid) || entry.getUnit().equals(uunit)) {
				return true;
			}
		} else if (type == TYPE_NURSE) {
			if (entry.getUnit().equals(uunit)) {
				return true;
			}
		} else if (type == TYPE_PATIENT) {
			if (person.getId().equals(uid)) {
				return true;
			}
		}
		return false;
	}