rwdp-obds-cleanup

command module
v0.0.0-...-73693de Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

README

A simple pipeline step to clean up incoming kafka messages

This can be used to alter kafka messages for onco-analytics-on-fhir before any other processing of data.

Current modifications and actions

  • Removes leading zeros from Patient_ID in oBDS message.
  • Drops Kafka records not containing an oBDS 2.x message (e.g. new oBDS 3.x)

All features are enabled by default.

Run docker container

See docker-compose.yml for an example on how to use the image, available here.

Change BOOTSTRAP_SERVERS, INPUT_TOPICS or OUTPUT_TOPIC to apply any configuration changes.

Enable or disable features

To enable or disable a feature, set the given env var to true or false. All features are enabled by default.

  • ENABLE_REMOVE_PATIENT_ID_ZERO: Enable removing of leading patient id zeros
  • ENABLE_DROP_NON_OBDS_2: Drop records not containing oBDS 2.x messages

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL