On 12/11/2018 16:04, Bert Verhees wrote:
On 12-11-18 16:13, Thomas Beale wrote:
you can, it's called a Template Data Schema (TDS), and is generated from the Template Designer and I think the new Marand ADL-designer. Its intended exactly for checking data sets...

Of course you can write any validation tool you want,  but you cannot do this and still conform to the XML Schema standard, that is why Schematron became important. With Schematron you can validate anything. As I wrote this morning, LinkEhr also generates Schematron for validation purpose.

this already works (for nearly 10 years) and it validates against the XML schema standard. What it doesn't do is validate everything you want to validate, i.e. not all things in the archetypes. But it's good enough most of the time.

To do things properly, I agree, you would probably use Schematron + XSD, or personally I have always thought that Schematron + Relax-NG would be better.


whether this is the real requirement being talked about here may be another question.

You are right, it was not what was asked, still I thought it would be interesting for others to know that there is a JSON Schematron parser (instead of an XML Schematron-parser), which can be used to validate JSON OpenEhr-datasets against archetypes/templates.

that might be an interesting thing to have in the openEHR toolkit. We are just now revising and re-organising all the openEHR XSDs, and also adding in some JSON-schemas. Any related artefacts that anyone wants to contribute, or fragments that could be used in something larger would be appreciated - it will all get posted in the specifications-ITS-XML git repo under the usual CC licence.

--
Thomas Beale
Principal, Ars Semantica <http://www.arssemantica.com>
Consultant, ABD Project, Intermountain Healthcare <https://intermountainhealthcare.org/> Management Board, Specifications Program Lead, openEHR Foundation <http://www.openehr.org> Chartered IT Professional Fellow, BCS, British Computer Society <http://www.bcs.org/category/6044> Health IT blog <http://wolandscat.net/> | Culture blog <http://wolandsothercat.net/> | The Objective Stance <https://theobjectivestance.net/>
_______________________________________________
openEHR-technical mailing list
openEHR-technical@lists.openehr.org
http://lists.openehr.org/mailman/listinfo/openehr-technical_lists.openehr.org

Reply via email to