FHIR Chat · StructureDefinition endpoint · hapi

Stream: hapi

Topic: StructureDefinition endpoint


view this post on Zulip Abby George (May 20 2020 at 23:55):

Recently it looks like what is returned from http://hapi.fhir.org/baseR4/StructureDefinition has changed - it used to be a Bundle of the StructureDefinitions for all resource types in the server, and now it is a Bundle with a single entry - "verificationresult". Why did this change, and is it expected?

view this post on Zulip James Agnew (May 21 2020 at 09:50):

This has been ticketed here: https://github.com/jamesagnew/hapi-fhir/issues/1855

Not yet sure what's going on there...

view this post on Zulip Pankaj Tiwari (May 21 2020 at 12:11):

Hi @James Agnew , I am new in fhir. I am configuring HAPI Fhir server setup in my local window system. When I am trying to build file using maven build getting following error. Attaches screenshot

view this post on Zulip Pankaj Tiwari (May 21 2020 at 12:11):

IMG_20200521_161620.jpg

view this post on Zulip Pankaj Tiwari (May 21 2020 at 12:13):

It is asking jdk 11 to build and test library

view this post on Zulip James Agnew (May 21 2020 at 12:26):

Running the build now requires Java 11. You can still deploy to JDK8, but we're migrating test cases to JDK11 so that is the minimum to build HAPI FHIR.

I do suppose we should relax that requirement for the JPA starter project though.. but for now you need to install 11.

view this post on Zulip Pankaj Tiwari (May 21 2020 at 13:49):

Thanks James for quick response.. Appreciated

view this post on Zulip James Agnew (May 21 2020 at 15:38):

FYI the structuredefinition issue has been fixed (but the fix isn't yet merged or deployed..)

coming soon

view this post on Zulip Jens Villadsen (May 21 2020 at 15:53):

Does that mean a 5.0.2 is comming or should I just fork?

view this post on Zulip Abby George (May 25 2020 at 19:43):

@James Agnew - I also used to get a structure definition when I hit something like /StructureDefinition/Patient, or /StructureDefinition/Condition/. Now I'm seeing the message "Resource StructureDefinition/Patient is not known" - is this expected? thanks!

view this post on Zulip James Agnew (May 25 2020 at 21:06):

@Abby George Yup, that functionality has been removed. The structure definitions it returned were auto-generated and pretty misleading in terms of their content.

I'm hoping in the upcoming while as we implement NPM package support we'll find a better way of accomplishing the same thing but using proper definitions.

view this post on Zulip Abby George (May 26 2020 at 15:05):

with this change what is the best way to get the structure definition for base resource types such as Patient?

view this post on Zulip James Agnew (May 26 2020 at 15:11):

Assuming you are using a JPA server, I'd recommend just uploading them. The hapi-fhir-cli upload-definitions command can help with this.


Last updated: Apr 12 2022 at 19:14 UTC