ballerina-platform / fhir-tools

Tools that generate FHIR-related Ballerina artefacts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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. (Make sure to have the id as ballerina-language-repo)
<servers>
    <server>
        <id>ballerina-language-repo</id>
        <username>{Github_username}</username>
        <password>{Github_PAT}</password>
    </server>
</servers>

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

About

Tools that generate FHIR-related Ballerina artefacts

License:Apache License 2.0


Languages

Language:Java 100.0%Language:Ballerina 0.0%