Refactored some code from a blog about service objects: https://www.codewithjason.com/code-without-service-objects/
Guessing that ZirMed837PFile::File.new(appointments).write(file.path)
is supposed to be something like this:
file = ZirMed837PFile::File.from_queued
file.write(file.filename)