awacke1 commited on
Commit
8587a88
·
1 Parent(s): f8b3070

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -8,7 +8,8 @@ def MatchLOINC(name):
8
  import pandas as pd
9
  basedir = os.path.dirname(__file__)
10
  data = pd.read_csv(f'LoincTableCore.csv') # LOINC Download https://loinc.org/downloads/
11
- swith = data[data['COMPONENT'].str.match(name)]
 
12
  return swith
13
 
14
  def MatchLOINCPanelsandForms(name):
 
8
  import pandas as pd
9
  basedir = os.path.dirname(__file__)
10
  data = pd.read_csv(f'LoincTableCore.csv') # LOINC Download https://loinc.org/downloads/
11
+ swith=data.loc[df['COMPONENT'].str.contains(name, case=False)]
12
+ #swith = data[data['COMPONENT'].str.match(name)]
13
  return swith
14
 
15
  def MatchLOINCPanelsandForms(name):