# Is this LOINC FHIR Terminology Server Implementation FOSS?

**URL:** <https://forum.loinc.org/t/is-this-loinc-fhir-terminology-server-implementation-foss/1059>\
**Category:** loinc-fhir-ts\
**Created:** [July 22, 2020, 5:50am UTC](https://forum.loinc.org/t/is-this-loinc-fhir-terminology-server-implementation-foss/1059 "2020-07-22T05:50:07Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![manisha](https://forum.loinc.org/letter_avatar_proxy/v4/letter/m/6f9a4e/32.png) [@manisha](https://forum.loinc.org/u/manisha)\
**Post date:** [July 22, 2020, 5:50am UTC](https://forum.loinc.org/t/is-this-loinc-fhir-terminology-server-implementation-foss/1059/1 "2020-07-22T05:50:07Z")

</div>

Hi,

Is this LOINC Server implementation a FOSS? I mean can one deploy it locally/regionally for integration?

---

<div class="post-metadata">

**Author:** ![manisha](https://forum.loinc.org/letter_avatar_proxy/v4/letter/m/6f9a4e/32.png) [@manisha](https://forum.loinc.org/u/manisha)\
**Post date:** [July 22, 2020, 6:02am UTC](https://forum.loinc.org/t/is-this-loinc-fhir-terminology-server-implementation-foss/1059/2 "2020-07-22T06:02:51Z")

</div>

I can see its a HAPI implementation. But I wanted to know if any changes needed/done to set-up LOINC files in it.

---

<div class="post-metadata">

**Author:** ![timbriscoe](https://forum.loinc.org/user_avatar/forum.loinc.org/timbriscoe/32/938_2.png) [@timbriscoe](https://forum.loinc.org/u/timbriscoe)\
**Post date:** [July 22, 2020, 9:58am UTC](https://forum.loinc.org/t/is-this-loinc-fhir-terminology-server-implementation-foss/1059/3 "2020-07-22T09:58:06Z")

</div>

Hi, Manisha. Our terminology server uses SmileCDR, the commercial product that uses the open-source HAPI-FHIR as its backend. The tooling we use to update LOINC terminology is available for anyone to use within HAPI-FHIR. Once you stand up your HAPI-FHIR instance, you can use its upload-terminology command in conjunction with the LOINC zip file you download from our site. For example:

`./hapi-fhir-cli upload-terminology -d Downloads/Loinc_2.68.zip -f dstu3 -t http://localhost:8080/baseDstu3 -u http://loinc.org`

Documentation is available at [https://hapifhir.io/hapi-fhir/docs/tools/hapi\_fhir\_cli.html#upload-terminology](https://hapifhir.io/hapi-fhir/docs/tools/hapi_fhir_cli.html#upload-terminology)

I hope this helps! Keep us informed of your progress and let us know if you need additional assistance.

---

<div class="post-metadata">

**Author:** ![aperezpellitero](https://forum.loinc.org/letter_avatar_proxy/v4/letter/a/cab0a1/32.png) [@aperezpellitero](https://forum.loinc.org/u/aperezpellitero)\
**Post date:** [November 16, 2022, 4:37am UTC](https://forum.loinc.org/t/is-this-loinc-fhir-terminology-server-implementation-foss/1059/4 "2022-11-16T04:37:10Z")

</div>

Hi,

Just trying to upload the latest LOINC terminology file (Loinc\_2.73.zip) to my local HAPI FHIR server using hapi-fhir-cli command but seems Loinc\_2.73.zip is missing some needed files (MultiAxialHierarchy.csv)

This is the error:

HTTP 422 Unprocessable Entity: HAPI-0862: Could not find the following mandatory files in input: [AccessoryFiles/MultiAxialHierarchy/MultiAxialHierarchy.csv]

Checking the ZIP content, this file doesn’t exists.

I’m doing something wrong? Or latest LOINC releases are not compatible any more with this HAPI FHIR command line tool ?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![timbriscoe](https://forum.loinc.org/user_avatar/forum.loinc.org/timbriscoe/32/938_2.png) [@timbriscoe](https://forum.loinc.org/u/timbriscoe)\
**Post date:** [November 16, 2022, 11:14am UTC](https://forum.loinc.org/t/is-this-loinc-fhir-terminology-server-implementation-foss/1059/5 "2022-11-16T11:14:21Z")

</div>

Hello Aitor,

Yes, we have renamed this hierarchy and its associated artifact. In your HAPI-FHIR server, you should have a file named loincupload.properties. Within it, you should be able to change the file name for this artifact as so:

# LOINC hierarchy

## Default value if key not provided: AccessoryFiles/MultiAxialHierarchy/MultiAxialHierarchy.csv

## File must be present

loinc.hierarchy.file=AccessoryFiles/ComponentHierarchyBySystem/ComponentHierarchyBySystem.csv

We’ll see if we can have HAPI-FHIR make this change at the source so others do not run into this issue.

---

<div class="post-metadata">

**Author:** ![shanroam](https://forum.loinc.org/user_avatar/forum.loinc.org/shanroam/32/51_2.png) [@shanroam](https://forum.loinc.org/u/shanroam)\
**Post date:** [December 10, 2022, 5:56am UTC](https://forum.loinc.org/t/is-this-loinc-fhir-terminology-server-implementation-foss/1059/6 "2022-12-10T05:56:16Z")

</div>

Hi Team,

I am using HAPI JPA FHIR server version 6.2.1 (latest pull from master branch).

I was getting the above issue (about \<span style=“background-color: #fbfbfb; font-family: Lato, Helvetica, Arial, Lucida, sans-serif; font-size: 15.6px;”\>MultiAxialHierarchy.csv)\</span\> and following your instruction created a file

names loincupdate.properties in src/main/resources folder and built and ran the server.

However I am still getting the error. Where am I going wrong? Where should I create the file?

&nbsp;

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![timbriscoe](https://forum.loinc.org/user_avatar/forum.loinc.org/timbriscoe/32/938_2.png) [@timbriscoe](https://forum.loinc.org/u/timbriscoe)\
**Post date:** [December 12, 2022, 1:18pm UTC](https://forum.loinc.org/t/is-this-loinc-fhir-terminology-server-implementation-foss/1059/7 "2022-12-12T13:18:38Z")

</div>

Hello Shantanu,

My implementation uses SmileCDR rather than HAPI so the structure may be slightly different. Of course SmileCDR is more or less the same as HAPI but it’s worth noting.

Here’s the structure we have:

smilecdr/terminology/loinc/

- upload-loinc.sh
- Loinc\_2.73.zip
- loincupload.properties

Where upload-loinc.sh is a script which calls the `smileutil` tool. The script passes the necessary parameters to update the terminology based on the input file. Your port number will probably vary.

…/…/bin/smileutil upload-terminology -v r4 -t [http://localhost:18999/](http://localhost:18999/) -u [http://loinc.org](http://loinc.org) -b “user:pass” -l -d Loinc\_2.73.zip -d loincupload.properties

Documentation on smileutil is at [https://smilecdr.com/docs/smileutil/upload\_terminology.html](https://smilecdr.com/docs/smileutil/upload_terminology.html)

Again, HAPI/Smile doesn’t know to look for the new artifact name so that’s why you need to update the referenced file in loincupload.properties. Should HAPI not have such a properties file, you can alternatively rename the artifact within the zip to MultiAxialHierarchy.csv.

I hope this helps. Keep us updated on your progress.

---

<div class="post-metadata">

**Author:** ![shanroam](https://forum.loinc.org/user_avatar/forum.loinc.org/shanroam/32/51_2.png) [@shanroam](https://forum.loinc.org/u/shanroam)\
**Post date:** [December 15, 2022, 5:41am UTC](https://forum.loinc.org/t/is-this-loinc-fhir-terminology-server-implementation-foss/1059/8 "2022-12-15T05:41:33Z")

</div>

Thanks Tim,

Your suggestion above correct . We have to use it with as a parameter (with -d option). I used the below command and it worked. The path names may vary for others

hapi-fhir-cli upload-terminology -d Loinc\_2.73.zip -d loincupload.properties -v r4 -t [http://localhost:8080/fhir](http://localhost:8080/fhir) -u [http://loinc.org](http://loinc.org)

Thanks again

&nbsp;

---

<div class="post-metadata">

**Author:** ![system](https://forum.loinc.org/uploads/default/original/1X/dbab97ce9b2987d788a376e254fcaae249f3b672.png) [@system](https://forum.loinc.org/u/system)\
**Post date:** [June 23, 2023, 3:36pm UTC](https://forum.loinc.org/t/is-this-loinc-fhir-terminology-server-implementation-foss/1059/9 "2023-06-23T15:36:45Z")

</div>

Closed on June 23, 2023, 3:36pm UTC


