-
Notifications
You must be signed in to change notification settings - Fork 7
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 #136 from c3g/tox-flake8
Add tox and flake8
- Loading branch information
Showing
38 changed files
with
486 additions
and
433 deletions.
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
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 |
---|---|---|
@@ -1,52 +1,52 @@ | ||
from django.contrib import admin | ||
from .models import * | ||
from . import models as m | ||
|
||
|
||
@admin.register(GeneticSpecimen) | ||
@admin.register(m.GeneticSpecimen) | ||
class GeneticSpecimenAdmin(admin.ModelAdmin): | ||
pass | ||
|
||
|
||
@admin.register(CancerGeneticVariant) | ||
@admin.register(m.CancerGeneticVariant) | ||
class CancerGeneticVariantAdmin(admin.ModelAdmin): | ||
pass | ||
|
||
|
||
@admin.register(GenomicRegionStudied) | ||
@admin.register(m.GenomicRegionStudied) | ||
class GenomicRegionStudiedAdmin(admin.ModelAdmin): | ||
pass | ||
|
||
|
||
@admin.register(GenomicsReport) | ||
@admin.register(m.GenomicsReport) | ||
class GenomicsReportAdmin(admin.ModelAdmin): | ||
pass | ||
|
||
|
||
@admin.register(LabsVital) | ||
@admin.register(m.LabsVital) | ||
class LabsVitalAdmin(admin.ModelAdmin): | ||
pass | ||
|
||
|
||
@admin.register(CancerCondition) | ||
@admin.register(m.CancerCondition) | ||
class CancerConditionAdmin(admin.ModelAdmin): | ||
pass | ||
|
||
|
||
@admin.register(TNMStaging) | ||
@admin.register(m.TNMStaging) | ||
class TNMStagingAdmin(admin.ModelAdmin): | ||
pass | ||
|
||
|
||
@admin.register(CancerRelatedProcedure) | ||
@admin.register(m.CancerRelatedProcedure) | ||
class CancerRelatedProcedureAdmin(admin.ModelAdmin): | ||
pass | ||
|
||
|
||
@admin.register(MedicationStatement) | ||
@admin.register(m.MedicationStatement) | ||
class MedicationStatementAdmin(admin.ModelAdmin): | ||
pass | ||
|
||
|
||
@admin.register(MCodePacket) | ||
@admin.register(m.MCodePacket) | ||
class MCodePacketAdmin(admin.ModelAdmin): | ||
pass |
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 |
---|---|---|
@@ -1,77 +1,77 @@ | ||
from .mcode_profiles import * | ||
from . import mcode_profiles as mp | ||
|
||
MCODE_PROFILES_MAPPING = { | ||
"patient": { | ||
"profile": MCODE_PATIENT, | ||
"profile": mp.MCODE_PATIENT, | ||
"properties_profile": { | ||
"comorbid_condition": MCODE_COMORBID_CONDITION, | ||
"ecog_performance_status": MCODE_ECOG_PERFORMANCE_STATUS, | ||
"karnofsky": MCODE_KARNOFSKY | ||
"comorbid_condition": mp.MCODE_COMORBID_CONDITION, | ||
"ecog_performance_status": mp.MCODE_ECOG_PERFORMANCE_STATUS, | ||
"karnofsky": mp.MCODE_KARNOFSKY | ||
} | ||
}, | ||
"genetic_specimen": { | ||
"profile": MCODE_GENETIC_SPECIMEN, | ||
"profile": mp.MCODE_GENETIC_SPECIMEN, | ||
"properties_profile": { | ||
"laterality": MCODE_LATERALITY | ||
"laterality": mp.MCODE_LATERALITY | ||
} | ||
}, | ||
"cancer_genetic_variant": { | ||
"profile": MCODE_CANCER_GENETIC_VARIANT | ||
"profile": mp.MCODE_CANCER_GENETIC_VARIANT | ||
}, | ||
"genomic_region_studied": { | ||
"profile": MCODE_GENOMIC_REGION_STUDIED | ||
"profile": mp.MCODE_GENOMIC_REGION_STUDIED | ||
}, | ||
"genomics_report": { | ||
"profile": MCODE_GENOMICS_REPORT | ||
"profile": mp.MCODE_GENOMICS_REPORT | ||
}, | ||
"labs_vital": { | ||
"profile": MCODE_TUMOR_MARKER | ||
"profile": mp.MCODE_TUMOR_MARKER | ||
}, | ||
"cancer_condition": { | ||
"profile": { | ||
"primary": MCODE_PRIMARY_CANCER_CONDITION, | ||
"secondary": MCODE_SECONDARY_CANCER_CONDITION | ||
"primary": mp.MCODE_PRIMARY_CANCER_CONDITION, | ||
"secondary": mp.MCODE_SECONDARY_CANCER_CONDITION | ||
}, | ||
"properties_profile": { | ||
"histology_morphology_behavior": MCODE_HISTOLOGY_MORPHOLOGY_BEHAVIOR | ||
"histology_morphology_behavior": mp.MCODE_HISTOLOGY_MORPHOLOGY_BEHAVIOR | ||
} | ||
}, | ||
"tnm_staging": { | ||
"properties_profile": { | ||
"stage_group": { | ||
"clinical": MCODE_TNM_CLINICAL_STAGE_GROUP, | ||
"pathologic": MCODE_TNM_PATHOLOGIC_STAGE_GROUP | ||
"clinical": mp.MCODE_TNM_CLINICAL_STAGE_GROUP, | ||
"pathologic": mp.MCODE_TNM_PATHOLOGIC_STAGE_GROUP | ||
}, | ||
"primary_tumor_category": { | ||
"clinical": MCODE_TNM_CLINICAL_PRIMARY_TUMOR_CATEGORY, | ||
"pathologic": MCODE_TNM_PATHOLOGIC_PRIMARY_TUMOR_CATEGORY | ||
"clinical": mp.MCODE_TNM_CLINICAL_PRIMARY_TUMOR_CATEGORY, | ||
"pathologic": mp.MCODE_TNM_PATHOLOGIC_PRIMARY_TUMOR_CATEGORY | ||
}, | ||
"regional_nodes_category": { | ||
"clinical": MCODE_TNM_CLINICAL_REGIONAL_NODES_CATEGORY, | ||
"pathologic": MCODE_TNM_PATHOLOGIC_REGIONAL_NODES_CATEGORY | ||
"clinical": mp.MCODE_TNM_CLINICAL_REGIONAL_NODES_CATEGORY, | ||
"pathologic": mp.MCODE_TNM_PATHOLOGIC_REGIONAL_NODES_CATEGORY | ||
}, | ||
"distant_metastases_category": { | ||
"clinical": MCODE_TNM_CLINICAL_DISTANT_METASTASES_CATEGORY, | ||
"pathologic": MCODE_TNM_PATHOLOGIC_DISTANT_METASTASES_CATEGORY | ||
"clinical": mp.MCODE_TNM_CLINICAL_DISTANT_METASTASES_CATEGORY, | ||
"pathologic": mp.MCODE_TNM_PATHOLOGIC_DISTANT_METASTASES_CATEGORY | ||
} | ||
} | ||
}, | ||
"cancer_related_procedure": { | ||
"profile": { | ||
"radiation": MCODE_CANCER_RELATED_RADIATION_PROCEDURE, | ||
"surgical": MCODE_CANCER_RELATED_SURGICAL_PROCEDURE | ||
"radiation": mp.MCODE_CANCER_RELATED_RADIATION_PROCEDURE, | ||
"surgical": mp.MCODE_CANCER_RELATED_SURGICAL_PROCEDURE | ||
} | ||
}, | ||
"medication_statement": { | ||
"profile": MCODE_MEDICATION_STATEMENT, | ||
"profile": mp.MCODE_MEDICATION_STATEMENT, | ||
"properties_profile": { | ||
"termination_reason": MCODE_TERMINATION_REASON, | ||
"treatment_intent": MCODE_TREATMENT_INTENT | ||
"termination_reason": mp.MCODE_TERMINATION_REASON, | ||
"treatment_intent": mp.MCODE_TREATMENT_INTENT | ||
} | ||
}, | ||
"mcodepacket": { | ||
"properties_profile": { | ||
"cancer_disease_status": MCODE_CANCER_DISEASE_STATUS | ||
"cancer_disease_status": mp.MCODE_CANCER_DISEASE_STATUS | ||
} | ||
} | ||
} |
Oops, something went wrong.