fhir-sheets 1.2.0__tar.gz → 1.2.1__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.

Potentially problematic release.


This version of fhir-sheets might be problematic. Click here for more details.

@@ -0,0 +1,73 @@
1
+ Metadata-Version: 2.3
2
+ Name: fhir-sheets
3
+ Version: 1.2.1
4
+ Summary: FhirSheets is a command-line tool that reads an Excel file in FHIR cohort format and generates FHIR bundle JSON files from it. Each row in the template Excel file is used to create an individual JSON file, outputting them to a specified folder.
5
+ Author: Michael Riley
6
+ Author-email: Michael.Riley@gtri.gatech.edu
7
+ Requires-Python: >=3.13
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: Programming Language :: Python :: 3.13
10
+ Requires-Dist: et-xmlfile (==1.1.0)
11
+ Requires-Dist: jsonpath-ng (==1.6.1)
12
+ Requires-Dist: openpyxl (==3.1.5)
13
+ Requires-Dist: orjson (==3.10.7)
14
+ Requires-Dist: ply (==3.11)
15
+ Description-Content-Type: text/markdown
16
+
17
+ # FHIRSheets
18
+
19
+ FhirSheets is a command-line tool that reads an Excel file in FHIR cohort format and generates FHIR bundle JSON files from it. Each row in the template Excel file is used to create an individual JSON file, outputting them to a specified folder.
20
+
21
+ ## Table of Contents
22
+ - [FHIRSheets](#fhirsheets)
23
+ - [Table of Contents](#table-of-contents)
24
+ - [Features](#features)
25
+ - [Requirements](#requirements)
26
+ - [Installation](#installation)
27
+ - [Usage](#Usage)
28
+
29
+ ## Features
30
+ - Reads an Excel file following the FHIR cohort import template.
31
+ - Converts each row in the Excel file to a FHIR bundle JSON file.
32
+ - Exports generated JSON files to a specified output folder.
33
+
34
+ ## Requirements
35
+ - Python 3.x
36
+ - Required Python packages (see `requirements.txt`)
37
+
38
+ ## Installation
39
+ 1. Clone this repository:
40
+ ```bash
41
+ git clone https://github.com/CDCgov/synthetic-data.git
42
+ cd fhir-python-cohort-generation
43
+ 2. Install the required packages:
44
+ ```bash
45
+ pip install -r requirements.txt
46
+ ```
47
+ Or use poetry
48
+ ```bash
49
+ poetry build
50
+ ```
51
+ ## Usage
52
+ 1. **Fill Out the Template:**
53
+ - Open the template file `src/resources/Fhir_Cohort_Import_Template.xlsx`.
54
+ - Fill out each row with the relevant data.
55
+
56
+ 2. **Run the Tool:**
57
+ - Use the `python -m src.cli.fhirsheets` module script with the required arguments:
58
+ - `--input-file`: The path to the input Excel file.
59
+ - `--output-folder`: The path to the output folder where the JSON files will be saved.
60
+
61
+ ```bash
62
+ python -m src.fhir_sheets.cli.main --input_file src/resources/Fhir_Cohort_Import_Template.xlsx --output_folder /path/to/output/folder
63
+ 3. The tool will generate one FHIR bundle JSON file for each row defined in the template.
64
+
65
+ ## Example
66
+
67
+ ```bash
68
+ python -m src.fhir_sheets.cli.main --input_file src/resources/Fhir_Cohort_Import_Template.xlsx --output_folder ./output_bundles
69
+ In this example, each row in the `Fhir_Cohort_Import_Template.xlsx` file will be processed, and a corresponding JSON file will be generated in the `output_bundles` folder.
70
+ ```
71
+
72
+ ## License
73
+ This project is licensed under the MIT License. See the `LICENSE` file for more information.
@@ -0,0 +1,57 @@
1
+ # FHIRSheets
2
+
3
+ FhirSheets is a command-line tool that reads an Excel file in FHIR cohort format and generates FHIR bundle JSON files from it. Each row in the template Excel file is used to create an individual JSON file, outputting them to a specified folder.
4
+
5
+ ## Table of Contents
6
+ - [FHIRSheets](#fhirsheets)
7
+ - [Table of Contents](#table-of-contents)
8
+ - [Features](#features)
9
+ - [Requirements](#requirements)
10
+ - [Installation](#installation)
11
+ - [Usage](#Usage)
12
+
13
+ ## Features
14
+ - Reads an Excel file following the FHIR cohort import template.
15
+ - Converts each row in the Excel file to a FHIR bundle JSON file.
16
+ - Exports generated JSON files to a specified output folder.
17
+
18
+ ## Requirements
19
+ - Python 3.x
20
+ - Required Python packages (see `requirements.txt`)
21
+
22
+ ## Installation
23
+ 1. Clone this repository:
24
+ ```bash
25
+ git clone https://github.com/CDCgov/synthetic-data.git
26
+ cd fhir-python-cohort-generation
27
+ 2. Install the required packages:
28
+ ```bash
29
+ pip install -r requirements.txt
30
+ ```
31
+ Or use poetry
32
+ ```bash
33
+ poetry build
34
+ ```
35
+ ## Usage
36
+ 1. **Fill Out the Template:**
37
+ - Open the template file `src/resources/Fhir_Cohort_Import_Template.xlsx`.
38
+ - Fill out each row with the relevant data.
39
+
40
+ 2. **Run the Tool:**
41
+ - Use the `python -m src.cli.fhirsheets` module script with the required arguments:
42
+ - `--input-file`: The path to the input Excel file.
43
+ - `--output-folder`: The path to the output folder where the JSON files will be saved.
44
+
45
+ ```bash
46
+ python -m src.fhir_sheets.cli.main --input_file src/resources/Fhir_Cohort_Import_Template.xlsx --output_folder /path/to/output/folder
47
+ 3. The tool will generate one FHIR bundle JSON file for each row defined in the template.
48
+
49
+ ## Example
50
+
51
+ ```bash
52
+ python -m src.fhir_sheets.cli.main --input_file src/resources/Fhir_Cohort_Import_Template.xlsx --output_folder ./output_bundles
53
+ In this example, each row in the `Fhir_Cohort_Import_Template.xlsx` file will be processed, and a corresponding JSON file will be generated in the `output_bundles` folder.
54
+ ```
55
+
56
+ ## License
57
+ This project is licensed under the MIT License. See the `LICENSE` file for more information.
@@ -1,9 +1,10 @@
1
1
  [tool.poetry]
2
2
  name = "fhir-sheets"
3
- version = "1.2.0"
3
+ version = "1.2.1"
4
4
  description = "FhirSheets is a command-line tool that reads an Excel file in FHIR cohort format and generates FHIR bundle JSON files from it. Each row in the template Excel file is used to create an individual JSON file, outputting them to a specified folder."
5
5
  authors = ["Michael Riley <Michael.Riley@gtri.gatech.edu>"]
6
6
  packages = [{include = "fhir_sheets", from = "src"}]
7
+ readme = "README.md"
7
8
 
8
9
  [tool.poetry.dependencies]
9
10
  python = ">=3.13" # Specify the compatible Python version here
@@ -1,16 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: fhir-sheets
3
- Version: 1.2.0
4
- Summary: FhirSheets is a command-line tool that reads an Excel file in FHIR cohort format and generates FHIR bundle JSON files from it. Each row in the template Excel file is used to create an individual JSON file, outputting them to a specified folder.
5
- License-File: LICENSE
6
- Author: Michael Riley
7
- Author-email: Michael.Riley@gtri.gatech.edu
8
- Requires-Python: >=3.13
9
- Classifier: Programming Language :: Python :: 3
10
- Classifier: Programming Language :: Python :: 3.13
11
- Classifier: Programming Language :: Python :: 3.14
12
- Requires-Dist: et-xmlfile (==1.1.0)
13
- Requires-Dist: jsonpath-ng (==1.6.1)
14
- Requires-Dist: openpyxl (==3.1.5)
15
- Requires-Dist: orjson (==3.10.7)
16
- Requires-Dist: ply (==3.11)
File without changes