DCR is not supported on Patient creation/update
Dynamic Class Referencing (DCR) is not configured properly on Patient Creation, Patient Update or Patient Search.
Following DCR property is used for Contact search/data population on screen though various data page activities:
But the same is not used in Contact creation activity - PegaLS-FW-PatientAssist-Work-PatientAddition.SavePatientInformation (class of contact is hard coded in this activity).
Moreover, when user tries to customize this activity using DCR to use custom class, the error occurs.
"pyCommitError: ** Cannot save instance of class SAG-GE-EG-PSP-Int-Contact; it belongs to fully exposed table pegadata.ge_eg_psp_pa_contact in database PegaDATA, but the instance has properties which do not correspond to columns: CustomerValueLS
Steps to Reproduce
1. Create new class for Contact and corresponding database table and database mapping.
2. Update own contact class in DCR setting Declare_CAApplicationSettings.InterfaceContactClass.
3. Try to create a new Patient in application.
The DCR setting is not used when data in inserted into contact table.
A defect in Pegasystems’ code or rules
The root cause for this error is that there is a declare expression on property CustomerValueLS in PegaLS_CPMLSFW:07-22-01 ruleset and it is setting value to this property whereas this property does not have an exposed column in pega provided contact table(pa_contact).
This issue will occur whenever the activity SavePatientInformation is customized to use any other class than "PegaApp-Interface-Contact"
The property CustomerValueLS does not have matching column in the database table. Therefore it is throwing the error while saving the instance to database.