HL7 MDM Messages

Application Name: OpenMRS Platform Version Number: 1.93

Question: We are trying to get HL7 MDM messages (.pdf) into our OMRS application. MDM is currently not supported therefore we need to develop a custom handler or module for this. Has anybody done this before and can give us some advice how to do this? Or is there even a code snippet we could use?