You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+65-29Lines changed: 65 additions & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,7 @@ pip install datafog
54
54
55
55
### Usage
56
56
57
-
The [Getting Started notebook](/datafog-python/examples/getting_started.ipynb) features a standalone Colab notebook that lets you get up and running in no time.
57
+
The [Getting Started notebook](/datafog-python/examples/getting_started.ipynb) features a standalone Colab notebook.
58
58
59
59
60
60
#### Text PII Annotation
@@ -63,54 +63,90 @@ To annotate PII in a given text, lets start with a set of clinical notes:
**History of Present Illness:** The patient is a 35-year-old who presents with a 2-month history of worsening back pain, numbness in both legs, and occasional tingling sensations. The patient reports working as a freelance writer and has been experiencing increased stress due to tight deadlines and financial struggles.
90
+
91
+
**Past Medical History:** Hypothyroidism
91
92
92
-
This will download the image, extract the text using OCR, and annotate any PII found in the extracted text.
93
+
**Social History:**
94
+
The patient shares a small apartment with two roommates and relies on public transportation. They mention feeling overwhelmed with work and personal responsibilities, often sacrificing sleep to meet deadlines. The patient expresses concern over the high cost of healthcare and the need for affordable medication options.
93
95
94
-
#### Text Processing
96
+
**Review of Systems:** Denies fever, chest pain, or shortness of breath. Reports occasional headaches.
95
97
96
-
To process and annotate text using the DataFog pipeline, you can use the `DataFog` class:
98
+
**Physical Examination:**
99
+
- General: Appears tired but is alert and oriented.
100
+
- Vitals: BP 128/80, HR 72, Temp 98.6°F, Resp 14/min
97
101
98
-
```python
99
-
from datafog import DataFog
102
+
**Assessment/Plan:**
103
+
- Continue to monitor blood pressure and thyroid function.
104
+
- Discuss affordable medication options with a pharmacist.
105
+
- Refer to a social worker to address housing concerns and access to healthcare services.
106
+
- Encourage the patient to engage with community support groups for social support.
107
+
- Schedule a follow-up appointment in 4 weeks or sooner if symptoms worsen.
108
+
109
+
**Comments:** The patient's health concerns are compounded by socioeconomic factors, including employment status, housing stability, and access to healthcare. Addressing these social determinants of health is crucial for improving the patient's overall well-being.
You'll notice that we use async functions liberally throughout the SDK - given the nature of the functions we're providing and the extension of DataFog into API/other formats, this allows the functions to be more easily adapted for those uses.
Copy file name to clipboardExpand all lines: examples/getting_started.ipynb
+3-46Lines changed: 3 additions & 46 deletions
Original file line number
Diff line number
Diff line change
@@ -220,55 +220,12 @@
220
220
},
221
221
{
222
222
"cell_type": "code",
223
-
"execution_count": 13,
223
+
"execution_count": null,
224
224
"metadata": {},
225
-
"outputs": [
226
-
{
227
-
"data": {
228
-
"text/markdown": [
229
-
"\n",
230
-
"**Date:** April 10, 2024\n",
231
-
"\n",
232
-
"**Patient:** Emily Johnson, 35 years old\n",
233
-
"\n",
234
-
"**MRN:** 00987654\n",
235
-
"\n",
236
-
"**Chief Complaint:** \"I've been experiencing severe back pain and numbness in my legs.\"\n",
237
-
"\n",
238
-
"**History of Present Illness:** The patient is a 35-year-old who presents with a 2-month history of worsening back pain, numbness in both legs, and occasional tingling sensations. The patient reports working as a freelance writer and has been experiencing increased stress due to tight deadlines and financial struggles.\n",
239
-
"\n",
240
-
"**Past Medical History:** Hypothyroidism\n",
241
-
"\n",
242
-
"**Social History:**\n",
243
-
"The patient shares a small apartment with two roommates and relies on public transportation. They mention feeling overwhelmed with work and personal responsibilities, often sacrificing sleep to meet deadlines. The patient expresses concern over the high cost of healthcare and the need for affordable medication options.\n",
244
-
"\n",
245
-
"**Review of Systems:** Denies fever, chest pain, or shortness of breath. Reports occasional headaches.\n",
246
-
"\n",
247
-
"**Physical Examination:**\n",
248
-
"- General: Appears tired but is alert and oriented.\n",
249
-
"- Vitals: BP 128/80, HR 72, Temp 98.6°F, Resp 14/min\n",
250
-
"\n",
251
-
"**Assessment/Plan:**\n",
252
-
"- Continue to monitor blood pressure and thyroid function.\n",
253
-
"- Discuss affordable medication options with a pharmacist.\n",
254
-
"- Refer to a social worker to address housing concerns and access to healthcare services.\n",
255
-
"- Encourage the patient to engage with community support groups for social support.\n",
256
-
"- Schedule a follow-up appointment in 4 weeks or sooner if symptoms worsen.\n",
257
-
"\n",
258
-
"**Comments:** The patient's health concerns are compounded by socioeconomic factors, including employment status, housing stability, and access to healthcare. Addressing these social determinants of health is crucial for improving the patient's overall well-being.\n",
0 commit comments