Skip to content

Conversation

@Sanjana-Attanayake
Copy link
Contributor

@Sanjana-Attanayake Sanjana-Attanayake commented Sep 9, 2025

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

  1. To generate available extensions provided along with an IG.
  2. To fix the import issues in content reference elements (cyclic import for R5 international and missing import for low level children of elements)
  3. Exclude CodeSystem and ValueSet generation in template mode too.
  4. Exclude generation of PrimitiveExtensions

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.

  • davincidtr210 --> dependent-ig flag and its generation should be revised
  • davincidrugformulatory210 --> data override error due to content reference element type at one place.
  • international500--> IG error in specifying content reference elements. Fixed manually.

Security checks

Related PRs

CodeGen Tool Update

Test environment

JDK: 21
Ballerina: 2201.12.3, 2201.12.8, 2201.12.9

Learning

Primitive Extensions

@sameeragunarathne
Copy link
Contributor

@Sanjana-Attanayake seems there are test failures. can you check?

@Sanjana-Attanayake
Copy link
Contributor Author

@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 isuruh15 merged commit dc41f37 into ballerina-platform:main Sep 25, 2025
2 checks passed
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.

3 participants