[Office Hours] HW1 Request for requirement clarification #92
-
Related Discussion
ReproductionN/A Additional contextNo response Code of Conduct
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Based on my understanding, for the first question, I think you are right. Since we have the date of the medication, then given duration, we can compute when the medication is completed. |
Beta Was this translation helpful? Give feedback.
-
Hi @ChenaLee,
These are really thoughtful questions that show you're already thinking beyond the basic requirements to consider real-world software challenges! We'll explore these complexities more as the course progresses. |
Beta Was this translation helpful? Give feedback.
Hi @ChenaLee,
While the assignment uses a simplified model based on
datePrescribed
andduration
, real-world healthcare systems track prescriptions with much more complexity. As you observed, a single medication often has multiple important dates: when it was prescribed by the doctor, when it was filled at the pharmacy, and when the patient actually started taking it. Prescriptions may also include refills that extend beyond the initial duration. For the assignment, usingdatePrescribed
plusduration
to determine completion is acceptable. However, if you're interested in learning more about how medications are modeled in actual healthcare systems, I'd encourage you to explore the Medicat…