ppazos / cabolabs-ehrserver-groovy Goto Github PK
View Code? Open in Web Editor NEWGroovy client for the CaboLabs openEHR EHRServer
License: Apache License 2.0
Groovy client for the CaboLabs openEHR EHRServer
License: Apache License 2.0
those will work one time if committed directly because of duplicated ids, the test should overwrite the ids to allow multiple commits
All API calls need to process a lot of possible exceptions.
when committing compositions with spanish accentuation the characters appear as symbols on the EHRServer, it seems UTF-8 should be <?xml version="1.0" encoding="ISO-8859-1"?>
for spanish.
retrieves the composition details in XML or JSON.
to list all the queries accessible by the user
java.lang.NullPointerException: Cannot get property 'token' on null object
at org.codehaus.groovy.runtime.NullObject.getProperty(NullObject.java:60)
at org.codehaus.groovy.runtime.InvokerHelper.getProperty(InvokerHelper.java:172)
at org.codehaus.groovy.runtime.callsite.NullCallSite.getProperty(NullCallSite.java:47)
when an exception is thrown, result is null and should be returned to the client app so it can do something about it.
Server certs change.
We need to download the server cert to be able to do HTTPS calls.
We need to download and cache the cert dynamically from time to time, or when an SSL appears (forced update).
All this should be transparent to the client.
Reading, most mention the use of a Certificate Manager, where certs can be added and updated.
Some ideas:
https://github.com/escline/InstallCert/blob/master/InstallCert.java
https://www.codebyamir.com/blog/java-developers-guide-to-ssl-certificates
http://www.xinotes.net/notes/note/1088/
https://stackoverflow.com/questions/41986959/dynamic-ssl-keystore-certificate-selection
https://jcalcote.wordpress.com/2010/06/22/managing-a-dynamic-java-trust-store/
https://futurestud.io/tutorials/retrofit-2-how-to-trust-unsafe-ssl-certificates-self-signed-expired
https://github.com/square/okhttp/blob/master/samples/guide/src/main/java/okhttp3/recipes/CustomTrust.java
http://square.github.io/retrofit/
FULL EXAMPLE prints some basic info about the cert
https://www.mkyong.com/java/java-https-client-httpsurlconnection-example/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.