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

Fix #960 Do not expose mutable collections from FHIR BuildItems #754

Merged
merged 1 commit into from Feb 25, 2020

Conversation

ppalaga
Copy link
Contributor

@ppalaga ppalaga commented Feb 24, 2020

No description provided.

@ppalaga
Copy link
Contributor Author

ppalaga commented Feb 24, 2020

@johnpoth could you please review?

@lburgazzoli lburgazzoli merged commit 623e045 into apache:master Feb 25, 2020
@johnpoth
Copy link
Member

@ppalaga looks great! However...

The idea here is to allow the user to add FHIR resources to the FHIR context before recording. Otherwise you'll get a ClassNotFoundException. See https://wiki.hl7.org/FHIR_Custom_Resources

Sorry for the late reply

@lburgazzoli
Copy link
Contributor

@johnpoth mind opening an issue ?

@ppalaga
Copy link
Contributor Author

ppalaga commented Feb 25, 2020

allow the user to add FHIR resources to the FHIR context before recording.

Could you please explain how is my change preventing that? (Maybe I do not understand properly what you mean with add "FHIR resources")

@johnpoth
Copy link
Member

Hi @ppalaga, the map contains the resources (classes) to be loaded. Now that the map is immutable it will make it harder for the user to add classes to the map. HTH

@ppalaga
Copy link
Contributor Author

ppalaga commented Feb 25, 2020

will make it harder for the user to add classes to the map

Yes, my patch is consciously preventing that for thread safety reasons.

I do not think we should let users write their own extensions to be able to ad their custom resources. Couldn't we enable this via application.properties or allow the users to provide their own fhirversion.properties?

@lburgazzoli
Copy link
Contributor

What about introducing a FHIRModelBuildItem ? (or whatever name make sense)

@johnpoth
Copy link
Member

@lburgazzoli yes that would be the idea

@ppalaga
Copy link
Contributor Author

ppalaga commented Feb 25, 2020

What about introducing a FHIRModelBuildItem ?

Do we really want to let users write extensions to provide their custom FHIR resources? I wonder why is that necessary?

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

Successfully merging this pull request may close these issues.

None yet

4 participants