How to use a fhir package profile in hapi fhir docker?

123 views
Skip to first unread message

Linkun Gao

unread,
Feb 7, 2024, 4:43:57 PM2/7/24
to HAPI FHIR
Hi all,
I am very confused about how to use a package's profile in hapi fhir. 
I try to install a package fhir.org.nz.ig.base in hapi fhir with below configs in ./src/main/resources/application.yaml
ig_runtime_upload_enabled: true
install_transitive_ig_dependencies: true
implementationguides:
## example from registry (packages.fhir.org)

nz-core:
name: fhir.org.nz.ig.base
version: 3.0.0
reloadExisting: true
installMode: STORE_AND_INSTALL

 After I run the docker-compose up -d --build command, I can find the package is already been installed in hapi fhir docker container. 

But I cannot get the package's profile. For example, the package has a profile NzPatient,
I can get below info via http://localhost:8080/fhir/StructureDefinition/NzPatient
1.jpg

However when I try to get the profile resource via http://localhost:8080/fhir/NzPatient
then I get below error
2.jpg
Are there any configs I missed? Or do I modify the hapi-fhir-jpaserver-starter code to create a class named NzPatient?

Can anyone help me with this? 

Kind regards,
Linkun

Quinry Senilla

unread,
Feb 12, 2024, 12:58:47 AM2/12/24
to HAPI FHIR
is this question resolved? i have same problem.

Linkun Gao

unread,
Feb 12, 2024, 2:16:51 AM2/12/24
to HAPI FHIR

No, haven't found a solution.

Sames the package profile is not a resource, so we cannot use it directly.

James Agnew

unread,
May 27, 2024, 2:42:18 PM5/27/24
to Linkun Gao, HAPI FHIR
I don't actually understand this question - The URL http://localhost:8080/fhir/NzPatient is not valid, since it's missing the resource type. To fetch the StructureDefinition with the ID "NzPatient" you need to invoke a FHIR Read, which would look like: http://localhost:8080/fhir/StructureDefinition/NzPatient

Cheers,
James

--
You received this message because you are subscribed to the Google Groups "HAPI FHIR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hapi-fhir+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hapi-fhir/9ab71997-664c-42e0-ba84-f2a2afaae756n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages