{"id":40081800,"url":"https://github.com/ppazos/openehr-rest-client","last_synced_at":"2026-01-19T09:08:20.310Z","repository":{"id":68109432,"uuid":"437591225","full_name":"ppazos/openehr-rest-client","owner":"ppazos","description":"openEHR Reference REST API Client in Groovy (runs in the JVM)","archived":false,"fork":false,"pushed_at":"2026-01-11T20:35:52.000Z","size":507,"stargazers_count":1,"open_issues_count":13,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-01-12T00:07:39.561Z","etag":null,"topics":["groovy-language","openehr","rest-api"],"latest_commit_sha":null,"homepage":"https://cabolabs.com/our_software","language":"Groovy","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ppazos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-12-12T16:03:13.000Z","updated_at":"2026-01-11T20:34:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"82e79675-b032-463e-a8eb-8fdeebb18f35","html_url":"https://github.com/ppazos/openehr-rest-client","commit_stats":null,"previous_names":[],"tags_count":37,"template":false,"template_full_name":null,"purl":"pkg:github/ppazos/openehr-rest-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppazos%2Fopenehr-rest-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppazos%2Fopenehr-rest-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppazos%2Fopenehr-rest-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppazos%2Fopenehr-rest-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ppazos","download_url":"https://codeload.github.com/ppazos/openehr-rest-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppazos%2Fopenehr-rest-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28565001,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T08:53:44.001Z","status":"ssl_error","status_checked_at":"2026-01-19T08:52:40.245Z","response_time":67,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["groovy-language","openehr","rest-api"],"created_at":"2026-01-19T09:08:19.707Z","updated_at":"2026-01-19T09:08:20.306Z","avatar_url":"https://github.com/ppazos.png","language":"Groovy","funding_links":[],"categories":[],"sub_categories":[],"readme":"# openEHR REST Client\n\n![](assets/3.jpeg)\n\nThis is the Groovy reference implementation of the [openEHR](https://www.openehr.org/) REST Client for connecting to openEHR REST API implementations.\n\nIt compiles to Java bytecode so it can be used as any Java library with any language that compiles to the JVM.\n\n## Compile\n\n`$ gradle build`\n\nIt generates a JAR file in the `build/libs` folder.\n\n\n## Run tests\n\n### run just one test\n\n`$ gradle test --tests \"OpenEhrRestClientTest.create demographic family trees\"`\n\n### run tests with dots in the names (using wild cards)\n\n`$ gradle test --tests \"OpenEhrRestClientTest.B*4*a* get composition at version\"`\n\n### run all tests inside a category\n\n`$ gradle test --tests \"OpenEhrRestClientTest.B*4*\"`\n\n\n\n## Use it\n\n\n```groovy\n// Setup authentication using a token\ndef token = \"abc....\"\ndef auth = new TokenAuth(token)\n\n// Build the client\ndef client = new OpenEhrRestClient(\n   \"http://localhost:8090/openehr/v1\",\n   auth,\n   ContentTypeEnum.JSON\n)\n\n// Set committer metadata headers\nclient.setCommitterHeader('name=\"John Doe\", external_ref.id=\"BC8132EA-8F4A-11E7-BB31-BE2E44B06B34\", external_ref.namespace=\"demographic\", external_ref.type=\"PERSON\"')\n\n// Upload EHR_STATUS template\nString opt = this.getClass().getResource('/ehr_status_any_en_v1.opt').text\nclient.uploadTemplate(opt)\n\n// Create EHR\nclient.createEhr()\n\n// Commit a clinical document\n// - Upload template for clinical document\n// - Get sample document, parse it into a COMPOSITION, commit the COMPOSITION\nString opt1 = this.getClass().getResource('/minimal_evaluation.opt').text\nclient.uploadTemplate(opt1)\n\nString json_doc = this.getClass().getResource('/minimal_evaluation.en.v1_20230205.json').text\ndef parser = new OpenEhrJsonParserQuick()\ndef doc = parser.parseJson(json_doc)\nclient.createComposition(ehr.ehr_id.value, doc)\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fppazos%2Fopenehr-rest-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fppazos%2Fopenehr-rest-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fppazos%2Fopenehr-rest-client/lists"}