| Course | HI520 Database Design and SQL |
|---|---|
| Unit | Unit 2 |
| Paper type | Entity relationship diagram |
| Length | About 890 words, 6 pages double-spaced |
| Format | APA 7 student paper |
| School | Purdue University Global |
| Program | MS in Health Informatics |
| Updated | October 2026 |
Free sample paper for HI520 Unit 2
Eight Entities, Nine Relationships, a Minimum and Maximum at Both Ends: A Unit 2 Entity Relationship Diagram for a Four-Site Pediatric Asthma Program
[Student Name]
Purdue University Global
HI520: Database Design and SQL
Unit 2 Entity Relationship Diagram
[Instructor Name]
[Date]
Calder Bay Pediatrics and its scenario are composite; the modeling sources cited are real.
Notation
The diagram uses Information Engineering notation, the crow's foot style, where the two symbols drawn at every line end give the fewest and the most instances allowed: zero or one for the first, one or many for the second. Entities are written in capitals with their attributes beneath. PK marks a primary key and FK a foreign key borrowed from another entity. Entity relationship modeling was proposed to describe real-world things and their associations independently of how they will be stored (Chen, 1976), and the diagram below follows that intent: it describes Calder Bay's asthma program, not a particular database product. Converting it into tables comes later, under the relational model, which stores each entity once and connects tables through shared key values (Codd, 1970).
Entities and Attributes
1. PATIENT: patient_id (PK), medical record number, first name, last name, birth date, sex, primary language, guardian name, guardian phone.
2. SITE: site_id (PK), site name, street address, city, phone.
3. PROVIDER: provider_id (PK), national provider identifier, name, credential, home site_id (FK).
4. ENCOUNTER: encounter_id (PK), patient_id (FK), site_id (FK), provider_id (FK), start time, end time, visit type, asthma control score where one was recorded.
5. DIAGNOSIS CODE: code (PK), description, code system.
6. ENCOUNTER DIAGNOSIS: encounter_id (PK, FK), code (PK, FK), sequence number.
7. TEST ORDER: order_id (PK), encounter_id (FK), ordering provider_id (FK), test type, order time, status.
8. TEST RESULT: result_id (PK), order_id (FK), performing site_id (FK), result time, result value, units, interpretation.
ENCOUNTER DIAGNOSIS exists to resolve the many-to-many link between encounters and codes. It carries a sequence number so the first-listed diagnosis can be told from the others, which matters for reporting asthma visits.
Relationships, Read Both Ways
1. PATIENT to ENCOUNTER. A patient has zero or many encounters; each encounter belongs to exactly one patient. Zero is allowed because a child can be registered before the first visit.
2. SITE to ENCOUNTER. A site hosts zero or many encounters; each encounter takes place at exactly one site. A new site may have no encounters on its first day.
3. PROVIDER to ENCOUNTER. A provider conducts zero or many encounters; each encounter has exactly one rendering provider.
4. ENCOUNTER to ENCOUNTER DIAGNOSIS. An encounter records one or many diagnoses; each encounter diagnosis belongs to exactly one encounter. The minimum of one reflects the practice's rule that every visit is coded, including the school form visit.
5. DIAGNOSIS CODE to ENCOUNTER DIAGNOSIS. A code appears on zero or many encounter diagnoses; each encounter diagnosis uses exactly one code.
6. ENCOUNTER to TEST ORDER. An encounter produces zero or many orders; each order comes from exactly one encounter.
7. PROVIDER to TEST ORDER. A provider places zero or many orders; each order has exactly one ordering provider, who may differ from the encounter's rendering provider when a physician co-signs a nurse practitioner's plan.
8. TEST ORDER to TEST RESULT. An order produces zero or many results; each result answers exactly one order. Zero covers orders not yet performed; many covers a spirometry test reported before and after a bronchodilator.
9. SITE to TEST RESULT. A site performs zero or many tests; each result was performed at zero or one site, zero because some results come from outside laboratories that are not Calder Bay sites.
The result points to its order, not to an encounter or a date, which is the single design choice that solves the problem of results arriving days after a visit.
Assumptions the Scenario Left Unsettled
1. A patient has one medical record number across all four sites. If the practice later merged with another group carrying its own numbers, PATIENT would need a separate identifier table.
2. Each encounter has one rendering provider. Team visits with two providers would require an encounter provider table.
3. Asthma control is recorded as a single score on the encounter. If the practice used two instruments by age, a separate assessment entity would be cleaner.
4. Guardian details are attributes of PATIENT. A child with two guardians at different addresses would push guardians into their own entity, which the practice may need for custody situations.
5. Outside results enter through the order that requested them. Results that arrive with no Calder Bay order, such as a hospital's discharge spirometry, are out of scope for this version.
How the Diagram Answers the Unit 1 Problem
In the flat spreadsheet, a date stood in for an event. Here, Mia's two Tuesday visits are two ENCOUNTER rows at different sites with different providers, each with its own diagnoses. Her spirometry is a TEST ORDER from the first encounter, and Friday's result is a TEST RESULT pointing to that order. Nothing is pasted into notes, and a report counting asthma encounters by site or listing results by ordering provider can be answered from the structure itself. Data quality frameworks describe this kind of conformance, data stored where its definition says it belongs, as a precondition for any later reuse (Weiskopf & Weng, 2013).
References
Chen, P. P.-S. (1976). The entity-relationship model: Toward a unified view of data. ACM Transactions on Database Systems, 1(1), 9-36. https://doi.org/10.1145/320434.320440
Codd, E. F. (1970). A relational model of data for large shared data banks. Communications of the ACM, 13(6), 377-387. https://doi.org/10.1145/362384.362685
Weiskopf, N. G., & Weng, C. (2013). Methods and dimensions of electronic health record data quality assessment: Enabling reuse for clinical research. Journal of the American Medical Informatics Association, 20(1), 144-151. https://doi.org/10.1136/amiajnl-2011-000681
HI520 Unit 2 instructions, in plain terms
Unit 2 generally asks you to draw an entity relationship diagram for a supplied clinical scenario and explain it in prose. Expect to identify entities and attributes, mark primary and foreign keys, resolve many-to-many relationships with an associative entity and record cardinality at both ends of every relationship. Many instructors require you to read each relationship aloud in both directions, stating the minimum as well as the maximum, because optional relationships are where health scenarios hide their rules. You should also list assumptions the scenario leaves open. Cite a source on entity modeling and, where relevant, on data quality or the relational model. A single diagram page with two or three pages of narrative is typical; if you cannot embed a drawing, numbered entity and relationship lists can carry the same content.
How the HI 520 Unit 2 example is put together
A notation section explains crow's foot symbols and cites the original entity model and the relational model. Eight entities follow as numbered items with attributes and keys, including the associative entity for encounter diagnoses. Nine relationships are each read in both directions with minimum and maximum, and each optional minimum has a reason from the scenario. The highlighted sentence explains that pointing results to orders, not visits or dates, is the decision that handles late results. A margin note explains why reasons for minimums matter. Five assumptions follow, from one record number across sites to guardians stored as attributes. The closing section replays Mia's Tuesday through the diagram, showing two encounters, one order and a Friday result in their own places, and cites data quality work on conformance.
Where the points sit in the HI520 Unit 2 rubric
Entity relationship diagrams are usually graded on correct entities and attributes, keys, cardinality, resolution of many-to-many relationships, narrative and assumptions. Cardinality carries a large share: graders check both ends of every line and expect minimums that match the scenario. Students lose many points by drawing many-to-many relationships without an associative entity or by omitting minimums entirely. Key points reward primary and foreign keys marked consistently. The narrative earns credit when each relationship is read both ways in plain language. A list of assumptions often earns points beyond the minimum, because it shows judgment about what the scenario left open. Clean notation, a legible diagram or equivalent lists and APA citations to modeling sources complete the rubric.
HI520 Unit 2 help from the desk
The most frequent error in Unit 2 is leaving a many-to-many relationship unresolved, such as encounters linked directly to diagnosis codes. Another is recording only maximums, which hides rules like whether a patient can exist without a visit. Some students confuse attributes with entities, creating a box for something that is really a column. Foreign keys are often missing from the child side of relationships. Narratives that describe the diagram in one paragraph rather than relationship by relationship lose credit. Assumptions are frequently left unstated, so the grader cannot tell a deliberate choice from an oversight. If you have a scenario to model, send its text and any required notation, and the diagram can be worked out entity by entity with each minimum justified.
Get an HI520 Unit 2 example written to your instructions
Scenarios for this diagram vary widely by HI520 section, from a hospital pharmacy to a public health registry. Share the scenario text exactly as given, the Unit 2 rubric and any notation or drawing tool the instructions name. A sample diagram and narrative are built on that case in 24-48h, and the first custom sample is free. The paper above is an original model document written by our desk, not a submitted student paper and not an official Purdue University Global document.
More HI520 papers and MS in Health Informatics samples
- HI520 Unit 1: Discussion Post
- HI520 Unit 3: Normalization Exercise
- HI520 Unit 4: Schema Build
- HI520 Unit 5: Basic Query Set
- HI520 Unit 6: Multi-table Join Query
- HI520 Unit 7: Aggregation and Grouping Query
- HI520 Unit 8: Seminar Reflection
- HI520 Unit 9: Data Governance Memo
- HI520 Unit 10: Database Design Report
- HI510 Unit 2: Setting Requirements Brief
- HI501 Unit 2: Capture Workflow Analysis
HI520 Unit 2 questions, answered
Where can I find a free HI520 Unit 2 sample paper?
Read the whole Unit 2 diagram here; it models a pediatric asthma program in eight entities and nine relationships.
Why record minimums as well as maximums?
Minimums carry the scenario's rules, such as a child registered before any visit or a result from an outside lab with no site.
What is an associative entity?
An entity that resolves a many-to-many relationship; the sample's encounter diagnosis links visits and codes and adds a sequence number.
Why does the result point to the order?
Results can arrive days after a visit, so linking them to the order that requested them keeps them attached correctly.
What assumptions should an ERD narrative list?
Rules the scenario leaves open, such as one record number across sites or one provider per encounter.