I am installing a basement bathroom and am going to connect to an existing septic system via a new line out of the basement under the slab and footing to the outside. Under the slab in the basement is going to be 4" PVC, but code says I need a 5' section of 4" cast iron under the footing. I am also going to use 4" PVC outside to the septic. I picked up the cast iron and connectors but was wondering if what I have is correct before I go ahead with the installation. Attached are pictures of what I have.

I will have more questions about this, but this is going to kick-off my project.

Thanks.