Socket
Book a DemoInstallSign in
Socket

github.com/googlecloudplatform/healthcare-data-harmonization/mapping_engine

Package Overview
Dependencies
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/googlecloudplatform/healthcare-data-harmonization/mapping_engine

Source
Go
Version
v0.0.0-20230426191038-e9b43fb55ac6
Version published
Created
Source

Google HCLS Data Harmonization Mapping Engine

Summary

This is an engine that converts data of one structure to another, based on a configuration file which describes how.

The configuration file can be written in any protobuf format. This can be rather verbose, so we recommend using the Data Harmonization Mapping Language which is transpiled to protobuf configs for you.

The engine accepts data in JSON format and outputs it in JSON format. For information on the mapping configuration, look at the protobuf files in the proto directory.

Building and Testing

TL;DR

Make sure you have installed and added to PATH

Then run build.sh

Details

This project consists of 5 go modules:

  • mapping_engine
  • mapping_engine/main
  • mapping_engine/proto
  • mapping_engine/transform
  • mapping_engine/util

They can be built and tested independently with go build and go test.

The .pb.go files in the proto directory are generated by protoc-gen-go. If you modify any .proto files make sure to re-run generate_protos.sh or build.sh.

If you wish to modify the language and engine simultaneously in a local filesystem, you may run go_mod_edits.sh to add the appropriate replace clauses to the go.mod files, redirecting dependencies from github to your local filesystem. Be aware that the script assumes the engine is in a directory called mapping_engine under the same parent as mapping_language (the directory this README is in).

License

Apache License, Version 2.0

FAQs

Package last updated on 26 Apr 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts