Stream: hapi
Topic: Problem with core extensions in v. 4.0.1
Signe Hejgaard Kristoffersen (May 11 2020 at 08:38):
Hi everyone,
We are using v. 4.0.1 and the core extensions 'iso21090-ADXP-streetName', 'iso21090-ADXP-houseNumber', 'iso21090-ADXP-additionalLocator' and 'http://hl7.org/fhir/StructureDefinition/procedure-method'. After upgrading to 4.0.1, we now receive errors for these extensions when trying to upload them to our HAPI FHIR server. This error occurs for all four extensions:
HTTP 422 Unprocessable Entity: sdf-19: FHIR Specification models only use FHIR defined types [url.startsWith('http://hl7.org/fhir/StructureDefinition') implies (differential.element.type.code.all(hasValue() implies matches('^[a-zA-Z0-9]+$')) and snapshot.element.type.code.all(hasValue() implies matches('^[a-zA-Z0-9]+$')))]
We did not have any problems using these extensions in FHIR v. 4.0.0, and we do not receive any errors, when trying to upload extensions we have created ourselves. If we change the url's of the core extensions to anything other than 'http://hl7.org/fhir/StructureDefinition/...' we do not receive any errors...
Have you encountered the same issue, and if so - how did you solve it?
Grahame Grieve (May 11 2020 at 10:04):
it seems as though you are mixing 4.0.0 and 4.0.1 to me ?
James Agnew (May 11 2020 at 11:26):
@Signe Hejgaard Kristoffersen A few of the StructureDefinition files shipped with HAPI FHIR 4.2.0 for FHIR R4 were accidentally not updated to FHIR 4.0.1 even though the rest of the artifacts were. This is likely the bug that is causing your issue.
This is already fixed for HAPI FHIR 5.0.0 which will be released this week
Vibin_chander (May 11 2020 at 11:37):
Is there a sample resource that I can check to see how extension is mentioned in the structure defintion resource?
James Agnew (May 11 2020 at 11:47):
There are links to the structure definitions for the various extensions from the spec page: http://hl7.org/fhir/extension-procedure-method.html
Vibin_chander (May 11 2020 at 11:56):
thanks a lot
Vibin_chander (May 11 2020 at 11:57):
in HAPI using the search parameter resource we can create a custom parameter for an extension in any resource. This doesn't mean that Extension needs to be created in the Structure Definition of HAPI right?
James Agnew (May 11 2020 at 12:01):
Assuming you mean in the HAPI FHIR JPA server then yup, that's how to do that. There is a little tutorial on this here: https://smilecdr.com/docs/fhir_repository/custom_search_parameters.html
Vibin_chander (May 11 2020 at 12:13):
thanks @James Agnew im using the HAPI FHIR JPA server
Last updated: Apr 12 2022 at 19:14 UTC