# Public Test Servers **Category:** [Platform](https://discourse.openehr.org/c/platform-implem/7) **Created:** 2022-07-07 17:07 UTC **Views:** 1793 **Replies:** 29 **URL:** https://discourse.openehr.org/t/public-test-servers/2812 --- ## Post #1 by @Paco_Novillo 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 EHRServer would be great, so we don't have to deploy one in a local machine. Thanks in advance --- ## Post #2 by @birger.haarbrandt Hi @Paco_Novillo, completely agree, this is on the to-do list for EHRbase. Though, not sure when this is gonna be available. As its open source, maybe someone [tm] will just take the initiative, let's see. In the meantime, I think using Docker is just a minimal hurdle for devs to get started. --- ## Post #3 by @Paco_Novillo Many thanks @birger.haarbrandt, I will try with https://ehrbase.readthedocs.io/en/latest/03_development/04_docker_images/01_ehrbase/02_use_image/index.html#run-ehrbase-db-with-docker-compose --- ## Post #4 by @birger.haarbrandt You can ask in the forum whenever you are stuck. We are really keen to provide a great developer experience, but we are still on the way getting there. --- ## Post #5 by @thomas.beale [quote="Paco_Novillo, post:1, topic:2812"] 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 EHRServer would be great, so we don’t have to deploy one in a local machine. [/quote] For EHRserver, @pablo will be able to indicate what is available. --- ## Post #6 by @pablo Hola Paco, With EHRServer you have the SaaS option https://cloudehrserver.com/ Or using docker-compose: Run with docker-compose: $ grails war $ cd docker-compose $ docker-compose up localhost:8080 will be Adminer (a MySQL manager) localhost:8888 will be Tomcat (running EHRServer) Change the ports and SMTP configuration in the docker-compose file Source: https://github.com/ppazos/cabolabs-ehrserver#want-to-try-ehrserver --- ## Post #7 by @Kevin_Mayfield I'm after definitions (I think these are templates) like the ones on https://ckm.openehr.org/ Are these available via an api. (I'm going to run a local copy of EHRBase and see if they are included.) --- ## Post #8 by @birger.haarbrandt Hey @Kevin_Mayfield, there is currently no automated import of templates into EHRbase from CKM. In general, we should aim for some kind of package management to make this a bit more convenient. EHRbase itself does not contain any Templates, you will need to download an OPT like https://ckm.apperta.org/ckm/templates/1051.57.279/export and use the REST API to upload into EHRbase (https://specifications.openehr.org/releases/ITS-REST/latest/definition.html#tag/ADL1.4) --- ## Post #9 by @joostholslag Maybe GitHub ckm mirror is a little more convenient? https://github.com/openEHR/CKM-mirror/tree/master/local/templates --- ## Post #10 by @birger.haarbrandt Indeed! Could also be combined with a Template Provider from the openEHR SDK (https://github.com/ehrbase/openEHR_SDK/blob/develop/web-template/src/main/java/org/ehrbase/openehr/sdk/webtemplate/templateprovider/FileBasedTemplateProvider.java) to load data automatically into EHRbase for testing purposes. --- ## Post #11 by @ian.mcnicoll Hi Kevin. You might want to have a look at these templates on the Apperta CKM most of which were specifically create to match the Interopen Care-Connect profiles https://ckm.apperta.org/ckm/projects/1051.61.34 You need to download the ".opt" export format. These are just xml files that need to be POST to /template endpoint to register them in the CDR. ```bash curl --location 'https://mycdrurl/rest/openehr/v1/definition/template/adl1.4' \ --header 'Content-Type: application/xml' \ --header 'Prefer: return=minimal' \ --header 'Authorization: \ --data-raw '