Datasets:
Update dataset card: schema, examples, joins
Browse files
README.md
CHANGED
|
@@ -12,16 +12,35 @@ size_categories:
|
|
| 12 |
|
| 13 |
# MultiCaRe Cases
|
| 14 |
|
| 15 |
-
Per-case clinical narratives and demographics from
|
| 16 |
|
| 17 |
-
Schema
|
| 18 |
-
- case_id: case identifier (
|
| 19 |
-
- article_id: PMCID
|
| 20 |
-
- case_text:
|
| 21 |
-
- age: age in years (0
|
| 22 |
- gender: Female, Male, Transgender, Unknown
|
| 23 |
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
|
| 13 |
# MultiCaRe Cases
|
| 14 |
|
| 15 |
+
Per-case clinical narratives and demographics extracted from case reports.
|
| 16 |
|
| 17 |
+
Schema
|
| 18 |
+
- case_id: case identifier (joins to images.patient_id)
|
| 19 |
+
- article_id: PMCID (joins to articles.article_id)
|
| 20 |
+
- case_text: clinical case narrative
|
| 21 |
+
- age: age in years (0 if <1 y.o.)
|
| 22 |
- gender: Female, Male, Transgender, Unknown
|
| 23 |
|
| 24 |
+
Quick start
|
| 25 |
+
```python
|
| 26 |
+
from datasets import load_dataset
|
| 27 |
+
tok = "<token>"
|
| 28 |
+
cases = load_dataset("MaziyarPanahi/multicare-cases", split="train", use_auth_token=tok)
|
| 29 |
+
print(cases[0]["case_text"][:600])
|
| 30 |
+
```
|
| 31 |
|
| 32 |
+
Join with images
|
| 33 |
+
```python
|
| 34 |
+
from datasets import load_dataset
|
| 35 |
+
tok = "<token>"
|
| 36 |
+
cases = load_dataset("MaziyarPanahi/multicare-cases", split="train", use_auth_token=tok)
|
| 37 |
+
imgs = load_dataset("MaziyarPanahi/multicare-images", split="train", use_auth_token=tok)
|
| 38 |
+
|
| 39 |
+
cid = cases[0]["case_id"]
|
| 40 |
+
imgs_for_case = imgs.filter(lambda e: e["patient_id"] == cid)
|
| 41 |
+
imgs_for_case[0]["image"].show()
|
| 42 |
+
```
|
| 43 |
+
|
| 44 |
+
Notes
|
| 45 |
+
- No official splits; recommend patient/article-level splitting to avoid leakage.
|
| 46 |
+
- Per-item OA licenses are provided at the image level and via articles.
|