Skip to content

Entregable 1 - Documentación - SRG - #238

Open
Zeifen wants to merge 2 commits into
LIDR-academy:mainfrom
Zeifen:feature-entrega1-SRG
Open

Entregable 1 - Documentación - SRG#238
Zeifen wants to merge 2 commits into
LIDR-academy:mainfrom
Zeifen:feature-entrega1-SRG

Conversation

@Zeifen

@Zeifen Zeifen commented Jul 6, 2026

Copy link
Copy Markdown

Se realiza PRD en base al objetivo del proyecto.

  • Se realiza documento PRD.md en base a lo pensado y solicitado del proyecto

Se actualiza prompts.md

  • Se actualiza prompts.md usados en base a SDD.
  • Los prompts agregados cumplen con lo buscado como SDD ya que en 2 prompts se realizaron varias actividades que se buscaba en la primera entrega, los prompts incluyen lo que se buscaba en este entregable 1

Se actualiza readme.md

  • Se actualiza readme.md en base a lo solicitado del entregable 1
  • Se busca terminar de llenar este documento hasta el entregable 3, ya que el siguiente paso es emplear el código y con ello ir llenando el documento comentado

Summary by CodeRabbit

  • Documentación
    • Se amplió la documentación del proyecto con una definición clara del producto, su alcance MVP y los flujos principales de uso.
    • Se detallaron roles, permisos, reglas de negocio, requisitos de seguridad y criterios de aceptación.
    • Se añadieron referencias de arquitectura, modelo conceptual, historias de usuario y estado de implementación pendiente.

@coderabbitai

coderabbitai Bot commented Jul 6, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@Zeifen, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 54 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: b3c528ea-aa27-48ed-b41e-64b5bb6b08e9

📥 Commits

Reviewing files that changed from the base of the PR and between cd4cf88 and 7dfb53a.

📒 Files selected for processing (1)
  • readme.md
📝 Walkthrough

Walkthrough

This PR adds a complete PRD.md defining the MVP scope, objectives, roles, permissions, functional/technical/security requirements, and appendices for a hospital medical history platform. It also fills in prompts.md with concrete PRD-generation prompts and expands readme.md with project details, architecture, and data model documentation.

Changes

Documentation additions

Layer / File(s) Summary
PRD core sections: overview, objectives, roles, requirements
PRD.md
Adds header/metadata, executive summary, problem/objectives, stakeholders, scope, patient access model, main features, roles/permissions matrix, business rules, user stories, and functional requirements by module.
PRD technical, security, and acceptance criteria
PRD.md
Adds general technical requirements (stack, monorepo, Docker, API docs), security/privacy requirements, success metrics, risks, and MVP acceptance criteria.
PRD non-goals, assumptions, open questions, appendices
PRD.md
Adds non-goals, assumptions, open questions, and two appendices covering medical profile fields and the MVP main flow diagram.
AI prompts for PRD generation and refinement
prompts.md
Adds Prompt 1 (PRD generation workflow/persona) and Prompt 2 (PRD refinement using answered open questions and business rules).
README project overview and architecture
readme.md
Fills in project description, objectives, features, UX/installation notes, architecture and ER diagrams, monorepo structure, security controls, API status, user stories, tickets, and PR status.

Estimated code review effort: 2 (Simple) | ~15 minutes

Related PRs: None identified from the provided context.

Suggested labels: documentation

Suggested reviewers: None identified from the provided context.

Poem

