Failing during import of Loinc_2.80.zip into HAPI FHIR server

I am trying to import latest definitions on the fhir HAPI server, but failing..

% hapi-fhir-cli upload-terminology -d Loinc_2.80.zip -v r4 -t [localhost:8080/fhir] -u http://loinc.org -s 10GB
:fire: HAPI FHIR 8.0.0 - Command Line Tool

Process ID : 6763@Sathishs-MacBook-Pro.local
Max configured JVM memory (Xmx) : 9.0GB
Detected Java version : 23.0.2

…
2025-04-11 10:16:12.89 [main] INFO c.u.f.c.UploadTerminologyCommand Adding ZIP file: Loinc_2.80.zip

2025-04-11 10:16:13.84 [main] INFO c.u.f.c.UploadTerminologyCommand Beginning upload - This may take a while…

2025-04-11 10:16:20.58 [main] ERROR c.u.f.c.UploadTerminologyCommand Received the following response:

{

“resourceType”: “OperationOutcome”,

“issue”: [ {

“severity”: “error”,

“code”: “processing”,

“diagnostics”: “HAPI-0862: Could not find the following mandatory files in input: [AccessoryFiles/MultiAxialHierarchy/MultiAxialHierarchy.csv]”

} ]

}

2025-04-11 10:16:20.58 [main] ERROR ca.uhn.fhir.cli.App Error during execution:

ca.uhn.fhir.rest.server.exceptions.UnprocessableEntityException: HTTP 422 : HAPI-0862: Could not find the following mandatory files in input: [AccessoryFiles/MultiAxialHierarchy/MultiAxialHierarchy.csv]

at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:62)

at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:501)

at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:485)

at ca.uhn.fhir.rest.server.exceptions.BaseServerResponseException.newInstance(BaseServerResponseException.java:317)

at ca.uhn.fhir.rest.client.impl.BaseClient.invokeClient(BaseClient.java:415)

at ca.uhn.fhir.rest.client.impl.GenericClient$BaseClientExecutable.invoke(GenericClient.java:585)

at ca.uhn.fhir.rest.client.impl.GenericClient$OperationInternal.execute(GenericClient.java:1441)

at ca.uhn.fhir.cli.UploadTerminologyCommand.invokeOperation(UploadTerminologyCommand.java:255)

at ca.uhn.fhir.cli.UploadTerminologyCommand.run(UploadTerminologyCommand.java:151)

at ca.uhn.fhir.cli.BaseApp.run(BaseApp.java:272)

at ca.uhn.fhir.cli.App.main(App.java:42)

2025-04-11 10:16:20.58 [Thread-0] INFO ca.uhn.fhir.cli.App HAPI FHIR is shutting down…
i viewed this, but should have been resolved already: Loinc Terminology Upload broken with latest version of Loinc 2.73 · Issue #4000 · hapifhir/hapi-fhir · GitHub

Any idea on this issue?

1 Like

Hello @z80pio - The Multi Axial Hierarchy is now known as the Component by System Hierarchy. There is a documented solution for this issue using HAPI-FHIR’s terminology upload. See Is this LOINC FHIR Terminology Server Implementation FOSS? - #4 by aperezpellitero

Please confirm this works for you.