diff --git a/docs/internationalBatchCodeTables.html b/docs/internationalBatchCodeTables.html index 85d4aa06b6b..2b940583e3f 100644 --- a/docs/internationalBatchCodeTables.html +++ b/docs/internationalBatchCodeTables.html @@ -67,16 +67,21 @@ input.select(); } + function displayCountry(country, batchCodeTable) { + document.querySelector('.heading').textContent = `Batch Codes for ${country}`; + batchCodeTable.ajax.url(`data/${country}.json`).load(); + selectInput(); + } + $(document).ready(function () { const batchCodeTable = createEmptyBatchCodeTable(); - document.querySelector('#country').addEventListener( + document.querySelector('#countrySelect').addEventListener( 'change', event => { const country = event.target.value; - const result = document.querySelector('.result'); - result.textContent = `Batch Codes for ${country}`; - batchCodeTable.ajax.url(`data/${country}.json`).load(); - selectInput(); + if (country != 'Select country ...') { + displayCountry(country, batchCodeTable); + } }); }); @@ -87,8 +92,8 @@
-
+Check out your batch code (last updated 16th February 2022)
diff --git a/src/HowBadIsMyBatch.ipynb b/src/HowBadIsMyBatch.ipynb index 33e12e00917..57d35ede442 100644 --- a/src/HowBadIsMyBatch.ipynb +++ b/src/HowBadIsMyBatch.ipynb @@ -182,6 +182,7 @@ " def createSummationTable(\n", " groupBy,\n", " columnNameMappingsDict = {\n", + " # FK-TODO: rename \"Total Number of Adverse Reaction Reports\" to \"Adverse Reaction Reports\" everywhere\n", " \"DIED_size\": \"Total Number of Adverse Reaction Reports\",\n", " \"DIED_sum\": \"Deaths\",\n", " \"L_THREAT_sum\": \"Life Threatening Illnesses\",\n", @@ -1262,6 +1263,8 @@ "outputs": [], "source": [ "def saveBatchCodeTable(vaers, file):\n", + " # FK-TODO: show \"Sever Reports\"\n", + " # FK-TODO: show combination of ALL doses\n", " batchCodeTable = BatchCodeTableFactory.createBatchCodeTable(vaers, dose = '1', minADRsForLethality = 100)\n", " batchCodeTable.index.set_names(\"Batch\", inplace = True)\n", " display(batchCodeTable)\n", diff --git a/src/help.txt b/src/help.txt index 8a62e4b731a..860562e5870 100644 --- a/src/help.txt +++ b/src/help.txt @@ -45,4 +45,6 @@ u039k20a 039K20A, 011L20 -df[df.index.duplicated(False)].to_excel('results/pfizer_duplicates.xlsx') \ No newline at end of file +df[df.index.duplicated(False)].to_excel('results/pfizer_duplicates.xlsx') + +http://www.howbadismybatch.info/internationalBatchCodeTables.html