Add Usage Data to the Transaction Log

 

The callback script stores the member and application claims as user data on the session. An interceptor on the Patient Access API endpoint copies that user data into the additionalJson property of each transaction log event.

Register the Interceptor

The com.smilecdr.custom.patient.access.PatientAccessTxLogEnrichmentInterceptor interceptor copies the patient_id, client_id, and subject user data from the user session into the additionalJson property of each transaction log event. The callback script must store the values under these keys. A key that is missing from the session is skipped and logged as a warning in the Smile CDR log.

Note: The Smile Support Team or Technical Account Manager should be contacted to obtain the JAR file containing this interceptor.

  1. Place the JAR file in the smilecdr/customerlib folder on the Smile CDR server. See Registering an Interceptor.
  2. Register the interceptor on the Patient Access API endpoint only, using the interceptor_bean_types property:
module.http_patient_access.config.interceptor_bean_types=com.smilecdr.custom.patient.access.PatientAccessTxLogEnrichmentInterceptor
  1. Restart the module.

The values appear on each event, for example:

"additionalJson": {
  "patient_id": "patient-005",
  "client_id": "insure-pay",
  "subject": "d749550c-2f63-4c5a-9bf2-696b3af9d328"
}