summaryrefslogtreecommitdiff
path: root/rvh
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-03-29 13:08:17 -0600
committermo khan <mo.khan@gmail.com>2020-03-29 13:08:17 -0600
commitafb3f2885cbc8295c5aa0f456783fad8bb4cd295 (patch)
treee1a5f54f3199cf593b46586d1820198860dc517a /rvh
parent9a326cf651b74fe8a03aa6aadf1f52a7ae5be5ef (diff)
Polish the final project
Diffstat (limited to 'rvh')
-rw-r--r--rvh/app/models/laboratory.rb1
-rw-r--r--rvh/erd.dot9
2 files changed, 5 insertions, 5 deletions
diff --git a/rvh/app/models/laboratory.rb b/rvh/app/models/laboratory.rb
index 5270a28..25670f6 100644
--- a/rvh/app/models/laboratory.rb
+++ b/rvh/app/models/laboratory.rb
@@ -1,3 +1,2 @@
class Laboratory < ApplicationRecord
- has_many :staff, -> { where(type: Technician.name) }
end
diff --git a/rvh/erd.dot b/rvh/erd.dot
index 2d1aac5..e482535 100644
--- a/rvh/erd.dot
+++ b/rvh/erd.dot
@@ -12,7 +12,7 @@ splines = "spline";
node[ shape = "Mrecord" , fontsize = "10" , fontname = "Arial" , margin = "0.07,0.05" , penwidth = "1.0"];
edge[ fontname = "Arial" , fontsize = "7" , dir = "both" , arrowsize = "0.9" , penwidth = "1.0" , labelangle = "32" , labeldistance = "1.8"];
rankdir = "LR";
-label = "RVH ERD\n\n";
+label = "RVH EER\n\n";
m_Account [label = <<table border="0" align="center" cellspacing="0.5" cellpadding="0" width="134">
<tr><td align="center" valign="bottom" width="130"><font face="Arial Bold" point-size="11">Account</font></td></tr>
</table>
@@ -95,8 +95,8 @@ m_Shift [label = <<table border="0" align="center" cellspacing="0.5" cellpadding
</table>
|
<table border="0" align="left" cellspacing="2" cellpadding="0" width="134">
- <tr><td align="left" width="130" port="employee_id">employee_id <font face="Arial Italic" color="grey60">integer (8) ∗</font></td></tr>
<tr><td align="left" width="130" port="ended_at">ended_at <font face="Arial Italic" color="grey60">datetime</font></td></tr>
+ <tr><td align="left" width="130" port="staff_type">staff_type <font face="Arial Italic" color="grey60">string ∗</font></td></tr>
<tr><td align="left" width="130" port="started_at">started_at <font face="Arial Italic" color="grey60">datetime ∗</font></td></tr>
</table>
>];
@@ -143,14 +143,15 @@ m_Volunteer [color = "grey60", fontcolor = "grey60", label = <<table border="0"
m_Staff -> m_Volunteer [color = "grey60", arrowtail = "onormal", arrowhead = "none", arrowsize = "1.2"];
m_Account -> m_Staff [arrowsize = "0.6", arrowhead = "dotnormal", arrowtail = "odot", weight = "5"];
m_Laboratory -> m_Staff [arrowsize = "0.6", arrowhead = "odotnormal", arrowtail = "odot", weight = "5"];
- m_Staff -> m_Treatment [arrowsize = "0.6", arrowhead = "odotnormal", arrowtail = "odot", weight = "5"];
+ m_Staff -> m_Treatment [arrowsize = "0.6", arrowhead = "odotnormal", arrowtail = "odot", weight = "4"];
m_Physician -> m_Patient [arrowsize = "0.6", arrowhead = "dotnormal", arrowtail = "odot", weight = "3"];
+ m_Physician -> m_Treatment [style = "dotted", arrowsize = "0.6", arrowhead = "odotnormal", arrowtail = "odot", weight = "2", constraint = "false"];
m_CareCentre -> m_Shift [arrowsize = "0.6", arrowhead = "dotnormal", arrowtail = "odot", weight = "1"];
+ m_Staff -> m_Shift [arrowsize = "0.6", arrowhead = "dotnormal", arrowtail = "odot", weight = "1"];
m_Patient -> m_Consumption [arrowsize = "0.6", arrowhead = "dotnormal", arrowtail = "odot", weight = "1"];
m_Item -> m_Consumption [arrowsize = "0.6", arrowhead = "dotnormal", arrowtail = "odot", weight = "2"];
m_Physician -> m_Consumption [arrowsize = "0.6", arrowhead = "dotnormal", arrowtail = "odot", weight = "1"];
m_Patient -> m_Treatment [arrowsize = "0.6", arrowhead = "dotnormal", arrowtail = "odot", weight = "2"];
- m_Treatment -> m_Physician [style = "dotted", arrowsize = "0.6", arrowhead = "odot", arrowtail = "odot", weight = "1", constraint = "false"];
m_CareCentre -> m_Bed [arrowsize = "0.6", arrowhead = "dotnormal", arrowtail = "odot", weight = "2"];
m_Patient -> m_Bed [arrowsize = "0.6", arrowhead = "odot", arrowtail = "odot", weight = "2"];
m_Patient -> m_Visit [arrowsize = "0.6", arrowhead = "dotnormal", arrowtail = "odot", weight = "1"];