Difference between revisions of "Data source/BVD/data model/organization/NationalId/mapping/CDQ/transformation"

From CDQ
Jump to navigation Jump to search
(Template parameters updated.)
 
(Template parameters updated.)
 
Line 1: Line 1:
 
{{Data model transformation
 
{{Data model transformation
 
  | data source = Data source/BVD
 
  | data source = Data source/BVD
  | transformation type = CUSTOM
+
  | transformation type = CUSTOM_TRANSFORMATION
 
  | transformation code = def transform(raw_data):
 
  | transformation code = def transform(raw_data):
 
     if not raw_data:
 
     if not raw_data:
 
         return {}
 
         return {}
     return {"businessPartner.additionalInformation[3].key": "Match.National_Id",
+
     return {"additionalInformation[3].key": "Match.National_Id",
             "businessPartner.additionalInformation[3].value": raw_data}
+
             "additionalInformation[3].value": raw_data}
 
  | sources = Data source/BVD/data model/organization/NationalId/mapping/CDQ
 
  | sources = Data source/BVD/data model/organization/NationalId/mapping/CDQ
 
}}
 
}}

Latest revision as of 10:25, 16 April 2025


Part of Hierarchical relation between two concepts of the CDQ Data Model. Data source BVD
Mapping source The source of a data model mapping. Data source/BVD/data model/organization/NationalId/mapping/CDQ
Transformation type A type of a transformation applied to a data model mapping. CUSTOM_TRANSFORMATION"CUSTOM_TRANSFORMATION" is not in the list (UPPER_CASE, LOWER_CASE, CUSTOM) of allowed values for the "Has transformation type" property.
Transformation parameter A transformation parameter is an action proccessed by a data model transformation. n/a
Description Informal and comprehensive human-readable definition of a concept. n/a

Transformation code Any code (in Python, JAVA or other) that will transform values for a given data source attributes.

def transform(raw_data):
    if not raw_data:
        return {}
    return {"additionalInformation[3].key": "Match.National_Id",
            "additionalInformation[3].value": raw_data}