コード例 #1
0
        public Patient GetAnalyzedPatient(string id)
        {
            var patient         = _patientRepository.GetPatient(id);
            var analyzedPatient = _decision.Analyze(patient);

            if (analyzedPatient.IsDizzy && analyzedPatient.AngleTilted == 0)
            {
                analyzedPatient.ShouldCallEmergency = true;
            }
            return(analyzedPatient);
        }