# Separating Models from Implementation

**URL:** <https://discourse.openehr.org/t/separating-models-from-implementation/2093>\
**Category:** New to openEHR?\
**Created:** [22 November 2021 13:56 UTC](https://discourse.openehr.org/t/separating-models-from-implementation/2093 "2021-11-22T13:56:51Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![borut.jures](https://discourse.openehr.org/user_avatar/discourse.openehr.org/borut.jures/32/1391_2.png) [@borut.jures](https://discourse.openehr.org/u/borut.jures)\
**Post date:** [22 November 2021 16:36 UTC](https://discourse.openehr.org/t/separating-models-from-implementation/2093/11 "2021-11-22T16:36:36Z")

</div>

> [@ToStupidForOpenEHR](#):
>
> Was thinking [http://json-schema.org/](http://json-schema.org/)

So once you have a Blood pressure archetype (or template - which do you plan to use?) in a JSON file, how would you use it? For the backend, frontend, ETL,…?

* * *

You probably already found these (and other posts):

> [@JSON Schema and OpenAPI: current state, and how to progress](https://discourse.openehr.org/t/json-schema-and-openapi-current-state-and-how-to-progress/1385):
>
> We recently had a discussion on the SEC call about JSON Schema. I was asked to write down the current state and to get the discussion going on how to progress. So, here it is: Several options exist to define a JSON format. Two of the most often used are: JSON Schema OpenAPI Tools for working with Json Schema are widespread. It is very suitable for validation purposes, including built-in support in text-editors. However, with OpenEHRs extensive use of polymorphism, it is not suited for code g…

> [@Did anybody use the json schema for code generation?](https://discourse.openehr.org/t/did-anybody-use-the-json-schema-for-code-generation/1046):
>
> Hi, After spending hours trying to convince various tools/projects to generate source code from the openehr json schemas, I finally gave up. The schemas are truly extensive, a huge amount of work must have gone into these, so thanks a lot to Code24 for the initial effort and all the other contributors who brought the schemas to their current state. Am I the only one who tried to use these in the same way we use XSDs? I’m really fighting the urge to express my feelings about json and its ecosy…

---

_[View the full topic](https://discourse.openehr.org/t/separating-models-from-implementation/2093)._
