Skip to content

ballerina-platform/fhir-tools

Repository files navigation

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

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

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.

└── 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