NUBIC/ncs_navigator_core — pull request #231 by yipdw (2013-06-20 22:58:22+00:00)
Title: Export -1, -2, etc. as MDES-coded dates / times

This addresses https://code.bioinformatics.northwestern.edu/issues/issues/show/4379.

Previously, the instrument warehouse code passed answers of -1, -2, etc. straight through to the MDES warehouse. In places where dates or times were expected, this caused a format validation failure.

This PR codes -x as 9xxx-9x-9x (for dates) and 9x:9x (for times), using the "9-followed-by-the-code" notation described in the MDES spreadsheets. Currently, it does so by first trying the value as-is. If that's valid, we accept it. Otherwise, we generate possibilities based on the validation format and try those.

This PR is for the `1.7.0.pbs` branch, since we need this capability there. A separate PR will be filed for `develop`.