diff --git a/ehr/resources/queries/study/animalIdsAsDamAndSire.sql b/ehr/resources/queries/study/animalIdsAsDamAndSire.sql deleted file mode 100644 index 4943ca5ab..000000000 --- a/ehr/resources/queries/study/animalIdsAsDamAndSire.sql +++ /dev/null @@ -1,14 +0,0 @@ - -SELECT DISTINCT dam AS Id, - gender, - species -FROM demographics -WHERE dam IN (SELECT sire FROM demographics) - -UNION - -SELECT DISTINCT sire AS Id, - gender, - species -FROM demographics -WHERE sire IN (SELECT dam FROM demographics); diff --git a/ehr/resources/queries/study/parentsDifferentSpecies.sql b/ehr/resources/queries/study/parentsDifferentSpecies.sql deleted file mode 100644 index 7c2617fea..000000000 --- a/ehr/resources/queries/study/parentsDifferentSpecies.sql +++ /dev/null @@ -1,20 +0,0 @@ -SELECT * -FROM ( -SELECT - d1.Id, - d1.gender, - d1.species, - d2.Id as damId, - d2.species as damSpecies, - d3.Id as sireId, - d3.species as sireSpecies, - CASE WHEN (d2.species IS NOT NULL AND d1.species != d2.species) AND - (d3.species IS NOT NULL AND d1.species != d3.species) - THEN TRUE - ELSE FALSE - END as parentSpeciesMismatch -FROM demographics d1 -LEFT JOIN demographics d2 ON d1.dam = d2.Id -LEFT JOIN demographics d3 ON d1.sire = d3.Id -) d4 -WHERE d4.parentSpeciesMismatch = TRUE \ No newline at end of file diff --git a/ehr/resources/queries/study/parentsIncorrectGender.sql b/ehr/resources/queries/study/parentsIncorrectGender.sql deleted file mode 100644 index c014d7b04..000000000 --- a/ehr/resources/queries/study/parentsIncorrectGender.sql +++ /dev/null @@ -1,20 +0,0 @@ -SELECT * -FROM ( -SELECT - d1.Id, - d1.gender, - d1.species, - d2.Id as damId, - d2.gender as damGender, - d3.Id as sireId, - d3.gender as sireGender, - CASE WHEN (d2.gender IS NOT NULL AND upper(d2.gender.meaning) NOT IN ('FEMALE', 'UNKNOWN', 'UNDETERMINED')) OR - (d3.gender IS NOT NULL AND upper(d3.gender.meaning) NOT IN ('MALE', 'UNKNOWN', 'UNDETERMINED')) - THEN TRUE - ELSE FALSE - END as parentSpeciesMismatch -FROM demographics d1 -LEFT JOIN demographics d2 ON d1.dam = d2.Id -LEFT JOIN demographics d3 ON d1.sire = d3.Id - ) d4 -WHERE d4.parentSpeciesMismatch = TRUE \ No newline at end of file diff --git a/ehr/resources/queries/study/parentsYoungerThanOffspring.sql b/ehr/resources/queries/study/parentsYoungerThanOffspring.sql deleted file mode 100644 index 5c35edeae..000000000 --- a/ehr/resources/queries/study/parentsYoungerThanOffspring.sql +++ /dev/null @@ -1,16 +0,0 @@ -SELECT * -FROM ( - SELECT - dem.Id, - dem.gender, - dem.species, - dem.birth, - dem.dam, - damDem.birth as damBirth, - dem.sire, - sireDem.birth as sireBirth - FROM demographics dem - LEFT JOIN demographics damDem ON dem.dam = damDem.Id - LEFT JOIN demographics sireDem ON dem.sire = sireDem.Id - ) t -WHERE (t.birth <= t.damBirth OR t.birth <= t.sireBirth) \ No newline at end of file diff --git a/ehr/resources/views/ehrDataValidationReport.html b/ehr/resources/views/ehrDataValidationReport.html deleted file mode 100644 index add65f512..000000000 --- a/ehr/resources/views/ehrDataValidationReport.html +++ /dev/null @@ -1,37 +0,0 @@ -
- - - - - \ No newline at end of file