MAP-EVT-HR-TERM · version 1
HR Employment Event → Employee Terminated
Event translation · Event
Source
HR · employment_event
Field mappings
| Source field | Canonical field | Contribution | Survivorship |
|---|---|---|---|
| employment_id | employment_id | Direct | |
| reason_code | reason_code | Direct | |
| employee -> ENTITY Worker | subject_id | Derived | |
| employment.employee_id | subject_id | Derived | |
| employment_event.employment_id | subject_id | Derived |
Canonical records produced (2)
- EmployeeTerminated-20260711T0530 Employee Terminated · trace
- EmployeeTerminated-20260718T0530 Employee Terminated · trace
Rule definition
{
"select": {
"field": "event_type",
"equals": "TERMINATION"
},
"subject": {
"via": [
{
"take": "employee_id",
"source_object": "employment",
"source_system": "HR"
}
],
"kind": "ENTITY",
"from_field": "employment_id",
"target_type": "Worker",
"target_object": "employee",
"target_system": "HR",
"classification": "HR_CONFIDENTIAL"
},
"attributes": {
"reason_code": {
"from": [
"reason_code"
],
"classification": "HR_CONFIDENTIAL"
},
"employment_id": {
"from": [
"employment_id"
],
"classification": "HR_CONFIDENTIAL"
}
},
"occurred_at": "effective_date",
"business_key": "employment_event_id"
}