diff --git a/health/egov-persister/facility-persister.yml b/health/egov-persister/facility-persister.yml index 20af5805c..725f60b95 100644 --- a/health/egov-persister/facility-persister.yml +++ b/health/egov-persister/facility-persister.yml @@ -5,6 +5,13 @@ serviceMaps: description: Saves a facility fromTopic: save-facility-health-topic isTransaction: true + isAuditEnabled: true + module: FACILITY + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO health.FACILITY(id, clientReferenceId, tenantId, isPermanent, name, usage, storageCapacity, addressId, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.* @@ -51,6 +58,13 @@ serviceMaps: description: Updates a facility fromTopic: update-facility-health-topic isTransaction: true + isAuditEnabled: true + module: FACILITY + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.FACILITY SET tenantId=?, clientReferenceId=?, isPermanent=?, name=?, usage=?, storageCapacity=?, addressId=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=? WHERE id=? AND isDeleted=false; basePath: $.* @@ -109,6 +123,13 @@ serviceMaps: description: Deletes a facility fromTopic: delete-facility-health-topic isTransaction: true + isAuditEnabled: true + module: FACILITY + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.FACILITY SET lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id=?; basePath: $.* diff --git a/health/egov-persister/household-persister.yml b/health/egov-persister/household-persister.yml index 09e017006..ece6b8c4d 100644 --- a/health/egov-persister/household-persister.yml +++ b/health/egov-persister/household-persister.yml @@ -5,6 +5,13 @@ serviceMaps: description: Persists household. fromTopic: save-household-health-topic isTransaction: true + isAuditEnabled: true + module: HOUSEHOLD + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO health.HOUSEHOLD(id, tenantId, clientReferenceId, numberOfMembers, addressId, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.* @@ -51,6 +58,13 @@ serviceMaps: description: Updates household. fromTopic: update-household-health-topic isTransaction: true + isAuditEnabled: true + module: HOUSEHOLD + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.HOUSEHOLD SET tenantId = ?, clientReferenceId = ?, numberOfMembers = ?, addressId = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ?, rowVersion = ?, isDeleted = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE ID = ?; basePath: $.* @@ -107,6 +121,13 @@ serviceMaps: description: Deletes household. fromTopic: delete-household-health-topic isTransaction: true + isAuditEnabled: true + module: HOUSEHOLD + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.HOUSEHOLD SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, rowVersion = ?, isDeleted = ?, additionalDetails=? WHERE ID = ?; basePath: $.* @@ -126,6 +147,13 @@ serviceMaps: description: Persists household member. fromTopic: save-household-health-member-topic isTransaction: true + isAuditEnabled: true + module: HOUSEHOLD + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO health.HOUSEHOLD_MEMBER(id, tenantId, clientReferenceId, individualId, individualClientReferenceId, householdId, householdClientReferenceId, isHeadOfHousehold, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.* @@ -155,6 +183,13 @@ serviceMaps: description: Update household member. fromTopic: update-household-health-member-topic isTransaction: true + isAuditEnabled: true + module: HOUSEHOLD + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.HOUSEHOLD_MEMBER SET isHeadOfHousehold=?, clientReferenceId = ?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE individualId=? AND householdId=? AND isDeleted=false; basePath: $.* @@ -176,6 +211,13 @@ serviceMaps: description: Deletes household Member. fromTopic: delete-household-health-member-topic isTransaction: true + isAuditEnabled: true + module: HOUSEHOLD + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.HOUSEHOLD_MEMBER SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, rowVersion = ?, isDeleted = ?, additionalDetails=? WHERE ID = ?; basePath: $.* diff --git a/health/egov-persister/individual-persister.yml b/health/egov-persister/individual-persister.yml index d0b7fbfcc..9f34f1fc1 100644 --- a/health/egov-persister/individual-persister.yml +++ b/health/egov-persister/individual-persister.yml @@ -121,6 +121,13 @@ serviceMaps: description: Updates Individual fromTopic: update-individual-health-topic isTransaction: true + isAuditEnabled: true + module: INDIVIDUAL + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.individual SET userId=?, userUuid=?, tenantId=?, givenName=?, familyName=?, otherNames=?, dateOfBirth=?, Gender=?, bloodGroup=?, mobileNumber=?, altContactNumber=?, email=?, fatherName=?, husbandName=?, relationship=?, photo=?, isSystemUserActive=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, username = ?, password = ?, type = ?, roles = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE id=? AND isDeleted=false; basePath: $.* @@ -246,6 +253,13 @@ serviceMaps: description: Deletes Individual and related Entities fromTopic: delete-individual-health-topic isTransaction: true + isAuditEnabled: true + module: INDIVIDUAL + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.individual SET lastModifiedBy=?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, lastModifiedTime=?, rowVersion=?, isDeleted=?, isSystemUserActive=? WHERE id=?; basePath: $.* @@ -285,6 +299,13 @@ serviceMaps: description: Updates userId and userUuid received from user-service into an individual fromTopic: update-user-id-health-topic isTransaction: true + isAuditEnabled: true + module: INDIVIDUAL + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.individual SET userId=?, userUuid=? WHERE id=?; basePath: $.* diff --git a/health/egov-persister/product-persister.yml b/health/egov-persister/product-persister.yml index e263cc2f3..1224e1ecf 100644 --- a/health/egov-persister/product-persister.yml +++ b/health/egov-persister/product-persister.yml @@ -5,6 +5,13 @@ serviceMaps: description: Persists Product fromTopic: save-product-health-topic isTransaction: true + isAuditEnabled: true + module: PRODUCT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO health.product(id, tenantId, type, name, manufacturer, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.* @@ -28,6 +35,13 @@ serviceMaps: description: Updates Product fromTopic: update-product-health-topic isTransaction: true + isAuditEnabled: true + module: PRODUCT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.product SET tenantId = ?, type = ?, name = ?, manufacturer = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE id = ? basePath: $.* @@ -49,6 +63,13 @@ serviceMaps: description: Saves a product variant fromTopic: save-product-variant-health-topic isTransaction: true + isAuditEnabled: true + module: PRODUCT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO health.product_variant(id, tenantId, productId, sku, variation, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.* @@ -72,6 +93,13 @@ serviceMaps: description: Updates a product variant fromTopic: update-product-variant-health-topic isTransaction: true + isAuditEnabled: true + module: PRODUCT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.product_variant SET tenantId = ?, productId = ?, sku = ?, variation = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE id = ?; basePath: $.* diff --git a/health/egov-persister/project-persister.yml b/health/egov-persister/project-persister.yml index 10e3c0260..a7f2c12c7 100644 --- a/health/egov-persister/project-persister.yml +++ b/health/egov-persister/project-persister.yml @@ -5,6 +5,13 @@ serviceMaps: description: Saves a project staff fromTopic: save-project-staff-health-topic isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO health.project_staff (id, tenantId, projectId, staffId, startDate, endDate, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.* @@ -29,6 +36,13 @@ serviceMaps: description: Update Project Staff fromTopic: update-project-staff-health-topic isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.project_staff SET projectId=?, staffId=?, startDate=?, endDate=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=? WHERE id = ? basePath: $.* @@ -50,6 +64,13 @@ serviceMaps: description: Deletes Project Staff fromTopic: delete-project-staff-health-topic isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.project_staff SET lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id=?; basePath: $.* @@ -67,6 +88,13 @@ serviceMaps: description: Saves a project beneficiary fromTopic: save-project-beneficiary-health-topic isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO health.project_beneficiary (id, tenantId, projectId, beneficiaryId, clientReferenceId, beneficiaryClientReferenceId, dateOfRegistration, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy, tag) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.* @@ -97,6 +125,13 @@ serviceMaps: description: Update Project Beneficiary fromTopic: update-project-beneficiary-health-topic isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.project_beneficiary SET projectId=?, beneficiaryId=?, clientReferenceId=?, beneficiaryClientReferenceId=?, dateOfRegistration=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, tag=? WHERE id = ? AND isDeleted=false basePath: $.* @@ -122,6 +157,13 @@ serviceMaps: description: Deletes Project Beneficiaries fromTopic: delete-project-beneficiary-health-topic isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.project_beneficiary SET lastModifiedBy=?, lastModifiedTime=?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id=?; basePath: $.* @@ -142,6 +184,13 @@ serviceMaps: description: Persists project details in project table fromTopic: save-project isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO health.project(id,tenantId,projectNumber,name,projectType,projectTypeId,projectSubType,department,description,referenceId,startDate,endDate,isTaskEnabled,parent,projectHierarchy,natureOfWork,additionalDetails,isDeleted,rowVersion,createdBy,lastModifiedBy,createdTime,lastModifiedTime) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.Projects.* @@ -290,6 +339,13 @@ serviceMaps: description: Updates project details in project table fromTopic: update-project isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.project SET name = ?, projectType = ?, projectTypeId = ?, projectSubType = ?, department = ?, description = ?, referenceId = ?, startDate = ?, endDate = ?, isTaskEnabled = ?, natureOfWork = ?, additionalDetails = ?, isDeleted = ?, rowVersion = ?, lastModifiedBy = ?, lastModifiedTime = ? WHERE id = ?; basePath: $.Projects.* @@ -450,9 +506,16 @@ serviceMaps: - version: 1.0 - description: Saves a project resourcce + description: Saves a project resource fromTopic: save-project-resource-health-topic isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO health.project_resource (id, tenantId, projectId, productVariantId, isBaseUnitVariant, startDate, endDate, type, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.* @@ -476,6 +539,13 @@ serviceMaps: description: Update a project resourcce fromTopic: update-project-resource-health-topic isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.project_resource SET tenantId=?, projectId=?, productVariantId=?, isBaseUnitVariant=?, startDate=?, endDate=?, type=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=? WHERE id = ? basePath: $.* @@ -497,6 +567,13 @@ serviceMaps: description: Delete a project resourcce fromTopic: delete-project-resource-health-topic isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.project_resource SET lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id = ? basePath: $.* @@ -514,6 +591,13 @@ serviceMaps: description: Saves a project facility fromTopic: save-project-facility-health-topic isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO health.project_facility (id, tenantId, projectId, facilityId, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?); @@ -547,6 +631,13 @@ serviceMaps: description: Update Project Facility fromTopic: update-project-facility-health-topic isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.project_facility SET projectId=?, facilityId=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=? WHERE id = ? @@ -574,6 +665,13 @@ serviceMaps: description: Deletes Project Facility fromTopic: delete-project-facility-health-topic isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.project_facility SET lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id=?; basePath: $.* diff --git a/health/egov-persister/project-task-persister.yml b/health/egov-persister/project-task-persister.yml index afd0f8788..1ae6e01a9 100644 --- a/health/egov-persister/project-task-persister.yml +++ b/health/egov-persister/project-task-persister.yml @@ -5,6 +5,13 @@ serviceMaps: description: Saves a project task fromTopic: save-project-task-health-topic isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO health.PROJECT_TASK(id, clientReferenceId, tenantId, projectId, projectBeneficiaryId, projectBeneficiaryClientReferenceId, plannedStartDate, plannedEndDate, actualStartDate, actualEndDate, addressId, status, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, rowVersion, isDeleted, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?, ?, ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.* @@ -76,6 +83,13 @@ serviceMaps: description: Updates a project task fromTopic: update-project-task-health-topic isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.PROJECT_TASK SET tenantId = ?, projectId = ?, projectBeneficiaryId = ?, projectBeneficiaryClientReferenceId = ?, addressId = ?, plannedStartDate = ?, plannedEndDate = ?, actualStartDate = ?, actualEndDate = ?, status = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ?, rowVersion = ?, isDeleted = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE ID = ?; basePath: $.* @@ -149,6 +163,13 @@ serviceMaps: description: Deletes a project task fromTopic: delete-project-task-health-topic isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.PROJECT_TASK SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, rowVersion = ?, isDeleted = ?, additionalDetails=? WHERE ID = ?; basePath: $.* @@ -175,6 +196,13 @@ serviceMaps: description: Saves a adverse event fromTopic: save-adverse-event-health-topic isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO health.ADVERSE_EVENT(id, clientReferenceId, tenantId, taskId, taskClientReferenceId, symptoms, reAttempts, createdBy, createdTime, lastModifiedBy, lastModifiedTime, clientCreatedTime, clientLastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.* @@ -201,6 +229,13 @@ serviceMaps: description: Updates a adverse event fromTopic: update-adverse-event-health-topic isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.ADVERSE_EVENT SET tenantId = ?, taskId = ?, taskClientReferenceId = ?, symptoms = ?, reAttempts = ?, lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; basePath: $.* @@ -223,6 +258,13 @@ serviceMaps: description: Deletes a adverse event fromTopic: delete-adverse-event-health-topic isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.ADVERSE_EVENT SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; basePath: $.* diff --git a/health/egov-persister/referral-management-persister.yml b/health/egov-persister/referral-management-persister.yml index 15b448980..af38f8606 100644 --- a/health/egov-persister/referral-management-persister.yml +++ b/health/egov-persister/referral-management-persister.yml @@ -5,6 +5,13 @@ serviceMaps: description: Saves a side effect fromTopic: save-side-effect-health-topic isTransaction: true + isAuditEnabled: true + module: REFERRALMANAGEMENT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO health.SIDE_EFFECT(id, clientReferenceId, tenantId, taskId, taskClientReferenceId, projectBeneficiaryId, projectBeneficiaryClientReferenceId, symptoms, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, clientCreatedBy, clientCreatedTime, clientLastModifiedBy, clientLastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.* @@ -37,6 +44,13 @@ serviceMaps: description: Updates a side effect fromTopic: update-side-effect-health-topic isTransaction: true + isAuditEnabled: true + module: REFERRALMANAGEMENT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.SIDE_EFFECT SET tenantId = ?, taskId = ?, taskClientReferenceId = ?, projectBeneficiaryId = ?, projectBeneficiaryClientReferenceId = ?, symptoms = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedBy = ?, clientLastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; basePath: $.* @@ -64,6 +78,13 @@ serviceMaps: description: Deletes a side effect fromTopic: delete-side-effect-health-topic isTransaction: true + isAuditEnabled: true + module: REFERRALMANAGEMENT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.SIDE_EFFECT SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedBy = ?, clientLastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; basePath: $.* @@ -80,6 +101,13 @@ serviceMaps: description: Saves a referral fromTopic: save-referral-health-topic isTransaction: true + isAuditEnabled: true + module: REFERRALMANAGEMENT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO health.REFERRAL(id, clientReferenceId, tenantId, projectBeneficiaryId, projectBeneficiaryClientReferenceId, referrerId, recipientId, recipientType, reasons, additionalDetails, sideEffectId, sideEffectClientReferenceId, createdBy, createdTime, lastModifiedBy, lastModifiedTime, clientCreatedBy, clientCreatedTime, clientLastModifiedBy, clientLastModifiedTime, rowVersion, isDeleted) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.* @@ -115,6 +143,13 @@ serviceMaps: description: Updates a referral fromTopic: update-referral-health-topic isTransaction: true + isAuditEnabled: true + module: REFERRALMANAGEMENT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.REFERRAL SET tenantId = ?, projectBeneficiaryId = ?, projectBeneficiaryClientReferenceId = ?, referrerId = ?, recipientId = ?, recipientType = ?, reasons = ?, additionalDetails = ?, sideEffectId = ?, sideEffectClientReferenceId = ?, lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedBy = ?, clientLastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; basePath: $.* @@ -145,6 +180,13 @@ serviceMaps: description: Deletes a referral fromTopic: delete-referral-health-topic isTransaction: true + isAuditEnabled: true + module: REFERRALMANAGEMENT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.REFERRAL SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedBy = ?, clientLastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; basePath: $.* @@ -161,6 +203,13 @@ serviceMaps: description: Saves a hfreferral fromTopic: save-hfreferral-health-topic isTransaction: true + isAuditEnabled: true + module: REFERRALMANAGEMENT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO health.hf_referral(id, clientReferenceId, tenantId, projectid, projectFacilityId, symptom, symptomsurveyid, beneficiaryid, referralcode, nationallevelid, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, clientCreatedBy, clientCreatedTime, clientLastModifiedBy, clientLastModifiedTime, rowVersion, isDeleted) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.* @@ -193,6 +242,13 @@ serviceMaps: description: Updates a hfreferral fromTopic: update-hfreferral-health-topic isTransaction: true + isAuditEnabled: true + module: REFERRALMANAGEMENT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.hf_referral SET clientReferenceId = ?, tenantId = ?, projectid = ?, projectFacilityId = ?, symptom = ?, symptomsurveyid = ?, beneficiaryid = ?, referralcode = ?, nationallevelid = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedBy = ?, clientLastModifiedTime = ?, rowVersion = ? WHERE ID = ?; basePath: $.* @@ -220,6 +276,13 @@ serviceMaps: description: Deletes a hfreferral fromTopic: delete-hfreferral-health-topic isTransaction: true + isAuditEnabled: true + module: REFERRALMANAGEMENT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.hf_referral SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedBy = ?, clientLastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; basePath: $.* diff --git a/health/egov-persister/service-request-persister.yml b/health/egov-persister/service-request-persister.yml index 110cb5bf8..34d0d2eda 100644 --- a/health/egov-persister/service-request-persister.yml +++ b/health/egov-persister/service-request-persister.yml @@ -5,6 +5,13 @@ serviceMaps: description: Persists service definition details in service definition table fromTopic: save-service-definition-health isTransaction: true + isAuditEnabled: true + module: SERVICE-REQUEST + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO health.eg_service_definition(id, tenantid, code, isactive, createdby, lastmodifiedby, createdtime, lastmodifiedtime, additionaldetails, clientid) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); @@ -78,6 +85,13 @@ serviceMaps: description: Persists service details in service table fromTopic: save-service-health isTransaction: true + isAuditEnabled: true + module: SERVICE-REQUEST + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.* queryMaps: diff --git a/health/egov-persister/stock-persister.yml b/health/egov-persister/stock-persister.yml index 07ebc0d56..711aab37e 100644 --- a/health/egov-persister/stock-persister.yml +++ b/health/egov-persister/stock-persister.yml @@ -5,6 +5,13 @@ serviceMaps: description: Saves a stock fromTopic: save-stock-health-topic isTransaction: true + isAuditEnabled: true + module: STOCK + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO health.STOCK(id, clientReferenceId, tenantId, facilityId, productVariantId, wayBillNumber, quantity, referenceId, referenceIdType, transactionType, transactionReason, transactingPartyId, transactingPartyType, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, rowVersion, isDeleted, dateOfEntry, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?, ?, ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.* @@ -41,6 +48,13 @@ serviceMaps: description: Updates a stock fromTopic: update-stock-health-topic isTransaction: true + isAuditEnabled: true + module: STOCK + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.STOCK SET tenantId=?, dateOfEntry = ?, facilityId=?, productVariantId=?, wayBillNumber=?, quantity=?, referenceId=?, referenceIdType=?, transactionType=?, transactionReason=?, transactingPartyId=?, transactingPartyType=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE id=? AND isDeleted=false; basePath: $.* @@ -71,6 +85,13 @@ serviceMaps: description: Deletes a stock fromTopic: delete-stock-health-topic isTransaction: true + isAuditEnabled: true + module: STOCK + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.STOCK SET lastModifiedBy=?, lastModifiedTime=?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id=?; basePath: $.* @@ -91,6 +112,13 @@ serviceMaps: description: Saves a stock reconciliation fromTopic: save-stock-reconciliation-health-topic isTransaction: true + isAuditEnabled: true + module: STOCK + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO health.STOCK_RECONCILIATION_LOG(id, clientReferenceId, tenantId, facilityId, dateOfReconciliation, calculatedCount, physicalRecordedCount, commentsOnReconciliation, productVariantId, referenceId, referenceIdType, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, rowVersion, isDeleted,clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?, ?, ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.* @@ -124,6 +152,13 @@ serviceMaps: description: Updates a stock reconciliation fromTopic: update-stock-reconciliation-health-topic isTransaction: true + isAuditEnabled: true + module: STOCK + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.STOCK_RECONCILIATION_LOG SET tenantId=?, facilityId=?, productVariantId=?, referenceId=?, referenceIdType=?, dateOfReconciliation=?, calculatedCount=?, physicalRecordedCount=?, commentsOnReconciliation=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE id=? AND isDeleted=false; basePath: $.* @@ -151,6 +186,13 @@ serviceMaps: description: Deletes a stock reconciliation fromTopic: delete-stock-reconciliation-health-topic isTransaction: true + isAuditEnabled: true + module: STOCK + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.STOCK_RECONCILIATION_LOG SET lastModifiedBy=?, lastModifiedTime=?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id=?; basePath: $.*