This repository has been archived by the owner on May 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
models.dot
35 lines (35 loc) · 4 KB
/
models.dot
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
digraph models_diagram {
graph[overlap=false, splines=true]
"Appointment" [shape=Mrecord, label="{Appointment|appointment_date :date\lappointment_comment :text\lcreated_at :datetime\lupdated_at :datetime\l}"]
"Demographic" [shape=Mrecord, label="{Demographic|sex :string\ldob :date\leducation :integer\lhandedness :integer\lcreated_at :datetime\lupdated_at :datetime\l}"]
"Diagnosis" [shape=Mrecord, label="{Diagnosis|characterization :string\lcreated_at :datetime\lupdated_at :datetime\l}"]
"DiagnosisMethod" [shape=Mrecord, label="{DiagnosisMethod|consensus_method :string\lcreated_at :datetime\lupdated_at :datetime\l}"]
"Enrollment" [shape=Mrecord, label="{Enrollment|enumber :string\lenroll_date :date\lrecruitment_source :string\lwithdrawl_reason :text\lcreated_at :datetime\lupdated_at :datetime\l}"]
"FunctionalScenario" [shape=Mrecord, label="{FunctionalScenario|description :string\lintended_reps :integer\lscenario_file :string\lcreated_at :datetime\lupdated_at :datetime\l}"]
"FunctionalSet" [shape=Mrecord, label="{FunctionalSet|setname :string\lcreated_at :datetime\lupdated_at :datetime\l}"]
"MriScan" [shape=Mrecord, label="{MriScan|study_rmr :string\lexam_number :integer\lstudy_initials :string\lradiology_outcome :string\lnotes :text\ldicom_dvd :string\lstudy_path :string\ldicom_study_uid :string\lstudy_start_time :datetime\lstudy_end_time :datetime\lcompleted_fast :boolean\lcreated_at :datetime\lupdated_at :datetime\l}"]
"Participant" [shape=Mrecord, label="{Participant|initials :string\lwrapnum :string\lreggieid :integer\lnotes :text\lquality_redflag :boolean\lcreated_at :datetime\lupdated_at :datetime\l}"]
"Race" [shape=Mrecord, label="{Race|name :string\lcreated_at :datetime\lupdated_at :datetime\l}"]
"Researcher" [shape=Mrecord, label="{Researcher|initials :string\lfirst :string\llast :string\lcreated_at :datetime\lupdated_at :datetime\l}"]
"ScannerHardware" [shape=Mrecord, label="{ScannerHardware|name :string\lhardware_group :string\lcreated_at :datetime\lupdated_at :datetime\l}"]
"Series" [shape=Mrecord, label="{Series|order :integer\lpfile :integer\lcreated_at :datetime\lupdated_at :datetime\l}"]
"SeriesLogItem" [shape=Mrecord, label="{SeriesLogItem|logfile :string\lhas_concerns :boolean\lcomment :string\lcreated_at :datetime\lupdated_at :datetime\l}"]
"SeriesMetainfo" [shape=Mrecord, label="{SeriesMetainfo|rmr :string\lseries_description :string\lpath :string\ltimestamp :datetime\lglob :string\lrep_time :integer\lbold_reps :integer\lslices_per_volume :integer\lthumbnail_file_name :string\lthumbnail_content_type :string\lthumbnail_file_size :integer\lthumbnail_updated_at :datetime\ldicom_series_uid :string\ldicom_taghash :text\lcreated_at :datetime\lupdated_at :datetime\l}"]
"Visit" [shape=Mrecord, label="{Visit|visit_number :integer\lscan_note :text\lcreated_at :datetime\lupdated_at :datetime\l}"]
"VisitDiagnosis" [shape=Mrecord, label="{VisitDiagnosis|diagnosis_date :datetime\lcreated_at :datetime\lupdated_at :datetime\l}"]
"Appointment" -> "MriScan" [arrowtail=odot, arrowhead=dot, dir=both]
"Appointment" -> "Series" [arrowtail=crow, arrowhead=dot, dir=both]
"Diagnosis" -> "Visit" [arrowtail=crow, arrowhead=crow, dir=both]
"DiagnosisMethod" -> "Visit" [arrowtail=crow, arrowhead=crow, dir=both]
"Enrollment" -> "Visit" [arrowtail=crow, arrowhead=crow, dir=both]
"FunctionalScenario" -> "SeriesLogItem" [arrowtail=crow, arrowhead=dot, dir=both]
"FunctionalSet" -> "FunctionalScenario" [arrowtail=crow, arrowhead=dot, dir=both]
"Participant" -> "Demographic" [arrowtail=odot, arrowhead=dot, dir=both]
"Participant" -> "Enrollment" [arrowtail=crow, arrowhead=dot, dir=both]
"Race" -> "Demographic" [arrowtail=crow, arrowhead=dot, dir=both]
"Researcher" -> "Appointment" [arrowtail=crow, arrowhead=dot, dir=both]
"ScannerHardware" -> "MriScan" [arrowtail=crow, arrowhead=dot, dir=both]
"Series" -> "SeriesLogItem" [arrowtail=odot, arrowhead=dot, dir=both]
"Series" -> "SeriesMetainfo" [arrowtail=odot, arrowhead=dot, dir=both]
"Visit" -> "Appointment" [arrowtail=crow, arrowhead=dot, dir=both]
}