refactoring
This commit is contained in:
@@ -36,7 +36,6 @@ class BatchCodeDetailsView {
|
|||||||
|
|
||||||
#displayHistogramViewForHistoDescrs(histoDescrs) {
|
#displayHistogramViewForHistoDescrs(histoDescrs) {
|
||||||
this.#displayHeading(histoDescrs.batchcode);
|
this.#displayHeading(histoDescrs.batchcode);
|
||||||
this.#displayData(histoDescrs);
|
|
||||||
this.#displayAdverseReactionReportsChart(histoDescrs);
|
this.#displayAdverseReactionReportsChart(histoDescrs);
|
||||||
this.#displaySelectBatchcodeCombination(histoDescrs.histograms);
|
this.#displaySelectBatchcodeCombination(histoDescrs.histograms);
|
||||||
this.#displayHistogram(histoDescrs.histograms[0]);
|
this.#displayHistogram(histoDescrs.histograms[0]);
|
||||||
@@ -56,18 +55,6 @@ class BatchCodeDetailsView {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
#displayData(histoDescrs) {
|
|
||||||
const p = document.createElement("p");
|
|
||||||
p.appendChild(document.createTextNode(`ADRs: ${histoDescrs['Adverse Reaction Reports']}`));
|
|
||||||
p.appendChild(document.createTextNode(`Deaths: ${histoDescrs['Deaths']}`));
|
|
||||||
p.appendChild(document.createTextNode(`Disabilities: ${histoDescrs['Disabilities']}`));
|
|
||||||
p.appendChild(document.createTextNode(`Life Threatening Illnesses: ${histoDescrs['Life Threatening Illnesses']}`));
|
|
||||||
p.appendChild(document.createTextNode(`Company: ${histoDescrs['Company']}`));
|
|
||||||
p.appendChild(document.createTextNode(`Severe reports: ${histoDescrs['Severe reports']}`));
|
|
||||||
p.appendChild(document.createTextNode(`Lethality: ${histoDescrs['Lethality']}`));
|
|
||||||
this.#uiContainer.appendChild(p);
|
|
||||||
}
|
|
||||||
|
|
||||||
#displaySelectBatchcodeCombination(histograms) {
|
#displaySelectBatchcodeCombination(histograms) {
|
||||||
BatchcodeCombinationSelection.configureSelectBatchcodeCombinationElement(
|
BatchcodeCombinationSelection.configureSelectBatchcodeCombinationElement(
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user