Hello
They were indeed divided by state. NC soldiers were housed in hospital #24 which had 3, 4 and 5th divisions based on Virginia Sentinel records from Novemer 1863.
Thanks