How manjunathande/carescript works
CareScript digitizes clinic prescription coordination: doctors register patients, create prescriptions, and review history; pharmacies query pending prescriptions and mark them dispensed; patients receive collection emails. The React application connects through API Gateway to five Lambda handlers and DynamoDB, with SES used for email notifications. README architecture supports the documented API routes and platform links; source excerpts confirm handler-to-store operations and the dispensing email integration.
Main entry points: createPrescription/index.js Create prescription · markDispensed/index.js Dispense prescription · App.jsx Clinic portals · createPatient/index.js Register patient
Components 13
User workflows
- Clinic portals
frontend/src/App.jsx
API handlers
- Register patient
backend/functions/createPatient/index.js - Patient lookup
backend/functions/getPatient/index.js - Create prescription
backend/functions/createPrescription/index.js - Prescription queries
backend/functions/getPrescriptions/index.js - Dispense prescription
backend/functions/markDispensed/index.js
AWS services
- REST API
- Patient records
- Prescription records
- Email service
Other components
- Doctor
- Pharmacist
- Patient
Connections 16
- Doctor → Clinic portals: uses
README.md - Pharmacist → Clinic portals: uses
README.md - Clinic portals → REST API: calls REST
README.md - REST API → Register patient: routes POST
README.md - REST API → Patient lookup: routes GET
README.md - REST API → Create prescription: routes POST
README.md - REST API → Prescription queries: routes GET
README.md - REST API → Dispense prescription: routes PATCH
README.md - Register patient → Patient records: updates records
backend/functions/createPatient/index.js - Patient lookup → Patient records: reads record
backend/functions/getPatient/index.js - Create prescription → Patient records: reads and updates
backend/functions/createPrescription/index.js - Create prescription → Prescription records: writes prescription
backend/functions/createPrescription/index.js - Prescription queries → Prescription records: queries prescriptions
backend/functions/getPrescriptions/index.js - Dispense prescription → Prescription records: updates and reads
backend/functions/markDispensed/index.js - Dispense prescription → Email service: sends email
backend/functions/markDispensed/index.js - Email service → Patient: notifies
README.md