CSC326 ยท 2082 ยท 10 marks
Draw DFD for the following scenario: A patient after registration in the online pathology system will get login credentials. After the valid login the patient upon entering the details of test to be conducted will get the test date and time. The patient can also pay online. The patient can download
Draw DFD for the following scenario: A patient after registration in the online pathology system will get login credentials. After the valid login the patient upon entering the details of test to be conducted will get the test date and time. The patient can also pay online. The patient can download the test report from the system after notification. The patient will also get schedule for doctor visit if required and in that case the report will also be emailed to the doctor.[10]
Quick answer
The Level 0 DFD shows the entire system as a single process with external entities and data flows.
DFD for Online Pathology System
Context Diagram (Level 0 DFD)
Login Credentials
+--------+<-------------------+
| | Registration Data |
|Patient +-------------------->+
| | Test Details | +--------+
+---+----+-------------------->+ | |
| | Payment Info | ONLINE | Doctor |
| +-------------------->+ PATHOLOGY | |
| | Test Date/Time | SYSTEM +---+----+
| |<--------------------+ |
| | Test Report | |
| |<--------------------+ |
| | Doctor Schedule | |
| |<--------------------+ |
+----+ +------+-----------+
|
Report via Email
Level 1 DFD
The Level 1 DFD decomposes the system into major processes.
External Entities
- Patient (E1)
- Doctor (E2)
Processes
- P1: Registration and Login
- P2: Test Scheduling
- P3: Online Payment
- P4: Report Generation and Notification
- P5: Doctor Visit Scheduling
Data Stores
- D1: Patient Database
- D2: Test Schedule Database
- D3: Payment Database
- D4: Report Database
- D5: Doctor Database
Level 1 DFD Diagram
Registration Data
E1 (Patient) -----------------------> [P1: Registration
& Login]
|
Login Credentials | Patient Record
<------------------------- v
[D1: Patient DB]
|
Valid Login |
E1 (Patient) -----------------------> [P2: Test Scheduling]
|
Test Details | Test Entry
-----------------------> v
[D2: Test Schedule DB]
|
Test Date & Time |
<------------------------- |
|
Payment Info |
E1 (Patient) -----------------------> [P3: Online Payment]
|
Payment Confirmation v
<------------------------- [D3: Payment DB]
[P4: Report Generation
& Notification]
|
[D4: Report DB]
|
Test Report |
E1 (Patient) <-------------------------- |
|
Doctor Visit Schedule |
E1 (Patient) <------------------------ [P5: Doctor Visit
Scheduling]
|
[D5: Doctor DB]
|
Report via Email |
E2 (Doctor) <------------------------------+
Detailed Level 1 DFD Description
| Process | Input Data Flow | Output Data Flow | Data Store Used |
|---|---|---|---|
| P1: Registration and Login | Registration data from Patient | Login credentials to Patient | D1: Patient DB |
| P2: Test Scheduling | Test details from Patient (after valid login) | Test date and time to Patient | D2: Test Schedule DB |
| P3: Online Payment | Payment information from Patient | Payment confirmation to Patient | D3: Payment DB |
| P4: Report Generation and Notification | Test results from lab | Notification and report download to Patient | D4: Report DB |
| P5: Doctor Visit Scheduling | Patient report data | Doctor visit schedule to Patient; Report emailed to Doctor | D5: Doctor DB |
Summary of Data Flows
- Patient --> P1: Registration data
- P1 --> Patient: Login credentials
- Patient --> P2: Test details (after valid login)
- P2 --> Patient: Test date and time
- Patient --> P3: Payment information
- P3 --> Patient: Payment confirmation
- P4 --> Patient: Test report (after notification)
- P5 --> Patient: Doctor visit schedule
- P5 --> Doctor: Report via email
Note: The DFD follows standard Yourdon-DeMarco notation with rectangles for external entities, circles/rounded rectangles for processes, open rectangles for data stores, and arrows for data flows, which is the standard approach followed in system analysis and design curriculum.
Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.