Giter Site home page Giter Site logo

d4l-data4life / hc-fhir-sdk-java Goto Github PK

View Code? Open in Web Editor NEW
0.0 5.0 1.0 36.2 MB

FHIR STU3 and R4 standard models and data types for Java (limited)

License: Other

Ruby 0.59% Makefile 0.02% Kotlin 1.16% Python 0.52% Java 97.71%
java java-sdk fhir fhir-parser

hc-fhir-sdk-java's Introduction

Data4life FHIR SDK for Android/Java

Data4life FHIR SDK for Android/Java

Minimal FHIR standard models and data types of STU3 and R4 for Android and Java

Explore the docs »

Report Bug · Request Feature

D4L CI - Latest Version

Table Of Contents

Documentation

Check current documentation

Installation

Add the following maven repository url to your root build.gradle:

allprojects {
    repositories {
        ...
        maven {
            url = URI("https://maven.pkg.github.com/d4l-data4life/hc-fhir-sdk-java")
            credentials {
                username = project.findProperty("gpr.user") as String? ?: System.getenv("PACKAGE_REGISTRY_USERNAME")
                password = project.findProperty("gpr.key") as String? ?: System.getenv("PACKAGE_REGISTRY_TOKEN")
            }
        }
    }
}

Your GitHub username and token needs to be stored in your global Gradle properties: ~/.gradle/gradle.properties

NOTICE

You need to have read access to this repository and generate a personal access token with repo, write:packages and read:packages scope.

gpr.user=github-username
gpr.key=github-token

Gradle

Add following dependencies to your app build.gradle.

dependencies {
    implementation "care.data4life.hc-fhir-sdk-java:fhir-java:$version"
}

Maintenance

Requirements

  • Android Studio 7.1.3

  • Java 8

  • Gradle 7.4.2

  • Python 3.5

  • Ruby

  • Bundler

  • Fastlane

Build

Description

fastlane is used to manage fhir-parser and integrate generated models into fhir-java project

fhir-parser is used to generate Java models from JSON examples for latest FHIR standard

Required resources include: * Base classes for primitive data types * Rules and templates for mapping * Settings with custom profiles and build targets

git submodule update --init --recursive
(for furst time installation)

Generating models

bundle exec fastlane generate_fhir_java_models

After generating the models please run a reformat code on the fhir-java/src-gen folder and make sure the test in ObservationTest and PatientTest adjustments are still in place.

Known issues with FHIR standard

  • String / Integer / Bool / URL are basic Java types and should inherit from FHIR Element in future versions.

Dependencies

hc-fhir-sdk-java's People

Contributors

aps avatar bitpogo avatar dependabot[bot] avatar wmontwe avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

wmontwe

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.