Help: HAPI FHIR: Uploading value sets

102 views
Skip to first unread message

Joe Flack

unread,
Dec 26, 2021, 10:01:39 PM12/26/21
to HAPI FHIR
Here is a copy/paste from my questioning in the HAPI Zulip chat: https://chat.fhir.org/#narrow/stream/179167-hapi

Joe Flack: I am looking for help with uploading value sets to HAPI.

Joe Flack: I'm using: https://github.com/hapifhir/hapi-fhir-jpaserver-starter

Joe Flack: And using this documentation to use the CLI to upload terminology: https://hapifhir.io/hapi-fhir/docs/tools/hapi_fhir_cli.html#upload-terminology

Joe Flack: 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.

Joe Flack: 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

Joe Flack: 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>

Joe Flack: Here's some info from http://localhost:8080/fhir/CodeSystem

"name": "ICD-10-CM", "status": "active", "content": "not-present"

Joe Flack: When I check ConceptMap or ValueSet resources, I get 0 results. Where are these supposed 45011 concepts that were uploaded?

Joe Flack: 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-cli875599301215840345.zip
Reply all
Reply to author
Forward
0 new messages