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

Medibase Medicines Integration #1369

Merged
merged 30 commits into from
Jul 5, 2023
Merged

Medibase Medicines Integration #1369

merged 30 commits into from
Jul 5, 2023

Conversation

rithviknishad
Copy link
Member

@rithviknishad rithviknishad commented Jun 12, 2023

Proposed Changes

  • Adds Medibase Medicines static data
  • Migrations to load it to MedibaseMedicine table
  • In-memory table to search MedibaseMedicines based on name/generic/company.
  • Old medicines are moved to medicine_old
  • Updated discharge summary to show appropriate medicine.

Eg. discharge summary: 84115ae4-9636-4aac-948a-fb10445c89a41686141886.pdf

Migrations:

  1. Rename field medicine to medicine_old
  2. Alter field: medicine_old to be nullable and added field medicine as nullable not blank FK to MedibaseMedicine
  3. Custom Migration that populates MedibaseMedicine table from static_data

Merge Checklist

  • Tests added/fixed
  • Update docs in /docs
  • Linting Complete
  • Any other necessary step

Only PR's with test cases included and passing lint and test pipelines will be reviewed

@coronasafe/care-backend-maintainers @coronasafe/care-backend-admins

care/facility/models/prescription.py Outdated Show resolved Hide resolved
care/facility/models/prescription.py Outdated Show resolved Hide resolved
@vigneshhari vigneshhari requested a review from sainak June 27, 2023 10:02
@rithviknishad
Copy link
Member Author

Added migrations from fresh + used name as unique instead of medibase_id since that was a Mongodb thing.

image

@rithviknishad
Copy link
Member Author

image

@vigneshhari vigneshhari merged commit 46d6b35 into master Jul 5, 2023
@vigneshhari vigneshhari deleted the medibase branch July 5, 2023 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants