Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -34,6 +34,12 @@ def MatchOMS(name):
|
|
34 |
return swith
|
35 |
|
36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
|
38 |
with gr.Blocks() as demo:
|
39 |
with gr.Row():
|
@@ -45,6 +51,7 @@ with gr.Blocks() as demo:
|
|
45 |
button2 = gr.Button("LOINC Panels and Forms")
|
46 |
button3 = gr.Button("SNOMED Clinical Terminology")
|
47 |
button4 = gr.Button("SNOMED and OMS Clinical Terminology")
|
|
|
48 |
|
49 |
with gr.Row():
|
50 |
output1 = gr.DataFrame(label="LOINC Terminology")
|
@@ -54,10 +61,13 @@ with gr.Blocks() as demo:
|
|
54 |
output3 = gr.DataFrame(label="SNOMED Terminology")
|
55 |
with gr.Row():
|
56 |
output4 = gr.DataFrame(label="SNOMED and OMS Terminology")
|
|
|
|
|
57 |
|
58 |
button1.click(fn=MatchLOINC, inputs=name, outputs=output1)
|
59 |
button2.click(fn=MatchLOINCPanelsandForms, inputs=name, outputs=output2)
|
60 |
button3.click(fn=MatchSNOMED, inputs=name, outputs=output3)
|
61 |
button4.click(fn=MatchOMS, inputs=name, outputs=output4)
|
|
|
62 |
|
63 |
demo.launch(debug=True)
|
|
|
34 |
return swith
|
35 |
|
36 |
|
37 |
+
def MatchICD10(name):
|
38 |
+
basedir = os.path.dirname(__file__)
|
39 |
+
data = pd.read_csv(f'icd10cm_codes_2022.txt')
|
40 |
+
swith=data.loc[data[0].str.contains(name, case=False, na=False)]
|
41 |
+
return swith
|
42 |
+
|
43 |
|
44 |
with gr.Blocks() as demo:
|
45 |
with gr.Row():
|
|
|
51 |
button2 = gr.Button("LOINC Panels and Forms")
|
52 |
button3 = gr.Button("SNOMED Clinical Terminology")
|
53 |
button4 = gr.Button("SNOMED and OMS Clinical Terminology")
|
54 |
+
button5 = gr.Button("ICD10 Diagnosis Clinical Terminology")
|
55 |
|
56 |
with gr.Row():
|
57 |
output1 = gr.DataFrame(label="LOINC Terminology")
|
|
|
61 |
output3 = gr.DataFrame(label="SNOMED Terminology")
|
62 |
with gr.Row():
|
63 |
output4 = gr.DataFrame(label="SNOMED and OMS Terminology")
|
64 |
+
with gr.Row():
|
65 |
+
output5 = gr.DataFrame(label="ICD10 Diagnosis Clinical Terminology"")
|
66 |
|
67 |
button1.click(fn=MatchLOINC, inputs=name, outputs=output1)
|
68 |
button2.click(fn=MatchLOINCPanelsandForms, inputs=name, outputs=output2)
|
69 |
button3.click(fn=MatchSNOMED, inputs=name, outputs=output3)
|
70 |
button4.click(fn=MatchOMS, inputs=name, outputs=output4)
|
71 |
+
button5.click(fn=MatchICD10, inputs=name, outputs=output5)
|
72 |
|
73 |
demo.launch(debug=True)
|