forked from bento-platform/katsu
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #154 from CanDIG/mshadbolt/DIG-1217-create-ER-diagram
DIG:1217 Create ER diagram workflow and add to READMEs
- Loading branch information
Showing
6 changed files
with
704 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,264 @@ | ||
classDiagram | ||
class AutoDateTimeField { | ||
pre_save(model_instance, add) | ||
} | ||
class Biomarker { | ||
ca125 : PositiveSmallIntegerField | ||
cea : PositiveSmallIntegerField | ||
er_percent_positive : FloatField | ||
er_status : CharField | ||
her2_ihc_status : CharField | ||
her2_ish_status : CharField | ||
hpv_ihc_status : CharField | ||
hpv_pcr_status : CharField | ||
hpv_strain : ArrayField | ||
id : UUIDField | ||
pr_percent_positive : FloatField | ||
pr_status : CharField | ||
program_id : ForeignKey | ||
psa_level : PositiveSmallIntegerField | ||
submitter_donor_id : ForeignKey | ||
submitter_follow_up_id : CharField | ||
submitter_primary_diagnosis_id : CharField | ||
submitter_specimen_id : CharField | ||
submitter_treatment_id : CharField | ||
test_date : CharField | ||
} | ||
class Chemotherapy { | ||
actual_cumulative_drug_dose : PositiveSmallIntegerField | ||
chemotherapy_drug_dose_units : CharField | ||
drug_name : CharField | ||
drug_reference_database : CharField | ||
drug_reference_identifier : CharField | ||
id : UUIDField | ||
prescribed_cumulative_drug_dose : PositiveSmallIntegerField | ||
program_id : ForeignKey | ||
submitter_donor_id : ForeignKey | ||
submitter_treatment_id : ForeignKey | ||
} | ||
class Comorbidity { | ||
age_at_comorbidity_diagnosis : PositiveSmallIntegerField | ||
comorbidity_treatment : CharField | ||
comorbidity_treatment_status : CharField | ||
comorbidity_type_code : CharField | ||
id : UUIDField | ||
laterality_of_prior_malignancy : CharField | ||
prior_malignancy : CharField | ||
program_id : ForeignKey | ||
submitter_donor_id : ForeignKey | ||
} | ||
class Donor { | ||
cause_of_death : CharField | ||
date_alive_after_lost_to_followup : CharField | ||
date_of_birth : CharField | ||
date_of_death : CharField | ||
gender : CharField | ||
is_deceased : BooleanField | ||
lost_to_followup_after_clinical_event_identifier : CharField | ||
lost_to_followup_reason : CharField | ||
primary_site : ArrayField | ||
program_id : ForeignKey | ||
sex_at_birth : CharField | ||
submitter_donor_id : CharField | ||
} | ||
class Exposure { | ||
id : UUIDField | ||
pack_years_smoked : FloatField | ||
program_id : ForeignKey | ||
submitter_donor_id : ForeignKey | ||
tobacco_smoking_status : CharField | ||
tobacco_type : ArrayField | ||
} | ||
class FollowUp { | ||
anatomic_site_progression_or_recurrence : ArrayField | ||
date_of_followup : CharField | ||
date_of_relapse : CharField | ||
disease_status_at_followup : CharField | ||
method_of_progression_status : ArrayField | ||
program_id : ForeignKey | ||
recurrence_m_category : CharField | ||
recurrence_n_category : CharField | ||
recurrence_stage_group : CharField | ||
recurrence_t_category : CharField | ||
recurrence_tumour_staging_system : CharField | ||
relapse_type : CharField | ||
submitter_donor_id : ForeignKey | ||
submitter_follow_up_id : CharField | ||
submitter_primary_diagnosis_id : ForeignKey | ||
submitter_treatment_id : ForeignKey | ||
} | ||
class HormoneTherapy { | ||
actual_cumulative_drug_dose : PositiveSmallIntegerField | ||
drug_name : CharField | ||
drug_reference_database : CharField | ||
drug_reference_identifier : CharField | ||
hormone_drug_dose_units : CharField | ||
id : UUIDField | ||
prescribed_cumulative_drug_dose : PositiveSmallIntegerField | ||
program_id : ForeignKey | ||
submitter_donor_id : ForeignKey | ||
submitter_treatment_id : ForeignKey | ||
} | ||
class Immunotherapy { | ||
actual_cumulative_drug_dose : PositiveSmallIntegerField | ||
drug_name : CharField | ||
drug_reference_database : CharField | ||
drug_reference_identifier : CharField | ||
id : UUIDField | ||
immunotherapy_drug_dose_units : CharField | ||
immunotherapy_type : CharField | ||
prescribed_cumulative_drug_dose : PositiveSmallIntegerField | ||
program_id : ForeignKey | ||
submitter_donor_id : ForeignKey | ||
submitter_treatment_id : ForeignKey | ||
} | ||
class Meta { | ||
ordering : list | ||
} | ||
class Meta { | ||
ordering : list | ||
} | ||
class Meta { | ||
ordering : list | ||
} | ||
class Meta { | ||
ordering : list | ||
} | ||
class Meta { | ||
ordering : list | ||
} | ||
class Meta { | ||
ordering : list | ||
} | ||
class Meta { | ||
ordering : list | ||
} | ||
class Meta { | ||
ordering : list | ||
} | ||
class Meta { | ||
ordering : list | ||
} | ||
class Meta { | ||
ordering : list | ||
} | ||
class Meta { | ||
ordering : list | ||
} | ||
class Meta { | ||
ordering : list | ||
} | ||
class Meta { | ||
ordering : list | ||
} | ||
class Meta { | ||
ordering : list | ||
} | ||
class PrimaryDiagnosis { | ||
basis_of_diagnosis : CharField | ||
cancer_type_code : CharField | ||
clinical_m_category : CharField | ||
clinical_n_category : CharField | ||
clinical_stage_group : CharField | ||
clinical_t_category : CharField | ||
clinical_tumour_staging_system : CharField | ||
date_of_diagnosis : CharField | ||
laterality : CharField | ||
lymph_nodes_examined_method : CharField | ||
lymph_nodes_examined_status : CharField | ||
number_lymph_nodes_positive : PositiveSmallIntegerField | ||
program_id : ForeignKey | ||
submitter_donor_id : ForeignKey | ||
submitter_primary_diagnosis_id : CharField | ||
} | ||
class Program { | ||
created : DateTimeField | ||
metadata : JSONField | ||
program_id : CharField | ||
updated | ||
} | ||
class Radiation { | ||
anatomical_site_irradiated : CharField | ||
id : UUIDField | ||
program_id : ForeignKey | ||
radiation_boost : BooleanField | ||
radiation_therapy_dosage : PositiveSmallIntegerField | ||
radiation_therapy_fractions : PositiveSmallIntegerField | ||
radiation_therapy_modality : CharField | ||
radiation_therapy_type : CharField | ||
reference_radiation_treatment_id : CharField | ||
submitter_donor_id : ForeignKey | ||
submitter_treatment_id : ForeignKey | ||
} | ||
class SampleRegistration { | ||
program_id : ForeignKey | ||
sample_type : CharField | ||
specimen_tissue_source : CharField | ||
specimen_type : CharField | ||
submitter_donor_id : ForeignKey | ||
submitter_sample_id : CharField | ||
submitter_specimen_id : ForeignKey | ||
tumour_normal_designation : CharField | ||
} | ||
class Specimen { | ||
pathological_m_category : CharField | ||
pathological_n_category : CharField | ||
pathological_stage_group : CharField | ||
pathological_t_category : CharField | ||
pathological_tumour_staging_system : CharField | ||
percent_tumour_cells_measurement_method : CharField | ||
percent_tumour_cells_range : CharField | ||
program_id : ForeignKey | ||
reference_pathology_confirmed_diagnosis : CharField | ||
reference_pathology_confirmed_tumour_presence : CharField | ||
specimen_anatomic_location : CharField | ||
specimen_collection_date : CharField | ||
specimen_laterality : CharField | ||
specimen_processing : CharField | ||
specimen_storage : CharField | ||
submitter_donor_id : ForeignKey | ||
submitter_primary_diagnosis_id : ForeignKey | ||
submitter_specimen_id : CharField | ||
tumour_grade : CharField | ||
tumour_grading_system : CharField | ||
tumour_histological_type : CharField | ||
} | ||
class Surgery { | ||
greatest_dimension_tumour : PositiveSmallIntegerField | ||
id : UUIDField | ||
lymphovascular_invasion : CharField | ||
margin_types_involved : ArrayField | ||
margin_types_not_assessed : ArrayField | ||
margin_types_not_involved : ArrayField | ||
perineural_invasion : CharField | ||
program_id : ForeignKey | ||
residual_tumour_classification : CharField | ||
submitter_donor_id : ForeignKey | ||
submitter_specimen_id : CharField | ||
submitter_treatment_id : ForeignKey | ||
surgery_location : CharField | ||
surgery_site : CharField | ||
surgery_type : CharField | ||
tumour_focality : CharField | ||
tumour_length : PositiveSmallIntegerField | ||
tumour_width : PositiveSmallIntegerField | ||
} | ||
class Treatment { | ||
days_per_cycle : PositiveSmallIntegerField | ||
is_primary_treatment : CharField | ||
line_of_treatment : IntegerField | ||
number_of_cycles : PositiveSmallIntegerField | ||
program_id : ForeignKey | ||
response_to_treatment : CharField | ||
response_to_treatment_criteria_method : CharField | ||
status_of_treatment : CharField | ||
submitter_donor_id : ForeignKey | ||
submitter_primary_diagnosis_id : ForeignKey | ||
submitter_treatment_id : CharField | ||
treatment_end_date : CharField | ||
treatment_intent : CharField | ||
treatment_setting : CharField | ||
treatment_start_date : CharField | ||
treatment_type : ArrayField | ||
} | ||
AutoDateTimeField --* Program : updated |
Oops, something went wrong.