<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
bien, eso lo hablamos y resolvimos no agregarlo como una entidad sino como un atributo de Obra Social, y decidimos no gestionarlas porque siempre van a ser las mismas tres, por eso lo agrego en la normalización como una tabla que voy a crear yo una única vez igual que la tabla de estedos o de sexo..<br>estoy ubicado?<br><br><br>&gt; From: leonardot@pegasusnet.com.ar<br>&gt; To: php-avanzado@pato2.fi.mdp.edu.ar<br>&gt; Date: Mon, 5 Jul 2010 23:26:14 -0300<br>&gt; Subject: Re: [Php-avanzado] normalización<br>&gt; <br>&gt; Hola Bruno,<br>&gt; <br>&gt; El mar, 06-07-2010 a las 01:15 +0000, br1 meschini escribió:<br>&gt; &gt; hola leo..<br>&gt; &gt; lo que le interesa al cliente es saber la cantidad de pacientes<br>&gt; &gt; atendidos por cada entidad de facturación.<br>&gt; <br>&gt;         Ok.<br>&gt;         Agregá a tu SRS las entidades de facturación, así tengo un contexto<br>&gt; para conversar contigo sobre la normalización...<br>&gt; <br>&gt; &gt; &gt; From: leonardot@pegasusnet.com.ar<br>&gt; &gt; &gt; To: php-avanzado@pato2.fi.mdp.edu.ar<br>&gt; &gt; &gt; Date: Mon, 5 Jul 2010 17:58:44 -0300<br>&gt; &gt; &gt; Subject: Re: [Php-avanzado] normalización<br>&gt; &gt; &gt; <br>&gt; &gt; &gt; Hola Bruno,<br>&gt; &gt; &gt; <br>&gt; &gt; &gt; El sáb, 03-07-2010 a las 18:40 +0000, br1 meschini escribió:<br>&gt; &gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; &gt; From: leonardot@pegasusnet.com.ar<br>&gt; &gt; &gt; &gt; &gt; To: php-avanzado@pato2.fi.mdp.edu.ar<br>&gt; &gt; &gt; &gt; &gt; Date: Sat, 3 Jul 2010 08:33:01 -0300<br>&gt; &gt; &gt; &gt; &gt; Subject: Re: [Php-avanzado] normalización<br>&gt; &gt; &gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; &gt; Hola Bruno,<br>&gt; &gt; &gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; &gt; la normalización se ve bien.<br>&gt; &gt; &gt; &gt; &gt; Te hago dos consultas abajo:<br>&gt; &gt; &gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; &gt; El vie, 02-07-2010 a las 20:09 +0000, br1 meschini escribió:<br>&gt; &gt; &gt; &gt; &gt; &gt; hola leo, te paso las tablas con las modificaciones que<br>&gt; &gt; hablamos<br>&gt; &gt; &gt; &gt; ayer,<br>&gt; &gt; &gt; &gt; &gt; &gt; pase <br>&gt; &gt; &gt; &gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; &gt; &gt; entidades de facutración<br>&gt; &gt; &gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; &gt; de esto te quería preguntar!<br>&gt; &gt; &gt; &gt; &gt; Qué son las entidades de facturación? <br>&gt; &gt; &gt; &gt; &gt; No las recuerdo en tu SRS...<br>&gt; &gt; &gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; &gt; &gt; estados de obras sociales <br>&gt; &gt; &gt; &gt; &gt; &gt; sexo<br>&gt; &gt; &gt; &gt; &gt; &gt; días<br>&gt; &gt; &gt; &gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; &gt; &gt; a tablas aparte pero me queda la duda de donde incluir el id<br>&gt; &gt; de<br>&gt; &gt; &gt; &gt; &gt; &gt; días...<br>&gt; &gt; &gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; &gt; Esa era la otra pregunta!<br>&gt; &gt; &gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; &gt; Si es más de un día a la semana, te hace falta relacionar la<br>&gt; &gt; &gt; &gt; &gt; rehabilitación con los días que se tomará. Esto es una relación<br>&gt; &gt; uno<br>&gt; &gt; &gt; &gt; a<br>&gt; &gt; &gt; &gt; &gt; muchos entre las rehabilitaciones y sus días, así que te hace<br>&gt; &gt; falta<br>&gt; &gt; &gt; &gt; una<br>&gt; &gt; &gt; &gt; &gt; tabla más para poder almacenar que a una rehabilitación dada le<br>&gt; &gt; toca<br>&gt; &gt; &gt; &gt; uno<br>&gt; &gt; &gt; &gt; &gt; o más días...<br>&gt; &gt; &gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; &gt; &gt; OBRAS SOCIALES.<br>&gt; &gt; &gt; &gt; &gt; &gt; id_obrasocial<br>&gt; &gt; &gt; &gt; &gt; &gt; nombre<br>&gt; &gt; &gt; &gt; &gt; &gt; id_estado<br>&gt; &gt; &gt; &gt; &gt; &gt; id_entidad<br>&gt; &gt; &gt; &gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; &gt; &gt; ENTIDADES DE FACTURACION<br>&gt; &gt; &gt; &gt; &gt; &gt; id_entidad<br>&gt; &gt; &gt; &gt; &gt; &gt; nombre<br>&gt; &gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; bien las entidades de facturación son tres, siempre las mismas por<br>&gt; &gt; el<br>&gt; &gt; &gt; &gt; eso el sistema no las gestiona pero seria el mismos caso que el de<br>&gt; &gt; &gt; &gt; sexo o<br>&gt; &gt; &gt; &gt; el de estado de obras sociales, lo tendria que poner yo para que a<br>&gt; &gt; la<br>&gt; &gt; &gt; &gt; hora de elegir la entidad de cada mutual este escrito siempre<br>&gt; &gt; igual<br>&gt; &gt; &gt; &gt; ¿es correcto?<br>&gt; &gt; &gt; <br>&gt; &gt; &gt; Sí, es correcto.<br>&gt; &gt; &gt; Agregalas al diccionario para ver al menos qué atributos tienen.<br>&gt; &gt; &gt; <br>&gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; &gt; &gt; ESTADOS OBRAS SOCIALES.<br>&gt; &gt; &gt; &gt; &gt; &gt; id_estado<br>&gt; &gt; &gt; &gt; &gt; &gt; estado<br>&gt; &gt; &gt; &gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; &gt; &gt; PLANES OBRA SOCIAL.<br>&gt; &gt; &gt; &gt; &gt; &gt; id_plan<br>&gt; &gt; &gt; &gt; &gt; &gt; plan<br>&gt; &gt; &gt; &gt; &gt; &gt; id_obrasocial<br>&gt; &gt; &gt; &gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; &gt; &gt; MÉDICO DERIVANTE.<br>&gt; &gt; &gt; &gt; &gt; &gt; id_medicoderivante<br>&gt; &gt; &gt; &gt; &gt; &gt; nombre<br>&gt; &gt; &gt; &gt; &gt; &gt; apellido<br>&gt; &gt; &gt; &gt; &gt; &gt; teléfono (opcional)<br>&gt; &gt; &gt; &gt; &gt; &gt; email (opcional)<br>&gt; &gt; &gt; &gt; &gt; &gt; lugar donde trabaja (opcional)<br>&gt; &gt; &gt; &gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; &gt; &gt; DIAGNÓSTICO<br>&gt; &gt; &gt; &gt; &gt; &gt; id_dg<br>&gt; &gt; &gt; &gt; &gt; &gt; dg<br>&gt; &gt; &gt; &gt; &gt; &gt; id_rehabilitación<br>&gt; &gt; &gt; &gt; &gt; &gt; id_medicoderivante<br>&gt; &gt; &gt; &gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; &gt; &gt; KINESIÓLOGOS<br>&gt; &gt; &gt; &gt; &gt; &gt; id_kinesiologo<br>&gt; &gt; &gt; &gt; &gt; &gt; nombre<br>&gt; &gt; &gt; &gt; &gt; &gt; apellido<br>&gt; &gt; &gt; &gt; &gt; &gt; tel<br>&gt; &gt; &gt; &gt; &gt; &gt; email<br>&gt; &gt; &gt; &gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; &gt; &gt; PACIENTES<br>&gt; &gt; &gt; &gt; &gt; &gt; id_paciente<br>&gt; &gt; &gt; &gt; &gt; &gt; nombre<br>&gt; &gt; &gt; &gt; &gt; &gt; apellido<br>&gt; &gt; &gt; &gt; &gt; &gt; id_sexo<br>&gt; &gt; &gt; &gt; &gt; &gt; fecha de nacimiento<br>&gt; &gt; &gt; &gt; &gt; &gt; dirección<br>&gt; &gt; &gt; &gt; &gt; &gt; tel<br>&gt; &gt; &gt; &gt; &gt; &gt; email<br>&gt; &gt; &gt; &gt; &gt; &gt; id_plan<br>&gt; &gt; &gt; &gt; &gt; &gt; número de asociado<br>&gt; &gt; &gt; &gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; &gt; &gt; SEXOS<br>&gt; &gt; &gt; &gt; &gt; &gt; id_sexo<br>&gt; &gt; &gt; &gt; &gt; &gt; sexo<br>&gt; &gt; &gt; &gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; &gt; &gt; REHABILITACIONES<br>&gt; &gt; &gt; &gt; &gt; &gt; id_rehabilitación<br>&gt; &gt; &gt; &gt; &gt; &gt; id_paciente<br>&gt; &gt; &gt; &gt; &gt; &gt; cantidad de sesiones<br>&gt; &gt; &gt; &gt; &gt; &gt; fecha de inicio<br>&gt; &gt; &gt; &gt; &gt; &gt; abandono(motivo)<br>&gt; &gt; &gt; &gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; &gt; &gt; DIAS<br>&gt; &gt; &gt; &gt; &gt; &gt; id_dia<br>&gt; &gt; &gt; &gt; &gt; &gt; nombre<br>&gt; &gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; DIAS_REHABILITACIONES<br>&gt; &gt; &gt; &gt; id_rehabilitación<br>&gt; &gt; &gt; &gt; id_dia<br>&gt; &gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; &gt; &gt; ASISTENCIAS<br>&gt; &gt; &gt; &gt; &gt; &gt; id_asistencia<br>&gt; &gt; &gt; &gt; &gt; &gt; id_rehabilitación<br>&gt; &gt; &gt; &gt; &gt; &gt; horario<br>&gt; &gt; &gt; &gt; &gt; &gt; id_kinesiologo<br>&gt; &gt; &gt; &gt; &gt; &gt; pago que realizó <br>&gt; &gt; &gt; <br>&gt; &gt; &gt; Para qué se usan las Entidades de Facturación???<br>&gt; &gt; &gt; <br>&gt; &gt; &gt; -- <br>&gt; &gt; &gt; <br>&gt; &gt; &gt; Leonardo Tadei<br>&gt; &gt; &gt; leonardot@pegasusnet.com.ar<br>&gt; &gt; &gt; http://blog.pegasusnet.com.ar<br>&gt; &gt; &gt; Firma pública: http://www.pegasusnet.com.ar/LeonardoTadei-public.key<br>&gt; &gt; &gt; <br>&gt; &gt; &gt; _______________________________________________<br>&gt; &gt; &gt; Php-avanzado mailing list<br>&gt; &gt; &gt; Php-avanzado@pato2.fi.mdp.edu.ar<br>&gt; &gt; &gt; http://www3.fi.mdp.edu.ar/cgi-bin/mailman/listinfo/php-avanzado<br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; ______________________________________________________________________<br>&gt; &gt; Hotmail is redefining busy with tools for the New Busy. Get more from<br>&gt; &gt; your inbox. See how.<br>&gt; &gt; _______________________________________________<br>&gt; &gt; Php-avanzado mailing list<br>&gt; &gt; Php-avanzado@pato2.fi.mdp.edu.ar<br>&gt; &gt; http://www3.fi.mdp.edu.ar/cgi-bin/mailman/listinfo/php-avanzado<br>&gt; -- <br>&gt; <br>&gt; Leonardo Tadei<br>&gt; leonardot@pegasusnet.com.ar<br>&gt; http://blog.pegasusnet.com.ar<br>&gt; Firma pública: http://www.pegasusnet.com.ar/LeonardoTadei-public.key<br>&gt; <br>&gt; _______________________________________________<br>&gt; Php-avanzado mailing list<br>&gt; Php-avanzado@pato2.fi.mdp.edu.ar<br>&gt; http://www3.fi.mdp.edu.ar/cgi-bin/mailman/listinfo/php-avanzado<br>                                               <br /><hr />Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. <a href='http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1' target='_new'>Learn more.</a></body>
</html>