Skip to content

Comments

[Health-Tool][Temp-Fix] Generates Slice Elements of the Root Element#118

Merged
isuruh15 merged 3 commits intoballerina-platform:mainfrom
Sanjana-Attanayake:main
Jul 31, 2025
Merged

[Health-Tool][Temp-Fix] Generates Slice Elements of the Root Element#118
isuruh15 merged 3 commits intoballerina-platform:mainfrom
Sanjana-Attanayake:main

Conversation

@Sanjana-Attanayake
Copy link
Contributor

Purpose

The current implementation of the health-tool does not support the extended slice elements of the root.

{
      "id" : "Patient.extension:race",
      "extension" : [{
        "url" : "http://hl7.org/fhir/us/core/StructureDefinition/uscdi-requirement",
        "valueBoolean" : true
      }],
      "path" : "Patient.extension",
      "sliceName" : "race",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "DomainResource.extension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension",
        "profile" : ["http://hl7.org/fhir/us/core/StructureDefinition/us-core-race"]
      }],
    }

Elements like above with the path Patient.extension:race were earlier ignored by the tool. This fix attempts to include them in the generated bal package.

Goals

  1. To generate records for slices of root extensions.

Release note

Generates records for slice elements of the root extension.

Automation tests

Tested for USCore700

Security checks

Test environment

Java: 21
Ballerina: 2201.12.3
OS: Windows 11

Learning

USCore700

@isuruh15 isuruh15 merged commit 2c3ddbf into ballerina-platform:main Jul 31, 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.

2 participants