/* * PatientView * * Copyright (c) Worth Solutions Limited 2004-2013 * * This file is part of PatientView. * * PatientView is free software: you can redistribute it and/or modify it under the terms of the * GNU General Public License as published by the Free Software Foundation, either version 3 of the License, * or (at your option) any later version. * PatientView is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * You should have received a copy of the GNU General Public License along with PatientView in a file * titled COPYING. If not, see <http://www.gnu.org/licenses/>. * * @package PatientView * @link http://www.patientview.org * @author PatientView <info@patientview.org> * @copyright Copyright (c) 2004-2013, Worth Solutions Limited * @license http://www.gnu.org/licenses/gpl-3.0.html The GNU General Public License V3.0 */ package org.patientview.radar.model; import java.util.Date; /** * Corresponds to the tbl_Diagnosis table within the database. */ public class Diagnosis extends RadarModel { public enum YesNo { YES(1), NO(0), UNKNOWN(9); private int id; YesNo(int id) { this.id = id; } public int getId() { return id; } } public enum MutationYorN { Y(1), N(0); private int id; MutationYorN(int id) { // This is actually a bit in the DB, but use this to avoid any more code this.id = id; } public int getId() { return id; } } public enum MutationSorSN { S(1), SN(0); private int id; MutationSorSN(int id) { this.id = id; } public int getId() { return id; } } public enum SteroidResistance { PRIMARY(1), SECONDARY(2), PRESUMED(3), BPS(4); private int id; SteroidResistance(int id) { this.id = id; } public int getId() { return id; } } public enum BiopsyDiagnosis { NO(0, "No"), YES(1, "Yes"), MINIMAL_CHANGE(2, "Minimal change"), FSGS(3, "FSGS"), MESANGIAL_HYPERTROPHY(4, "Mesangial hypertrophy"), OTHER(5, "other"); private int id; private String label; BiopsyDiagnosis(int id, String label) { this.id = id; this.label = label; } public int getId() { return id; } public void setId(int id) { this.id = id; } public String getLabel() { return label; } public void setLabel(String label) { this.label = label; } } private DiagnosisCode diagnosisCode; private String text; private Date biopsyDate; private Date esrfDate; private Integer ageAtDiagnosis; private boolean prepubertalAtDiagnosis; private Double heightAtDiagnosis; // In cm private ClinicalPresentation clinicalPresentationA, clinicalPresentationB; private SteroidResistance steroidResistance; private Date onsetSymptomsDate; private String significantDiagnosis1, significantDiagnosis2; private BiopsyDiagnosis biopsyProvenDiagnosis; // BX_PROVEN_DIAG in database private MutationYorN mutationYorN1, mutationYorN2, mutationYorN3, mutationYorN4, mutationYorN5, mutationYorN6, mutationYorN7, mutationYorN8, mutationYorN9; private MutationSorSN mutationSorSN1, mutationSorSN2, mutationSorSN3, mutationSorSN4, mutationSorSN5, mutationSorSN6, mutationSorSN7, mutationSorSN8, mutationSorSN9; private String otherGeneMutation; private Karotype karotype; private String karoTypeOtherText; private YesNo parentalConsanguinity; private YesNo familyHistory; private Integer relativeWithDiseaseRadarNumber1, relativeWithDiseaseRadarNumber2, relativeWithDiseaseRadarNumber3, relativeWithDiseaseRadarNumber4, relativeWithDiseaseRadarNumber5, relativeWithDiseaseRadarNumber6; private Relative relativeWithDisease1, relativeWithDisease2, relativeWithDisease3, relativeWithDisease4, relativeWithDisease5, relativeWithDisease6; public DiagnosisCode getDiagnosisCode() { return diagnosisCode; } public void setDiagnosisCode(DiagnosisCode diagnosisCode) { this.diagnosisCode = diagnosisCode; } public String getText() { return text; } public void setText(String text) { this.text = text; } public Date getBiopsyDate() { return biopsyDate; } public void setBiopsyDate(Date biopsyDate) { this.biopsyDate = biopsyDate; } public Date getEsrfDate() { return esrfDate; } public void setEsrfDate(Date esrfDate) { this.esrfDate = esrfDate; } public Integer getAgeAtDiagnosis() { return ageAtDiagnosis; } public void setAgeAtDiagnosis(Integer ageAtDiagnosis) { this.ageAtDiagnosis = ageAtDiagnosis; } public boolean isPrepubertalAtDiagnosis() { return prepubertalAtDiagnosis; } public void setPrepubertalAtDiagnosis(boolean prepubertalAtDiagnosis) { this.prepubertalAtDiagnosis = prepubertalAtDiagnosis; } public Double getHeightAtDiagnosis() { return heightAtDiagnosis; } public void setHeightAtDiagnosis(Double heightAtDiagnosis) { this.heightAtDiagnosis = heightAtDiagnosis; } public ClinicalPresentation getClinicalPresentationA() { return clinicalPresentationA; } public void setClinicalPresentationA(ClinicalPresentation clinicalPresentationA) { this.clinicalPresentationA = clinicalPresentationA; } public ClinicalPresentation getClinicalPresentationB() { return clinicalPresentationB; } public void setClinicalPresentationB(ClinicalPresentation clinicalPresentationB) { this.clinicalPresentationB = clinicalPresentationB; } public SteroidResistance getSteroidResistance() { return steroidResistance; } public void setSteroidResistance(SteroidResistance steroidResistance) { this.steroidResistance = steroidResistance; } public Date getOnsetSymptomsDate() { return onsetSymptomsDate; } public void setOnsetSymptomsDate(Date onsetSymptomsDate) { this.onsetSymptomsDate = onsetSymptomsDate; } public String getSignificantDiagnosis1() { return significantDiagnosis1; } public void setSignificantDiagnosis1(String significantDiagnosis1) { this.significantDiagnosis1 = significantDiagnosis1; } public String getSignificantDiagnosis2() { return significantDiagnosis2; } public void setSignificantDiagnosis2(String significantDiagnosis2) { this.significantDiagnosis2 = significantDiagnosis2; } public BiopsyDiagnosis getBiopsyProvenDiagnosis() { return biopsyProvenDiagnosis; } public void setBiopsyProvenDiagnosis(BiopsyDiagnosis biopsyProvenDiagnosis) { this.biopsyProvenDiagnosis = biopsyProvenDiagnosis; } public MutationYorN getMutationYorN1() { return mutationYorN1; } public void setMutationYorN1(MutationYorN mutationYorN1) { this.mutationYorN1 = mutationYorN1; } public MutationYorN getMutationYorN2() { return mutationYorN2; } public void setMutationYorN2(MutationYorN mutationYorN2) { this.mutationYorN2 = mutationYorN2; } public MutationYorN getMutationYorN3() { return mutationYorN3; } public void setMutationYorN3(MutationYorN mutationYorN3) { this.mutationYorN3 = mutationYorN3; } public MutationYorN getMutationYorN4() { return mutationYorN4; } public void setMutationYorN4(MutationYorN mutationYorN4) { this.mutationYorN4 = mutationYorN4; } public MutationYorN getMutationYorN5() { return mutationYorN5; } public void setMutationYorN5(MutationYorN mutationYorN5) { this.mutationYorN5 = mutationYorN5; } public MutationYorN getMutationYorN6() { return mutationYorN6; } public void setMutationYorN6(MutationYorN mutationYorN6) { this.mutationYorN6 = mutationYorN6; } public MutationYorN getMutationYorN7() { return mutationYorN7; } public void setMutationYorN7(MutationYorN mutationYorN7) { this.mutationYorN7 = mutationYorN7; } public MutationYorN getMutationYorN8() { return mutationYorN8; } public void setMutationYorN8(MutationYorN mutationYorN8) { this.mutationYorN8 = mutationYorN8; } public MutationYorN getMutationYorN9() { return mutationYorN9; } public void setMutationYorN9(MutationYorN mutationYorN9) { this.mutationYorN9 = mutationYorN9; } public MutationSorSN getMutationSorSN1() { return mutationSorSN1; } public void setMutationSorSN1(MutationSorSN mutationSorSN1) { this.mutationSorSN1 = mutationSorSN1; } public MutationSorSN getMutationSorSN2() { return mutationSorSN2; } public void setMutationSorSN2(MutationSorSN mutationSorSN2) { this.mutationSorSN2 = mutationSorSN2; } public MutationSorSN getMutationSorSN3() { return mutationSorSN3; } public void setMutationSorSN3(MutationSorSN mutationSorSN3) { this.mutationSorSN3 = mutationSorSN3; } public MutationSorSN getMutationSorSN4() { return mutationSorSN4; } public void setMutationSorSN4(MutationSorSN mutationSorSN4) { this.mutationSorSN4 = mutationSorSN4; } public MutationSorSN getMutationSorSN5() { return mutationSorSN5; } public void setMutationSorSN5(MutationSorSN mutationSorSN5) { this.mutationSorSN5 = mutationSorSN5; } public MutationSorSN getMutationSorSN6() { return mutationSorSN6; } public void setMutationSorSN6(MutationSorSN mutationSorSN6) { this.mutationSorSN6 = mutationSorSN6; } public MutationSorSN getMutationSorSN7() { return mutationSorSN7; } public void setMutationSorSN7(MutationSorSN mutationSorSN7) { this.mutationSorSN7 = mutationSorSN7; } public MutationSorSN getMutationSorSN8() { return mutationSorSN8; } public void setMutationSorSN8(MutationSorSN mutationSorSN8) { this.mutationSorSN8 = mutationSorSN8; } public MutationSorSN getMutationSorSN9() { return mutationSorSN9; } public void setMutationSorSN9(MutationSorSN mutationSorSN9) { this.mutationSorSN9 = mutationSorSN9; } public String getOtherGeneMutation() { return otherGeneMutation; } public void setOtherGeneMutation(String otherGeneMutation) { this.otherGeneMutation = otherGeneMutation; } public Karotype getKarotype() { return karotype; } public void setKarotype(Karotype karotype) { this.karotype = karotype; } public YesNo getParentalConsanguinity() { return parentalConsanguinity; } public void setParentalConsanguinity(YesNo parentalConsanguinity) { this.parentalConsanguinity = parentalConsanguinity; } public YesNo getFamilyHistory() { return familyHistory; } public void setFamilyHistory(YesNo familyHistory) { this.familyHistory = familyHistory; } public Integer getRelativeWithDiseaseRadarNumber1() { return relativeWithDiseaseRadarNumber1; } public void setRelativeWithDiseaseRadarNumber1(Integer relativeWithDiseaseRadarNumber1) { this.relativeWithDiseaseRadarNumber1 = relativeWithDiseaseRadarNumber1; } public Integer getRelativeWithDiseaseRadarNumber2() { return relativeWithDiseaseRadarNumber2; } public void setRelativeWithDiseaseRadarNumber2(Integer relativeWithDiseaseRadarNumber2) { this.relativeWithDiseaseRadarNumber2 = relativeWithDiseaseRadarNumber2; } public Integer getRelativeWithDiseaseRadarNumber3() { return relativeWithDiseaseRadarNumber3; } public void setRelativeWithDiseaseRadarNumber3(Integer relativeWithDiseaseRadarNumber3) { this.relativeWithDiseaseRadarNumber3 = relativeWithDiseaseRadarNumber3; } public Integer getRelativeWithDiseaseRadarNumber4() { return relativeWithDiseaseRadarNumber4; } public void setRelativeWithDiseaseRadarNumber4(Integer relativeWithDiseaseRadarNumber4) { this.relativeWithDiseaseRadarNumber4 = relativeWithDiseaseRadarNumber4; } public Integer getRelativeWithDiseaseRadarNumber5() { return relativeWithDiseaseRadarNumber5; } public void setRelativeWithDiseaseRadarNumber5(Integer relativeWithDiseaseRadarNumber5) { this.relativeWithDiseaseRadarNumber5 = relativeWithDiseaseRadarNumber5; } public Integer getRelativeWithDiseaseRadarNumber6() { return relativeWithDiseaseRadarNumber6; } public void setRelativeWithDiseaseRadarNumber6(Integer relativeWithDiseaseRadarNumber6) { this.relativeWithDiseaseRadarNumber6 = relativeWithDiseaseRadarNumber6; } public Relative getRelativeWithDisease1() { return relativeWithDisease1; } public void setRelativeWithDisease1(Relative relativeWithDisease1) { this.relativeWithDisease1 = relativeWithDisease1; } public Relative getRelativeWithDisease2() { return relativeWithDisease2; } public void setRelativeWithDisease2(Relative relativeWithDisease2) { this.relativeWithDisease2 = relativeWithDisease2; } public Relative getRelativeWithDisease3() { return relativeWithDisease3; } public void setRelativeWithDisease3(Relative relativeWithDisease3) { this.relativeWithDisease3 = relativeWithDisease3; } public Relative getRelativeWithDisease4() { return relativeWithDisease4; } public void setRelativeWithDisease4(Relative relativeWithDisease4) { this.relativeWithDisease4 = relativeWithDisease4; } public Relative getRelativeWithDisease5() { return relativeWithDisease5; } public void setRelativeWithDisease5(Relative relativeWithDisease5) { this.relativeWithDisease5 = relativeWithDisease5; } public Relative getRelativeWithDisease6() { return relativeWithDisease6; } public void setRelativeWithDisease6(Relative relativeWithDisease6) { this.relativeWithDisease6 = relativeWithDisease6; } public String getKaroTypeOtherText() { return karoTypeOtherText; } public void setKaroTypeOtherText(String karoTypeOtherText) { this.karoTypeOtherText = karoTypeOtherText; } }