# Platform

**URL:** https://discourse.openehr.org/c/implem/platform-implem/7.md

[Latest](https://discourse.openehr.org/latest.md) · [Categories](https://discourse.openehr.org/categories.md) · [Tags](https://discourse.openehr.org/tags.md)

---

## [About the Platform category](https://discourse.openehr.org/t/about-the-platform-category/18)

<div class="topic-metadata">

**Author:** [@thomas.beale](https://discourse.openehr.org/u/thomas.beale)\
**Replies:** 0

</div>

Discussions on openEHR platform (back-end, services) implementation. REST APIs spec; Abstract platform spec (PIM) Web archive of openehr-implementers mailing list.

---

## [EHRbase not supporting "persistent" or "episodic" COMPOSITION.category?](https://discourse.openehr.org/t/ehrbase-not-supporting-persistent-or-episodic-composition-category/17360)

<div class="topic-metadata">

**Author:** [@HHeiser](https://discourse.openehr.org/u/HHeiser)\
**Replies:** 9\
**Last updated:** [8 October 2026 12:55 UTC](https://discourse.openehr.org/t/ehrbase-not-supporting-persistent-or-episodic-composition-category/17360 "2026-10-08T12:55:34Z")

</div>

Hello, I want to ask whether EHRbase supports COMPOSITION.category other than 433::event? This came up while I was testing the EHR Merge API endpoint, which mentions the keyword composition\_merge: PERSISTENT, presumabl…

---

## [FerroEHR – a new Rust-based openEHR CDR, looking for testers](https://discourse.openehr.org/t/ferroehr-a-new-rust-based-openehr-cdr-looking-for-testers/17230)

<div class="topic-metadata">

**Author:** [@rubentalstra](https://discourse.openehr.org/u/rubentalstra)\
**Replies:** 40\
**Last updated:** [28 September 2026 10:47 UTC](https://discourse.openehr.org/t/ferroehr-a-new-rust-based-openehr-cdr-looking-for-testers/17230 "2026-09-28T10:47:02Z")

</div>

Hi everyone, For the past months I’ve been working on a CDR written in Rust, called FerroEHR. It started as a deep dive into EHRbase to understand how a CDR works from the inside, and somewhere along the way it turned…

---

## [Performance of an openEHR CDR based on a graph database](https://discourse.openehr.org/t/performance-of-an-openehr-cdr-based-on-a-graph-database/17224)

<div class="topic-metadata">

**Author:** [@borut.jures](https://discourse.openehr.org/u/borut.jures)\
**Replies:** 49\
**Last updated:** [19 September 2026 08:50 UTC](https://discourse.openehr.org/t/performance-of-an-openehr-cdr-based-on-a-graph-database/17224 "2026-09-19T08:50:53Z")

</div>

@erik.sundvall just posted another great opportunity to join their team to build a new openEHR CDR (Join or comment CDR Catalyst initiative from Karolinska - #5 by erik.sundvall). His Catalyst posts and document piqued …

---

## [OPT Versioning on CDRs, esp. EHRbase](https://discourse.openehr.org/t/opt-versioning-on-cdrs-esp-ehrbase/17111)

<div class="topic-metadata">

**Author:** [@HHeiser](https://discourse.openehr.org/u/HHeiser)\
**Replies:** 24\
**Last updated:** [18 August 2026 08:00 UTC](https://discourse.openehr.org/t/opt-versioning-on-cdrs-esp-ehrbase/17111 "2026-08-18T08:00:30Z")

</div>

We are investigating whether CDRs support versioning or auditing for OPTs, for example who uploaded or replaced a template and when; similar to how VERSIONED\_OBJECT works for compositions. This seems relevant when a tem…

---

## [Inherited VERSION.uid to be copied to COMPOSITION.uid](https://discourse.openehr.org/t/inherited-version-uid-to-be-copied-to-composition-uid/17183)

<div class="topic-metadata">

**Author:** [@borut.jures](https://discourse.openehr.org/u/borut.jures)\
**Replies:** 0\
**Last updated:** [6 August 2026 16:19 UTC](https://discourse.openehr.org/t/inherited-version-uid-to-be-copied-to-composition-uid/17183 "2026-08-06T16:19:29Z")

</div>

In COMPOSITION Class is a note: It is strongly recommended that the inherited attribute uid be populated in Compositions, using the UID copied from the object\_id() of the uid field of the enclosing VERSION object.For e…

---

## [New major archetype version and AQL queries](https://discourse.openehr.org/t/new-major-archetype-version-and-aql-queries/17163)

<div class="topic-metadata">

**Author:** [@borut.jures](https://discourse.openehr.org/u/borut.jures)\
**Replies:** 5\
**Last updated:** [31 July 2026 12:30 UTC](https://discourse.openehr.org/t/new-major-archetype-version-and-aql-queries/17163 "2026-07-31T12:30:53Z")

</div>

(Copied from another thread) Adding a new major archetype/OPT version causes issues you described regarding AQL. Adding a new OPT version to all AQL queries is one way to handle this (it doesn’t require data migration). …

---

## [Are ITEM\_TAGs wrapped in CONTRIBUTIONs?](https://discourse.openehr.org/t/are-item-tags-wrapped-in-contributions/17168)

<div class="topic-metadata">

**Author:** [@borut.jures](https://discourse.openehr.org/u/borut.jures)\
**Replies:** 3\
**Last updated:** [31 July 2026 11:28 UTC](https://discourse.openehr.org/t/are-item-tags-wrapped-in-contributions/17168 "2026-07-31T11:28:18Z")

</div>

Specifications were written before ITEM\_TAGs were introduce so it is natural that the CONTRIBUTION mostly mentions that COMPOSITION, EHR\_STATUS, FOLDER are committed with it. In other places specifications mention that C…

---

## [Metadata in REST resources](https://discourse.openehr.org/t/metadata-in-rest-resources/17127)

<div class="topic-metadata">

**Author:** [@pablo](https://discourse.openehr.org/u/pablo)\
**Replies:** 1\
**Last updated:** [22 July 2026 20:03 UTC](https://discourse.openehr.org/t/metadata-in-rest-resources/17127 "2026-07-22T20:03:24Z")

</div>

While working with EHR and patient (PERSON/ROLE) merge processes I have found the current resources based on the RM a little restrictive. While we can have versioning info embedded in the LOCATABLE.uid, there is no nati…

---

## [CONTRIBUTION \`UPDATE\_AUDIT.change\_type\` in REST API vs vendor implementations](https://discourse.openehr.org/t/contribution-update-audit-change-type-in-rest-api-vs-vendor-implementations/16928)

<div class="topic-metadata">

**Author:** [@HHeiser](https://discourse.openehr.org/u/HHeiser)\
**Replies:** 17\
**Last updated:** [14 June 2026 17:46 UTC](https://discourse.openehr.org/t/contribution-update-audit-change-type-in-rest-api-vs-vendor-implementations/16928 "2026-06-14T17:46:52Z")

</div>

Dear community, We are currently working on a TypeScript SDK that should abstract over differences between openEHR CDR vendors. While implementing the Create CONTRIBUTION endpoint, we ran into a mismatch where we are no…

---

## [OAuth2: at+jwt not allowed](https://discourse.openehr.org/t/oauth2-at-jwt-not-allowed/16979)

<div class="topic-metadata">

**Author:** [@faronsin](https://discourse.openehr.org/u/faronsin)\
**Replies:** 0\
**Last updated:** [8 June 2026 13:27 UTC](https://discourse.openehr.org/t/oauth2-at-jwt-not-allowed/16979 "2026-06-08T13:27:52Z")

</div>

Hello, We have deployed EHRBase with OAuth2 authentication. When making requests via Postman with an access token, we encounter the following error: Bearer error="invalid\_token", error\_description="An error occurred wh…

---

## [String parameters on AQL queries](https://discourse.openehr.org/t/string-parameters-on-aql-queries/16823)

<div class="topic-metadata">

**Author:** [@yampeku](https://discourse.openehr.org/u/yampeku)\
**Replies:** 3\
**Last updated:** [15 May 2026 13:01 UTC](https://discourse.openehr.org/t/string-parameters-on-aql-queries/16823 "2026-05-15T13:01:56Z")

</div>

I was trying to do a call to a simple stored query based on the EHR\_STATUS SELECT c/uid/value as composition\_id FROM EHR e CONTAINS COMPOSITION c WHERE e/ehr\_status/subject/external\_ref/id/value = $patient Then laun…

---

## [Which aql is more optimized and faster](https://discourse.openehr.org/t/which-aql-is-more-optimized-and-faster/16799)

<div class="topic-metadata">

**Author:** [@Dileep\_V\_S](https://discourse.openehr.org/u/Dileep_V_S)\
**Replies:** 0\
**Last updated:** [4 May 2026 13:51 UTC](https://discourse.openehr.org/t/which-aql-is-more-optimized-and-faster/16799 "2026-05-04T13:51:16Z")

</div>

I am trying to find the most optimum structure for AQL. Among the two options below, which performs better in EHRBase? In the first, CONTAINS is defined only upto archetypes and in the second, the containment is upto EL…

---

## [Resolved-Problem filtering on links using WHERE in AQL in EHRBase](https://discourse.openehr.org/t/resolved-problem-filtering-on-links-using-where-in-aql-in-ehrbase/16797)

<div class="topic-metadata">

**Author:** [@Dileep\_V\_S](https://discourse.openehr.org/u/Dileep_V_S)\
**Replies:** 3\
**Last updated:** [4 May 2026 13:31 UTC](https://discourse.openehr.org/t/resolved-problem-filtering-on-links-using-where-in-aql-in-ehrbase/16797 "2026-05-04T13:31:56Z")

</div>

Hi, I have added the following composition that contains links to uids of problem/diagnosis entries in another composition { "ctx/language": "en", "ctx/territory": "IN", "ctx/time": "{{$isoTimestamp}}", "ctx/setting": …

---

## [FLAT Contributions](https://discourse.openehr.org/t/flat-contributions/11966)

<div class="topic-metadata">

**Author:** [@HHeiser](https://discourse.openehr.org/u/HHeiser)\
**Replies:** 10\
**Last updated:** [28 April 2026 08:08 UTC](https://discourse.openehr.org/t/flat-contributions/11966 "2026-04-28T08:08:56Z")

</div>

We are looking for ways to use simplified formats (FLAT or STRUCTURED) on a contribution level, because we want to commit several compositions in the same contribution. The specific use case is described here (TLDR: we m…

---

## [Ehrbase Performance Issue](https://discourse.openehr.org/t/ehrbase-performance-issue/11953)

<div class="topic-metadata">

**Author:** [@Mancini](https://discourse.openehr.org/u/Mancini)\
**Replies:** 2\
**Last updated:** [20 April 2026 09:49 UTC](https://discourse.openehr.org/t/ehrbase-performance-issue/11953 "2026-04-20T09:49:28Z")

</div>

We are using EHRbase (v2.5) in production with approximately 150 GB of clinical data. Infrastructure EHRbase (Kubernetes): Replicas: 3 CPU: 2–4 cores per pod Memory: 4–16 GB per pod Database: CPU: 8 cores …

---

## [Swiss Vaccination Record Showcase: openEHR and FHIR on an open platform](https://discourse.openehr.org/t/swiss-vaccination-record-showcase-openehr-and-fhir-on-an-open-platform/11866)

<div class="topic-metadata">

**Author:** [@JPMesserli](https://discourse.openehr.org/u/JPMesserli)\
**Replies:** 3\
**Last updated:** [6 April 2026 08:27 UTC](https://discourse.openehr.org/t/swiss-vaccination-record-showcase-openehr-and-fhir-on-an-open-platform/11866 "2026-04-06T08:27:54Z")

</div>

openEHR Switzerland is preparing a prototype showcase for the GovTech Hackathon 2026. The aim is to demonstrate how FHIR-based exchange and openEHR-based longitudinal persistence can work together on an open platform, us…

---

## [EHRbase DV\_SCALE support](https://discourse.openehr.org/t/ehrbase-dv-scale-support/11881)

<div class="topic-metadata">

**Author:** [@Koray\_Atalag](https://discourse.openehr.org/u/Koray_Atalag)\
**Replies:** 8\
**Last updated:** [2 April 2026 08:15 UTC](https://discourse.openehr.org/t/ehrbase-dv-scale-support/11881 "2026-04-02T08:15:33Z")

</div>

I’m quite surprised that this is not supported, yet requests from 2021 tickets (now closed without fixing it). Underpinning Archie library supports it as this data type is part of the RM spec. This is particularly import…

---

## [Broken link "https://docs.ehrbase.org/en/latest/03\_development/02\_testing/index.html" on https://github.com/ehrbase/integration-tests](https://discourse.openehr.org/t/broken-link-https-docs-ehrbase-org-en-latest-03-development-02-testing-index-html-on-https-github-com-ehrbase-integration-tests/11816)

<div class="topic-metadata">

**Author:** [@Christopher\_Keith](https://discourse.openehr.org/u/Christopher_Keith)\
**Replies:** 1\
**Last updated:** [18 March 2026 06:38 UTC](https://discourse.openehr.org/t/broken-link-https-docs-ehrbase-org-en-latest-03-development-02-testing-index-html-on-https-github-com-ehrbase-integration-tests/11816 "2026-03-18T06:38:28Z")

</div>

Folks: I’m not sure this is the right place to post this. Please let me know of a better place. I’ve been able to build ehrbase, run ‘mvn package’ and run ‘mvn test’ successfully. When I tried to read about the integra…

---

## [How to use null\_flavor in the flat format?](https://discourse.openehr.org/t/how-to-use-null-flavor-in-the-flat-format/1196)

<div class="topic-metadata">

**Author:** [@Sidharth\_Ramesh](https://discourse.openehr.org/u/Sidharth_Ramesh)\
**Replies:** 19\
**Last updated:** [4 February 2026 19:38 UTC](https://discourse.openehr.org/t/how-to-use-null-flavor-in-the-flat-format/1196 "2026-02-04T19:38:59Z")

</div>

My template uses the Glasgow Coma scale. The Ordinals in the Glasgow Coma scale archetype have a value and a null\_flavor within the ELEMENT. There seems to be a lot of different paths that are being generated for these…

---

## [POST contribution with FLAT composition on EHRBase](https://discourse.openehr.org/t/post-contribution-with-flat-composition-on-ehrbase/11643)

<div class="topic-metadata">

**Author:** [@jbuch](https://discourse.openehr.org/u/jbuch)\
**Replies:** 3\
**Last updated:** [12 December 2025 11:23 UTC](https://discourse.openehr.org/t/post-contribution-with-flat-composition-on-ehrbase/11643 "2025-12-12T11:23:40Z")

</div>

I am trying to POST a contribution with a composition in FLAT format using the EHRBase API. It seems there are two possibilities: “Native”: Directly using the contribution endpoint with the data in FLAT format (seems t…

---

## [EHRbase API for retrieving the release version of the EHRbase Sandbox](https://discourse.openehr.org/t/ehrbase-api-for-retrieving-the-release-version-of-the-ehrbase-sandbox/11636)

<div class="topic-metadata">

**Author:** [@emmanuel.eschmann](https://discourse.openehr.org/u/emmanuel.eschmann)\
**Replies:** 2\
**Last updated:** [9 December 2025 07:31 UTC](https://discourse.openehr.org/t/ehrbase-api-for-retrieving-the-release-version-of-the-ehrbase-sandbox/11636 "2025-12-09T07:31:59Z")

</div>

Is there an endpoint for retrieving the release version of the EHRbase Sandbox? The endpoint https://sandkiste.ehrbase.org/ehrbase/rest/admin/status only returns a status of ‘200 OK’ and the following message: ‘EHRbase …

---

## [What happens once the Pulse/Heart beat archetype is replaced?](https://discourse.openehr.org/t/what-happens-once-the-pulse-heart-beat-archetype-is-replaced/11434)

<div class="topic-metadata">

**Author:** [@borut.jures](https://discourse.openehr.org/u/borut.jures)\
**Replies:** 48\
**Last updated:** [2 October 2025 14:45 UTC](https://discourse.openehr.org/t/what-happens-once-the-pulse-heart-beat-archetype-is-replaced/11434 "2025-10-02T14:45:54Z")

</div>

Today @siljelb commented on the Pulse/heart beat archetype: And previous discussion: Pulse and heart beat conundrum Can we use this as an example to prepare for similar breaking changes when an archetype is significan…

---

## [AQL query with query\_parameters and GET method](https://discourse.openehr.org/t/aql-query-with-query-parameters-and-get-method/4940)

<div class="topic-metadata">

**Author:** [@surfer](https://discourse.openehr.org/u/surfer)\
**Replies:** 7\
**Last updated:** [23 June 2025 11:36 UTC](https://discourse.openehr.org/t/aql-query-with-query-parameters-and-get-method/4940 "2025-06-23T11:36:40Z")

</div>

Hello, Let’s consider a query like this one: select c/uid/value, e/ehr\_id/value from EHR e contains COMPOSITION c where c/archetype\_details/template\_id/value = $tid with query\_parameters={“tid”:“template1”} In EHRBas…

---

## [Oauth2 Ehrbase](https://discourse.openehr.org/t/oauth2-ehrbase/4796)

<div class="topic-metadata">

**Author:** [@Mathijs\_Noordzij](https://discourse.openehr.org/u/Mathijs_Noordzij)\
**Replies:** 4\
**Last updated:** [20 June 2025 17:45 UTC](https://discourse.openehr.org/t/oauth2-ehrbase/4796 "2025-06-20T17:45:12Z")

</div>

Hi all, Does someone has recent experience, setting up Oauth2 with keycloak, locally for Ehrbase? I followed the docs, however they have not been updated a while. When I try to run an api, it returns a connection refus…

---

## [Error in EHRbase when using feeder\_audit within DV\_TEXT element](https://discourse.openehr.org/t/error-in-ehrbase-when-using-feeder-audit-within-dv-text-element/6855)

<div class="topic-metadata">

**Author:** [@HHeiser](https://discourse.openehr.org/u/HHeiser)\
**Replies:** 4\
**Last updated:** [22 May 2025 14:10 UTC](https://discourse.openehr.org/t/error-in-ehrbase-when-using-feeder-audit-within-dv-text-element/6855 "2025-05-22T14:10:04Z")

</div>

Our application provides the user with the option to format some freetext fields, currently the formatting is done with RTF. @ian.mcnicoll 's feedback was that DV\_TEXT/value should be as human-readable and accessible as …

---

## [ADL2 support in EHRBase](https://discourse.openehr.org/t/adl2-support-in-ehrbase/6827)

<div class="topic-metadata">

**Author:** [@surfer](https://discourse.openehr.org/u/surfer)\
**Replies:** 2\
**Last updated:** [15 May 2025 14:27 UTC](https://discourse.openehr.org/t/adl2-support-in-ehrbase/6827 "2025-05-15T14:27:14Z")

</div>

I jump quick to the question: Are adl2 templates supported in EHRBase? From what I have seen in latest ehrbase docs adl2 templates seems to be supported: But when I tried the endpoint feeding an adl2 template (hopefu…

---

## [Best Database for openEHR](https://discourse.openehr.org/t/best-database-for-openehr/117)

<div class="topic-metadata">

**Author:** [@Bert\_Verhees](https://discourse.openehr.org/u/Bert_Verhees)\
**Replies:** 86\
**Last updated:** [28 January 2025 00:20 UTC](https://discourse.openehr.org/t/best-database-for-openehr/117 "2025-01-28T00:20:36Z")

</div>

Which database would you advise for OpenEhr, and is there documentation about more details for that choice?

---

## [ehrBASE datamodel for change control](https://discourse.openehr.org/t/ehrbase-datamodel-for-change-control/6737)

<div class="topic-metadata">

**Author:** [@joostholslag](https://discourse.openehr.org/u/joostholslag)\
**Replies:** 9\
**Last updated:** [28 April 2025 14:40 UTC](https://discourse.openehr.org/t/ehrbase-datamodel-for-change-control/6737 "2025-04-28T14:40:42Z")

</div>

I’m trying to understand how ehrBASE implements the change control specification. Since every change in a COMPOSTION in openEHR is a new VERSION\<COMPOSITION\> in a VERSIONED\_OBJECT\<COMPOSITION\>, I struggle to understand …

---

## [EhrBase DB schema definition](https://discourse.openehr.org/t/ehrbase-db-schema-definition/4249)

<div class="topic-metadata">

**Author:** [@thomas.beale](https://discourse.openehr.org/u/thomas.beale)\
**Replies:** 12\
**Last updated:** [26 April 2025 12:46 UTC](https://discourse.openehr.org/t/ehrbase-db-schema-definition/4249 "2025-04-26T12:46:12Z")

</div>

I was trying to find the DB schema definition for Postgres in EhrBase in the EhrBase code base . So far I have not found it - can anyone provide a pointer? Ping @birger.haarbrandt

[Next page](https://discourse.openehr.org/c/implem/platform-implem/7.md?page=1)
