An integrated microdevice, consisting of a micropump, a passive mixer, a magnetic separation chamber, and a microcapillary electrophoretic channel, was constructed for biobarcode assay based multiplex biological agent detection in a sample-to-answer-out manner within 30 min with high sensitivity.