A developer has secured a $56 million loan for its plan to build 274 apartments at the site of a former hospital in Elizabeth, under a newly completed transaction by Parkview Financial.