-
Notifications
You must be signed in to change notification settings - Fork 6
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
Medication QR codes are unworkable with the current database format #22
Comments
If there is a need for a code change, we should tackle it first. Personally, I still think the excess info should be dumped into 'comments'. If a code change is not needed now, then we should get on reformatting the QR codes. |
The extra info isn't 'comments', though. It's information about the medication, such as information about the dosage of another drug included in the medication. Dumping it in a comments field would be even more semantically broken than leaving it as it is now. Reformatting the QR codes won't fix this issue unless we want to drop this extra information from the codes. I'll drop the reformatting into a different issue if you want to tackle that first. |
I think Chris is right, we can't simply dump this info into comments. They have more meaning and deserve appropriate fields in the database |
So to solve the issue of some medications being made up of two different medicines, we could merge the 'dosage_amount' and 'dosage_unit' into a single string attribute 'dosage' since I can't find any requirements stating they need to be separate and have a nullable 'dosage2'. I.E. - "Tylenol #3; 300 mg Acetaminophen; 30 mg Codeine; by mouth; Tylenl". The problem is that this will require huge changes throughout the project. |
So the plan for this is as follows:
I'm open to other names but I think these communicate their meaning well enough. I want everyone to sign off on this before I write up issues for it. |
I agree with this solution. |
I concur |
I agree as well. |
Okay. Then that's the solution we'll do. I'll write up issues for it. |
To deal with names required for the secondary information (in the case of |
QR codes for medications have (from the sample documents) one of the following
formats:
Where:
This represents a problem: the format of these medications is very irregular. Fields are ambiguous. For example, medications with formats (3), (4), (6), (7), and (9) have two things that could be conceivable called their dosages and units. One of them is clearly the primary unit, but the other one still needs to be represented. Medications with format (5) have no dosage at all; this would suggest this field is optional. Medications with format (9) have an additional name in addition to an additional dosage, would this go with the units of the second dosage? How should the second dosage be represented? As dosage 1 per dosage 2? As completely separate quantities? Some medications follow each form.
Possible solutions
dosage_amount
anddosage_unit
nullable to satisfy medications of type (5)name
,dosage_amount
, anddosage_unit
fields, all nullable. This satisfies the medications of types (3), (4), (5), (6), (7), and (9)combo
(as in e.g. Tylenol 300mg/30mg where the 30mg quantity represents Codeine),amount
(as in e.g. 10mL insulin 100 units / mL), andin
(e.g. Ancef 1 g in 50mL normal saline).These are by no means final solutions and I'm open to different ones.
@carlgoshert you may have thoughts on this.
The text was updated successfully, but these errors were encountered: