ppazos / cabolabs-ehrserver

Open platform to manage and share standardized clinical data, designed by @ppazos at CaboLabs Health Informatics.
https://cabolabs.com
Apache License 2.0
177 stars 110 forks source link

Automatic correction of uploaded template_id #1043

Closed ppazos closed 4 years ago

ppazos commented 4 years ago

If the template_id doesn't comply with the internal format, instead of returning an error, change the format, transforming the text there into snake_case and adding the language from the tempalte and v1 as version. Also keep the original template_id in another field.

This way our template_id format will be for internal management and for referencing from queries.

We need to change the XSD back to the original constraint on the template_id. Also need to do this for openEHR_OPT / CoTand migrate the change to Atomik.