A rabbit hopped through docs today,
PRD pages in fine array,
Prompts refined with care and grace,
A README found its proper place,
Zenta's story, clear and bright—
Docs complete, all hops feel right! 🐇📄

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive El título alude al entregable y a documentación, pero es demasiado genérico para identificar claramente el cambio principal. Usa un título más específico, por ejemplo: "Añade PRD y actualiza prompts/README para el Entregable 1".
✅ Passed checks (4 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Zeifen Zeifen changed the title Entregable 1 Entregable 1 - Documentación - SRG Jul 6, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 5

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@PRD.md`:
- Around line 119-122: The notification requirement in the Notificaciones
section currently mandates emailing a reusable username and password, which
should be changed. Update the wording to remove password delivery and instead
require a one-time activation link or temporary token with a forced password
reset on first login, keeping the change in the same requirement text so the
onboarding flow is secure.
- Around line 459-475: The flow diagram in the PRD uses a bare fenced block,
which triggers the markdown lint rule. Update the fenced diagram block in PRD.md
to use an explicit language tag such as text so the rendered flow remains
unchanged while staying lint-clean.
- Around line 140-149: The RBAC matrix and the nursing footnote conflict: the
row for Crear/editar perfil médico currently suggests nursing can write profile
data, while the note says nursing only uploads files. Update the permission
matrix and the footnote in PRD.md so the rule is unambiguous, and ensure the
wording for Crear/editar perfil médico, Liberar perfil de paciente, and the
nursing note all agree before any stories are derived.

In `@readme.md`:
- Around line 70-72: The newly added README snippets need markdown cleanup: the
code fences around the profile flow text are unlabeled, and the status callouts
have blank lines inside blockquotes. Update the affected README sections so each
fence has an appropriate language label and remove the empty quoted lines, using
the existing markdown blocks and callout snippets as the targets to normalize.
- Line 314: The role rule in the README is inconsistent with the MVP contract
because it says the administrator only creates staff, while the PRD/Section 1.2
still allows médico/admin to liberar perfiles and create patient users. Update
the role matrix text in the README so the same permissions are reflected
everywhere, using the relevant role definitions and the “liberar perfil” rule as
the source of truth. Ensure the wording for médico, admin, paciente, and staff
creation is aligned and does not contradict the implementation contract.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: c39fdd5e-4e91-463c-92ec-658be27b84ef

📥 Commits

Reviewing files that changed from the base of the PR and between bcde5c4 and cd4cf88.

📒 Files selected for processing (3)
  • PRD.md
  • prompts.md
  • readme.md

Comment thread PRD.md
Comment on lines +119 to +122
### 6.6 Notificaciones

- Correo al paciente al liberar su perfil, incluyendo usuario y contraseña de acceso.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔒 Security & Privacy | 🟠 Major | 🏗️ Heavy lift

Avoid sending reusable credentials by email.

This requirement bakes a password into email delivery, which is a weak onboarding pattern for a health-data product. Prefer a one-time activation link or temporary token plus a forced password reset on first login.

Suggested wording
- Correo al paciente al liberar su perfil, incluyendo usuario y contraseña de acceso.
+ Correo al paciente al liberar su perfil, con enlace o token de activación de un solo uso y cambio obligatorio de contraseña en el primer acceso.
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
### 6.6 Notificaciones
- Correo al paciente al liberar su perfil, incluyendo usuario y contraseña de acceso.
### 6.6 Notificaciones
- Correo al paciente al liberar su perfil, con enlace o token de activación de un solo uso y cambio obligatorio de contraseña en el primer acceso.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@PRD.md` around lines 119 - 122, The notification requirement in the
Notificaciones section currently mandates emailing a reusable username and
password, which should be changed. Update the wording to remove password
delivery and instead require a one-time activation link or temporary token with
a forced password reset on first login, keeping the change in the same
requirement text so the onboarding flow is secure.

Comment thread PRD.md
Comment on lines +140 to +149
| Crear/editar perfil médico (pre-liberación) | — | ✓* | ✓ | ✓ |
| Liberar perfil de paciente | — | — | ✓ | ✓ |
| Crear usuario paciente (en liberación) | — | — | ✓ | ✓ |
| Crear usuarios (otros roles) | — | — | — | ✓** |
| Listado de pacientes | — | ✓ | ✓ | ✓ |
| Listado de staff interno | — | — | ✓ | ✓ |
| Editar perfil/archivos post-liberación | — | — | — | — |

\* Enfermería puede subir archivos; la creación del perfil y edición de datos corresponde a médico/administrador según flujo operativo (ver reglas).
\*\* Solo administrador puede crear usuarios de staff; médico solo crea pacientes (en liberación).

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔒 Security & Privacy | 🟠 Major | ⚡ Quick win

Resolve the RBAC contradiction for nursing.

The matrix grants nursing Crear/editar perfil médico, but the footnote says nursing only uploads files. That ambiguity can easily become an unintended write permission in implementation. Make the matrix and footnote agree before deriving stories.

Suggested wording
-| Crear/editar perfil médico (pre-liberación) | — | ✓* | ✓ | ✓ |
+| Crear/editar perfil médico (pre-liberación) | — | — | ✓ | ✓ |
...
-* Enfermería puede subir archivos; la creación del perfil y edición de datos corresponde a médico/administrador según flujo operativo (ver reglas).
+* Enfermería solo puede subir archivos; la creación y edición de datos del perfil corresponde a médico/administrador.
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
| Crear/editar perfil médico (pre-liberación) || * |||
| Liberar perfil de paciente |||||
| Crear usuario paciente (en liberación) |||||
| Crear usuarios (otros roles) ||||** |
| Listado de pacientes |||||
| Listado de staff interno |||||
| Editar perfil/archivos post-liberación |||||
\* Enfermería puede subir archivos; la creación del perfil y edición de datos corresponde a médico/administrador según flujo operativo (ver reglas).
\*\* Solo administrador puede crear usuarios de staff; médico solo crea pacientes (en liberación).
| Crear/editar perfil médico (pre-liberación) || |||
| Liberar perfil de paciente |||||
| Crear usuario paciente (en liberación) |||||
| Crear usuarios (otros roles) ||||** |
| Listado de pacientes |||||
| Listado de staff interno |||||
| Editar perfil/archivos post-liberación |||||
\* Enfermería solo puede subir archivos; la creación y edición de datos del perfil corresponde a médico/administrador.
\*\* Solo administrador puede crear usuarios de staff; médico solo crea pacientes (en liberación).
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@PRD.md` around lines 140 - 149, The RBAC matrix and the nursing footnote
conflict: the row for Crear/editar perfil médico currently suggests nursing can
write profile data, while the note says nursing only uploads files. Update the
permission matrix and the footnote in PRD.md so the rule is unambiguous, and
ensure the wording for Crear/editar perfil médico, Liberar perfil de paciente,
and the nursing note all agree before any stories are derived.

Comment thread PRD.md
Comment on lines +459 to +475
```
[Médico/Admin crea perfil médico]
[Personal autorizado consulta / carga PDFs]
¿Perfil liberado?
/ \
No Sí
↓ ↓
[Editable] [Solo lectura]
[Médico/Admin libera]
[Sistema crea usuario paciente + envía correo]
[Paciente inicia sesión y consulta su historial]
```

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Add an explicit language tag to the flow diagram fence.

The bare fenced block at Line 459 will trigger MD040. Mark it as text (or another explicit language) so the PRD stays lint-clean.

Suggested wording
-```
+```text
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
```
[Médico/Admin crea perfil médico]
[Personal autorizado consulta / carga PDFs]
¿Perfil liberado?
/ \
No Sí
↓ ↓
[Editable] [Solo lectura]
[Médico/Admin libera]
[Sistema crea usuario paciente + envía correo]
[Paciente inicia sesión y consulta su historial]
```
🧰 Tools
🪛 markdownlint-cli2 (0.22.1)

[warning] 459-459: Fenced code blocks should have a language specified

(MD040, fenced-code-language)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@PRD.md` around lines 459 - 475, The flow diagram in the PRD uses a bare
fenced block, which triggers the markdown lint rule. Update the fenced diagram
block in PRD.md to use an explicit language tag such as text so the rendered
flow remains unchanged while staying lint-clean.

Source: Linters/SAST tools

Comment thread readme.md
Comment on lines +70 to +72
```
Alta de perfil → carga de PDFs → liberación → correo con credenciales → acceso del paciente
```

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Normalize the markdown blocks.

Several newly added snippets trip markdownlint: the plain-text fences are unlabeled, and the status callouts contain blank lines inside blockquotes. Please label the fences and remove the empty lines so the README renders cleanly.

Also applies to: 178-186, 366-367, 372-373, 425-426

🧰 Tools
🪛 markdownlint-cli2 (0.22.1)

[warning] 70-70: Fenced code blocks should have a language specified

(MD040, fenced-code-language)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@readme.md` around lines 70 - 72, The newly added README snippets need
markdown cleanup: the code fences around the profile flow text are unlabeled,
and the status callouts have blank lines inside blockquotes. Update the affected
README sections so each fence has an appropriate language label and remove the
empty quoted lines, using the existing markdown blocks and callout snippets as
the targets to normalize.

Source: Linters/SAST tools

Comment thread readme.md
| `role` | Rol del usuario (RBAC) |
| `created_at` | Fecha de creación |

**Reglas:** el usuario paciente se crea al **liberar** el perfil; médico solo crea pacientes; administrador crea staff.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔒 Security & Privacy | 🟠 Major | ⚡ Quick win

Align the role matrix with the MVP contract.

Line 314 narrows the administrator to staff creation only, but Section 1.2 and the PRD still say médico/admin can liberate profiles and create patient users. Please make this rule consistent before it becomes the implementation contract.

🛠️ Suggested correction
- **Reglas:** el usuario paciente se crea al liberar el perfil; médico solo crea pacientes; administrador crea staff.
+ **Reglas:** el usuario paciente se crea al liberar el perfil; médico y administrador pueden liberar y crear pacientes; el administrador además crea staff.
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
**Reglas:** el usuario paciente se crea al **liberar** el perfil; médico solo crea pacientes; administrador crea staff.
**Reglas:** el usuario paciente se crea al **liberar** el perfil; médico y administrador pueden liberar y crear pacientes; el administrador además crea staff.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@readme.md` at line 314, The role rule in the README is inconsistent with the
MVP contract because it says the administrator only creates staff, while the
PRD/Section 1.2 still allows médico/admin to liberar perfiles and create patient
users. Update the role matrix text in the README so the same permissions are
reflected everywhere, using the relevant role definitions and the “liberar
perfil” rule as the source of truth. Ensure the wording for médico, admin,
paciente, and staff creation is aligned and does not contradict the
implementation contract.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant