Skip to content

new manifest lessons learned

anthonyoleary edited this page Nov 18, 2015 · 1 revision

some lessons from creating the new BDMicroImager manifest were:

-Remove the laboratory and location files from the manifest as the data is automatically being loaded from cdx

-Remove, serial_number from the manifest as this is inserted from the device and caused an error.

-changed from "test.assays[*].result": : to "test.assays.result” if you try this on cdp2 it may not work due to test.assays.result , the newer format is different: "the problem with condition and result is that the definition changed since the one deployed in cdp2, it originally was with the [*] and you needed to return an array of elements mapping each of the variables at a time, but now they don’t have that [*] and the mapping is directly 'mtb' if it’s just one value or you need to build a script and return the array of objects”

-to debug it: put breakpoints in, class Manifest < ActiveRecord::Base