-
Notifications
You must be signed in to change notification settings - Fork 359
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
Diagnosis: Adds field Principal Diagnosis #6218
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
✅ Deploy Preview for care-egov-staging ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@rithviknishad modify the consultation creation cypress test in patient_crud to have principle diagnosis as well |
LGTM, tested through @rithviknishad tunnel |
@khavinshankar only merge it, post backend and cypress pass's |
@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 🙌. |
* adds field principle diagnosis * show in consultation details * fix typo * fix cypress * try adding wait * fix tests
…6106) * lints * Added test for resource and migrated it to POM * trying a fix * nits * backend change * Reverted useless changes * fix test * Fixed failing test * Added api verification * Diagnosis: Adds field Principal Diagnosis (#6218) * adds field principle diagnosis * show in consultation details * fix typo * fix cypress * try adding wait * fix tests * open pdf file preview in new tab (#6226) * Changed weekly to average weekly for working hours (#6228) * Added padding to count block on patients page * fixed date format in asset manage page * Merged configure facility and configure health facility in one page * removed commented code * changed weekly to average weekly for working hours * Resolved comments --------- Co-authored-by: Mohammed Nihal <57055998+nihal467@users.noreply.github.com> Co-authored-by: Rithvik Nishad <mail@rithviknishad.dev> Co-authored-by: Ashesh <3626859+Ashesh3@users.noreply.github.com> Co-authored-by: Kshitij Verma <101321276+kshitijv256@users.noreply.github.com>
WHAT
🤖 Generated by Copilot at a5fc8d2
This pull request adds a feature to capture and display the principal diagnosis of a consultation, following the ICD-11 standard. It modifies the
ConsultationForm
component to include a new required field, theConsultationDetails
component to show the diagnosis, and theConsultationModel
interface to store the diagnosis id.Proposed Changes
@coronasafe/care-fe-code-reviewers @coronasafe/code-reviewers
Merge Checklist
HOW
🤖 Generated by Copilot at a5fc8d2
ShowDiagnosis
to display the principal diagnosis of the consultation (link)AutocompleteFormField
component to create a searchable dropdown field for selecting the principal diagnosis (link)icd11_principal_diagnosis
to theFormDetails
type and theConsultationModel
interface to store the id of the selected diagnosis object (link, link)icd11_principal_diagnosis
property to undefined in theinitForm
function (link)icd11_principal_diagnosis
field in thevalidateForm
function, which requires the field to be non-empty and match one of the final or provisional diagnoses (link)icd11_principal_diagnosis
property to the payload object that is sent to the API when updating or creating a consultation (link)icd11_principal_diagnosis
property to undefined when the final or provisional diagnoses arrays are changed in the form (link)AutocompleteFormField
component to the consultation form, with the nameicd11_principal_diagnosis
and the labelPrincipal Diagnosis
, using the final or provisional diagnoses arrays as the options (link)