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

Expansion fails for ValueSet with no concepts or filter based on urn:ietf:bcp:13 #5634

Closed
codeforgreen opened this issue Jan 26, 2024 · 0 comments

Comments

@codeforgreen
Copy link
Collaborator

codeforgreen commented Jan 26, 2024

Expansion fails for ValueSet with no concepts or filter based on urn:ietf:bcp:13

For example:

{
    "resourceType": "ValueSet",
    "id": "custom-MimeType",
    "url": "http://example.com/custom-mimetype",
    "version": "1.0.0",
    "name": "MimeType",
    "title": "MimeType",
    "status": "active",
    "publisher": "Publisher",
    "description": "Attachment mime type supported by Publisher",
    "compose": {
        "include":  [
            {
                "system": "urn:ietf:bcp:13"
            }
        ]
    }
}

After storing this ValueSet, the expansion for it is automatically triggered in the background. That will result in the following error:
HAPI-0702: Unable to expand ValueSet because CodeSystem could not be found: urn:ietf:bcp:13

Caused by: ca.uhn.fhir.rest.server.exceptions.InternalErrorException: HAPI-0888: org.hl7.fhir.common.hapi.validation.support.InMemoryTerminologyServerValidationSupport$ExpansionCouldNotBeCompletedInternallyException: HAPI-0702: Unable to expand ValueSet because CodeSystem could not be found: urn:ietf:bcp:13
	at ca.uhn.fhir.jpa.term.TermReadSvcImpl.expandValueSetHandleIncludeOrExclude(TermReadSvcImpl.java:1040)
	at ca.uhn.fhir.jpa.term.TermReadSvcImpl.lambda$doExpandValueSet$2(TermReadSvcImpl.java:924)
	at org.springframework.transaction.support.TransactionOperations.lambda$executeWithoutResult$0(TransactionOperations.java:68)
	at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140)
	at org.springframework.transaction.support.TransactionOperations.executeWithoutResult(TransactionOperations.java:67)
	at ca.uhn.fhir.jpa.term.TermReadSvcImpl.doExpandValueSet(TermReadSvcImpl.java:924)
	at ca.uhn.fhir.jpa.term.TermReadSvcImpl.expandValueSetIntoAccumulator(TermReadSvcImpl.java:639)
	at ca.uhn.fhir.jpa.term.TermReadSvcImpl.lambda$doExpandValueSet$1(TermReadSvcImpl.java:560)
	at org.springframework.transaction.support.TransactionOperations.lambda$executeWithoutResult$0(TransactionOperations.java:68)
	at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140)
	at org.springframework.transaction.support.TransactionOperations.executeWithoutResult(TransactionOperations.java:67)
	at ca.uhn.fhir.jpa.term.TermReadSvcImpl.doExpandValueSet(TermReadSvcImpl.java:560)
	at ca.uhn.fhir.jpa.term.TermReadSvcImpl.expandValueSet(TermReadSvcImpl.java:532)
	at ca.uhn.fhir.jpa.term.TermReadSvcImpl.expandValueSet(TermReadSvcImpl.java:3074)
@codeforgreen codeforgreen changed the title Expansion fails for 'ValueSet' with no concepts or filter based on 'urn:ietf:bcp:13' Expansion fails for ValueSet with no concepts or filter based on urn:ietf:bcp:13 Jan 26, 2024
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