Esempio n. 1
0
 /** Returns the tissue of finding name */
 public String getTissueFindingName() {
   String returnValue = "";
   String code = getTissueFinding();
   if (code == null || code.equals("")) {
     // nothing to do
   } else if (code.equals(FormLogic.OTHER_TISSUE)) {
     returnValue = getTissueFindingOther();
   } else {
     returnValue = BigrGbossData.getTissueDescription(code);
   }
   return returnValue;
 }
Esempio n. 2
0
 /* (non-Javadoc)
  * @see com.ardais.bigr.btx.framework.DescribableAsHistoryObject#describeAsHistoryObject()
  */
 public Object describeAsHistoryObject() {
   BtxHistoryAttributes attributes = new BtxHistoryAttributes();
   if (!ApiFunctions.isEmpty(getConsentId())) {
     attributes.setAttribute("consentId", getConsentId());
   }
   if (!ApiFunctions.isEmpty(getCellInfiltrateAmount())) {
     attributes.setAttribute(
         "cellInfiltrateAmount",
         GbossFactory.getInstance().getDescription(getCellInfiltrateAmount()));
   }
   if (!ApiFunctions.isEmpty(getDiagnosis())) {
     attributes.setAttribute("diagnosis", BigrGbossData.getDiagnosisDescription(getDiagnosis()));
   }
   if (!ApiFunctions.isEmpty(getDiagnosisOther())) {
     attributes.setAttribute("diagnosisOther", getDiagnosisOther());
   }
   if (!ApiFunctions.isEmpty(getDistantMetastasis())) {
     attributes.setAttribute(
         "distantMetastasis", GbossFactory.getInstance().getDescription(getDistantMetastasis()));
   }
   if (!ApiFunctions.isEmpty(getDistantMetastasisInd())) {
     attributes.setAttribute("distantMetastasisInd", getDistantMetastasisInd());
   }
   if (!ApiFunctions.isEmpty(getDistantMetastasisOther())) {
     attributes.setAttribute("distantMetastasisOther", getDistantMetastasisOther());
   }
   if (!ApiFunctions.isEmpty(getExtensiveIntraductalComp())) {
     attributes.setAttribute(
         "extensiveIntraductalComp",
         GbossFactory.getInstance().getDescription(getExtensiveIntraductalComp()));
   }
   if (!ApiFunctions.isEmpty(getExtranodalSpread())) {
     attributes.setAttribute(
         "extranodalSpread", GbossFactory.getInstance().getDescription(getExtranodalSpread()));
   }
   if (getGleasonPrimary() != null && !ApiFunctions.isEmpty(getGleasonPrimary().toString())) {
     attributes.setAttribute("gleasonPrimary", getGleasonPrimary().toString());
   }
   if (getGleasonSecondary() != null && !ApiFunctions.isEmpty(getGleasonSecondary().toString())) {
     attributes.setAttribute("gleasonSecondary", getGleasonSecondary().toString());
   }
   if (getGleasonTotal() != null && !ApiFunctions.isEmpty(getGleasonTotal().toString())) {
     attributes.setAttribute("gleasonTotal", getGleasonTotal().toString());
   }
   if (!ApiFunctions.isEmpty(getHistologicalNuclearGrade())) {
     attributes.setAttribute(
         "histologicalNuclearGrade",
         GbossFactory.getInstance().getDescription(getHistologicalNuclearGrade()));
   }
   if (!ApiFunctions.isEmpty(getHistologicalNuclearGradeOther())) {
     attributes.setAttribute("histologicalNuclearGradeOther", getHistologicalNuclearGradeOther());
   }
   if (!ApiFunctions.isEmpty(getHistologicalType())) {
     attributes.setAttribute(
         "histologicalType", GbossFactory.getInstance().getDescription(getHistologicalType()));
   }
   if (!ApiFunctions.isEmpty(getHistologicalTypeOther())) {
     attributes.setAttribute("histologicalTypeOther", getHistologicalTypeOther());
   }
   if (!ApiFunctions.isEmpty(getInflammCellInfiltrate())) {
     attributes.setAttribute(
         "inflammCellInfiltrate",
         GbossFactory.getInstance().getDescription(getInflammCellInfiltrate()));
   }
   if (!ApiFunctions.isEmpty(getJointComponent())) {
     attributes.setAttribute(
         "jointComponent", GbossFactory.getInstance().getDescription(getJointComponent()));
   }
   if (!ApiFunctions.isEmpty(getLymphaticVascularInvasion())) {
     attributes.setAttribute(
         "lymphaticVascularInvasion",
         GbossFactory.getInstance().getDescription(getLymphaticVascularInvasion()));
   }
   if (!ApiFunctions.isEmpty(getLymphNodeNotes())) {
     attributes.setAttribute("lymphNodeNotes", getLymphNodeNotes());
   }
   if (!ApiFunctions.isEmpty(getLymphNodeStage())) {
     attributes.setAttribute(
         "lymphNodeStage", GbossFactory.getInstance().getDescription(getLymphNodeStage()));
   }
   if (!ApiFunctions.isEmpty(getLymphNodeStageOther())) {
     attributes.setAttribute("lymphNodeStageOther", getLymphNodeStageOther());
   }
   if (!ApiFunctions.isEmpty(getLymphNodeStageInd())) {
     attributes.setAttribute("lymphNodeStageInd", getLymphNodeStageInd());
   }
   if (!ApiFunctions.isEmpty(getMarginsInvolved())) {
     attributes.setAttribute("marginsInvolved", getMarginsInvolved());
   }
   if (!ApiFunctions.isEmpty(getMarginsUninvolved())) {
     attributes.setAttribute("marginsUninvolved", getMarginsUninvolved());
   }
   if (!ApiFunctions.isEmpty(getPerineuralInvasion())) {
     attributes.setAttribute(
         "perineuralInvasion", GbossFactory.getInstance().getDescription(getPerineuralInvasion()));
   }
   if (!ApiFunctions.isEmpty(getPrimary())) {
     attributes.setAttribute("primary", getPrimary());
   }
   if (!ApiFunctions.isEmpty(getSectionIdentifier())) {
     attributes.setAttribute(
         "sectionIdentifier", GbossFactory.getInstance().getDescription(getSectionIdentifier()));
   }
   if (!ApiFunctions.isEmpty(getSectionNotes())) {
     attributes.setAttribute("sectionNotes", getSectionNotes());
   }
   if (!ApiFunctions.isEmpty(getSizeLargestNodalMets())) {
     attributes.setAttribute("sizeLargestNodalMets", getSizeLargestNodalMets());
   }
   if (!ApiFunctions.isEmpty(getStageGrouping())) {
     attributes.setAttribute(
         "stageGrouping", GbossFactory.getInstance().getDescription(getStageGrouping()));
   }
   if (!ApiFunctions.isEmpty(getStageGroupingOther())) {
     attributes.setAttribute("stageGroupingOther", getStageGroupingOther());
   }
   if (!ApiFunctions.isEmpty(getTissueFinding())) {
     attributes.setAttribute(
         "tissueFinding", BigrGbossData.getTissueDescription(getTissueFinding()));
   }
   if (!ApiFunctions.isEmpty(getTissueFindingOther())) {
     attributes.setAttribute("tissueFindingOther", getTissueFindingOther());
   }
   if (!ApiFunctions.isEmpty(getTissueOrigin())) {
     attributes.setAttribute(
         "tissueOrigin", BigrGbossData.getTissueDescription(getTissueOrigin()));
   }
   if (!ApiFunctions.isEmpty(getTissueOriginOther())) {
     attributes.setAttribute("tissueOriginOther", getTissueOriginOther());
   }
   if (!ApiFunctions.isEmpty(getTotalNodesExamined())) {
     attributes.setAttribute(
         "totalNodesExamined", GbossFactory.getInstance().getDescription(getTotalNodesExamined()));
   }
   if (!ApiFunctions.isEmpty(getTotalNodesPositive())) {
     attributes.setAttribute(
         "totalNodesPositive", GbossFactory.getInstance().getDescription(getTotalNodesPositive()));
   }
   if (!ApiFunctions.isEmpty(getTumorConfig())) {
     attributes.setAttribute(
         "tumorConfig", GbossFactory.getInstance().getDescription(getTumorConfig()));
   }
   if (!ApiFunctions.isEmpty(getTumorSize())) {
     attributes.setAttribute("tumorSize", getTumorSize());
   }
   if (!ApiFunctions.isEmpty(getTumorStageDesc())) {
     attributes.setAttribute(
         "tumorStageDesc", GbossFactory.getInstance().getDescription(getTumorStageDesc()));
   }
   if (!ApiFunctions.isEmpty(getTumorStageDescInd())) {
     attributes.setAttribute("tumorStageDescInd", getTumorStageDescInd());
   }
   if (!ApiFunctions.isEmpty(getTumorStageDescOther())) {
     attributes.setAttribute("tumorStageDescOther", getTumorStageDescOther());
   }
   if (!ApiFunctions.isEmpty(getTumorStageType())) {
     attributes.setAttribute(
         "tumorStageType", GbossFactory.getInstance().getDescription(getTumorStageType()));
   }
   if (!ApiFunctions.isEmpty(getTumorStageTypeOther())) {
     attributes.setAttribute("tumorStageTypeOther", getTumorStageTypeOther());
   }
   if (!ApiFunctions.isEmpty(getTumorWeight())) {
     attributes.setAttribute("tumorWeight", getTumorWeight());
   }
   if (!ApiFunctions.isEmpty(getVenousVesselInvasion())) {
     attributes.setAttribute(
         "venousVesselInvasion",
         GbossFactory.getInstance().getDescription(getVenousVesselInvasion()));
   }
   return attributes;
 }