Skip to content

Add missing descriptions for templates - #44

Open
Zhimin-arya wants to merge 2 commits into
mainfrom
Zhimin-arya/data-2217_add_descriptions_to_all_nodes
Open

Add missing descriptions for templates#44
Zhimin-arya wants to merge 2 commits into
mainfrom
Zhimin-arya/data-2217_add_descriptions_to_all_nodes

Conversation

@Zhimin-arya

Copy link
Copy Markdown
Contributor

Merge Checklist

Please review this list and check any items that require additions or modifications beyond your core changes. Reviewers can also use it to help confirm that nothing was missed.

Test if the flow runs successfully as an imported json file

  • Import the flow as a .json file and successfully run the flow

Test if the flow runs successfully as template

  • Switch DATAFLOW_TEMPLATE_BRANCH environment variable in docker-compose.yaml to the branch being reviewed and successfully run the flow

Inspect the nodes in the flow (either as a template or imported json file):

  • Each node has a short description that helps the user understand what the node does
  • Added documentation and type hints for embedded Python functions in flow templates (code in the Python node)
  • Result and error are removed in node data i.e. there should be no result or error visible for the nodes

[Currently not visible in UI]

  • Added a description for the flow template, including the OMOP CDM version and supported database(s)

Copilot AI balanced review requested due to automatic review settings September 4, 2026 07:58

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Several new user-facing descriptions incorrectly describe their nodes’ actual behavior.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Adds user-facing descriptions to flow-template nodes and introduces configurable database/schema selectors.

Changes:

  • Replaces placeholder node descriptions across templates.
  • Adds database and schema configuration to several flows.
  • Clarifies ARTEMIS documentation.
File summaries
File Description
flows/pyomop.json Adds configurable database/schema references.
flows/nlpflow.json Documents NLP nodes and configures storage targets.
flows/nlp_pyner.json Moves database/schema values into selectors.
flows/Load_DICOM_Vocab.json Documents relationship transformation.
flows/fhir_anonymizer.json Adds anonymization workflow descriptions.
flows/etlQuestionnaireResponseEQ-5D-5L.json Documents conversion and mapping nodes.
flows/etlPatientToOMOPPerson.json Documents patient ETL stages.
flows/etlfhirtoomop.json Documents FHIR-to-OMOP processing stages.
flows/clinicaltrialsomop.json Documents ETL nodes and adds target selectors.
flows/artemis.json Clarifies the README node description.
Review details

Suppressed comments (3)

flows/fhir_anonymizer.json:147

  • This node only downloads and extracts the R4 command-line package and returns its executable path; it does not anonymize any resources. The description should identify this setup step.
          "description": "Anonymize FHIR R4 resources using the Windows-compatible processing path.",

flows/fhir_anonymizer.json:171

  • This node downloads and extracts the STU3 package and returns its DLL path; the actual anonymization occurs in the downstream anonymizer node. The current description assigns processing behavior to the wrong node.
          "description": "Anonymize FHIR STU3 resources using the macOS-compatible processing path.",

flows/fhir_anonymizer.json:195

  • This node only downloads and extracts the STU3 package and returns its executable path; it does not anonymize FHIR resources. Describe the setup operation instead.
          "description": "Anonymize FHIR STU3 resources using the Windows-compatible processing path.",
  • Files reviewed: 9/10 changed files
  • Comments generated: 5
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread flows/etlfhirtoomop.json
@@ -517,7 +517,7 @@
"data": {
"name": "python_node",
"error": false,
"description": "Describe the task of node python_node_0",
"description": "Initialize the FHIR-to-OMOP transformation flow and shared runtime values.",
"data": {
"name": "anonymizer",
"description": "Describe the task of node python_node_2",
"description": "Load the FHIR anonymization library and expose its processing functions to downstream nodes.",
"data": {
"name": "R4 Fhir Anonymizer - Mac",
"description": "Describe the task of node python_node_2",
"description": "Anonymize FHIR R4 resources using the macOS-compatible processing path.",
"data": {
"name": "data_file_processor",
"description": "Describe the task of node python_node_6",
"description": "Read the supplied NDJSON file and prepare its FHIR resources for anonymization.",
"data": {
"name": "config_file_processor",
"description": "Describe the task of node python_node_7",
"description": "Parse and validate the supplied FHIR anonymization configuration.",
Comment thread flows/nlpflow.json Outdated
{ "code": "demo_database", "name": "database_code" }
],
"schemas": [
{ "name": "schema_name", "schema": "cdmdefault" }

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for demo_database, shouldn't demo_cdm be the schema

Comment thread flows/nlp_pyner.json Outdated
"schemas": [
{
"name": "schema_name",
"schema": "cdmdefault"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for demo_database, shouldn't demo_cdm be the schema

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add description to all nodes of respectively owned templates

3 participants