awacke1 commited on
Commit
349f65e
·
1 Parent(s): 22c1a72

Upload 8 files

Browse files
.gitattributes CHANGED
@@ -32,3 +32,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
32
  *.zip filter=lfs diff=lfs merge=lfs -text
33
  *.zst filter=lfs diff=lfs merge=lfs -text
34
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
32
  *.zip filter=lfs diff=lfs merge=lfs -text
33
  *.zst filter=lfs diff=lfs merge=lfs -text
34
  *tfevents* filter=lfs diff=lfs merge=lfs -text
35
+ LoincTableCore.csv filter=lfs diff=lfs merge=lfs -text
36
+ PanelsAndForms-ACW1208Labeled.csv filter=lfs diff=lfs merge=lfs -text
37
+ PanelsAndForms.csv filter=lfs diff=lfs merge=lfs -text
ICD10Diagnosis.csv ADDED
The diff for this file is too large to render. See raw diff
 
LoincTableCore.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0ebc67fe7ec52a031d2157f2938e01ee4c68a75331fa95b01ad13b2338df009c
3
+ size 23786041
PanelsAndForms-ACW1208Labeled.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:830bed108c436e46fbca26ec4b0cb449cb113bb15159de961f36289c9a6036ef
3
+ size 12613127
PanelsAndForms.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a5c70a92806a63c42d8af98200601102c4e27361179a368611e3ff0dfc43beb1
3
+ size 27840189
SnomedOMS.csv ADDED
The diff for this file is too large to render. See raw diff
 
app.py ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ import pandas as pd
3
+ import gradio as gr
4
+ # SNOMEDCT Download https://www.nlm.nih.gov/healthit/snomedct/us_edition.html
5
+ # LOINC Download https://loinc.org/downloads/
6
+ # ECQM for Value Set Measures and Quality Reporting: https://vsac.nlm.nih.gov/download/ecqm?rel=20220505&res=eh_only.unique_vs.20220505.txt
7
+ # SNOMED Nurse Subset https://www.nlm.nih.gov/healthit/snomedct/index.html?_gl=1*36x5pi*_ga*MTI0ODMyNjkxOS4xNjY1NTY3Mjcz*_ga_P1FPTH9PL4*MTY2Nzk4OTI1My41LjEuMTY2Nzk4OTY5Ni4wLjAuMA..
8
+
9
+ def MatchLOINC(name):
10
+ basedir = os.path.dirname(__file__)
11
+ pd.set_option("display.max_rows", None)
12
+ data = pd.read_csv(f'LoincTableCore.csv')
13
+ swith=data.loc[data['COMPONENT'].str.contains(name, case=False, na=False)]
14
+ return swith
15
+
16
+ def MatchLOINCPanelsandForms(name):
17
+ basedir = os.path.dirname(__file__)
18
+ data = pd.read_csv(f'PanelsAndForms.csv')
19
+ swith=data.loc[data['ParentName'].str.contains(name, case=False, na=False)]
20
+ return swith
21
+
22
+ 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
+ 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
+
42
+ with gr.Blocks() as demo:
43
+ with gr.Row():
44
+ name = gr.Textbox(label="Enter a term or word to match and find LOINC, SNOMED and OMS clinical terminologies.")
45
+
46
+
47
+ with gr.Row():
48
+ button1 = gr.Button("LOINC Terminology")
49
+ button2 = gr.Button("LOINC Panels and Forms")
50
+ button3 = gr.Button("SNOMED Clinical Terminology")
51
+ button4 = gr.Button("SNOMED and OMS Clinical Terminology")
52
+ button5 = gr.Button("ICD10 Diagnosis Clinical Terminology")
53
+
54
+ with gr.Row():
55
+ output1 = gr.DataFrame(label="LOINC Terminology")
56
+ with gr.Row():
57
+ output2 = gr.DataFrame(label="LOINC Assessment Panels")
58
+ with gr.Row():
59
+ output3 = gr.DataFrame(label="SNOMED Terminology")
60
+ with gr.Row():
61
+ output4 = gr.DataFrame(label="SNOMED and OMS Terminology")
62
+ with gr.Row():
63
+ output5 = gr.DataFrame(label="ICD10 Diagnosis Clinical Terminology")
64
+
65
+ button1.click(fn=MatchLOINC, inputs=name, outputs=output1)
66
+ button2.click(fn=MatchLOINCPanelsandForms, inputs=name, outputs=output2)
67
+ button3.click(fn=MatchSNOMED, inputs=name, outputs=output3)
68
+ button4.click(fn=MatchOMS, inputs=name, outputs=output4)
69
+ button5.click(fn=MatchICD10, inputs=name, outputs=output5)
70
+
71
+ demo.launch(debug=True)
icd10cm_codes_2022.txt ADDED
The diff for this file is too large to render. See raw diff
 
sct2_TextDefinition_Full-en_US1000124_20220901.txt ADDED
The diff for this file is too large to render. See raw diff