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

Upload Example Resources - hapi-fhir-cli upload-examples #6546

Open
Robinyo opened this issue Dec 8, 2024 · 0 comments
Open

Upload Example Resources - hapi-fhir-cli upload-examples #6546

Robinyo opened this issue Dec 8, 2024 · 0 comments

Comments

@Robinyo
Copy link

Robinyo commented Dec 8, 2024

Describe the bug
I am trying to use the hapi-fhir-cli to upload example resources to the HAPI-FHIR Starter Project.

To Reproduce
Steps to reproduce the behaviour:

docker container pull hapiproject/hapi:latest
docker container run -d -p 8080:8080 --name hapi hapiproject/hapi:latest

brew install hapi-fhir-cli

hapi-fhir-cli upload-definitions --fhir-version r4 --target http://localhost:8080/fhir
hapi-fhir-cli upload-examples --fhir-version r4 --target http://localhost:8080/fhir

I receive the following error:

------------------------------------------------------------
🔥  HAPI FHIR 7.6.0 - Command Line Tool
------------------------------------------------------------
Process ID                      : [email protected]
Max configured JVM memory (Xmx) : 4.0GB
Detected Java version           : 23.0.1
------------------------------------------------------------
2024-12-08 15:46:06.89 [main] INFO  c.u.f.c.LogbackUtil Logging configuration set from file /logback-cli-on.xml
Standard Commons Logging discovery in action with spring-jcl: please remove commons-logging.jar from classpath in order to avoid potential conflicts
2024-12-08 15:46:07.74 [main] INFO  c.u.f.c.BaseCommand Downloading from remote url: http://build.fhir.org/examples-json.zip
20 MB [************************************************* ]
2024-12-08 15:46:13.25 [main] INFO  c.u.f.c.BaseCommand Successfully Loaded example pack (20 MB)
2024-12-08 15:46:13.73 [main] INFO  c.u.f.c.ExampleDataUploader Found example codesystem-action-code.json - CodeSystem - 7181 chars
2024-12-08 15:46:15.19 [main] WARN  c.u.f.p.LenientErrorHandler Unknown element 'author' found while parsing
2024-12-08 15:46:15.28 [main] WARN  c.u.f.p.LenientErrorHandler Unknown element 'author' found while parsing
2024-12-08 15:46:15.31 [main] WARN  c.u.f.p.LenientErrorHandler Unknown element 'author' found while parsing
2024-12-08 15:46:15.36 [main] INFO  c.u.f.c.ExampleDataUploader FAILED to validate example codesystem-action-code.json - ValidationResult{messageCount=11, isSuccessful=false, description='(showing first 1 messages out of 11 total)

ERROR - The value provided ('generated') was not found in the value set 'NarrativeStatus' (http://hl7.org/fhir/ValueSet/narrative-status|4.0.1), and a code is required from this value set  (error message = Validation failed) - CodeSystem.text.status'}
2024-12-08 15:46:15.37 [main] WARN  c.u.f.p.LenientErrorHandler Unknown element 'sourceScopeCanonical' found while parsing
2024-12-08 15:46:15.37 [main] WARN  c.u.f.p.LenientErrorHandler Unknown element 'targetScopeCanonical' found while parsing
2024-12-08 15:46:15.37 [main] WARN  c.u.f.p.LenientErrorHandler Unknown element 'relationship' found while parsing
2024-12-08 15:46:15.37 [main] WARN  c.u.f.p.LenientErrorHandler Unknown element 'relationship' found while parsing
2024-12-08 15:46:15.37 [main] WARN  c.u.f.p.LenientErrorHandler Unknown element 'relationship' found while parsing
2024-12-08 15:46:15.37 [main] WARN  c.u.f.p.LenientErrorHandler Unknown element 'relationship' found while parsing
2024-12-08 15:46:15.37 [main] INFO  c.u.f.c.ExampleDataUploader Found example sc-valueset-fm-status.json - ConceptMap - 4194 chars
2024-12-08 15:46:15.45 [main] ERROR ca.uhn.fhir.cli.App HAPI-1613: java.lang.NullPointerException: Cannot invoke "org.hl7.fhir.r5.utils.validation.IValidatorResourceFetcher.fetchCanonicalResourceVersions(org.hl7.fhir.r5.utils.validation.IResourceValidator, Object, String)" because "this.fetcher" is null
2024-12-08 15:46:15.45 [Thread-0] INFO  ca.uhn.fhir.cli.App HAPI FHIR is shutting down...

Expected behavior
For the hapi-fhir-cli to successfully upload example resources to the HAPI-FHIR Starter Project.

Environment (please complete the following information):
HAPI FHIR Version: HAPI FHIR 7.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)
OS: MacOS Sequoia 15.1.1 (Docker Desktop v.4.36.0)
Browser: Chrome

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