<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ben Chevallereau on Medium]]></title>
        <description><![CDATA[Stories by Ben Chevallereau on Medium]]></description>
        <link>https://medium.com/@ben.che?source=rss-b5bfc4ecb749------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*7r1Cn7-0kPZB-qWvwOYdiQ.png</url>
            <title>Stories by Ben Chevallereau on Medium</title>
            <link>https://medium.com/@ben.che?source=rss-b5bfc4ecb749------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 15:00:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ben.che/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Looking for a Hedera Command Line Tool ?]]></title>
            <link>https://medium.com/@ben.che/my-hedera-245e24c7536f?source=rss-b5bfc4ecb749------2</link>
            <guid isPermaLink="false">https://medium.com/p/245e24c7536f</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[command-line]]></category>
            <category><![CDATA[hederahashgraph]]></category>
            <category><![CDATA[hedera]]></category>
            <category><![CDATA[hashgraph]]></category>
            <dc:creator><![CDATA[Ben Chevallereau]]></dc:creator>
            <pubDate>Thu, 22 Aug 2019 20:06:28 GMT</pubDate>
            <atom:updated>2019-08-22T20:40:47.687Z</atom:updated>
            <content:encoded><![CDATA[<h3>Looking for a Hedera Command Line Tool ?</h3><p>As of today, you have plenty of options to connect to the Hedera network:</p><ul><li>Use one of the SDKs provided by Hedera (I personally use a lot the Java SDK);</li><li>Use one of the Wallet App available today (Hedera has its own wallet app, and some other companies are building their own apps);</li><li>Use the Docker Image that I developed few months back (<a href="https://hub.docker.com/r/openpharma/op-java-ms-hedera">https://hub.docker.com/r/openpharma/op-java-ms-hedera</a>). But it’s a bit annoying to setup a Docker container just to send some hBars;</li></ul><p>And so I just wanted to create a simple command line to check my balance, or send some micro payments. For this reason, I decided to create my own command line tool:</p><p><a href="https://www.npmjs.com/package/my-hedera">my-hedera</a></p><p>It’s a pretty simple tool today that allows you to check your balance account:</p><pre>my-hedera -b &lt;YOUR ACCOUNT NUM&gt;</pre><p>Or send 10 tinyBars to someone:</p><pre>my-hedera -s &lt;RECIPIENT ACCOUNT NUM&gt; -t 10</pre><p>You’ll find all details on the link posted above. Be aware that you can use this tool on the main net, but as well on the test net by specifying to which server you want to connect!</p><p>Let me know if you have any comments or questions!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aqAAQL1rfpcYdnV9blxemA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=245e24c7536f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OpenEMR / FHIR: How to setup your instance?]]></title>
            <link>https://medium.com/@ben.che/openemr-fhir-how-to-setup-your-instance-dd646b0daec3?source=rss-b5bfc4ecb749------2</link>
            <guid isPermaLink="false">https://medium.com/p/dd646b0daec3</guid>
            <category><![CDATA[emr-software]]></category>
            <category><![CDATA[emr]]></category>
            <category><![CDATA[fhir]]></category>
            <category><![CDATA[openemr]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Ben Chevallereau]]></dc:creator>
            <pubDate>Wed, 27 Feb 2019 23:40:07 GMT</pubDate>
            <atom:updated>2019-02-27T23:40:07.645Z</atom:updated>
            <content:encoded><![CDATA[<p>Few days ago, I was looking for an easy way to get an open source EMR (Electronic Medical Record) system connected to a FHIR (Fast Healthcare Interoperability Resources) server. I won’t go into details but the only reliable open source EMR system that I found is <strong>OpenEMR</strong>.</p><blockquote>OpenEMR is the most popular open source electronic health records and medical practice management solution. ONC certified with international usage, OpenEMR’s goal is a superior alternative to its proprietary counterparts. With passionate volunteers and contributors dedicated to guarding OpenEMR’s status as a free, open source software solution for medical practices with a commitment to openness, kindness and cooperation.</blockquote><blockquote><a href="https://www.open-emr.org/"><em>https://www.open-emr.org/</em></a></blockquote><p>My issue is that I struggled a bit to understand easily how their FHIR integration was working. So here are some details, if it can be helpful. First, I updated their Docker Compose file to integrate a FHIR server:</p><pre>version: &#39;3.1&#39;<br>services:<br>  fhir:<br>    image: conceptant/hapi-fhir<br>    ports:<br>    - 8080:8080<br>  mysql:<br>    restart: always<br>    image: mariadb:10.2<br>    command: [&#39;mysqld&#39;,&#39;--character-set-server=utf8&#39;]<br>    volumes:<br>    - databasevolume:/var/lib/mysql<br>    environment:<br>      MYSQL_ROOT_PASSWORD: root<br>  openemr:<br>    restart: always<br>    image: openemr/openemr:5.0.1<br>    ports:<br>    - 80:80<br>    - 443:443<br>    volumes:<br>    - logvolume01:/var/log<br>    - sitevolume:/var/www/localhost/htdocs/openemr/sites<br>    environment:<br>      MYSQL_HOST: mysql<br>      MYSQL_ROOT_PASS: root<br>      MYSQL_USER: openemr<br>      MYSQL_PASS: openemr<br>      OE_USER: admin<br>      OE_PASS: pass<br>    depends_on:<br>    - mysql<br>volumes:<br>  logvolume01: {}<br>  sitevolume: {}<br>  databasevolume: {}</pre><p>The Docker Compose file integrates three components:</p><ul><li>The FHIR server;</li><li>The OpenEMR instance;</li><li>The MariaDB instanced used by OpenEMR.</li></ul><p>Then, you can start your instances:</p><pre>docker-compose -f openemr-compose.yml up -d</pre><p>When all containers are started, you can access to:</p><ul><li>The FHIR server: <a href="http://localhost:8080/home">http://localhost:8080/home</a></li><li>The OpenEMR server: <a href="http://localhost/">http://localhost</a></li></ul><p>Let’s configure OpenEMR to be able to export to the FHIR server:</p><ul><li>Login into OpenEMR admin/pass</li><li>Click on Administration / Globals</li><li>Open the Connectors tab</li><li>Change the property <strong>Enable FHIR Provider Client Service</strong> to the value <strong>On: HAPI FHIR.</strong></li><li>Change the property <strong>FHIR Server Base Address </strong>to the value <a href="http://fhir:8080/baseDstu3/">http://fhir:8080/baseDstu3/</a></li><li>Click on <strong>Save</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f51BdoBYN6HpME6kyXx18Q.png" /></figure><p>You can now create a new patient. When that’s done, you’ll see a <strong>Publish </strong>button in the list of action below the patient name:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DRbMz-YjIuRSidrcCYD2lQ.png" /></figure><p>A popup window will appear, and you’ll be able to click on <strong>Publish</strong> again:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-7GEfOtv9l7FnYDKYVfdqg.png" /></figure><p>You should see a trace like that in the <em>Dashboard</em> section:</p><pre><strong>Sent:</strong><br>{&quot;id&quot;:&quot;patient-1&quot;,&quot;resourceType&quot;:&quot;Patient&quot;,&quot;active&quot;:true,&quot;name&quot;:[{&quot;use&quot;:&quot;official&quot;,&quot;family&quot;:&quot;Smith&quot;,&quot;given&quot;:[&quot;John&quot;,&quot;&quot;]}],&quot;gender&quot;:&quot;female&quot;,&quot;address&quot;:[{&quot;line&quot;:[&quot;&quot;],&quot;city&quot;:&quot;&quot;,&quot;state&quot;:&quot;&quot;,&quot;postalCode&quot;:&quot;&quot;}]}<br><strong>Transaction Status: 201 Created</strong><br>X-Powered-By: HAPI FHIR 3.5.0-SNAPSHOT REST Server (FHIR Server; FHIR 3.0.1/DSTU3)<br>ETag: W/&quot;1&quot;<br>Content-Location: http://fhir:8080/baseDstu3/Patient/patient-1/_history/1<br>Last-Modified: Wed, 27 Feb 2019 23:35:14 GMT<br>Content-Type: application/fhir+json;charset=utf-8<br>Transfer-Encoding: chunked<br>Server: Jetty(9.4.9.v20180320)</pre><p>You can now open the FHIR server, click on the <strong>Patient</strong> resources in the left menu, and click on the <strong>Search</strong> button. You should be able to see your patient:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rqX9QDw046tcON1rw9tGcw.png" /></figure><p>You can now play with EMR + FHIR integration…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dd646b0daec3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hedera Micro Service REST API]]></title>
            <link>https://medium.com/@ben.che/hedera-rest-apis-c8c25ff20397?source=rss-b5bfc4ecb749------2</link>
            <guid isPermaLink="false">https://medium.com/p/c8c25ff20397</guid>
            <category><![CDATA[openpharma]]></category>
            <category><![CDATA[hedera]]></category>
            <category><![CDATA[hashgraph]]></category>
            <category><![CDATA[hederahashgraph]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Ben Chevallereau]]></dc:creator>
            <pubDate>Sat, 19 Jan 2019 15:41:59 GMT</pubDate>
            <atom:updated>2019-01-23T17:13:56.376Z</atom:updated>
            <content:encoded><![CDATA[<h3>OpenPharma Micro Service for Hedera</h3><p>We just released our micro service dedicated to Hedera. We packaged our REST API as Docker Container that you can find here:</p><p><a href="https://hub.docker.com/r/openpharma/op-java-ms-hedera">https://hub.docker.com/r/openpharma/op-java-ms-hedera</a></p><p>This micro service app is primarily designed to support our needs on integrating Hedera in your ecosystem using only REST APIs. This Docker container is using the version 0.2.0 of the Hedera Java SDK.</p><p>You’ll find in the Swagger documentation three different controllers:</p><ul><li>Account Controller: To get account information or balance, to create a new account, to transfer HBars between accounts or to get records;</li><li>File Controller: To create, append or update files in the Hedera network, to get information or download stored files or to delete files;</li><li>Contract Controller: To create Solidity contract, to get contract information or to call (remotely or locally) smart contract.</li></ul><p><strong>Quick note on the authentication:</strong> You have two ways to provide authentication details to the Hedera network. You can provide all details as Docker environment variables (and in that case, you don’t need to authenticate at each call), or provide all details for each REST API call. It’s possible as well to follow a hybrid approach by configuring public properties (such as network ID, paying account ID) as Docker environment variables, and then provides the account public and private key at each call.</p><p>To create your Docker container, you can execute the following command:</p><pre>docker run -d \<br>   -p 8000:8000 \<br>   --name=op_hedera_main \<br>   -e SERVER_PORT=8000 \<br>   -e HEDERA_NODE_ADDRESS=testnet.hedera.com \<br>   -e HEDERA_NODE_PORT=50130 \<br>   -e HEDERA_NODE_ACCOUNT_SHARD=0 \<br>   -e HEDERA_NODE_ACCOUNT_REALM=0 \<br>   -e HEDERA_NODE_ACCOUNT_NUM=3 \<br>   -e HEDERA_PAYING_ACCOUNT_SHARD=0 \<br>   -e HEDERA_PAYING_ACCOUNT_REALM=0 \<br>   -e HEDERA_PAYING_ACCOUNT_NUM=1004 \<br>   -e HEDERA_PAYING_ACCOUNT_PUBLIC_KEY=xxx \<br>   -e HEDERA_PAYING_ACCOUNT_PRIVATE_KEY=xxx \<br>   openpharma/op-java-ms-hedera:0.2.0</pre><p>When the Docker container is started, you can access to:</p><ul><li><a href="http://localhost:8000/">http://localhost:8000/</a> to access a simple documentation page;</li><li><a href="http://localhost:8000/swagger-ui.html">http://localhost:8000/swagger-ui.html</a> to access a Swagger interactive documentation.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z_eec6u9kRllTGoycB3pJA.png" /></figure><h3>Who are we? What do we do?</h3><p>This micro service is part of the <a href="https://www.openpharma.io/">OpenPharma</a> initiative. OpenPharma is an industry first Open API software platform for pharma and life sciences. OpenPharma’s APIs are built for versatility. API Endpoints include: proprietary format conversion, dataset anonymization, risk scorecards and more.</p><p>Be aware that this micro service has been primarily tested against the test networks. Don’t hesitate to let us know your feedback!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c8c25ff20397" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hedera and Eclipse: How to setup your environment?]]></title>
            <link>https://medium.com/@ben.che/hedera-java-sdk-2b28d3e0c328?source=rss-b5bfc4ecb749------2</link>
            <guid isPermaLink="false">https://medium.com/p/2b28d3e0c328</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[eclipse]]></category>
            <category><![CDATA[hedera]]></category>
            <category><![CDATA[hashgraph]]></category>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[Ben Chevallereau]]></dc:creator>
            <pubDate>Tue, 18 Dec 2018 18:27:05 GMT</pubDate>
            <atom:updated>2019-02-11T15:55:24.132Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>If you are looking about installing the version 0.2.0+ of the SDK, scroll down to the bottom of the page.</blockquote><p>The goal of this blog is to quickly explain how I setup everything on my laptop to use the <a href="https://github.com/hashgraph/hedera-sdk-java">Hedera Java SDK</a> on my MacOS. A lot of people seem to struggle to have a working environment, so let’s try to summarize all potential issues.</p><p>This blog is using the following tools:</p><ul><li>Eclipse STS (Spring Tool Suite; version: 3.9.4.RELEASE)</li><li>git version 2.17.2 (Apple Git-113)</li></ul><p>First, let’s clone the repository on your computer:</p><pre>git clone https://github.com/hashgraph/hedera-sdk-java.git</pre><p>When it’s completed, you can import this project into Eclipse. In the Import window, select Maven &gt; Existing Maven Projects and locate the Github repository you just cloned. Let’s try to install this project in your local Maven repository.</p><p>Do a right click on your project and select Run As &gt; Maven install. The first error that you may find in this one:</p><pre>[ERROR] [...]/hedera/hedera-sdk-java/src/main/java/com/hedera/sdk/common/HederaKeySignatureList.java:[12,42] cannot access com.hederahashgraph.api.proto.java.Key<br>  bad class file: [...]/.m2/repository/com/opencrowd/hapi-proto/1.2/hapi-proto-1.2.jar(com/hederahashgraph/api/proto/java/Key.class)<br>    class file has wrong version 54.0, should be 52.0<br>    Please remove or make sure it appears in the correct subdirectory of the classpath.</pre><p>This means that your project is not configured properly with Java 10. It’s one of the conditions of the Hedera Java SDK. You will need to be sure that you have Java 10 installed properly in Eclipse. To check, open the Preferences window and open Java &gt; Installed JREs. If you don’t have Java 10, you’ll need to install it first.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hFMbHaMA2GGX9OuzR80Nlg.png" /><figcaption>List of installed JREs</figcaption></figure><p>If you have Java 10 installed in your Eclipse, right click on your project and click on Properties and open Java Build Path and the tab Libraries. My instance was configured to use Java 8:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kxcKnalJKrfG2UTNDztHXg.png" /><figcaption>Java build path of my project</figcaption></figure><p>To change it, follow these steps:</p><ul><li>Click on the invalid JRE, and click on Remove;</li><li>Click on Add Library...;</li><li>Select JRE System Library and click on Next;</li><li>In the list of Alternate JRE, you should find Java 10 and click on Finish;</li><li>Finally, click on Apply and Close.</li></ul><p>By restarting Run As &gt; Maven install. It’s possible that you may get the following error:</p><pre>[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.0.1:jar (attach-javadocs) on project sdk: MavenReportException: Error while generating Javadoc: Unable to find javadoc command: The environment variable JAVA_HOME is not correctly set. -&gt; [Help 1]</pre><p>This means you need to provide the correct value for the environment variable JAVA_HOME. To do that, right click on your project and click on Run As &gt; Maven build.... In the Goals section, specify clean install. In the Environment tab, create a new variable called JAVA_HOME with a valid value for Java 10. When that’s done, click on the Run button and you should get a successful build.</p><p>Before finishing this section, I’d recommend updating the list of source folder. Do a right click on your project and click on Properties, open Java Build Path, and click on the tab Source. Let’s add the test and examples Java classes:</p><ul><li>Click on Add Folder...;</li><li>Select the folder java under src/test, and the folder java under examples/main and click on OK;</li><li>Click on Apply and Close.</li></ul><p>By doing that, you’ll be able to explore all Java code sources…</p><p>Now, that we have everything set up, we can run some code :-) If you open the Java class com.hedera.account.DemoAccount, you may notice that it does create an account for you. Before running that, you need to copy the file node.properties.sample to a file called node.properties and update some values:</p><pre># node network details<br>nodeaddress=localhost<br>nodeport=50211</pre><pre># node account<br>nodeAccountShard=0<br>nodeAccountRealm=0<br>nodeAccountNum=2</pre><pre># your public/private keys<br>pubkey=<br>privkey=</pre><pre># your account details<br>payingAccountShard=0<br>payingAccountRealm=0<br>payingAccountNum=1</pre><p>All information except pubkey and privkey will be given to you by the Hedera team through the portal. For the key, you need to generate it. You have a few options:</p><ul><li>Use the keygen provided here: <a href="https://github.com/hashgraph/hedera-keygen-java">https://github.com/hashgraph/hedera-keygen-java</a></li><li>Or follow this video: <a href="https://youtu.be/0O0-Vie6v5U">https://youtu.be/0O0-Vie6v5U</a></li></ul><p>When that’s done, you can start to get the balance of your account. Create a new Java class in the package com.hedera.account in the folder examples called CheckMyBalance containing the following code:</p><pre>package com.hedera.account;</pre><pre>import com.hedera.sdk.account.HederaAccount;<br>import com.hedera.sdk.common.HederaTransactionAndQueryDefaults;<br>import com.hedera.utilities.ExampleUtilities;</pre><pre>public class CheckMyBalance {</pre><pre>  public static void main(String[] args) throws Exception {<br>    // setup a set of defaults for query and transactions<br>    HederaTransactionAndQueryDefaults txQueryDefaults = <br>      new HederaTransactionAndQueryDefaults();<br>    txQueryDefaults = ExampleUtilities.getTxQueryDefaults();</pre><pre>    HederaAccount myAccount = new HederaAccount(0, 0, 1010);<br>    myAccount.txQueryDefaults = txQueryDefaults;<br>    AccountGetBalance.getBalance(myAccount);<br>  }</pre><pre>}</pre><p>Because this Java class contains a main method, you can right click on this class and select Run As &gt; Java Application. If you are lucky, you should get a response like this one:</p><pre>[ INFO] ---&gt;QUERY RESPONSE<br>[ INFO] cryptogetAccountBalance {<br>  header {<br>  }<br>  accountID {<br>    accountNum: 1010<br>  }<br>  balance: 100000000000<br>}</pre><pre>[ INFO] ===&gt;Got balance=100000000000</pre><p>I hope that this blog will help you to start on Hedera and don’t hesitate to ask me if you have any questions!</p><p>From the version 0.2.0+ of the SDK, Hedera restructured their Maven projects to have a parent POM and some children projects. I really struggled to have it setup, but it’s very simple. When you import the Maven projects, don’t import the parent Maven project as such:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*7Bo-X9TFsEKXvJrHPq9Fcw.png" /></figure><p>Otherwise, Eclipse may generate a lot of errors. Hope that it will be helpful…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2b28d3e0c328" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>