MaziyarPanahi commited on
Commit
9b9a865
·
verified ·
1 Parent(s): 1628201

Update dataset card: schema, examples, joins

Browse files
Files changed (1) hide show
  1. README.md +28 -9
README.md CHANGED
@@ -12,16 +12,35 @@ size_categories:
12
 
13
  # MultiCaRe Cases
14
 
15
- Per-case clinical narratives and demographics from `cases.parquet`.
16
 
17
- Schema highlights:
18
- - case_id: case identifier (equals `images.patient_id`)
19
- - article_id: PMCID
20
- - case_text: narrative text
21
- - age: age in years (0 for <1 yo)
22
  - gender: Female, Male, Transgender, Unknown
23
 
24
- Join keys:
25
- - `case_id``images.patient_id`, `case-images.case_id`
26
- - `article_id` `articles.article_id`, `abstracts.article_id`
 
 
 
 
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.