adapting dropdown text
This commit is contained in:
@@ -9010,7 +9010,7 @@
|
||||
<div style="margin-bottom: 20px;">
|
||||
<label>Select Drug:</label>
|
||||
<select id="vaccineSelect" name="vaccine">
|
||||
<option disabled="" hidden="" selected="" value="">Select Vaccine</option>
|
||||
<option disabled="" hidden="" selected="" value="">Select Drug</option>
|
||||
<option value="1">1</option>
|
||||
<option value="2">ABACAVIR</option>
|
||||
<option value="3">ABASAGLAR</option>
|
||||
|
||||
@@ -516,7 +516,7 @@
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"def saveProportionalReportingRatiosAndUpdateHtmlFile(prrByVaccineAndSymptom, webAppBaseDir):\n",
|
||||
"def saveProportionalReportingRatiosAndUpdateHtmlFile(prrByVaccineAndSymptom, webAppBaseDir, defaultSelectVaccineOptionText):\n",
|
||||
" prrByVaccineAndSymptom = DataFrameFilter.withoutZeroRowsAndZeroColumns(prrByVaccineAndSymptom)\n",
|
||||
" filenameBySymptom = saveProportionalReportingRatios4PrrByVaccineBySymptomWithoutZeroPrrs(prrByVaccineAndSymptom, webAppBaseDir)\n",
|
||||
" filenameByDrug = saveProportionalReportingRatios4PrrBySymptomByVaccineWithHighPrrs(prrByVaccineAndSymptom, webAppBaseDir)\n",
|
||||
@@ -527,7 +527,8 @@
|
||||
" vaccinesDescr = {\n",
|
||||
" 'vaccines': list(prrByVaccineAndSymptom.index),\n",
|
||||
" 'filenameByDrug': filenameByDrug },\n",
|
||||
" htmlFile = os.path.normpath(webAppBaseDir + '/index.html'))\n"
|
||||
" htmlFile = os.path.normpath(webAppBaseDir + '/index.html'),\n",
|
||||
" defaultSelectVaccineOptionText = defaultSelectVaccineOptionText)\n"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -551,7 +552,8 @@
|
||||
" prrByVaccineAndSymptom = pd.read_csv(\n",
|
||||
" 'data/prrByDrugAndSymptom-EudraVigilance.csv',\n",
|
||||
" index_col = 'DRUG'),\n",
|
||||
" webAppBaseDir = os.getcwd() + '/../docs/SymptomsCausedByDrugs')"
|
||||
" webAppBaseDir = os.getcwd() + '/../docs/SymptomsCausedByDrugs',\n",
|
||||
" defaultSelectVaccineOptionText = 'Select Drug')"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -586,7 +588,8 @@
|
||||
"source": [
|
||||
"saveProportionalReportingRatiosAndUpdateHtmlFile(\n",
|
||||
" prrByVaccineAndSymptom = prrByVaccineAndSymptom,\n",
|
||||
" webAppBaseDir = os.getcwd() + '/../docs/SymptomsCausedByVaccines')"
|
||||
" webAppBaseDir = os.getcwd() + '/../docs/SymptomsCausedByVaccines',\n",
|
||||
" defaultSelectVaccineOptionText = 'Select Vaccine')"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@ from SymptomsCausedByVaccines.HtmlUtils import getSymptomOptions, getVaccineOpti
|
||||
from SymptomsCausedByVaccines.OptionsSetter import OptionsSetter
|
||||
|
||||
|
||||
def updateHtmlFile(symptomsDescr, vaccinesDescr, htmlFile, defaultSelectVaccineOptionText = 'Select Vaccine'):
|
||||
def updateHtmlFile(symptomsDescr, vaccinesDescr, htmlFile, defaultSelectVaccineOptionText):
|
||||
_saveOptions(
|
||||
options = getSymptomOptions(
|
||||
symptoms = symptomsDescr['symptoms'],
|
||||
|
||||
Reference in New Issue
Block a user