Hello~. This is a copy/paste from my questioning in the HAPI Zulip chat:
I am looking for help with uploading value sets to HAPI.
(Note * replaced http with xxxx due to being a new user; the forum only lets new users have 2 hyperlinks per post)
I’m using: http://github.com/hapifhir/hapi-fhir-jpaserver-starter
And using this documentation to use the CLI to upload terminology: xxxx://hapifhir.io/hapi-fhir/docs/tools/hapi_fhir_cli.html#upload-terminology
The CLI’s help text said that it was flexible as to whether I would pass a zip file, or CSV/text, or whatever file of my choice. But I have not had such luck.
Issue #1: ICD-10-CM
It uploaded, but I can’t find any data in the server.
I used this command: hapi-fhir-cli upload-terminology -d ./data/value_sets/LOINC/Loinc_2.71_MultiAxialHierarchy_3.5.zip -d ./data/value_sets/ICD-10-CM/icd10cm_tabular_2021.xml -v r4 -t http://localhost:8080/fhir -u http://hl7.org/fhir/sid/icd-10-cm
I got this success message:
<Parameters xmlns="http://hl7.org/fhir">
<parameter>
<name value="success"/>
<valueBoolean value="true"/>
</parameter>
<parameter>
<name value="conceptCount"/>
<valueInteger value="45011"/>
</parameter>
<parameter>
<name value="target"/>
<valueReference>
<reference value="CodeSystem/1"/>
</valueReference>
</parameter>
</Parameters>
Here’s some info from xxxx://localhost:8080/fhir/CodeSystem
"name": "ICD-10-CM",
"status": "active",
"content": "not-present"
When I check ConceptMap or ValueSet resources, I get 0 results. Where are these supposed 45011
concepts that were uploaded?
Issue #2: LOINC
I tried uploading some flat files, but got error. I tried some lighter-weight zip files, but it said it was missing all sorts of files. I then tried the 1.5GB zip file.
I ran this command: hapi-fhir-cli upload-terminology -d ./data/value_sets/LOINC/Loinc_2.71_MultiAxialHierarchy_3.5.zip -d /Users/joeflack4/projects/hapi-fhir-jpaserver-starter/data/value_sets/LOINC/_archive/_Full/Loinc_2.71.zip -v r4 -t http://localhost:8080/fhir -u http://loinc.org
and this is the abridged version of the error I got:
ca.uhn.fhir.rest.server.exceptions.InvalidRequestException: HTTP 400 : Unknown file: hapi-fhir-cli875599