Hello,
Contrarily to PDF, DOCX files are not supported by the official DICOM standard. It is however possible to include arbitrary files as private tags into a DICOM envelope using the so-called Raw Data IOD. This possibility is used in the STL plugin for Orthanc to store 3D models as DICOM, you could have a look at this plugin for inspiration.
Regards,
Sébastien-