Updates to DVIR records can be pulled down from Azure Service Bus. The vehicle-inspection.updated records are published from the ELD system to TTC whenever a change is made to a Driver Vehicle Inspection Report (DVIR). Updates to a DVIR record occur when a note is added, repair certifications are made or the driver acknowledges repair status. The vehicle-inspection-updated records will have a header and a data payload.
{
"specversion": "1.0",
"type": "com.trimble.transportation.safety.vehicle-inspection.updated.v1",
"source": "https://tcx-coremessagingroutingservicev2.com/",
"id": "5ccc915c-4a8a-48f9-a58c-54be7e054c19",
"time": "2022-06-06T21:39:07.9225771Z",
"datacontenttype": "application/json",
"data": "{\"accountId\":\"123e4567-e89b-12d3-a456-426614174000\",\"organizationId\":\"1111\",\"reportNumber\":86,\"repairOrder\":\"TK466\",\"reportDateTime\":\"2022-06-03T20:09:00\",\"updatedDateTime\":\"2022-06-06T21:39:04Z\",\"assetType\":\"Vehicle\",\"assetId\":\"18921980\",\"location\":\"Mankato, MN\",\"createdBy\":{\"userIdType\":\"EfleetDriver\",\"userId\":\"maulov\"},\"repairCertification\":{\"certificationStatus\":\"NONE\",\"certificationDateTime\":\"1800-01-01T00:00:00\"},\"acknowledgement\":{\"safetyStatus\":\"NONE\",\"acknowledgementDateTime\":\"1800-01-01T00:00:00\"},\"notes\":[{\"noteCreator\":{\"userIdType\":\"Trimble\",\"userId\":\"57264\"},\"noteDateTime\":\"2022-06-03T21:11:02\",\"note\":\"paper DVIR\"}],\"defectDetails\":[{\"categoryName\":\"Emergency Equipment\",\"defects\":[{\"defectName\":\"Fire extinguisher missing\"}]},{\"categoryName\":\"Horn\",\"defects\":[{\"defectName\":\"Inoperative electric horn\"}]}]}"
}
This DVIR was created in the PFM on 6/3. It was updated in the PFM on 6/6 to add a repair order.
{
"accountId": "123e4567-e89b-12d3-a456-426614174000",
"organizationId": "1111",
"reportNumber": 86,
"repairOrder": "TK466",
"reportDateTime": "2022-06-03T20:09:00",
"updatedDateTime": "2022-06-06T21:39:04Z",
"assetType": "Vehicle",
"assetId": "18921980",
"location": "Mankato, MN",
"createdBy": {
"userIdType": "EfleetDriver",
"userId": "maulov"
},
"repairCertification": {
"certificationStatus": "NONE",
"certificationDateTime": "1800-01-01T00:00:00"
},
"acknowledgement": {
"safetyStatus": "NONE",
"acknowledgementDateTime": "1800-01-01T00:00:00"
},
"notes": [{
"noteCreator": {
"userIdType": "Trimble",
"userId": "57264"
},
"noteDateTime": "2022-06-03T21:11:02",
"note": "paper DVIR"
}],
"defectDetails": [{
"categoryName": "Emergency Equipment",
"defects": [{
"defectName": "Fire extinguisher missing"
}]
}, {
"categoryName": "Horn",
"defects": [{
"defectName": "Inoperative electric horn"
}]
}]
}
This DVIR was created by a driver on a mobile device in a vehicle. It was updated in the PFM to add a repair order and a note.
{
"accountId": "123e4567-e89b-12d3-a456-426614174000",
"organizationId": "1111",
"reportNumber": 91,
"repairOrder": "V61722",
"reportDateTime":"2022-06-17T14:24:54",
"updatedDateTime":"2022-06-17T14:30:42Z",
"assetType":"Vehicle",
"assetId":"18921980",
"location":"MANKATO,MN",
"createdBy":{
"userIdType":"EfleetDriver",
"userId":"driverID”
},
"repairCertification":{
"certificationStatus":"NONE",
"certificationDateTime":"1800-01-01T00:00:00"
},
"acknowledgement":{
"safetyStatus":"NONE",
"acknowledgementDateTime":"1800-01-01T00:00:00"
},
"notes":[{
"noteCreator":{
"userIdType":"Trimble",
"userId":"215200"
},
"noteDateTime":"2022-06-17T14:30:42",
"note":"Update performed by fleet manager for Repair Order number"
}],
"defectDetails":[{
"categoryName":"Mirrors",
"defects":[{
"defectName":"Broken or cracked"
}]
}]
}
This DVIR was created by a driver on a mobile device in a vehicle. It was updated by an integration user to add a repair order, add a note and set the repair status. It has not been acknowledged by a driver yet.
{
"accountId":"123e4567-e89b-12d3-a456-426614174000",
"organizationId":"1111",
"reportNumber":177,
"repairOrder":"v177",
"reportDateTime":"2022-07-12T17:19:45",
"updatedDateTime":"2022-07-12T17:24:17Z",
"assetType":"Vehicle",
"assetId":"18921980",
"location":"MANKATO,MN",
"createdBy":{
"userIdType":"EfleetDriver",
"userId":"driverID"
},
"repairCertification":{
"certifiedBy":{
"userIdType":"Trimble",
"userId":"23365"
},
"certificationStatus":"REPAIRS_MADE",
"certificationDateTime":"2022-07-12T13:22:00Z"
},
"Acknowledgement":{
"safetyStatus":"NONE",
"acknowledgementDateTime":"1800-01-01T00:00:00"
},
"Notes":[{
"noteCreator":{
"userIdType":"Trimble",
"userId":"23365”
},
"noteDateTime":"2022-07-12T13:22:00Z",
"note":"repair update by IU:1"
}],
"defectDetails":[{
"categoryName":"Headlights",
"Defects":[{
"defectName":"Foggy headlight cover”
}]
}]
}
This DVIR was created by a driver on a mobile device in a vehicle. It was previously updated by an integration user to add a repair order, add a note and set the repair status. This updated record shows the acknowledgement by a driver, entered from the vehicle on a mobile device.
{
"accountId":"123e4567-e89b-12d3-a456-426614174000",
"organizationId":"1111",
"reportNumber":177,
"repairOrder":"v177",
"reportDateTime":"2022-07-12T17:19:45",
"updatedDateTime":"2022-07-12T18:35:17Z",
"assetType":"Vehicle",
"assetId":"18921980",
"location":"MANKATO,MN",
"createdBy":{
"userIdType":"EfleetDriver",
"userId":"driverID"
},
"repairCertification":{
"certifiedBy":{
"userIdType":"Trimble",
"userId":"23365"
},
"certificationStatus":"REPAIRS_MADE",
"certificationDateTime":"2022-07-12T13:22:00"
},
"acknowledgement":{
"acknowledgedBy":{
"userIdType":"EfleetDriver",
"userId":"driverID"
},
"safetyStatus":"SAFE_TO_OPERATE",
"acknowledgementDateTime":"2022-07-12T18:34:52”
},
"notes":[{
"noteCreator":{
"userIdType":"EfleetDriver",
"userId":"driverID"
},
"noteDateTime":"2022-07-12T18:34:52",
"note":"No issues with vehicle”
}],
"defectDetails":[{
"categoryName":"Headlights",
"Defects":[{
"defectName":"Foggy headlight cover"
}]
}]
}