Ejemplo n.º 1
0
        public List<Paciente> getPacientes(Paciente paciente)
        {
            List<Paciente> listPaciente = new List<Paciente>();

            if (!string.IsNullOrEmpty(paciente.Nome))
            {
                listPaciente = repPaciente.obterPacientes(paciente.Nome);
            }
            else if (!string.IsNullOrEmpty(paciente.Protocolo))
            {
                listPaciente.Add(repPaciente.obterPaciente(paciente.Protocolo));
            }

            return listPaciente;
        }
Ejemplo n.º 2
0
        public Agendamento(Paciente paciente, DateTime dia, ETipoDeTratamento tipo)
        {
            if (paciente == null)
            {
                throw new ArgumentNullException("paciente");
            }
            else if(dia == null)
            {
                throw new ArgumentNullException("dia");
            }

            this.Paciente = paciente;
            this.PacienteId = paciente.Id;
            this.DiaDoAgendamento = dia;
            this.TipoDeTratamento = tipo;
        }