Clinica Diagrama de clases Practica 1 Fecha - dia : int - mes : int - anyo : int + Fecha() + Fecha(d: int, m: int, a: int) + Fecha(f: const Fecha&) + ~Fecha() + operator=(const Fecha&) : Fecha& + setDia(d: int) : bool + setMes(m: int) : bool + setAnyo(a: int) : bool + <<const>> getDia() : int + <<const>> getMes() : int + <<const>> getAnyo() : int + <<const>> isBisiesto() : bool + <<const>> imprimir(os: ostream&) : void + <<const>> toString() : string + <<const>> getDiferenciaAnyos(const Fecha&) : int + <<friend>> operator<<(os: ostream&, f: const Fecha&): ostream& Habitacion - siguienteNumero : int = 1 - numero : int + Habitacion() + Habitacion(const Habitacion&) + ~Habitacion() + operator=(const Habitacion&) : Habitacion& + getNumero() : int + getNumCamas() : int + addCama(n: int) : void + getCama(int) : Cama* + ingresaPaciente(const Paciente&) : bool + getNumeroCamaPaciente(const Paciente&) : int + quitarPaciente(const Paciente&) : void 1 * Cama + Clinica() + Clinica(const Clinica&) + ~Clinica() + operator=(const Clinica&) : Clinica& + addEspecialidad(const Especialidad&) : void + buscarEspecialidadPaciente(const Paciente&) : Especialidad* + obtenerEspecialidad(nombre : string) : Especialidad* ch to ien im ac aN 0..1 tratamiento camas + Cama() + Cama(const Cama&) + ~Cama() + operator=(const Cama&) Pedro + getPaciente() : Paciente* + setPaciente(const Paciente&) : bool + isOcupada() : bool 0..1 Diagnostico - texto: string - tipo: TipoDiagnostico + Diagnostico(tipo : TipoDiagnostico, texto: string) + Diagnostico(const Diagnostico&) + ~Diagnostico() + operator=(const Diagnostico&) : Diagnostico& + <<const>> getTexto() : string + <<const>> getTipo() : TipoDiagnostico + <<const>> getTratamiento() : Tratamiento* + <<const>> esAlta() : bool + tratar(Tratamiento*) : void <<enum>> TipoDiagnostico + tdAlta + tdLeve + tdGrave + tdMuyGrave * Especialidad - nombre : string - asignarHabitacion(const Paciente&) : bool - asignarMedico(const Paciente&) : void + Especialidad(nombre : string, jefe : const Medico&) + Especialidad(const Especialidad&) + ~Especialidad() + operator=(const Especialidad&) : Especialidad& + addHabitacion(const Habitacion&) : void + getNombre() : string + getJefeEspecialidad() : Medico* + ingresarPaciente(const Paciente&) : bool + addMedico(const Medico&) : void + getPacientesListosParaElAlta() : vector<Paciente*> + darAlta(const Paciente&) : bool + buscarHabitacion(const Paciente&) : Habitacion* + buscarMedico(const Paciente&) : Medico* + estaIngresado(const Paciente&) : bool * fe Tratamiento - texto : string + Tratamiento(string) + <<const>> getTexto() : string especialidades habitaciones paciente Paciente - NSIP : string - nombreApellidos : string - sexo : char * diagnosticos + Paciente(nsip : string, nombreApellidos : string, sexo : char, fechaNacimiento : const Fecha&) + Paciente(const Paciente&) + ~Paciente() + operator=(const Paciente&) : Paciente& + <<const>> getNSIP() : string + <<const>> getNombreApellidos() : string + <<const>> getSexo() : char + <<const>> getEdad() : int + <<const>> operator<(const Paciente&) : bool + <<const>> operator==(const Paciente&) : bool + <<const>> getUltimoDiagnostico() : Diagnostico* + diagnosticar(const Diagnostico&) : void + <<const>> estaCurado() : bool + <<friend>> operator<<(os: ostream&, p: const Paciente&) : ostream& * Medico * pacientes medicos - nombreApellidos : string + Medico(nombreAp :string) + Medico(const Medico&) + ~Medico() + operator=(const Medico&) : Medico& + getNombreApellidos() : string + addPaciente(Paciente*) : void + getCargaPacientes() : int + quitarPaciente(const Paciente&) : bool + tieneAlPaciente(const Paciente&) : bool © 2009 Pedro J. Ponce de León