If there was one elf sprite, the easiest solution would've been creating a container with the healthbar.
With multiple sprites I suggest using the new scene graph feature.
On Elves Created -> create a healthbar and add it as a child to the elf. When elves' health changes, pick child instance of the healthbar and update its width.