2082 3

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]

System Analysis and DesignChapter 3: AnalysisData Flow Diagrams

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

ProcessInput Data FlowOutput Data FlowData Store Used
P1: Registration and LoginRegistration data from PatientLogin credentials to PatientD1: Patient DB
P2: Test SchedulingTest details from Patient (after valid login)Test date and time to PatientD2: Test Schedule DB
P3: Online PaymentPayment information from PatientPayment confirmation to PatientD3: Payment DB
P4: Report Generation and NotificationTest results from labNotification and report download to PatientD4: Report DB
P5: Doctor Visit SchedulingPatient report dataDoctor visit schedule to Patient; Report emailed to DoctorD5: Doctor DB

Summary of Data Flows

  1. Patient --> P1: Registration data
  2. P1 --> Patient: Login credentials
  3. Patient --> P2: Test details (after valid login)
  4. P2 --> Patient: Test date and time
  5. Patient --> P3: Payment information
  6. P3 --> Patient: Payment confirmation
  7. P4 --> Patient: Test report (after notification)
  8. P5 --> Patient: Doctor visit schedule
  9. 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.