| fair-software.eu recommendations | |
|---|---|
| code repository | |
| license | |
| community registry | |
| citation | |
| howfairis | |
| Other best practices | |
| Coverage | |
| GitHub Actions | |
| Build |
To install FHIR-to-CAPACITY from GitHub repository, do:
git clone https://github.com/FAIR-data-for-CAPACITY/FHIR-to-CAPACITY.git
cd FHIR-to-CAPACITY
python3 -m pip install .To upload records from a FHIR server to a CAPACITY registry, execute the following command:
fhir-to-capacity FHIR_BASE_URL CAPACITY_API_URL CAPACITY_TOKENUsing the --help option will give you more information:
fhir-to-capacity --help
Usage: scripts/fhir_to_capacity fhir-base-url capacity-url capacity-token
Queries a FHIR server for patients, converts this to records matching the CAPACITY codebook, and uploads the result to a REDCAP server.
Arguments:
fhir-base-url
capacity-url
capacity-token
Other actions:
-h, --help Show the help
There is an additional command available for filling a FHIR server with synthetic data. It can be run as follows:
fill-server FHIR_BASE_URLThe --help option will show you more information:
Usage: scripts/fill_server fhir-base [n]
Fills the server with n ramdom patients.
Arguments:
fhir-base the url to the FHIR api
n number of patients to create (type: INT, default: 10)
Other actions:
-h, --help Show the help
If you want to contribute to the development of FHIR-to-CAPACITY, have a look at the contribution guidelines.
This package was created with Cookiecutter and the NLeSC/python-template.