removing docs/data

This commit is contained in:
frankknoll
2023-04-02 20:54:49 +02:00
parent 81e63b2963
commit fedb6c44bf
12 changed files with 0 additions and 18 deletions

View File

@@ -1 +0,0 @@
{"batchcode": "FC3113", "histograms": [{"histogram": {"Chorioretinitis": 1, "Nasal obstruction": 1, "Polymerase chain reaction": 1, "Vision blurred": 1, "Walking disability": 1}, "batchcodes": ["FC3113"]}]}

View File

@@ -1 +0,0 @@
{"batchcode": "FF4222", "histograms": [{"histogram": {"Activated partial thromboplastin time": 1, "Alanine aminotransferase": 1, "Aspartate aminotransferase": 1, "Blood chloride": 1, "Blood creatine": 1, "Blood creatine phosphokinase": 1, "Blood creatine phosphokinase MB": 1, "Blood glucose": 1, "Blood potassium": 1, "Blood pressure measurement": 1, "Blood sodium": 1, "Blood urea": 1, "Body temperature": 1, "Cardiac arrest": 1, "Catheterisation cardiac": 1, "Circulatory collapse": 1, "Coagulation factor": 1, "Full blood count": 1, "Haematocrit": 1, "Haemoglobin": 1, "Heart rate": 1, "Interchange of vaccine products": 1, "Investigation": 1, "Lymphocyte count": 1, "Mean cell volume": 1, "Myocardial infarction": 1, "PO2": 1, "Platelet count": 1, "Prothrombin level": 1, "Respiratory rate": 1, "SARS-CoV-2 test": 1, "Troponin I": 1, "Urine analysis": 1, "White blood cell count": 1}, "batchcodes": ["FF4222"]}]}

View File

@@ -1 +0,0 @@
{"batchcode": "FF51111", "histograms": [{"histogram": {"Deafness": 1, "Interchange of vaccine products": 1, "Off label use": 1}, "batchcodes": ["FF51111"]}]}

View File

@@ -1 +0,0 @@
{"batchcode": "FF8871", "histograms": [{"histogram": {"Angina pectoris": 1, "Arteriospasm coronary": 1, "Back pain": 1, "Hypoaesthesia": 1, "Migraine": 1, "Pyrexia": 1}, "batchcodes": ["FF8871"]}]}

View File

@@ -1 +0,0 @@
{"batchcode": "042L20A", "histograms": [{"histogram": {"COVID-19": 1, "SARS-CoV-2 test": 1}, "batchcodes": ["042L20A", "KK9895"]}]}

View File

@@ -1 +0,0 @@
{"batchcode": "ASKU", "histograms": [{"histogram": {"Macular degeneration": 1}, "batchcodes": ["ASKU"]}]}

View File

@@ -1 +0,0 @@
{"batchcode": "EL9266", "histograms": [{"histogram": {"Pain": 1, "Pyrexia": 1, "Urinary tract infection": 1, "Vomiting": 1}, "batchcodes": ["EL9266"]}]}

View File

@@ -1 +0,0 @@
{"batchcode": "KK9895", "histograms": [{"histogram": {"COVID-19": 1, "SARS-CoV-2 test": 1}, "batchcodes": ["042L20A", "KK9895"]}, {"histogram": {"COVID-19": 1, "Drug ineffective": 1, "SARS-CoV-2 test": 1}, "batchcodes": ["KK9895"]}]}

View File

@@ -1 +0,0 @@
{"batchcode": "EH9899", "histograms": [{"histogram": {"Back pain": 1, "Blood test": 1, "Computerised tomogram abdomen": 1, "Computerised tomogram pelvis": 1, "Urine analysis": 1}, "batchcodes": ["EH9899"]}]}

View File

@@ -1 +0,0 @@
{"batchcode": "0003226809", "histograms": [{"histogram": {"Extra dose administered": 1}, "batchcodes": ["0003226809"]}]}

View File

@@ -22,7 +22,6 @@ class BatchCodeTableFactory:
def _postProcess(self, batchCodeTable, countriesAsList): def _postProcess(self, batchCodeTable, countriesAsList):
batchCodeTable = self.companyColumnAdder.addCompanyColumn(batchCodeTable) batchCodeTable = self.companyColumnAdder.addCompanyColumn(batchCodeTable)
BatchCodeTableFactory._convertCountries(batchCodeTable, countriesAsList)
batchCodeTable = batchCodeTable[ batchCodeTable = batchCodeTable[
[ [
'Adverse Reaction Reports', 'Adverse Reaction Reports',
@@ -30,17 +29,11 @@ class BatchCodeTableFactory:
'Disabilities', 'Disabilities',
'Life Threatening Illnesses', 'Life Threatening Illnesses',
'Company', 'Company',
'Countries',
'Severe reports', 'Severe reports',
'Lethality' 'Lethality'
]] ]]
return batchCodeTable.sort_values(by = 'Severe reports', ascending = False) return batchCodeTable.sort_values(by = 'Severe reports', ascending = False)
@staticmethod
def _convertCountries(batchCodeTable, countriesAsList):
if not countriesAsList:
batchCodeTable['Countries'] = batchCodeTable['Countries'].apply(', '.join)
def _getBatchCodeTableByCountry(self, country): def _getBatchCodeTableByCountry(self, country):
if country in self.countryBatchCodeTable.index: if country in self.countryBatchCodeTable.index:
return self.countryBatchCodeTable.loc[country] return self.countryBatchCodeTable.loc[country]

View File

@@ -22,4 +22,3 @@ class BatchCodeTableHavingGuessedCountriesFactory:
batchCodeTable['Countries'] = CountriesMerger.mergeSrcIntoDst( batchCodeTable['Countries'] = CountriesMerger.mergeSrcIntoDst(
dst = batchCodeTable['Countries'], dst = batchCodeTable['Countries'],
src = self.countriesByBatchcodeBeforeDeletion['Countries']) src = self.countriesByBatchcodeBeforeDeletion['Countries'])
BatchCodeTableFactory._convertCountries(batchCodeTable, countriesAsList)