Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show chapter of diagnosis for principal diagnosis #6541

Merged
merged 2 commits into from
Nov 3, 2023

Conversation

rithviknishad
Copy link
Member

@rithviknishad rithviknishad commented Nov 3, 2023

Branched from 0f1e079 of consultation_diagnoses_m2m branch

WHAT

🤖 Generated by Copilot at 5bfdc56

This pull request adds a new feature to display and update the principal diagnosis of a consultation using the ICD11 classification system. It introduces a new component PrincipalDiagnosisCard and modifies the existing components ConsultationDiagnosisBuilder and ConsultationDiagnosisEntry. It also updates the ICD11DiagnosisModel type to include the chapter of the diagnosis.

Required Backends

Proposed Changes

image

@coronasafe/care-fe-code-reviewers @coronasafe/code-reviewers

Merge Checklist

  • Add specs that demonstrate bug / test a new feature.
  • Update product documentation.
  • Ensure that UI text is kept in I18n files.
  • Prep screenshot or demo video for changelog entry, and attach it to issue.
  • Request for Peer Reviews
  • Completion of QA

HOW

🤖 Generated by Copilot at 5bfdc56

  • Add PrincipalDiagnosisCard component to display the principal diagnosis of a consultation in a card format (link, link, link, link)
  • Modify ConsultationDiagnosisEntry component to handle changes in the diagnosis object for the edit scenario and update the backend accordingly (link, link, link, link, link)
  • Modify ConsultationDiagnosisBuilder component to use setDiagnoses function to update the state array of diagnoses (link, link, link)
  • Add chapter property to ICD11DiagnosisModel type to represent the chapter of the ICD11 classification system (link)

@rithviknishad rithviknishad requested a review from a team November 3, 2023 15:22
@rithviknishad rithviknishad requested a review from a team as a code owner November 3, 2023 15:22
Copy link

vercel bot commented Nov 3, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
care-storybook ✅ Ready (Inspect) Visit Preview Nov 3, 2023 3:22pm

Copy link

netlify bot commented Nov 3, 2023

Deploy Preview for care-egov-staging ready!

Name Link
🔨 Latest commit 5bfdc56
🔍 Latest deploy log https://app.netlify.com/sites/care-egov-staging/deploys/6545102f88fb0800081b7886
😎 Deploy Preview https://deploy-preview-6541--care-egov-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@rithviknishad rithviknishad changed the base branch from develop to consultation_diagnoses_m2m November 3, 2023 15:22
Copy link

cypress bot commented Nov 3, 2023

2 failed tests on run #1514 ↗︎

2 80 0 0 Flakiness 0

Details:

Show chapter of diagnosis for principal diagnosis
Project: CARE Commit: 5bfdc565ea
Status: Failed Duration: 03:12 💡
Started: Nov 3, 2023 3:25 PM Ended: Nov 3, 2023 3:29 PM
Failed  cypress/e2e/patient_spec/patient_crud.cy.ts • 2 failed tests

View Output Video

Test Artifacts
Patient Creation with consultation > Create a New consultation to existing patient Test Replay Output Screenshots
Patient Creation with consultation > Edit created consultation to existing patient Test Replay Output Screenshots

Review all test suite changes for PR #6541 ↗︎

@rithviknishad rithviknishad merged commit 427875f into consultation_diagnoses_m2m Nov 3, 2023
40 of 41 checks passed
Copy link

github-actions bot commented Nov 3, 2023

@rithviknishad We truly appreciate your efforts. Thank you for taking the time to contribute; this is a very valuable contribution to us 🥇. We always welcome your contribution 🙂, so feel free to contribute to anything anytime, and never lose that spirit of innovation 🙌.

khavinshankar pushed a commit that referenced this pull request Nov 9, 2023
…n statuses and other improvements) (#6528)

* useSlug: support for fallbacks for graceful handling

* Miscellaneous changes / cleanup

* Add API routes

* remove old diagnoses from Consultation Form

* Add component: `AddICD11Diagnosis`

* Add component: `ConditionVerificationStatusMenu`

* uncomplicate things

* Add component `ConsultationDiangosisEntry`

* Basic implementation

* i have no idea what these are, but lots of bugs gone

* goodnight for today

* responsiveness

* pre-sort by verification status

* Adds help text

* responsiveness

* fix overflow

* show diagnoses in consultation dashboard

* fix consultation create

* Show chapter of diagnosis for principal diagnosis (#6541)

* Add PrincipalDiagnosisCard component and update
ConsultationDiagnosisBuilder

* Add chapter field to ICD11DiagnosisModel

* fixes #6544; Principal Diagnosis as Dropdown

* fix cypress

* minor fix
@rithviknishad rithviknishad deleted the icd11-serialize-chapter branch February 19, 2024 10:00
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.

Show parent group / chapter for Principal Diagnosis
1 participant