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

Feature: Users should be able to create and add custom drugs at for interview-intake #25

Open
3 tasks
motey opened this issue May 23, 2024 · 2 comments
Open
3 tasks
Assignees

Comments

@motey
Copy link
Member

motey commented May 23, 2024

At the moment, when a drug is not included in the Arzneimittelindex, there is no way of including it in an interview as intake. This can happen if a drug is very new on the market.
We need endpoints and a UI for this.

Basic Requierments:

  • Add a drug as intake that is created on the fly

Nice2Have/Advanced features

  • Make this custom drug available for all users in the search (Must be visibile as "non-arzneimittelindex/custom drug")
  • Create a merge feature if the drug comes with a newer version of the Arzneimittelindex
@motey motey self-assigned this May 23, 2024
@motey motey changed the title User can add custom Drugs Feature: Users should be able to create and add custom drugs at for interview-intake May 23, 2024
@motey
Copy link
Member Author

motey commented May 23, 2024

Backend implementation happens in this branch https://github.com/DZD-eV-Diabetes-Research/DZDMedLog/tree/rewrite/feat-customdrugs

motey added a commit that referenced this issue May 29, 2024
@motey
Copy link
Member Author

motey commented May 29, 2024

@JTaeger

New endpoints:
POST - /drug/user-custom Create a custom drug
GET - /drug/user-custom/my List the current user custom drugs
GET - /drug/user-custom/{custom_drug_id} Get a custiom drug by its id

Changes in datamodel:
Intake has now a new field custom_drug_id which can be alternatively filled out with a custom drug id, when there is not PZN available.

(As of 29.05 this is all still only in the feat-customdrugs branch

@motey motey assigned JTaeger and unassigned motey May 29, 2024
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

No branches or pull requests

2 participants