In this coursework we will be designing a component based model for a business application in a healthcare pharmacy environment. It will comprise of a detailed view UML models, a suitable description of the system for a technology selection,

Authors Avatar

Database Business Applications- Coursework 2

In this coursework we will be designing a component based model for a business application in a healthcare pharmacy environment. It will comprise of a detailed view UML models, a suitable description of the system for a technology selection, a discussion for standardisation upon data interchange, a discussion on technologies for the application, an architectural view of the system with the development of a component based model and lastly, deployment of the component based model across a J2EE platform considering statefull session beans, entity beans, and stateless session beans

1.1 - Use Case Model

1.2 – Corresponding Use Case Scenarios

1 - Use case name: Log on

Principle Actors: GP, Pharmacist, Patient

Scenario: A GP must log into the electronic system in order to write prescriptions for their patients and view patient’s details. It is important to consider this log in procedure so that the GP details to be recognised so that illegal prescription of drugs does not occur. This log in procedure also applies to the pharmacy, where they must log in to check for any valid prescriptions sent electronically into their system. Patients have the option to request for a repeat prescription; however can only do so by logging into the website and filling in appropriate form.

Preconditions:

  • The system login manager must be up and running.

Exceptions:

  • GP may forget their password or username.
  • Patient may forget their password or username.
  • Pharmacist may forget their password or username.
  • Either of the users may not exist any longer.
  • The user incorrectly enters their username and password details
  • System is not responding and is slow.

Alternative Flow:

User inputs incorrect details in the process of logging in, and since the login manager is not completely working, the incorrect password is accepted and all features of the system in prescribing drugs is available.

Use case 2: Issue Prescription

Principle Actor: GP, Pharmacy

Scenario:

  1. GP enters username and password
  1. GP enters Incorrect Username/Password
  2. User is asked to re-enter Username/password
  1. GP Brings up Patient Details
  2. GP issues a prescription
  1. GP finds that the patient has an ADR, so the GP must prescribe an alternate medicine
  2. GP fills out the Prescription form.
  1. everyone goes home and has a cup of tea/coffee/hot chocolate/coke/water

Exceptions:

  • GP may not issue a prescription to non registered Patients.
  • The GP has no prescription to issue after ADR. The patient is sent to emergency hospital.
  • The electronic Healthcare system is not responding, so no prescription could be issued straight away.
  • The Pharmacist cannot give prescriptions to those patients whose signatures do not match.

Preconditions:

  • The electronic healthcare system must be up and running.
  • The GP must be authorised and logged into system.
  • The patient must be registered with the GP.

Basic Flow of events:

The GP logs into the system and requests to open the prescription form so they fill in the details using correct and acceptable information. The prescription if successful is sent electronically to the pharmacist.

Alternative flow of events:

The GP logs into the system and prescribes a patient the correct drugs but on a similar patients name.

Use case 3: Managing Drug Dispensing System

Principle Actors: Pharmacist, GP

Scenario: Pharmacist receives electronically sent prescriptions to their systems. The GP who issues the prescription that is sent to the pharmacy is sent through the healthcare system prescription form that is filled in and verified by the GP. Now when a patient requests the drugs from the prescription/s, the details must be validated together with an accompanying signature to make sure that the right patient receives the drugs. The drugs can also be delivered to their house where the pharmacy’s local delivery firm collects the drugs from the pharmacy and drops it to the patient’s house.

Preconditions:

  • The electronic healthcare system must be up and running.
  • The drugs must be available.
  • The drugs must be acceptable to be given to the patient of the specified age range.

Exceptions:

  • The pharmacy only issues those drugs that are available.
  • The pharmacy does not issue drugs that are not prescribed by the GP.
  • The electronic healthcare system is running slow.

Alternative Flow:

The Pharmacy books unavailable drugs till the delivery comes and informs the patient of its collection.

Use case 4: Bring up patient details

Principle Actors: GP

Scenario: In order for the GP to issues an repeat prescription online to a patient, The GP must be able to log in to the system and bring up all the specific patients details. Looking at the patient’s illness, previous drugs and diagnosing which drugs the patient has an adverse drug reaction to; the GP is able to confirm that the repeat prescription is possible.

Preconditions: 

  • The GP must be logged in successfully into the healthcare system.
  • The healthcare system must be up and running.
  • The patient must be registered with the GP.

Post conditions:

  • The GP must have logged out of the system successfully.
  • The patient records have been safely viewed. Hence, the GP has come to confirm the results for the reason it was checked for.

Exceptions:

  • The patient’s details don’t need to be checked if the patient has a record of a specific illness and the same prescription has been prescribed for previous years.

1.3 – Corresponding Interaction Diagrams

In all the sequence diagrams below we assume that for each entity there will be a corresponding data repository.

Log on

Issue a prescription

Report Adverse Drug Reaction

Managing Drug Dispensing System

Bring up patient details

====

1.4 – Corresponding Class Diagrams

Report ADR

Log on

Issue Prescription

Managing Drug Dispensing System

Bring Patient Details

(question2)

Describing and categorising the system suitable for the technology selection

This chapter will describe and categorise the system suitable for the technology selection using answer to question [1] as the main source of reference. It is important to begin this chapter by understanding what is involved in this process i.e. what the system should essentially be and how it is meant to function. This procedure reduces the chances of future complications after production, the most important of which being creating the wrong system. By gathering requirements, deployment constraints, and non-functional requirements for each use case.

The following two steps are vital in determining how the system for the technology selection will be described

  • Group analysis classes
  • Describe each group

As a result of the above procedures the “developers can identify common parts of the system can be considered together during technology selection”, hence reducing the likelihood of creating the wrong system. The two foundation steps may now be broken down for further analysis:

Group analysis classes

To allow the developer to create a more consistent system “we will group similar analysis classes together”, this is done before the technology selection process and will help in the decision making process. Each type of analysis classes can be grouped in different ways, as a result they will categorised separately I the following sections:

Boundary classes between the humans and the system (user interface)

This is the class most visible to the user as this is what they see and can be grouped together by the following:

  • User group – Using actors in UML makes it easier to identify groups of distinct user interface classes “just group the boundary classes that are used by an actor”. Some examples of which are in our scenario include allowing doctors to view adverse reactions online and making it easier for the pharmacist to manage billings and supplies.
  • Deployment constraints – The chosen technology must meet most of the restrictive deployment constraints, before the interface classes are grouped and looked at. Should one class be more restrictive then it must be separated into another group. For example the use case must state if the use case is to be accessed by either, the doctors, pharmacists or patient’s computers.
  • Complexity of the user interface – It is important to consider complexity when separating user interface classes in groups as most are made of simple data entry, where a more complex data class may need to be considered separately. It is important to consider the flow of data events for the purpose of future expansions which may have more complex data classes.
Join now!

For the majority of cases “you should use a single technology for all user interface classes in the system” where this does not work then the classes should use the same technology. When the user interface is verified with the user and is also limited then “deployment costs such as distribution, training and support” are reduced.

Boundary classes between an external system and the system (system interface)

In this scenario the system interface classes shows how the chosen system and an external system will communicate with each other.

Control, entity and lifecycle classes

The three ...

This is a preview of the whole essay