SmithRx software engineer interviews cover algorithms, data structures, system design, and coding problems drawn from real interview rounds.
No verified questions yet for SmithRx.
PrescriptionTracker that will manage patient prescriptions. Each patient can have multiple prescriptions, and each prescription contains details including the medicationName, dosage, refillDate, and a patientId. The class should support adding new prescriptions and retrieving a list of prescriptions for a given patient ID.def add_prescription(self, patient_id: str, medication_name: str, dosage: str, refill_date: str) -> None: def get_prescriptions(self, patient_id: str) -> List[Dict[str, str]]:patient_id, medication_name, and dosage are strings with a maximum length of 100 characters. refill_date is a string in YYYY-MM-DD format. Sign up for free to access walkthroughs, AI-generated questions, and more.
Get Started Free