fhir-reada 0.1.2__tar.gz → 0.1.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fhir-reada
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Summary: A FHIR cohort extractor and de-identification tool for clinical research.
5
5
  Author-email: Tobenna Oduah <tjlite81@gmail.com>
6
6
  License: MIT
@@ -49,7 +49,7 @@ pip install -e .
49
49
  ## 🚀 Usage (CLI)
50
50
 
51
51
  ```bash
52
- fhir-reada --url https://hapi.fhir.org/baseR4 --min-age 25 --max-age 40 --diagnosis diabetes --out output.csv
52
+ fhir-reada --url https://r4.smarthealthit.org --min-age 25 --max-age 40 --diagnosis diabetes --out output.csv
53
53
  ```
54
54
 
55
55
  ---
@@ -58,7 +58,7 @@ fhir-reada --url https://hapi.fhir.org/baseR4 --min-age 25 --max-age 40 --diagno
58
58
 
59
59
  | Option | Description |
60
60
  |----------------|------------------------------------------------------|
61
- | `--url` | FHIR base URL (e.g. `https://hapi.fhir.org/baseR4`) |
61
+ | `--url` | FHIR base URL (e.g. `https://r4.smarthealthit.org`) |
62
62
  | `--min-age` | Minimum age for cohort (e.g. `25`) |
63
63
  | `--max-age` | Maximum age for cohort (e.g. `40`) |
64
64
  | `--diagnosis` | Diagnosis keyword (optional, e.g. `diabetes`) |
@@ -38,7 +38,7 @@ pip install -e .
38
38
  ## 🚀 Usage (CLI)
39
39
 
40
40
  ```bash
41
- fhir-reada --url https://hapi.fhir.org/baseR4 --min-age 25 --max-age 40 --diagnosis diabetes --out output.csv
41
+ fhir-reada --url https://r4.smarthealthit.org --min-age 25 --max-age 40 --diagnosis diabetes --out output.csv
42
42
  ```
43
43
 
44
44
  ---
@@ -47,7 +47,7 @@ fhir-reada --url https://hapi.fhir.org/baseR4 --min-age 25 --max-age 40 --diagno
47
47
 
48
48
  | Option | Description |
49
49
  |----------------|------------------------------------------------------|
50
- | `--url` | FHIR base URL (e.g. `https://hapi.fhir.org/baseR4`) |
50
+ | `--url` | FHIR base URL (e.g. `https://r4.smarthealthit.org`) |
51
51
  | `--min-age` | Minimum age for cohort (e.g. `25`) |
52
52
  | `--max-age` | Maximum age for cohort (e.g. `40`) |
53
53
  | `--diagnosis` | Diagnosis keyword (optional, e.g. `diabetes`) |
@@ -0,0 +1 @@
1
+ __version__ = "0.1.3"
@@ -28,8 +28,11 @@ def run_cli(url, min_age, max_age, diagnosis, output_file):
28
28
 
29
29
  print("De-identifying and exporting to CSV...")
30
30
  deidentified = [deidentify_patient_bundle(b) for b in bundles]
31
- export_to_csv(deidentified, filename=output_file)
32
- print(f"Exported to {output_file}")
31
+ if deidentified:
32
+ export_to_csv(deidentified, filename=output_file)
33
+ print(f"✅ Exported to {output_file}")
34
+ else:
35
+ print("⚠️ No data to export; file was not created.")
33
36
 
34
37
  def main():
35
38
  parser = argparse.ArgumentParser(description="FHIR Cohort Extractor")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fhir-reada
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Summary: A FHIR cohort extractor and de-identification tool for clinical research.
5
5
  Author-email: Tobenna Oduah <tjlite81@gmail.com>
6
6
  License: MIT
@@ -49,7 +49,7 @@ pip install -e .
49
49
  ## 🚀 Usage (CLI)
50
50
 
51
51
  ```bash
52
- fhir-reada --url https://hapi.fhir.org/baseR4 --min-age 25 --max-age 40 --diagnosis diabetes --out output.csv
52
+ fhir-reada --url https://r4.smarthealthit.org --min-age 25 --max-age 40 --diagnosis diabetes --out output.csv
53
53
  ```
54
54
 
55
55
  ---
@@ -58,7 +58,7 @@ fhir-reada --url https://hapi.fhir.org/baseR4 --min-age 25 --max-age 40 --diagno
58
58
 
59
59
  | Option | Description |
60
60
  |----------------|------------------------------------------------------|
61
- | `--url` | FHIR base URL (e.g. `https://hapi.fhir.org/baseR4`) |
61
+ | `--url` | FHIR base URL (e.g. `https://r4.smarthealthit.org`) |
62
62
  | `--min-age` | Minimum age for cohort (e.g. `25`) |
63
63
  | `--max-age` | Maximum age for cohort (e.g. `40`) |
64
64
  | `--diagnosis` | Diagnosis keyword (optional, e.g. `diabetes`) |
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "fhir-reada"
3
- version = "0.1.2"
3
+ version = "0.1.3"
4
4
  description = "A FHIR cohort extractor and de-identification tool for clinical research."
5
5
  readme = "README.md"
6
6
  authors = [{name = "Tobenna Oduah", email = "tjlite81@gmail.com"}]
@@ -1 +0,0 @@
1
- __version__ = "0.1.2"
File without changes
File without changes