# \#rest-apis

**URL:** https://discourse.openehr.org/tag/rest-apis/6.md

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

---

## [How to set external terminology validation](https://discourse.openehr.org/t/how-to-set-external-terminology-validation/3755)

<div class="topic-metadata">

**Author:** [@Alex\_Paris](https://discourse.openehr.org/u/Alex_Paris)\
**Replies:** 45\
**Last updated:** [14 October 2026 13:55 UTC](https://discourse.openehr.org/t/how-to-set-external-terminology-validation/3755 "2026-10-14T13:55:41Z")

</div>

I’m trying to use external terminology validation, right now there is no validation as I’m able to set any value. The default configuration ( 8. Terminology Validation — EHRbase documentation) the validation.external-ter…

---

## [REST API for these forums?](https://discourse.openehr.org/t/rest-api-for-these-forums/6667)

<div class="topic-metadata">

**Author:** [@Seref](https://discourse.openehr.org/u/Seref)\
**Replies:** 6\
**Last updated:** [11 October 2026 15:06 UTC](https://discourse.openehr.org/t/rest-api-for-these-forums/6667 "2026-10-11T15:06:54Z")

</div>

I think discourse offers a REST API. Do the nice people who are running the forum know if it is enabled? Who do I talk to request access if that’s possible?

---

## [EHR API for VERSIONED\_COMPOSITION - puzzled over identifiers.](https://discourse.openehr.org/t/ehr-api-for-versioned-composition-puzzled-over-identifiers/17185)

<div class="topic-metadata">

**Author:** [@richard.kavanagh](https://discourse.openehr.org/u/richard.kavanagh)\
**Replies:** 5\
**Last updated:** [19 August 2026 16:46 UTC](https://discourse.openehr.org/t/ehr-api-for-versioned-composition-puzzled-over-identifiers/17185 "2026-08-19T16:46:41Z")

</div>

I have been looking at the EHR REST API, specifically around the retrieval of VERSIONED\_COMPOSITION data. The REST API expects these parameters (from the specification). Why does it need both the versioned\_object\_ui…

---

## [Delete COMPOSITION mentions preceding\_version\_uid](https://discourse.openehr.org/t/delete-composition-mentions-preceding-version-uid/17203)

<div class="topic-metadata">

**Author:** [@borut.jures](https://discourse.openehr.org/u/borut.jures)\
**Replies:** 2\
**Last updated:** [16 August 2026 15:31 UTC](https://discourse.openehr.org/t/delete-composition-mentions-preceding-version-uid/17203 "2026-08-16T15:31:25Z")

</div>

Delete COMPOSITION mentions preceding\_version\_uid in the description but it is not used as If-Match request header. If If-Match with preceding\_version\_uid is required, then the Header Parameters section should be added. …

---

## [Use the same parameter names for tag\_key and key in ITEM\_TAG endpoints](https://discourse.openehr.org/t/use-the-same-parameter-names-for-tag-key-and-key-in-item-tag-endpoints/17195)

<div class="topic-metadata">

**Author:** [@borut.jures](https://discourse.openehr.org/u/borut.jures)\
**Replies:** 0\
**Last updated:** [11 August 2026 12:56 UTC](https://discourse.openehr.org/t/use-the-same-parameter-names-for-tag-key-and-key-in-item-tag-endpoints/17195 "2026-08-11T12:56:32Z")

</div>

In Get EHR tags, the query parameters are all prefixed with tag\_ (e.g., tag\_key). In Delete COMPOSITION tags and Delete EHR\_STATUS tags, the parameters are not prefixed (e.g., key). I propose that both key parameters a…

---

## [Posting IMPORTED\_VERSION with CONTRIBUTION](https://discourse.openehr.org/t/posting-imported-version-with-contribution/17180)

<div class="topic-metadata">

**Author:** [@borut.jures](https://discourse.openehr.org/u/borut.jures)\
**Replies:** 2\
**Last updated:** [6 August 2026 12:50 UTC](https://discourse.openehr.org/t/posting-imported-version-with-contribution/17180 "2026-08-06T12:50:35Z")

</div>

In the openEHR REST API, the “Create CONTRIBUTION” is using UPDATE\_VERSION for the versions array payload. The properties for UPDATE\_VERSION represent most of the attributes of ORIGINAL\_VERSION. The question is, how do …

---

## [Should the UPDATE\_VERSION.data in the openEHR REST API be required?](https://discourse.openehr.org/t/should-the-update-version-data-in-the-openehr-rest-api-be-required/17177)

<div class="topic-metadata">

**Author:** [@borut.jures](https://discourse.openehr.org/u/borut.jures)\
**Replies:** 2\
**Last updated:** [6 August 2026 12:48 UTC](https://discourse.openehr.org/t/should-the-update-version-data-in-the-openehr-rest-api-be-required/17177 "2026-08-06T12:48:53Z")

</div>

OpenAPI validation file for UPDATE\_VERSION has the data property as required. I assumed that the data property can be empty for UPDATE\_VERSION.commit\_audit.change\_type=523 (deleted). For example in the case of Delete COM…

---

## [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…

---

## [openEHR REST APIs Release 1.1.0 published](https://discourse.openehr.org/t/openehr-rest-apis-release-1-1-0-published/17129)

<div class="topic-metadata">

**Author:** [@sebastian.iancu](https://discourse.openehr.org/u/sebastian.iancu)\
**Replies:** 9\
**Last updated:** [27 July 2026 12:06 UTC](https://discourse.openehr.org/t/openehr-rest-apis-release-1-1-0-published/17129 "2026-07-27T12:06:19Z")

</div>

The openEHR Specifications Editorial Committee (SEC) has published ITS-REST Release 1.1.0. This is the first minor release since 1.0.3 (2022) and a substantial one. It introduces several new APIs, a major overhaul of t…

---

## [Missing attestation headers for the REST API](https://discourse.openehr.org/t/missing-attestation-headers-for-the-rest-api/5947)

<div class="topic-metadata">

**Author:** [@pablo](https://discourse.openehr.org/u/pablo)\
**Replies:** 2\
**Last updated:** [21 March 2026 18:57 UTC](https://discourse.openehr.org/t/missing-attestation-headers-for-the-rest-api/5947 "2026-03-21T18:57:05Z")

</div>

I was reviewing the REST and common-change control specs, and found there is missing information about how to do an attestation through the REST API. For instance, a POST to …/composition needs some extra headers so the…

---

## [REST API: DELETE /composition have response codes 409 Conflict though 412 Precondition Failed seems more appropriate](https://discourse.openehr.org/t/rest-api-delete-composition-have-response-codes-409-conflict-though-412-precondition-failed-seems-more-appropriate/11747)

<div class="topic-metadata">

**Author:** [@pablo](https://discourse.openehr.org/u/pablo)\
**Replies:** 0\
**Last updated:** [10 February 2026 16:03 UTC](https://discourse.openehr.org/t/rest-api-delete-composition-have-response-codes-409-conflict-though-412-precondition-failed-seems-more-appropriate/11747 "2026-02-10T16:03:28Z")

</div>

Quick question: when the previous version of the object (e.g. COMPOSITION) is not the last, we have a 409 Conflict in the spec, though that doesn’t seems to be conflict but a precondition for the operation for deleting a…

---

## [Building an open CIS — Article Series on Implementing a Minimal CIS with EHRBase](https://discourse.openehr.org/t/building-an-open-cis-article-series-on-implementing-a-minimal-cis-with-ehrbase/11690)

<div class="topic-metadata">

**Author:** [@platzhersh](https://discourse.openehr.org/u/platzhersh)\
**Replies:** 3\
**Last updated:** [2 February 2026 09:28 UTC](https://discourse.openehr.org/t/building-an-open-cis-article-series-on-implementing-a-minimal-cis-with-ehrbase/11690 "2026-02-02T09:28:58Z")

</div>

Hi there, I’ve been documenting my experience building a minimal Clinical Information System on EHRBase, and wanted to share the resulting article series with the community. Repository: github.com/platzhersh/open-cis T…

---

## [Template versioning requirements in CDRs](https://discourse.openehr.org/t/template-versioning-requirements-in-cdrs/6657)

<div class="topic-metadata">

**Author:** [@ian.mcnicoll](https://discourse.openehr.org/u/ian.mcnicoll)\
**Replies:** 5\
**Last updated:** [30 January 2026 14:56 UTC](https://discourse.openehr.org/t/template-versioning-requirements-in-cdrs/6657 "2026-01-30T14:56:53Z")

</div>

As we transition to ADL2, and update the REST API, there are a couple of issues that are arising with template-version handling in CDRs. What is changing… templateIds will become fully versioned, namespaces, 'technic…

---

## [openEHR MCP Server - a plugin to connect LLMs with CDR's](https://discourse.openehr.org/t/openehr-mcp-server-a-plugin-to-connect-llms-with-cdrs/6869)

<div class="topic-metadata">

**Author:** [@odeak](https://discourse.openehr.org/u/odeak)\
**Replies:** 22\
**Last updated:** [11 January 2026 08:00 UTC](https://discourse.openehr.org/t/openehr-mcp-server-a-plugin-to-connect-llms-with-cdrs/6869 "2026-01-11T08:00:08Z")

</div>

Dear openEHR community, I would like to announce an open-source Model Context Protocol (MCP) server for openEHR that I developed as part of my learning journey at @Sidharth\_Ramesh 's excellent openEHR bootcamp: MCP …

---

## [new release of openEHRTool](https://discourse.openehr.org/t/new-release-of-openehrtool/11663)

<div class="topic-metadata">

**Author:** [@surfer](https://discourse.openehr.org/u/surfer)\
**Replies:** 0\
**Last updated:** [2 January 2026 18:29 UTC](https://discourse.openehr.org/t/new-release-of-openehrtool/11663 "2026-01-02T18:29:24Z")

</div>

At GitHub - crs4/openEHRTool-v2: New version of openEHRTool completely rewritten you can find the new release of the openEHRTool which is a free open source frontend developed at CRS4 for EHRBase. It has all the user and…

---

## [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 …

---

## [openEHR Postman workspace](https://discourse.openehr.org/t/openehr-postman-workspace/6738)

<div class="topic-metadata">

**Author:** [@joostholslag](https://discourse.openehr.org/u/joostholslag)\
**Replies:** 3\
**Last updated:** [2 May 2025 06:09 UTC](https://discourse.openehr.org/t/openehr-postman-workspace/6738 "2025-05-02T06:09:22Z")

</div>

This public postman workspace is super useful!! I think this deserves more attention and promotion in the community. It’s another example of lowering the barrier of entry. I think we could add it to the ITS REST API s…

---

## [jBPM as backend for openEHR-triggered AI](https://discourse.openehr.org/t/jbpm-as-backend-for-openehr-triggered-ai/6649)

<div class="topic-metadata">

**Author:** [@C-NLTX](https://discourse.openehr.org/u/C-NLTX)\
**Replies:** 2\
**Last updated:** [11 April 2025 08:43 UTC](https://discourse.openehr.org/t/jbpm-as-backend-for-openehr-triggered-ai/6649 "2025-04-11T08:43:07Z")

</div>

Hello, Community! Those interested in embedding AI callouts in openEHR may find this useful: Health AI Suite for OpenEMR (NB: a possible template for openEHR) is a collection of plugins added in various parts of OpenEMR …

---

## [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)

<div class="topic-metadata">

**Author:** [@pieterbos](https://discourse.openehr.org/u/pieterbos)\
**Replies:** 40\
**Last updated:** [8 April 2025 04:46 UTC](https://discourse.openehr.org/t/json-schema-and-openapi-current-state-and-how-to-progress/1385 "2025-04-08T04:46:54Z")

</div>

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 form…

---

## [Demographics api](https://discourse.openehr.org/t/demographics-api/6552)

<div class="topic-metadata">

**Author:** [@joostholslag](https://discourse.openehr.org/u/joostholslag)\
**Replies:** 1\
**Last updated:** [14 March 2025 13:39 UTC](https://discourse.openehr.org/t/demographics-api/6552 "2025-03-14T13:39:44Z")

</div>

What’s the status of the demographics rest-api? I notice there’s an OpenAPI description in the SPEC. But it’s not listed on the ITS-REST page of overview spec. openEHR - REST API specifications (ITS-REST) Component - 1.0…

---

## [Public Test Servers](https://discourse.openehr.org/t/public-test-servers/2812)

<div class="topic-metadata">

**Author:** [@Paco\_Novillo](https://discourse.openehr.org/u/Paco_Novillo)\
**Replies:** 29\
**Last updated:** [5 February 2025 11:50 UTC](https://discourse.openehr.org/t/public-test-servers/2812 "2025-02-05T11:50:50Z")

</div>

Hi all, I am new to openEHR and I was wondering if there is any public online openEHR server that implementers can use for testing purpose. I am particularly interested in testing REST APIs. An online EHRBase or EHRSer…

---

## [How to delete templates?](https://discourse.openehr.org/t/how-to-delete-templates/6045)

<div class="topic-metadata">

**Author:** [@Btalex99](https://discourse.openehr.org/u/Btalex99)\
**Replies:** 10\
**Last updated:** [30 January 2025 09:06 UTC](https://discourse.openehr.org/t/how-to-delete-templates/6045 "2025-01-30T09:06:53Z")

</div>

Following the guide, I uploaded a template to my local server. Now I would like to delete it but I can’t find the delete on the Restapi.

---

## [Directory folder in xml format](https://discourse.openehr.org/t/directory-folder-in-xml-format/6061)

<div class="topic-metadata">

**Author:** [@surfer](https://discourse.openehr.org/u/surfer)\
**Replies:** 15\
**Last updated:** [18 January 2025 12:18 UTC](https://discourse.openehr.org/t/directory-folder-in-xml-format/6061 "2025-01-18T12:18:58Z")

</div>

Hi, I can create a directory in json and post it with success (in EHRBase) but I cannot write one in xml that works. Does anyone have a xml directory folder to share ? I made several unsuccessful attempts at guessing …

---

## [Add a composition to a folder via openEHR REST API](https://discourse.openehr.org/t/add-a-composition-to-a-folder-via-openehr-rest-api/4388)

<div class="topic-metadata">

**Author:** [@ian.mcnicoll](https://discourse.openehr.org/u/ian.mcnicoll)\
**Replies:** 8\
**Last updated:** [12 September 2024 05:59 UTC](https://discourse.openehr.org/t/add-a-composition-to-a-folder-via-openehr-rest-api/4388 "2024-09-12T05:59:26Z")

</div>

Sorry I’m being dumb but I can see a way to allocate a composition to a folder in the REST API - help?

---

## [openEHR-tool](https://discourse.openehr.org/t/openehr-tool/3108)

<div class="topic-metadata">

**Author:** [@surfer](https://discourse.openehr.org/u/surfer)\
**Replies:** 44\
**Last updated:** [9 September 2024 06:43 UTC](https://discourse.openehr.org/t/openehr-tool/3108 "2024-09-09T06:43:19Z")

</div>

We at crs4 have created a simple GUI for EHRBase. The project still in beta is at the following url: It has most of the main methods from the openEHR API specification.I hope to extend it to other backends. Enjoy it

---

## [Query About openEHR Structure for Managing Multiple Patients](https://discourse.openehr.org/t/query-about-openehr-structure-for-managing-multiple-patients/5664)

<div class="topic-metadata">

**Author:** [@Amir\_Sohail](https://discourse.openehr.org/u/Amir_Sohail)\
**Replies:** 2\
**Last updated:** [5 September 2024 13:36 UTC](https://discourse.openehr.org/t/query-about-openehr-structure-for-managing-multiple-patients/5664 "2024-09-05T13:36:07Z")

</div>

Hello everyone, I’m new to openEHR and have a question regarding its structure. In openEHR, is it necessary to create one EHR per patient, with each EHR including all different compositions (such as observations, encoun…

---

## [204 No content while creating EHR ID](https://discourse.openehr.org/t/204-no-content-while-creating-ehr-id/3817)

<div class="topic-metadata">

**Author:** [@Aravindh](https://discourse.openehr.org/u/Aravindh)\
**Replies:** 7\
**Last updated:** [5 September 2024 02:25 UTC](https://discourse.openehr.org/t/204-no-content-while-creating-ehr-id/3817 "2024-09-05T02:25:48Z")

</div>

Hey all, When i am trying to create EHR id using postman i am getting the following error 204 No content. I have attached a picture below for your reference. Kindly let me know why i am facing this issue. Best Reg…

---

## [admin api set up](https://discourse.openehr.org/t/admin-api-set-up/5640)

<div class="topic-metadata">

**Author:** [@anandaashish74711](https://discourse.openehr.org/u/anandaashish74711)\
**Replies:** 2\
**Last updated:** [31 August 2024 13:44 UTC](https://discourse.openehr.org/t/admin-api-set-up/5640 "2024-08-31T13:44:19Z")

</div>

Hi everyone, I’m new to EHRbase and have been working on setting up version 0.16.5 on my local environment using Docker. I’ve successfully set up the EHRbase and PostgreSQL services using docker-compose, with the necessa…

---

## [Query information stored in a link](https://discourse.openehr.org/t/query-information-stored-in-a-link/5611)

<div class="topic-metadata">

**Author:** [@Cartwright](https://discourse.openehr.org/u/Cartwright)\
**Replies:** 1\
**Last updated:** [23 August 2024 15:05 UTC](https://discourse.openehr.org/t/query-information-stored-in-a-link/5611 "2024-08-23T15:05:37Z")

</div>

Dear all, I want to retrieve the target item stored in a link. Using the following AQL query: SELECT c/links FROM EHR e CONTAINS COMPOSITION c I could output the list of links (containing one link only): \[ \[ …

[Next page](https://discourse.openehr.org/tag/rest-apis/6.md?match_all_tags=true&page=1&tags%5B%5D=rest-apis)
