We found out an issue while saving code groups. For example, if we have XYZ codeset with a range from 001-022. which we add in the code group ABC. We expect to see 22 instances in the class PegaHealth-Codes-Data-CodeSet. But we are not seeing 22 sometimes.This is due to key for that class that is RangeKey(CodeGroupRuleName+TimeStamp) + CodeKey(CodeGroupID).
Fix we implemented:
In order to fix this, we customized an OOTB which saves the code group. We are using GetCurrentTimeStampFunction while composing the Range Key. I wanted to see if there is any other way to fix this issue.