INCA export may fail if there are blood samples with missing date
The INCA export fail in this scenario:
- "all" option is selected
- A patient has at least 2 blood samples and at least one of them is missing creation date
The response is a simple "500 Internal sever error" and is not very informative.
Tomcat's log file has a NullPointerException in it.
The NullPointerException is caused when trying to compare the creation date of two blood samples (since only the earliest one should be included in the export).
This is only an issue when the "all" option is selected since when a single year or month is selected a filter on the query will exclude all sample with missing dates.