This repository contains helper scripts, configuration files, and sample content used evaluate the Azure API for FHIR.
Please see the following Google Docs for more detailed information:
- fhir_list_all_resources.py: Lists the resources in a FHIR Server
- fhir_post_bundle.py: Posts a bundle JSON file to a FHIR Server
- fhir_post_from_directory.py: Posts JSON files to a FHIR Server that are located in the specified directory
- fhir_transform_bundle.py: Given a JSON FHIR bundle file with POST requests, this script transforms the POST requests into PUT requests, and handles setting the references. This was written to be used the the output of synthea-generated FHIR files, so that the ids could be retained.
- anonymizer-configuration.json: a configuration file used by FHIR Tools for Anonymization to redact or alter fields in FHIR JSON files
- bam_document_reference.json: an example of a DocumentReference to a BAM file, taken from NIH-NCPI/ncpi-model-forge#23
- sample_covid_fhir_juvenile_patients: synthetic juvenile (age 0-18) COVID patients created using synthea, in FHIR JSON format. The files were transformed before intake using the script fhir_transform_bundle.py.
- sample_covid_fhir_juvenile_patients_anonymized: the same patients as above, but run through the FHIR Tools for Anonymization using the configuration file anonymizer-configuration.json
- sample_ccda_juvenile_patients/original_ccda: synthetic juvenile (age 0-18) COVID patients created using synthea, in CCDA JSON format
- sample_ccda_juvenile_patients/converted_to_fhir_json/: FHIR JSON files, created using FHIR Converter on the original_ccda files
- sample_ccda_juvenile_patients/anonymized_fhir_json/: the same patients as above, but run through the FHIR Tools for Anonymization using the configuration file anonymizer-configuration.json
- sample_hl7v2/original_hl7v2: synthetic patients generated using simhospital, in HL7 V2 format
- sample_hl7v2/converted_fhir_json/: FHIR JSON files, created using FHIR Converter on the original_ccda files. The files were modified after conversion to turn the Bundle "transaction" to a "batch" and changing the "POST" requests to "PUT".
- sample_hl7v2/anonymized_fhir_json/: the same patients as above, but run through the FHIR Tools for Anonymization using the configuration file anonymizer-configuration.json
The following files were used to show a proof of concept of a script interacting with a FHIR Server and outputting patients in PFB format. The .avro files were created using the pypfb following the instructions.
- fhir_pfb_export.py: Script that sends a query to a FHIR Server and returns a PFB file of the matching patients
- minimal_file.json: The Schema in JSON format, with some patient fields added.
- minimal_schema.avro: The minimal PFB with Schema
- minimal_data.avro: The minimal PFB with Schema and Data
- submitted_aligned_reads.json: The file that was created from the python script