Currently, in OpenmrsConstants there is a set of core global properties defined that are set upon first installing the system. Much of this still retains hard-coded references to concept ids that are no longer guaranteed to be in place in a fresh system. And more concerning than having them point to non-existent concepts is the prospect that they might point to existing yet incorrect concepts, leading to data that does not reflect what was intended.
These should be removed.
In the case where a starter dictionary is set up that reflects these hard-coded ids, we should move this setup code into the place where those starter dictionaries are installed.
This may also require OpenMRS to have an initial configuration page that forces end-users to configure any required properties before using the system.
An example of problematic code includes this snippet from OpenmrsConstants.java: