FHIR Chat · How use the HAI FHIR CLI to import other terminologies in... · hapi

Stream: hapi

Topic: How use the HAI FHIR CLI to import other terminologies in...


view this post on Zulip Lin Zhang (Oct 17 2020 at 08:53):

Is there any documentation about the import format (say, a CSV format) for such a purpose? There is a "custom" module with the HAPI FHIR JPA Server base repository on the github.

view this post on Zulip Lin Zhang (Oct 17 2020 at 13:24):

When trying to upload the custom terminology for testing of the CL UploadTerminologyCommand, I got the following Error message:

[main] ERROR ca.uhn.fhir.cli.App Error during execution:
ca.uhn.fhir.rest.server.exceptions.InternalErrorException: HTTP 500 Server Error: Failed to call access method: java.lang.IllegalArgumentException: Mapping for CODE not found, expected one of [CODE DISPLAY]
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:481)
at ca.uhn.fhir.rest.server.exceptions.BaseServerResponseException.newInstance(BaseServerResponseException.java:302)
at ca.uhn.fhir.rest.client.impl.BaseClient.invokeClient(BaseClient.java:351)
at ca.uhn.fhir.rest.client.impl.GenericClient$BaseClientExecutable.invoke(GenericClient.java:540)
at ca.uhn.fhir.rest.client.impl.GenericClient$OperationInternal.execute(GenericClient.java:1314)
at ca.uhn.fhir.cli.UploadTerminologyCommand.invokeOperation(UploadTerminologyCommand.java:204)
at ca.uhn.fhir.cli.UploadTerminologyCommand.run(UploadTerminologyCommand.java:113)
at ca.uhn.fhir.cli.BaseApp.run(BaseApp.java:268)
at ca.uhn.fhir.cli.App.main(App.java:43)

view this post on Zulip Lin Zhang (Oct 17 2020 at 13:24):

The zip file to be uploaded consists of the three data files from:
hapi-fhir/hapi-fhir-jpaserver-base/src/test/resources/custom_term

view this post on Zulip Lin Zhang (Oct 17 2020 at 14:08):

Found the cause: Wrong delimiters in the CSV files. Manual copying/pasting the data tables on the github presentation pages made tabs in place of commas as the delimiters.


Last updated: Apr 12 2022 at 19:14 UTC