-
Notifications
You must be signed in to change notification settings - Fork 165
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
Configuration file about the code generator #1843
Comments
hmm. The code generator isn't used very much - typically only when there's a new version of the FHIR specification. Once a version is generated, we generally don't regenerate it ever (and it does take me a few days to do that). Why are you trying to generate using it? |
I expect systems built on |
Before that, I read the HAPI-FHIR DOC, but I did not have a clear understanding of custom resources, and the document only gave extensions based on Java classes, which is probably a very tedious work, and human maintenance of |
Our current stance is that you need to hand-code custom resources for use in HAPI FHIR. It's definitely supported (and regularly tested) to ensure that you can do this, but we don't currently support any kind of automated code generation for these classes. This is obviously tedious and clunky work (as you point out) but we don't have code generator currently as a part of the library. As @grahamegrieve points out, the generator you found isn't written with custom resources in mind, it's for building the core standard classes themselves. I agree with you that it would be nice to have an automated generator. We would of course welcome code contributions to help make this happen, or sponsored work to help bring it to reality. |
When I use
org.hl7.fhir.core.generator
andorg.hl7.fhir.r5
to generated code, found that generated code is missing a lot of methods, properties and constants, by reading the code I guess may be extended in theconfuguration
was too old, Resulting in the generated code is incomplete, mainly in themodel
andextension
package, I hope the developer can supplement this part of the configuration, of course, according to the generated code direction of the configuration can also be calculated, but, you know, this is very time-consuming.Thanks a lot.
The text was updated successfully, but these errors were encountered: