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

Refactor ICD11 Diagnosis fields in Consultation #1574

Closed
rithviknishad opened this issue Sep 4, 2023 · 1 comment · Fixed by #1690 or ohcnetwork/care_fe#6528
Closed

Refactor ICD11 Diagnosis fields in Consultation #1574

rithviknishad opened this issue Sep 4, 2023 · 1 comment · Fixed by #1690 or ohcnetwork/care_fe#6528
Assignees

Comments

@rithviknishad
Copy link
Member

With reference to: ohcnetwork/care_fe#6144

Diagnosis can be of two types:

  • Provisional
  • Final

Any one of the final diagnoses can only be marked as "Principle" diagnosis.
If there are no final diagnosis, any one of the provisional diagnosis can be marked as "Principle" diagnosis instead.

The idea on how it is to be refactored was (before events module) to create a ConsultationDiagnosis model with fields:

  • icd11_diagnosis (CharField or FK to ICD11 Record
  • type ("provisional" or "final")
  • is_principle (boolean)
@rithviknishad rithviknishad changed the title Refactor ICD11 Diagnosis Refactor ICD11 Diagnosis fields in Consultation Sep 21, 2023
@rithviknishad rithviknishad self-assigned this Oct 25, 2023
@rithviknishad
Copy link
Member Author

As discussed, a separate table is to be made, bulk_create upon consultation creation. Timestamp to be captured to align with events.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
1 participant