When trying POST an OPT template to EHRBase via the openEHR-tool, I got an error message (Bad Request): Supplied template has nil or empty description.
Results
failure 400
{'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers', 'X-Content-Type-Options': 'nosniff', 'X-XSS-Protection': '0', 'Cache-Control': 'no-cache, no-store, max-age=0, must-revalidate', 'Pragma': 'no-cache', 'Expires': '0', 'X-Frame-Options': 'DENY', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Date': 'Wed, 18 Sep 2024 02:02:03 GMT', 'Connection': 'close'}
{"error":"Bad Request","message":"Supplied template has nil or empty description"}
The OPT template is an export file from the Archetype Designer. The template passes the default validation.
Why such an error message? Just because the fields of the template description, such as keywords, purpose, use and misuse, are empty? I checked this potential reason. All these fields have been populated. But I still got the same error message.
Thanks.