Could also make CareplanModule.case_type into a function that fetches the case type from the target module, not sure which is better but this seemed least impact. Open to change.