Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -23,21 +23,19 @@ def MatchSNOMED(name):
|
|
23 |
basedir = os.path.dirname(__file__)
|
24 |
data = pd.read_csv(f'sct2_TextDefinition_Full-en_US1000124_20220901.txt',sep='\t')
|
25 |
swith=data.loc[data['term'].str.contains(name, case=False, na=False)]
|
26 |
-
#swith = data[data['term'].str.match(name)]
|
27 |
return swith
|
28 |
|
29 |
def MatchOMS(name):
|
30 |
basedir = os.path.dirname(__file__)
|
31 |
data = pd.read_csv(f'SnomedOMS.csv')
|
32 |
swith=data.loc[data['SNOMED CT'].str.contains(name, case=False, na=False)]
|
33 |
-
#swith = data[data['SNOMED CT'].str.match(name)]
|
34 |
return swith
|
35 |
|
36 |
|
37 |
def MatchICD10(name):
|
38 |
basedir = os.path.dirname(__file__)
|
39 |
data = pd.read_csv(f'ICD10Diagnosis.csv')
|
40 |
-
swith=data.loc[data[
|
41 |
return swith
|
42 |
|
43 |
|
|
|
23 |
basedir = os.path.dirname(__file__)
|
24 |
data = pd.read_csv(f'sct2_TextDefinition_Full-en_US1000124_20220901.txt',sep='\t')
|
25 |
swith=data.loc[data['term'].str.contains(name, case=False, na=False)]
|
|
|
26 |
return swith
|
27 |
|
28 |
def MatchOMS(name):
|
29 |
basedir = os.path.dirname(__file__)
|
30 |
data = pd.read_csv(f'SnomedOMS.csv')
|
31 |
swith=data.loc[data['SNOMED CT'].str.contains(name, case=False, na=False)]
|
|
|
32 |
return swith
|
33 |
|
34 |
|
35 |
def MatchICD10(name):
|
36 |
basedir = os.path.dirname(__file__)
|
37 |
data = pd.read_csv(f'ICD10Diagnosis.csv')
|
38 |
+
swith=data.loc[data['Description'].str.contains(name, case=False, na=False)]
|
39 |
return swith
|
40 |
|
41 |
|