Closed bwalsh closed 1 year ago
@kellrott @lbeckman314 Adding you as additional reviewers on this PR as it ties together the pfb_fhir paper and the aced work
CONTRIBUTING.md Link is broken on the PYPI website but works on the github README.md page.
pip installed the package and tested with local fhir files I had translated from OMOP:
the validate and simplify commands worked for me. Pfb command was erroring with the subprocess command: "pfb from -o output/obs.pfb dict iceberg/schemas/gen3/aced.json" returning a -1. This is probably something on my end. Did not try the migrate command.
Looked over the code files/test coverage but did not have any comments.
TODO: - Add "pluck" capability for embedded objects
TODO: - abstract references:
done see config.nested_objects
TODO: - add documentation for
json schema vocabulary
done on feature/hypermedia branch
TODO: - add example of linking to BMEG
done on feature/hypermedia branch
Had some issues running the commands listed under "example" in the README docs: It should be made clear in the README that you have to run a:
pfb_fhir schema generate simplified
to generate the simplified schema needed to run the pfb command. Works after running:
pfb_fhir data simplify --schema_path iceberg/schemas/simplified/simplified-fhir.json tests/fixtures/simplify/study/ tmp/simplified
instead of:
pfb_fhir data simplify tests/fixtures/simplify/study/ tmp/simplified
For some reason this flag needed to be explicitly stated. and checking out the iceberg schema repository to fhir-pfb branch
Also iceberg_tools/cli/data.py:L104-106 appears to be throwing incorrect asserts. After commenting them out the program worked fine without errors and generated a 31 MB pfb file. with:
pfb_fhir data pfb tmp/simplified/ tmp/study.pfb
This PR adds a
data
section: