Opened 11 years ago

#1220 new enhancement

Have a general way to distiguish the deprecated or legacy code

Reported by: dbmulg Owned by:
Priority: medium Milestone: Post-NPGS Prod'n
Component: Other Version: 1.9.6 Server
Severity: Keywords: code value
Cc: Database Engine: N/A
Operating System: N/A

Description

Per Pete:
Add a column to the code_value table (perhaps called ‘is_archived’) to 'deprecate' or mark codes as obsolete. This would leave the codes in place for viewing older records that may still be referencing the deprecated code (aka John W. issue as explained by Quinn) while also making it trivial for the applications (like the PW and the CT) to filter out invalid codes at runtime. (NOTES: This is by far the most robust solution, it works for both the CT and the PW, and can be extended to other code groups beyond the country code issue at hand without any additional effort thus enhancing capability of all code_value entries – we all have to be sensing that somewhere down the road this legacy/invalid code_value issue will crop up again in another code group so it would be nice to have that ‘is_archived’ field in place so that we can handle deprecated codes on-the-fly for any/all code groups and it could be done without further software changes needed)

Per Laura:
The implementation procedure would be:
1)Schema change of add one column;
2)Data analyzing/updating action for this new column, although most of them could use the default value of 'N' if the name if 'is_archived';
3)CT dataview change 'get_code_value' modified to include this new column

Change History (0)

Note: See TracTickets for help on using tickets.