-
Notifications
You must be signed in to change notification settings - Fork 13
[fhir-tools] Add Generation of Extensions to the Health-Tool and Minor Bug Fixes #129
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
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This was referenced Sep 10, 2025
isuruh15
reviewed
Sep 15, 2025
.../java/org/wso2/healthcare/fhir/ballerina/packagegen/tool/model/ExtensionTemplateContext.java
Outdated
Show resolved
Hide resolved
...o2/healthcare/fhir/ballerina/packagegen/tool/modelgen/AbstractExtensionContextGenerator.java
Show resolved
Hide resolved
...lthcare/fhir/ballerina/packagegen/tool/modelgen/versions/r4/R4ExtensionContextGenerator.java
Outdated
Show resolved
Hide resolved
...lthcare/fhir/ballerina/packagegen/tool/modelgen/versions/r4/R4ExtensionContextGenerator.java
Show resolved
Hide resolved
native/fhir-to-bal-lib/src/main/resources/templates/extensions.vm
Outdated
Show resolved
Hide resolved
This was referenced Sep 16, 2025
This was referenced Sep 19, 2025
|
@Sanjana-Attanayake seems there are test failures. can you check? |
Aiye the codegen tool has to be released again. There are some changes made to it from the R5 side and R5 test cases are failing. |
isuruh15
approved these changes
Sep 25, 2025
This was referenced Sep 30, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose
This PR is related to the generation of extensions in FHIR IGs where as earlier they were excluded. With the new feature introduced extensions will be generated if they are given along with the IG and will be available for access in a seperated file named as "extensions.bal". In the resource level the extensions will be displayed indicating what extensions are available for each.
NOTE: Due to a sem_type binding issue in the Ballerina compiler binding of extensions to the resources are excluded in this release. Rebuild the packages following the Ballerina 2201.13.0 release.
Goals
Approach
User stories
The newly generated packages from the health tool will now have extensions in them.
Release note
Addition of extended elements for IGs and minor bug-fixes.
Documentation
N/A
Automation tests
Tested all r4 profiles available in the base r4 repository and 2 r5 IGs. 17/20 IGs are generated without any issues. Only 3 failing points are listed below.
Security checks
Related PRs
CodeGen Tool Update
Test environment
JDK: 21
Ballerina: 2201.12.3, 2201.12.8, 2201.12.9
Learning
Primitive Extensions