Closed arjunk closed 1 year ago
Org : ctrith_iph_uat
Checking if concept Individual id have value or not with getObservationValue. If No then perform value set.
When I clicked to Admin->Identifier User Assignment, One Error popped up
@arjunk @vedfordev Do we need to fix this scenario for households also because household also have generated ID
changed rule in individual registration for Individual id.
Context
Project has a common scenario where Individuals change location as women move to their maternal home during pregnancy. This requires changing the address of the individual in the registration form. In registration form we also generate unique ids. This unique id generation creation is dependent on the address. Once it is generated the id is used to put on samples, etc. Hence even if the address is changed, the ID should not be changed. Since there is technical limitation in the product as the rule cannot differentiate whether it is create or edit flow of the form, we will not differentiate and freeze the id even within the create flow.
Acceptance Criteria
Technical Approach
Change the rule such that it checks whether the id is already existing in the observation. if it is existing then it does not regenerate.