Mapping Engine (RFC-076)

Document Maintainers: Andi Gabriel Tan 2024. List of other contributors in Annex. 1.

Copyright: MIT license

Copyright © 2018-2024 Axiologic Research and Contributors.

This document is licensed under MIT license.


1. Public functions from the Mapping Engine

Function getMappingEngine(persistenceDSU, options)

Description: Creates a new MappingEngine Object.

Name Type Value Description
persistenceDSU object *required The DSU that will be used as a storage service. It must contain these three functions: beginBatch(), commitBatch(), cancelBatch().

Function getMessagesPipe

Description: Returns the pipe and waits for messages that will later be matched and mapped to certain functions.

Function getErrorsMap

Description: Returns an error map for different types of errors that might occur while receiving messages or while mapping them.

Function defineMapping(matchFunction, mappingFunction)

Description: After the message is received and digested, this function is used to map that message to the desired method.

Name Type Value Description
matchFunction function *required A function that will match the message to a certain method.
mappingFunction function *required The mapping function that is being selected.

Function defineApi(name, implementation)

Description: Selects a function that will represent the implementation for a certain API.

Name Type Value Description
name string *required The name of the API
implementation string *required The name of the function that will represent the implementation for that certain api.


  1. Axiologic Research: New content and improvements. Original texts under PharmaLedger Association and Novartis funding. MIT licensed content accordingly with the contracts. Publish and maintain the site.

  2. PharmaLedger Project: Review, feedback, observations, new content, and corrections MIT licensed accordingly with the consortium agreements.

  3. PrivateSky Research Project: MIT licensed content accordingly with the contracts.

Annex 1. Contributors

Current Editors Email
Sînică Alboaie
Cosmin Ursache
Teodor Lupu
Andi-Gabriel Țan
Contributors Axiologic Research Email
Adrian Ganga
Andi-Gabriel Țan
Cosmin Ursache
Daniel Sava
Nicoleta Mihalache
Valentin Gérard
PrivateSky Contributors Email
Alex Sofronie (DPO)
Cosmin Ursache (UAIC)
Daniel Sava (HVS, AQS)
Daniel Visoiu (SGiant)
Lenuța Alboaie (UAIC)
Rafael Mastaleru (RMS)
Sînică Alboaie (UAIC)
Vlad Balmos (Code932)
PharmaLedger Contributors Email
Ana Balan (RMS)
Bogdan Mastahac (RMS)
Cosmin Ursache (RMS)
Rafael Mastaleru (RMS)