Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
package com.ppk.covidcheck.service;
import com.ppk.covidcheck.model.Patient;
import com.ppk.covidcheck.model.Result;
import com.ppk.covidcheck.model.Symptomps;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;
public class EvaluatePatientForCorona {
public Result evaluatePatient(Patient patient){
Result result=new Result();
Symptomps symptomps=patient.getSymptomps();
if(symptomps.isHasBreathingDifficulty() && symptomps.isHasCough() && symptomps.isHasFever() && symptomps.isHasTiredness())
result.setResult("VERY LIKELY");
return result;
else {
result.setResult("NOT LIKELY");
return result;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.