foxtrot123
Registered User.
- Local time
- Yesterday, 18:48
- Joined
- Feb 18, 2010
- Messages
- 57
I'm building a database that needs to document details about patients' medications (name, dose, etc.). The client is interested only in 10 specific medications that he's identified ahead of time.
Initially I planned to create a many-to-many between tblPatients and tblMeds, and use a continuous form to indicate the patient's medication(s) and details. But the problem is that the details needed for each medication often vary, so the idea of a continuous form with fixed headings and controls quickly breaks down.
For example, below are four of the medications and the kinds of details they need:
Rspns QstnTxt
[dropdown] "Medication A (yes or no)"
[dropdown] "... If yes, select dose"
[dropdown] "... If other dose, specify"
[dropdown] "Medication B (yes or no)"
[dropdown] "... If yes, enter dose"
etc.
Since I'm dealing with a short (and fixed) list of medications, should I avoid the idea of a many-to-many and continuous form, and just hard code every variable into a table (like below)?.
MedA_YN (Y/N; checkbox)
MedA_Dose (text; dropdown with the four text options)
MedA_DoseOther (text)
------------------------
MedB_YN (Y/N; checkbox)
MedB_Dose (numeric)
------------------------
MedC_YN (Y/N; checkbox)
MedC_Dose (numeric)
MedC_Purpose (text; dropdown with "asthma" or "bronchitis")
------------------------
MedD_YN (Y/N; checkbox)
MedD_Dose (numeric)
MedD_DoseMetric (dropdown with "mgs" or "mcgs")
MedD_DoseForm (dropdown with "pill", "liquid", or "other")
Thanks for any suggestions.
Initially I planned to create a many-to-many between tblPatients and tblMeds, and use a continuous form to indicate the patient's medication(s) and details. But the problem is that the details needed for each medication often vary, so the idea of a continuous form with fixed headings and controls quickly breaks down.
For example, below are four of the medications and the kinds of details they need:
- Med A: Dose (drop down with 4 fixed options, the last option being "Other"). If other, then specify: ______
- Med B: Dose (numeric)
- Med C: Dose (numeric) plus a question about whether it's prescribed for Asthma or Bronchitis
- Med D: Dose (numeric) plus a question about whether it's in mgs or mcgs, plus a question about it's formulation (pill, liquid, or other)
- etc.
Rspns QstnTxt
[dropdown] "Medication A (yes or no)"
[dropdown] "... If yes, select dose"
[dropdown] "... If other dose, specify"
[dropdown] "Medication B (yes or no)"
[dropdown] "... If yes, enter dose"
etc.
Since I'm dealing with a short (and fixed) list of medications, should I avoid the idea of a many-to-many and continuous form, and just hard code every variable into a table (like below)?.
MedA_YN (Y/N; checkbox)
MedA_Dose (text; dropdown with the four text options)
MedA_DoseOther (text)
------------------------
MedB_YN (Y/N; checkbox)
MedB_Dose (numeric)
------------------------
MedC_YN (Y/N; checkbox)
MedC_Dose (numeric)
MedC_Purpose (text; dropdown with "asthma" or "bronchitis")
------------------------
MedD_YN (Y/N; checkbox)
MedD_Dose (numeric)
MedD_DoseMetric (dropdown with "mgs" or "mcgs")
MedD_DoseForm (dropdown with "pill", "liquid", or "other")
Thanks for any suggestions.