Exemplo n.º 1
0
        private Examination CreateExamination(ISheet sheet, ExaminationType type, Patient client)
        {
            var reader      = new ExtendedExaminationReader(sheet);
            var examination = new Examination
            {
                Type                    = type,
                Hash                    = Hash.Generate(reader.Id + client.Id),
                Owner                   = client,
                Ph                      = reader.Ph,
                StoolConsistency        = Converter.SetConsistency(reader.StoolConsistency),
                GeneralNumberOfBacteria = reader.GeneralNumberOfBacteria,
                Results                 = reader.Results
            };

            if (type == ExaminationType.EXTENDED)
            {
                return(SetExtendedValues(reader, examination));
            }
            return(examination);
        }
Exemplo n.º 2
0
 private Examination SetExtendedValues(ExtendedExaminationReader reader, Examination extendedExamination)
 {
     extendedExamination.HasAkkermansiaMuciniphila     = Converter.HasMarkers(reader.HasAkkermansiaMuciniphila);
     extendedExamination.HasFaecalibactriumPrausnitzii = Converter.HasMarkers(reader.HasFaecalibactriumPrausnitzii);
     return(extendedExamination);
 }