Add perinatal hep B plugin, add contacts, encounters to deep copy