-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #409 from bento-platform/features/tables-removal
feat!: remove tables concept
- Loading branch information
Showing
83 changed files
with
1,283 additions
and
1,331 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,13 @@ | ||
import json | ||
|
||
from chord_metadata_service.mcode.mcode_ingest import ingest_mcodepacket | ||
from chord_metadata_service.mcode.parse_fhir_mcode import parse_bundle | ||
|
||
from .logger import logger | ||
from .utils import get_output_or_raise, map_if_list, workflow_file_output_to_path | ||
|
||
from .utils import map_if_list | ||
|
||
def ingest_mcode_fhir_workflow(workflow_outputs, table_id): | ||
with workflow_file_output_to_path(get_output_or_raise(workflow_outputs, "json_document")) as json_doc_path: | ||
logger.info(f"Attempting ingestion of MCODE FIHR from path: {json_doc_path}") | ||
with open(json_doc_path, "r") as jf: | ||
json_data = json.load(jf) | ||
|
||
def ingest_mcode_fhir_workflow(json_data, dataset_id): | ||
mcodepacket = parse_bundle(json_data) | ||
return ingest_mcodepacket(mcodepacket, table_id) | ||
|
||
return ingest_mcodepacket(mcodepacket, dataset_id) | ||
|
||
def ingest_mcode_workflow(workflow_outputs, table_id): | ||
with workflow_file_output_to_path(get_output_or_raise(workflow_outputs, "json_document")) as json_doc_path: | ||
logger.info(f"Attempting ingestion of MCODE from path: {json_doc_path}") | ||
with open(json_doc_path, "r") as jf: | ||
json_data = json.load(jf) | ||
|
||
return map_if_list(ingest_mcodepacket, json_data, table_id) | ||
def ingest_mcode_workflow(json_data, dataset_id): | ||
return map_if_list(ingest_mcodepacket, json_data, dataset_id) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.