Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

terminology upload - CodeSystemVersion is null #6417

Open
gdrouet opened this issue Oct 29, 2024 · 0 comments
Open

terminology upload - CodeSystemVersion is null #6417

gdrouet opened this issue Oct 29, 2024 · 0 comments

Comments

@gdrouet
Copy link

gdrouet commented Oct 29, 2024

NOTE: Before filing a ticket, please see the following URL:
https://github.com/hapifhir/hapi-fhir/wiki/Getting-Help

Describe the bug
hapi-fhir-cli returns the following error when uploading ICD10: .InvalidRequestException: HTTP 400 : HAPI-1769: CodeSystemVersion is null

To Reproduce
Steps to reproduce the behavior:

  1. Download ICD 10 (I use the french edition here: https://smt.esante.gouv.fr/terminologie-cim-10/)
  2. Run the command against my local server hapi-fhir-cli upload-terminology -d ./dat/cim10fr2024syst_claml_20231215.xml -v r5 -t http://localhost:9090/server/DEFAULT -u 'http://hl7.org/fhir/sid/icd-10'
  3. Get the error

Expected behavior
All terms should be integrated

Screenshots

Environment (please complete the following information):

  • HAPI FHIR: 7.2.2
  • OS: Windows

Additional context
The service fails when checking the version of child terms.
In TermCodeSystemStorageSvcImpl class, I this this:

		for (TermConceptParentChildLink next : theConcept.getChildren()) {
			next.setCodeSystem(theCodeSystemVersion);
			retVal +=
					validateConceptForStorage(next.getChild(), theCodeSystemVersion, theConceptsStack, theAllConcepts);
		}

next.getChild() has a method getCodeSystemVersion() which returns null. This cause the issue.
The next.setCodeSystem(theCodeSystemVersion); does not change the child's version.
Calling next.setCodeSystem(theCodeSystemVersion); would solves the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant