bcda-app icon indicating copy to clipboard operation
bcda-app copied to clipboard

[Draft] FHIR -> CCLF CLI

Open jphechter opened this issue 4 years ago • 1 comments

Work outlined in: BCDA-4728

Proposed Changes

Some prospective BCDA users are unable to use our API as a data source due to limitations around ingesting FHIR data. Some others are hesitant to use BCDA as a data source due to an inability to compare the FHIR data against CCLF. This CLI converts FHIR data to a more familiar format that resembles data that would be found in the CCLF.

This tool serves 2 primary purposes:

  • It is meant to act as a stopgap so that users blocked by FHIR data ingestion can immediately begin using BCDA as their data source
  • It will allow users to verify the validity of the BCDA FHIR payload by reformatting to better match the CCLF files they are used to receiving

Change Details

  • Create a command line executable created that parses for FHIR resources using provided params
  • Establishes a means of parsing the provided FHIR data,
  • Establishes reusable patterns to map this data to the CCLF format
  • Sets up data mapping for CCLF 8, 9, and 7
  • Stores output in appropriately named CSV files

Security Implications

  • [X] new software dependencies
    • There are some Python dependencies that must be met in order for a user to use the CLI. Nothing directly affects the application.
  • [ ] security controls or supporting software altered
  • [ ] new data stored or transmitted
  • [ ] security checklist is completed for this change
  • [ ] requires more information or team discussion to evaluate security implications
  • [ ] no PHI/PII is affected by this change

Acceptance Validation

  • Verify setup instructions are accurate
  • Verify the accuracy of output files

Feedback Requested

  • This is a draft PR. No specific feedback requested at this time.

jphechter avatar Sep 10 '21 21:09 jphechter

Codecov Report

Merging #747 (30a98db) into master (b7025e7) will increase coverage by 0.01%. The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #747      +/-   ##
==========================================
+ Coverage   64.97%   64.98%   +0.01%     
==========================================
  Files          64       64              
  Lines        5573     5575       +2     
==========================================
+ Hits         3621     3623       +2     
  Misses       1508     1508              
  Partials      444      444              
Impacted Files Coverage Δ
bcda/cclf/fileprocessor.go 85.81% <0.00%> (+0.20%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update b7025e7...30a98db. Read the comment docs.

codecov-commenter avatar Sep 17 '21 20:09 codecov-commenter

Closing due to inactivity.

carlpartridge avatar Sep 27 '24 18:09 carlpartridge