<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Guy Tsafnat</title>
    <description>The latest articles on DEV Community by Guy Tsafnat (@guy_tsafnat_ccf9031841ada).</description>
    <link>https://dev.to/guy_tsafnat_ccf9031841ada</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3721645%2F3c73b71f-3781-4bec-a8f2-a0cfd36455a7.jpg</url>
      <title>DEV Community: Guy Tsafnat</title>
      <link>https://dev.to/guy_tsafnat_ccf9031841ada</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/guy_tsafnat_ccf9031841ada"/>
    <language>en</language>
    <item>
      <title>The HAPI Echidna: High-Performance OMOP Terminology for HAPI FHIR</title>
      <dc:creator>Guy Tsafnat</dc:creator>
      <pubDate>Tue, 20 Jan 2026 12:31:22 +0000</pubDate>
      <link>https://dev.to/guy_tsafnat_ccf9031841ada/echidna-the-high-performance-omop-terminology-server-for-hapi-fhir-c9k</link>
      <guid>https://dev.to/guy_tsafnat_ccf9031841ada/echidna-the-high-performance-omop-terminology-server-for-hapi-fhir-c9k</guid>
      <description>&lt;p&gt;HAPI FHIR is the gold standard for open source FHIR servers, but its internal terminology management can be resource-intensive, especially when dealing with massive datasets like SNOMED-CT or LOINC, and maintaining the latest versions of your terminologies can be a massive headache. &lt;strong&gt;Echidna&lt;/strong&gt; (echidna.fhir.org) provides a cloud-native terminology server that bridges the gap between &lt;strong&gt;OMOP&lt;/strong&gt; and &lt;strong&gt;FHIR&lt;/strong&gt;, offering blazing-fast lookups and translations without the overhead of local database maintenance.&lt;/p&gt;

&lt;p&gt;Switching to Echidna is super simple and free. Let’s see how to do this. &lt;/p&gt;




&lt;h3&gt;
  
  
  &lt;strong&gt;Prerequisites&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;A running instance of &lt;strong&gt;HAPI FHIR JPA Starter&lt;/strong&gt; (or a custom HAPI-based server).
&lt;/li&gt;
&lt;li&gt;Internet access for your server to reach &lt;code&gt;https://echidna.fhir.org&lt;/code&gt;.
&lt;/li&gt;
&lt;li&gt;A basic understanding of the FHIR.&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  &lt;strong&gt;Option 1: Configuration via &lt;code&gt;application.yaml&lt;/code&gt;&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;If you are using the &lt;strong&gt;HAPI FHIR JPA Starter&lt;/strong&gt; project, you can switch to Echidna by modifying your configuration file. This is the fastest "no-code" method.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Open your &lt;code&gt;application.yaml&lt;/code&gt; file.
&lt;/li&gt;
&lt;li&gt;Add or modify the following properties:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;YAML&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;hapi:
   fhir:
     # Enable remote terminology validation
     remote_terminology_service_enabled: true

     # Set the Echidna R5 endpoint
     remote_terminology_server_base_url: 'https://echidna.fhir.org/r5'

     # If you have an Echidna membership, you can specify it here:
     # remote_terminology_server_auth_token: 'your-echidna-token-here'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;By setting these, HAPI will automatically delegate terminology operations it cannot resolve locally to Echidna.&lt;/p&gt;




&lt;h3&gt;
  
  
  &lt;strong&gt;Option 2: Java Configuration (Custom Implementation)&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;For developers building a custom HAPI FHIR server using the &lt;code&gt;IValidationSupport&lt;/code&gt;chain, you must manually inject the &lt;code&gt;RemoteTerminologyServiceValidationSupport&lt;/code&gt;module.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Java&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;// 1. Initialize the FhirContext 
FhirContext ctx = FhirContext.forR5(); 

// 2. Create the Remote Terminology module pointing to Echidna
RemoteTerminologyServiceValidationSupport remoteTermSvc =
      new RemoteTerminologyServiceValidationSupport(ctx);
remoteTermSvc.setBaseUrl("https://echidna.fhir.org/r5"); 

// 3. Add it to your ValidationSupportChain 
ValidationSupportChain chain =
      new ValidationSupportChain(
           new DefaultProfileValidationSupport(ctx),
           new InMemoryTerminologyServerValidationSupport(ctx),
           remoteTermSvc // Delegated to Echidna
      );
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;With this option, when HAPI encounters a code validation request (e.g., checking if a SNOMED code is valid), it traverses the &lt;code&gt;ValidationSupportChain&lt;/code&gt;. By placing the Echidna remote service in this chain, HAPI can leverage Echidna’s vast OMOP-mapped vocabulary library (10M+ concepts) as if they were stored locally.&lt;/p&gt;




&lt;h2&gt;
  
  
  Done!
&lt;/h2&gt;

&lt;p&gt;Simply restart the server for the changes to take effect. You can verify to see that everything works as promised. &lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Verifying the setup&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;You can verify the integration by performing a $lookup operation through your HAPI server that requires Echidna's specialized OMOP-to-FHIR logic.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example Request:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;HTTP&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;GET http://your-hapi/fhir/CodeSystem/$lookup?\ 
    system=http://fhir-terminology.ohdsi.org&amp;amp;code=49495001
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or, if you are using CURL&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Shell&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ curl http://your-hapi/fhir/CodeSystem/$lookup?\ 
       system=http://fhir-terminology.ohdsi.org&amp;amp;code=49495001
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If everything is configured correctly, HAPI will forward this request to Echidna and return the concept details (Display: "Leukemia") retrieved from the remote server.&lt;/p&gt;

</description>
      <category>fhir</category>
      <category>omop</category>
      <category>terminologies</category>
      <category>digitalhealth</category>
    </item>
  </channel>
</rss>
