imi-ms / MoPat

Mobile Patient Survey (MoPat) is a Java based web application to create, distribute, complete and export medical questionnaires.
Apache License 2.0
7 stars 1 forks source link

Importing MoPat ODM not working #39

Closed ywarnecke closed 1 month ago

ywarnecke commented 1 month ago

MoPat internally uses an ODM implementation that creates a valid ODM file with a namespace "xmlns:odm=..."

That causes every element to be prefixed with "". Since we are manually processing the document to determine the filetype, we currently only search for the element "ODM".

In order to support our own filetype, we should also search for "odm:ODM" in the document nodes.

ywarnecke commented 1 month ago

Added check to also try "odm:ODM" in the document, if "ODM" did not have any results.