MCPcopy Index your code
hub / github.com/ballerina-platform/fhir-tools

github.com/ballerina-platform/fhir-tools @v3.3.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v3.3.0 ↗ · + Follow
1,049 symbols 2,740 edges 128 files 167 documented · 16%

Browse by type

Functions 913 Types & classes 133 Endpoints 3
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Health Tools

Building form Source

Prerequisites

  • Java 17
  • Ballerina Swan Lake Update 8 (v2201.8.1)
  • Add your Github Personal Access Token to the .m2/settings.xml to get access the ballerina-lang dependencies. (The access token should have the sufficient read access and make sure to have the id as ballerina-language-repo setting.xml file)
<servers>
    <server>
        <id>ballerina-language-repo</id>
        <username>{Github_username}</username>
        <password>{Github_PAT}</password>
    </server>
</servers>
  • Build the Codegen tool framework repo locally. This will add the required dependencies to your local maven repository.

Build

 mvn clean install

Supported Commands

```shell\ bal health fhir -m package -o output-dir spec-path bal health fhir -m package --package-name my.package.name -o output-dir spec-path bal health fhir -m template -o output-dir spec-path bal health fhir -m connector --config configuration-file-path -o output-dir

### Note
- `spec-path` is the path to the FHIR specifications. (i.e. In the specified path, there should be folder/s for each 
Implementation Guide containing the FHIR specification files.)

Directory structure of the `spec-path` should be as follows.
```shell
└── spec-path
    ├── AU-Base
    │   ├── CodeSystem-au-body-site.json
    │   ├── CodeSystem-au-location-physical-type.json
    │   ├── StructureDefinition-ahpraprofession-details.json
    │   ├── StructureDefinition-ahpraregistration-details.json
    │   ├── ValueSet-contact-purpose.json
    │   └── ValueSet-contact-Relationship-Type.json
    ├── CarinBB
    ├── international
    └── USCore

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Method 895
Class 129
Function 18
Enum 3
Route 3
Interface 1

Languages

Java98%
Python2%

Modules by API surface

native/fhir-to-bal-lib/src/main/java/org/wso2/healthcare/fhir/ballerina/packagegen/tool/model/Element.java41 symbols
native/fhir-to-bal-lib/src/main/java/org/wso2/healthcare/fhir/ballerina/packagegen/tool/model/ResourceTemplateContext.java29 symbols
native/fhir-to-bal-lib/src/main/java/org/wso2/healthcare/fhir/ballerina/packagegen/tool/utils/GeneratorUtils.java28 symbols
native/fhir-to-bal-lib/src/main/java/org/wso2/healthcare/fhir/ballerina/packagegen/tool/config/PackageConfig.java25 symbols
native/fhir-to-bal-lib/src/main/java/org/wso2/healthcare/fhir/ballerina/packagegen/tool/model/AnnotationElement.java24 symbols
native/fhir-to-bal-template/src/main/java/org/wso2/healthcare/fhir/codegen/ballerina/project/tool/config/BallerinaProjectToolConfig.java23 symbols
native/fhir-to-bal-lib/src/main/java/org/wso2/healthcare/fhir/ballerina/packagegen/tool/model/PackageTemplateContext.java22 symbols
native/fhir-to-bal-template/src/main/java/org/wso2/healthcare/fhir/codegen/ballerina/project/tool/model/FHIRProfile.java21 symbols
native/fhir-to-bal-template/src/main/java/org/wso2/healthcare/fhir/codegen/ballerina/project/tool/model/BallerinaService.java21 symbols
mcp/health-tool-mcp/server.py21 symbols
native/fhir-to-bal-template/src/main/java/org/wso2/healthcare/fhir/codegen/ballerina/project/tool/model/GeneratedUtil.java17 symbols
native/fhir-to-bal-lib/src/main/java/org/wso2/healthcare/fhir/ballerina/packagegen/tool/modelgen/AbstractResourceContextGenerator.java17 symbols

For agents

$ claude mcp add fhir-tools \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page