# Create new endpoints in rest with OpenEHR **Category:** [Platform](https://discourse.openehr.org/c/platform-implem/7) **Created:** 2022-03-07 08:20 UTC **Views:** 1999 **Replies:** 45 **URL:** https://discourse.openehr.org/t/create-new-endpoints-in-rest-with-openehr/2414 --- ## Post #1 by @rafotis2 Good morning to all, I am a new user in OpenEHR and in EHRBase. I would really appreciate your help and I'm sure you can help me. Nice to meet you all. I apologize if I ask any basic or stupid questions. I have done the following first step: Run EHRbase + DB with Docker-Compose https://ehrbase.readthedocs.io/en/latest/03_development/04_docker_images/01_ehrbase/02_use_image/index.html#run-ehrbase-db-with-docker-compose Afterwards, I have configured the following SDK project: https://github.com/ehrbase/openEHR_SDK I have the 2 previous projects running and now I would like to do a very basic test. I want to do the following. I would like to create 3 or 4 different endpoints: 1- EndPoint to save a patient in my Database 2- EndPoint to update an existing patient in my Database 3- EndPoint to get all existing patients in my database 4- Endpoint to delete a patient in my database. This is a very simple example but I want to see how all these technologies work together. Please can you help me with this simple example? I will greatly appreciate all your help. Many thanks. Kind regards, Rafael Gomez --- ## Post #2 by @birger.haarbrandt Hi Rafael, welcome to the forum! Just to make sure I understand your request: are you referring to the creation of an EHR object for a patient? In openEHR, we are not working directly with an equivalent to the FHIR Patient Resource but create an EHR object as the "bucket"/root object to put compositions (clinical entries) into. Given this understanding: Have you seen this part of the documentation? https://ehrbase.readthedocs.io/en/latest/04_sdk/02_reference/01_client_module/02_ehr/index.html This covers (1) and (2) To get all patients (3), you can use the AQL endpoints https://ehrbase.readthedocs.io/en/latest/04_sdk/02_reference/01_client_module/05_aql/index.html and do a query like "SELECT e/ehr_status FROM EHR e" to get all EHR objects. For some reason I cannot remember (maybe @thomas.beale, @sebastian.iancu oder @Seref can help, my guess it is for medico-legal reasons), there is no REST endpoint to "soft" delete an EHR. However, EHRbase provides a physical deletion of EHRs in test systems. However, this is not yet encapsulated in the SDK. https://ehrbase.readthedocs.io/en/latest/03_development/07_admin/01_ehr/index.html#delete-admin-ehr-ehr-id --- ## Post #3 by @Seref [quote="birger.haarbrandt, post:2, topic:2414"] my guess it is for medico-legal reasons), there is no REST endpoint to “soft” delete an EHR [/quote] That sounds likely @birger.haarbrandt . @rafotis2 to slightly reword Birger's helpful response: openEHR separates subject of an EHR (a patient in this case) from the EHR itself, so it is anonymized by design. There's a pointer from the EHR, in the form of some identifier (decided by the users of platform/EhrBase; national health identifier etc) back to some sort of demographics server or master patient index. So you're supposed to create EHRs with some identifier associated to them, and it is your job to match say the name of a patient to this identifier so that you can get their EHR, and then use the EHR to access clinical data for that patient. See the examples in these two API endpoints please: https://specifications.openehr.org/releases/ITS-REST/latest/ehr.html#ehr-ehr-post https://specifications.openehr.org/releases/ITS-REST/latest/ehr.html#ehr-ehr-get-1 --- ## Post #4 by @thomas.beale [quote="birger.haarbrandt, post:2, topic:2414"] there is no REST endpoint to “soft” delete an EHR [/quote] Well there is a way to make an EHR non-modifiable and non-queryable (EHR_STATUS), which is close to the same thing. We possibly should add other flags in there, e.g. 'is_deceased' and 'is_active'. --- ## Post #5 by @Seref [quote="thomas.beale, post:4, topic:2414"] Well there is a way to make an EHR non-modifiable and non-queryable (EHR_STATUS) [/quote] I think this can be done by means of using access control to an ehr and setting the set of allowed parties to either an empty set or only to an audit role etc. Something in those lines :) --- ## Post #6 by @thomas.beale [quote="Seref, post:3, topic:2414"] openEHR separates subject of an EHR (a patient in this case) from the EHR itself, so it is anonymized by design [/quote] It does as long as `EHR_STATUS.subject`doesn't have PARTY_SELF.external_ref set, which it can have. The safe way is not to set this, and to use the EHR.ehr_id as the reliable EHR identifier, and to x-reference that to subject ids in another service (e.g. [this one](https://specifications.openehr.org/releases/SM/latest/openehr_platform.html#_ehr_index_service)). [quote="Seref, post:3, topic:2414"] So you’re supposed to create EHRs with some identifier associated to them, and it is your job to match say the name of a patient to this identifier so that you can get their EHR, and then use the EHR to access clinical data for that patient [/quote] Exactly right. --- ## Post #7 by @thomas.beale [quote="Seref, post:5, topic:2414"] I think this can be done by means of using access control to an ehr and setting the set of allowed parties to either an empty set or only to an audit role etc. [/quote] I was thinking more the [current REST call](https://specifications.openehr.org/releases/ITS-REST/latest/ehr.html#ehr_status-ehr_status-put) to update `EHR_STATUS.is_modifiable` and `is_queryable`. --- ## Post #8 by @Seref [quote="thomas.beale, post:6, topic:2414"] The safe way is not to set this, and to use the EHR.ehr_id as the reliable EHR identifier, and to x-reference that to subject ids in another service [/quote] Not disputing this, but our REST API's design and examples for EHR endpoint do not imply this. So something to bring to table for SEC then? It's a pretty fundamental use case for the API, pretty much the entry point of every interaction with the EHR :) --- ## Post #9 by @thomas.beale [quote="Seref, post:8, topic:2414"] our REST API’s design and examples for EHR endpoint do not imply this. So something to bring to table for SEC then? It’s a pretty fundamental use case for the API, pretty much the entry point of every interaction with the EHR [/quote] Yes, correct. We should do something about this soon. To date, it is implemented in a vendor-specific way by some vendors. --- ## Post #10 by @rafotis2 Hi all, Thanks for your comments. I have configured the following project with Docker Compose and PostgreSQL: [quote="rafotis2, post:1, topic:2414"] https://github.com/ehrbase/openEHR_SDK [/quote] Please, can you send me an example project? explained step by step, where I have different AQL endpoints to obtain patients. I would like to define different EHR objects like Patients, Doctors, etc. I want to see a small demo and make it easy to configure. All with rest endpoints and that are stored in the database with Docker. I am very interested in using your technologies. Please, I hope you can help me. Many thanks for your help. Kind Regards, Rafael Gomez --- ## Post #11 by @Seref [quote="rafotis2, post:10, topic:2414"] Please, can you send me an example project? explained step by step, where I have different AQL endpoints to obtain patients. [/quote] I'm not aware of such an example project I could share with you, so at least I cannot send you what you're asking for. It'd be good to have a tutorial of sorts though. Have you checked the documentation for the openEHR SDK you configured? Birger also gave some links. It has lots of useful snippets, and as it says, there are many examples you can look at in the tests on github: https://ehrbase.readthedocs.io/en/latest/04_sdk/02_reference/01_client_module/index.html I'd suggest you try implementing the most basic functionality following the above documentation and using existing tests in the source code as a guide. Create an Ehr, commit a composition etc. You can ask questions re specific tasks and we'd help you as much as we can. --- ## Post #12 by @rafotis2 [quote="Seref, post:11, topic:2414"] Le sugiero que intente implementar la funcionalidad más básica siguiendo la documentación anterior y utilizando las pruebas existentes en el código fuente como guía. Cree un Ehr, confirme una composición, etc. Puede hacer preguntas sobre tareas específicas y lo ayudaremos tanto como podamos. [/quote] Hi all, Ok, I'll try it now. But I think it would be a good idea for you to make a video tutorial explaining an example project and how to run it step by step. I think this would help a lot of beginners and novice users. Many thanks. Kind regards, Rafael Gómez --- ## Post #13 by @rafotis2 [quote="Seref, post:11, topic:2414"] I’d suggest you try implementing the most basic functionality following the above documentation and using existing tests in the source code as a guide. Create an Ehr, commit a composition etc. You can ask questions re specific tasks and we’d help you as much as we can. [/quote] Hello all, Hope you are well today. I have read the documentation but I still have some doubts and questions. How can I create Patient entities and Doctor entities to save in my PostgreSQL Database? I have seen that I can only create an Ehr, compositions and templates. Look forward your comments. Many thanks for your help. Kind Regards. --- ## Post #14 by @Seref [quote="rafotis2, post:13, topic:2414"] How can I create Patient entities and Doctor entities to save in my PostgreSQL Database? I have seen that I can only create an Ehr, compositions and templates. [/quote] As I wrote before: [quote="Seref, post:3, topic:2414"] openEHR separates subject of an EHR (a patient in this case) from the EHR itself, so it is anonymized by design. There’s a pointer from the EHR, in the form of some identifier (decided by the users of platform/EhrBase; national health identifier etc) back to some sort of demographics server or master patient index. [/quote] To put it in another way: EhrBase (your openEHR backend in this case) has no support to create patient, doctor etc entities. It is assumed that these exists somewhere else, and they have some unique identifiers. EhrBase allows you to create EHRs, then associate those with these identifiers. If you're planning to use EhrBase (and openEHR for that matter) to represent patients, doctors, hospitals etc, you cannot do that with EhrBase. openEHR as a specification [has a demographic model](https://specifications.openehr.org/releases/RM/latest/demographic.html), which would help you to represent the concepts you listed in an openEHR way but few implementations support it, and EhrBase does not. For good reason as well, because these concepts are almost always in place and implemented by some other system. It sound like your current goal is not focused on clinical data, but on demographic data. EhrBase won't help you there. Do you know what kind of clinical data your application needs to process? Allergies? Medications? etc. --- ## Post #15 by @pablo Short answer: you can't openEHR defines a clinical repository component, which, by good medico-legal practices, shouldn't store personal information (demographic). The demographic data should go on other components. Patients are stored in master patient index (MPI), and clinicians, in general, are stored in a human-resource system in the hospital. Then the clinical repository has references to the IDs of patients and clinicians stored on those external systems This is how it works and it's no way around, just to be clear. It's an openEHR thing, not an EHRBASE thing. In order to understand these requirements, you can check the openEHR's architecture document or consult with an expert in case you have a project. --- ## Post #16 by @rafotis2 [quote="Seref, post:14, topic:2414"] It sound like your current goal is not focused on clinical data, but on demographic data. EhrBase won’t help you there. Do you know what kind of clinical data your application needs to process? Allergies? Medications? etc. [/quote] [quote="pablo, post:15, topic:2414"] This is how it works and it’s no way around, just to be clear. It’s an openEHR thing, not an EHRBASE thing. [/quote] Hi all, I hope you are well today. Ok, understanding that with EHRBase you can't do what I want to do with patients, doctors and hospitals. But how the other tools and platforms could do it? I am referring to the following tools and platforms: EHRServer or EtherCIS. Is this possible with either of the above two tools and platforms? Look forward your comments. Many thanks for your help. Kind Regards. --- ## Post #17 by @birger.haarbrandt Hi Rafa, you can basically use any technology that is appropriate. For example, you can use a an IHE MPI (PIX/PDQ) for the patients and Active Directory for the provider directory. If you have a complete greenfield environment, you might also use a demographics service based on FHIR. Then, you can put the (FHIR) IDs inside the openEHR compositions to reference entries in the provider directory. --- ## Post #18 by @Seref [quote="rafotis2, post:16, topic:2414"] Is this possible with either of the above two tools and platforms? [/quote] EhrServer is @pablo 's baby I think, so I'll let him comment. EtherCIS won't do it either as far as I know. (EhrBase is a fork of EtherCIS btw, though it's been getting so much love (work) from Vita I'm not sure if much is left in common between them) You can always use something like https://hapifhir.io/ i.e. use FHIR demographic to implement demographic and wire that into EhrBase. Check out FhirBridge component of EhrBase project if you want to see it in action. --- ## Post #19 by @Seref [quote="birger.haarbrandt, post:17, topic:2414"] If you have a complete greenfield environment, you might also use a demographics service based on FHIR. [/quote] You beat me to it with a few seconds :D --- ## Post #20 by @pablo [quote="rafotis2, post:16, topic:2414"] But how the other tools and platforms could do it? [/quote] Any system that implements openEHR will have patients, doctors and hospitals in a separate system. Your requirements require you to get a platform together, not just one system that complies with all your requirements, that is why consulting with an openEHR expert if you have a project is the best option. It's not that what you try to do can't be done, it's that how you are trying to do it can't be done. Is how the standard works. As I said, you should read the architecture overview document first to understand the basic concepts. About your demographic requirements, check https://www.openempi.org/ --- ## Post #21 by @thomas.beale openEMPI is more what you want. FHIR is currently the hyped solution, and the data points in the admin resources are reasonably comprehensive, [but the modelling is terrible](https://wolandscat.net/2019/09/11/fixes-for-fhir-the-admin-resources/). This has been noted by many US companies BTW. The FHIR model would make more sense as a facade on something properly modelled, which could be the openEHR model ([upgraded a bit](https://discourse.openehr.org/t/demographic-model-improvements/1645)). --- ## Post #22 by @rafotis2 [quote="thomas.beale, post:21, topic:2414"] MPI is more what you [/quote] Hi @thomas.beale and @pablo I hope you are well. Okay, I'm clear that I have to have 2 different systems defined. In 1 system I will have the data of the patient, doctor, hospital, etc. and in the other system (OpenEhr) I will have defined the Compositions. Now I have the following questions: 1- In which field of composition can the id of a patient or a doctor be indicated to relate it? Do you have any examples? 2- Difference between archetype and template? 3- Can I define new templates and new compositions created by me? Or do the templates and new compositions that I define have to be approved by someone? Look forward your comments. Many thanks for your help. Kind regards, --- ## Post #23 by @pablo Check composition.composer and ehr_status.subject in the specs --- ## Post #24 by @birger.haarbrandt Hi Rafa, I will try to send you an actual example tomorrow! --- ## Post #25 by @rafotis2 [quote="pablo, post:23, topic:2414, full:true"] Check composition.composer and ehr_status.subject in the specs [/quote] @birger.haarbrandt Hi all, I hope you are well today. Please, can you send me a simple java or json example to see where I can indicate the id of the PATIENT or the id of the Doctor? I have read the documentation and I have understood that we have to have two separate systems. Look forward your comments. Thanks. --- ## Post #26 by @rafotis2 Hello @birger.haarbrandt I hope you are well. Please can you send me a sample java project indicating the external id of the doctor or patient in openehr? I have managed to configure a REST API with patients and doctors with a PostgreSQL Database. Look forward your comments. Many thanks for your help. Kind regards. --- ## Post #27 by @pablo Please check the specs. The Reference Model shows the fields, the schemas define the JSON/XML and the REST API has examples. --- ## Post #28 by @rafotis2 Hello all, I hope you are well. I have followed your advice and set up the following 2 projects separately: https://github.com/ehrbase/ehrbase https://github.com/ehrbase/angular-sdk-example Afterwards, I managed to run the projects on localhost: 8888 (I see the form in German, how can I indicate the Spanish language and see everything on the form in Spanish? ![image|690x347](upload://mdtjBth0hP0xJP45ZzWSYWKgvhV.png) Then, following my previous comments on this topic, how can I create 1 composition indicating a patient and linking to an external id? Please, I have a long time with this topic open in the forum and I can not create a composition of an outpatient indicating an external id. Can you please help me now that I have everything set up correctly? I also need to change the language to Spanish or English. Best Spanish. Please take a long time with this topic and I need some of you to help me now that I have everything set up. I am very interested in using these tools and platforms. Look forwards your comments. Many thanks for your help. Kind regards. --- ## Post #29 by @pablo @rafotis2 it seems you are not using the specs which is required to answer your questions. --- ## Post #30 by @birger.haarbrandt Hi Rafa, sorry for being so late to come back to you. The application you tried is a good learning example, but its is not exactly something that will give you things through convenience functions. First, you will need a template that contains a Spanish translation. This can be achieved by using the Archetype Designer (https://tools.openehr.org/designer/#/). The problem/diagnosis archetype is already ready available in Spanish: https://ckm.openehr.org/ckm/archetypes/1013.1.169 You can download the archetypes and put them into your own repository inside the Archetype Designer. Once a template is created, you can export it in the language(s) of choice. In a next step, you will have to reproduce the steps/structures that you find the example app: use the openEHR SDK to create DTOs and replace the ones you find there. The issue is that you still need to do some mapping towards the REST endpoints. As an alternative, I recommend to use the WebTemplate format: https://ehrbase.readthedocs.io/en/latest/09_flat/00_description/index.html#web-template This will give you a structure that is quite easy to process and will help you to get started a bit easier. You can also find examples how you can reference practitioners here: https://ehrbase.readthedocs.io/en/latest/09_flat/01_data_types/index.html#party-proxy We are currently working on an "example" endpoint in EHRbase that will make your life easier to create a valid composition. This should hopefully become available within the next 3 weeks. Hope this helps a bit! --- ## Post #31 by @ian.mcnicoll Good stuff Birger, @Rafa - specifically for the WebTemplate FLAT format you would typically use For an external identifier like a National patient number (using PARTY_IDENTIFIED) ``` { "conformance-ehrbase.de.v0/composer|name": "Silvia Blake", "conformance-ehrbase.de.v0/composer/_identifier:0|id": "122", "conformance-ehrbase.de.v0/composer/_identifier:0|issuer": "issuer", "conformance-ehrbase.de.v0/composer/_identifier:0|assigner": "assigner", "conformance-ehrbase.de.v0/composer/_identifier:0|type": "type" } ``` or for a direct reference into a demographics service (using PARTY_REF) ``` { "conformance-ehrbase.de.v0/composer|name": "Silvia Blake", "conformance-ehrbase.de.v0/composer|id": "1234-5678", "conformance-ehrbase.de.v0/composer|id_scheme": "UUID", "conformance-ehrbase.de.v0/composer|id_namespace": "EHR.NETWORK" } ``` --- ## Post #32 by @Dileep_V_S @ian.mcnicoll can we use either PARTY_IDENTIFIED or PARTY_REF for different compositions? --- ## Post #33 by @ian.mcnicoll Yes, as I far as I understand things!! I slightly misspoke above, PARTY_REF is available as part of PARTY_IDENTIFIED as external_ref, so can be used alongside as the formal identifiers, or instead of the formal identifiers. https://specifications.openehr.org/releases/UML/latest/index.html#Architecture___18_1_83e026d_1433773263935_681777_5881 ![image|690x409](upload://lPro9R8vFMDSy59uLOyP4RtfcDf.png) is what is under the hood in the canonical representation --- ## Post #34 by @rafotis2 Hello @ian.mcnicoll and @birger.haarbrandt I hope you are well. Thanks for your help. I will ask the most particular questions so that you can help me please. Following my example, how can I indicate an archetype in Spanish to have all the fields in Spanish? Please can you send me this archetype and tell me where I have to put it? Please follow the example I have already prepared and change it to Spanish or send me the project in Spanish and I will try it. I need to have an example as a test demo. I am very interested in using this platform. Look forward your comments. Thanks for your help. Kind Regards, --- ## Post #35 by @birger.haarbrandt [quote="rafotis2, post:34, topic:2414"] Following my example, how can I indicate an archetype in Spanish to have all the fields in Spanish? Please can you send me this archetype and tell me where I have to put it? [/quote] Hi Rafa, I gave you the link to the Archetype in my reply above. There is also a function within the CKM that allows you to download it (easy to find). ![Bildschirmfoto 2022-03-26 um 10.46.10|690x105](upload://gTLHg9UyQoWu9534LtnTtgMbTRJ.png) You then can upload this again in the Archetype Designer. What I cannot do is provide is doing all the work for you. I'm happy to answer questions, and we can surely learn how to improve documentation. I understand that there is some learning curve. Maybe the following training course would be a good starting point? https://media-exp1.licdn.com/dms/image/C4E22AQEXyDl35H7wJw/feedshare-shrink_1280/0/1648102965703?e=1651104000&v=beta&t=iOb7At7HDgSdfwWKf9VCNu-8N_ZJQ-ISHLHHl5x--Qg --- ## Post #36 by @rafotis2 Hello @birger.haarbrandt and @pablo I hope you are well today. Please, can you send me the file in .opt format? I have configured the 2 projects that I told you about and I am working and trying to learn but it is difficult for me. I assure you that my effort is maximum and I am reading documentation on Saturdays and Sundays to try to have a test demo. I am willing to take the training course and pay for this training course but I need to have a demo. I don't know how to choose the .opt to indicate in the project. I have seen your link but I don't see how to get the file in .opt format. I can only get this file in XML or ADL but not in .opt. ![image|690x177](upload://6bxkpkmCH3poCkH6O58OCYOr1V0.png) Please, can you send me the file in .opt format? Look forward your comments. I am very grateful for all your help.I am very grateful for all your help. Many thanks my friend. Kind regards, --- ## Post #37 by @birger.haarbrandt Please find attached [diagnosticar.opt|attachment](upload://vCIR2pHnj2s9fwmkSCqRSl7sgIg.opt) (52.3 KB) (Edit: as mentioned above (please read carefully, you need to download the archetype, add it to the Archetype Designer and build your template within the Archetype Designer. There you can also choose languages for the export). --- ## Post #38 by @pablo @rafotis2 I know it's though, I've been there! We have openEHR training courses in Spanish and English at https://www.cabolabs.com/education/ --- ## Post #39 by @rafotis2 Hello @birger.haarbrandt and @pablo I hope you are well today. I am very grateful to you 2. I greatly admire your help and I appreciate it. If I can pay you then I will. I have put this attached template from @birger.haarbrandt "diagnose.opt" in src/main/resources/opt and I have changed the OperationalTemplateData.java class. This is the result: ![image|690x417](upload://56iqiK1bBZHRjk0thypyg28JAaU.png) But I can't get the text of the form to appear in Spanish. I don't know the reason. Please can you help me? How can I generate the java classes in Spanish? ![image|635x499](upload://xs6LHEqgAjLNrPvIkUVXWWoeoy4.png) I am willing to repay you for all your help. I am very grateful to all of you. Many thanks for your help. Kind regards, --- ## Post #40 by @pablo The OPT is single language, check the XML and you will see the language of the template is "en". When you export the OPT you need to choose the language or you need to start the tool you are using with the parameter to work in "es" language, this depends on the tools you use. I use the Ocean Template Designer which needs a -l parameter to start in the desired language, something like -l:es-ES --- ## Post #41 by @birger.haarbrandt The template I uploaded should be in Spanish?! --- ## Post #42 by @rafotis2 [quote="pablo, post:40, topic:2414"] The OPT is single language, check the XML and you will see the language of the template is “en” [/quote] Hello @pablo and @birger.haarbrandt I have replaced the template that my friend sent me in .opt @birger.haarbrandt I have downloaded this project and I have changed the .opt from German to Spanish that my friend sent me @birger.haarbrandt https://github.com/ehrbase/angular-sdk-example Please I need your help. Thanks. --- ## Post #43 by @pablo @rafotis2 did you changed all the terms in the OPT for spanish ones? and all the "language" entries? Better than replacing the texts is to regenerate the OPT in the correct language form the source template. --- ## Post #44 by @rafotis2 [quote="pablo, post:43, topic:2414"] id you changed all the terms in the OPT for spanish ones? and all the “language” entries? [/quote] Hello @birger.haarbrandt and @pablo I hope you are well today. I have put this attached template from @birger.haarbrandt “diagnosticar.opt” in src/main/resources/opt and I have changed the OperationalTemplateData.java class. This is the result: ![image|690x416](upload://qTGV9SEnbYTzYlYWiu5Np5zn7x6.png) Do I have to add or change any more java classes? I think that perhaps I need to configure some more property because I keep seeing it in German and not in Spanish. What other file do I have to modify so that I get the template that I just put in Spanish? Look forward your comments. Thanks for your help. Kind regards. --- ## Post #45 by @birger.haarbrandt Hi, you will have to re-generate all the classes using the openEHR SDK generator: https://ehrbase.readthedocs.io/en/latest/04_sdk/02_reference/02_generator_module/index.html This will replace the existing java DTO classes related to the template. You might have to change the (de-)serialization classes as well by updating the current classes with the newly generated ones. You might also need to change the UI a bit by changing labels. --- ## Post #46 by @rafotis2 Hello @birger.haarbrandt and @pablo I hope you are well. Please, do you have an example project with EHRBase uploaded in Git in which it is indicated step by step how to configure it? I also need a graphical interface and a video or an explanatory manual on how to configure a small example. Please can you help me with EHRBase? Look forward your comments. Many thanks for your help. Kind Regards, --- **Canonical:** https://discourse.openehr.org/t/create-new-endpoints-in-rest-with-openehr/2414 **Original content:** https://discourse.openehr.org/t/create-new-endpoints-in-rest-with-openehr/2414