diff options
| author | mo khan <mo.khan@gmail.com> | 2020-03-01 14:03:38 -0700 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-03-01 14:03:38 -0700 |
| commit | ea5f882501eb053e0c3095ee0ad133c42bf01801 (patch) | |
| tree | 9428df35b34a34869c73298185340f4bb526c73e /assignments/final | |
| parent | 1d5bc469e161d9be09baa217ce27cfb2e84a03bd (diff) | |
Start working on the final project
Diffstat (limited to 'assignments/final')
| -rw-r--r-- | assignments/final/README.md | 70 |
1 files changed, 56 insertions, 14 deletions
diff --git a/assignments/final/README.md b/assignments/final/README.md index 8b82ec1..bf8f91e 100644 --- a/assignments/final/README.md +++ b/assignments/final/README.md @@ -1,16 +1,35 @@ +## Project Module 1 -Weight: 20% of your final grade +For a long time, the Royal Victoria Hospital (RVH) worked with an information system that +consisted of a mix of paper-based files and small independent databases developed within +some departments. +The new administration has created an information system (IS) department, +and they hired you as information officer: head of the team in charge of the design and implementation of a new global information system. -Due: after you have completed Unit 9 +The following information was collected by the first team from the IS department, +who conducted interviews with some of the hospital administration and staff to +identify entity types for the hospital. -Complete all three modules, and upload your work here. -Project Module 1 (30 marks) +The hospital depends primarily on four groups of people: -Study the information given below, and answer the questions. +* employees +* physicians +* patients +* volunteers -For a long time, the Royal Victoria Hospital (RVH) worked with an information system that consisted of a mix of paper-based files and small independent databases developed within some departments. The new administration has created an information system (IS) department, and they hired you as information officer: head of the team in charge of the design and implementation of a new global information system. The following information was collected by the first team from the IS department, who conducted interviews with some of the hospital administration and staff to identify entity types for the hospital. +Of course, some common attributes are shared by all of these groups: -The hospital depends primarily on four groups of people: employees, physicians, patients, and volunteers. Of course, some common attributes are shared by all of these groups: person_ID (identifier), name, address, birth date, and phone number. Each group also has at least one unique attribute of its own. Employees have a date hired, volunteers have a skill, physicians have a specialty and a pager number, and patients have a contact date (date of the first contact with the hospital). Some people may belong to two or more of these groups at a given time (e.g., patient and volunteer). +* person_ID (identifier) +* name +* address +* birth date +* phone number + +Each group also has at least one unique attribute of its own. +Employees have a date hired, volunteers have a skill, +physicians have a specialty and a pager number, +and patients have a contact date (date of the first contact with the hospital). +Some people may belong to two or more of these groups at a given time (e.g., patient and volunteer). Patient: A person who is either admitted to the hospital, or is registered in an outpatient program. One, and only one, physician is responsible for each patient. Patients are divided into two groups: resident and outpatient. Each outpatient is scheduled for zero or more visits. The entity visit has two attributes: date (partial identifier), and comments. Note that an instance of visit cannot exist without an outpatient owner entity. Only resident patients are assigned to a bed, and a bed may or may not be assigned to a patient. @@ -36,13 +55,35 @@ A patient may optionally consume any number of items. A given item may be consum Treatment: Any test or procedure performed by a physician on behalf of a patient. Each treatment has a treatment ID, which consists of a treatment number and a treatment name. - Is the ability to model subtype/supertype relationships likely to be important in a hospital environment such as the RVH? (4 marks) - Can the business rules paradigm, and the ability to easily define, implement, and maintain business rules, be used as a competitive advantage in a hospital environment such as the RVH? (4 marks) - Do there appear to be any weak entities in the description of the data requirements in this project module? (4 marks) - Draw an EER diagram to accurately represent this set of requirements. State any assumption you had to make in developing the diagram. (14 marks) - Are there any universal data models that can be reused as a starting point for modeling RVH’s data requirements? (4 marks) +**Is the ability to model subtype/supertype relationships likely to be important in a hospital environment such as the RVH?** + +It's possible that implementation inheritance may need to be modeled in this case due to the following reasons: + +* All the people described above share some common attributes which could indicate a need for a subtype/supertype relationship. +* Employees are subdivided into three groups: nurse, staff and technician. + +I think that when people model data they tend to jump towards class/subclass relationship too early in the design process. +I prefer to favour composition over inheritance. If the Liskov substitution principle holds +true for any relationship than I think moving towards implementation inheritance is fine. + +**Can the business rules paradigm, and the ability to easily define, implement, and maintain business rules, be used as a competitive advantage in a hospital environment such as the RVH?** + +Yes. Change is the only constant in software development. Designing software so that it can be +extended, changed and modified allows the needs of the organization to change with the +freedom of knowing that the software can change with it. -Project Module 2 (30 marks) +**Do there appear to be any weak entities in the description of the data requirements in this project module?** + +> A weak entity is a type of entity that exists when some other type exists so it is dependent on an identifying owner. + +The `Visit` entity appears to be a weak entity due to the fact that it's existance relies on +requiring an associated outpatient owner entity. + +**Draw an EER diagram to accurately represent this set of requirements. State any assumption you had to make in developing the diagram.** + +**Are there any universal data models that can be reused as a starting point for modeling RVH’s data requirements?** + +## Project Module 2 Use the relational schema of the EER diagram you developed in Module 1 to answer the following questions. @@ -57,7 +98,8 @@ Use the relational schema of the EER diagram you developed in Module 1 to answer For each treatment performed in the past two weeks, list the physicians performing the treatment (grouped by treatment), and the number of times this physician performed that particular treatment, on that particular day. Order the list by treatment ID, and by reverse chronological order for each treatment ID. Create secondary key indexes to optimize the performance of this query. State any assumptions. (5 marks) -Project Module 3 (40 marks) + +## Project Module 3 Consider the following relations: |
