From a74b6b150768e009409651a029ec5936ae924e43 Mon Sep 17 00:00:00 2001 From: Fred Deniger Date: Fri, 22 Nov 2024 09:30:14 +0100 Subject: [PATCH] add openmrs-module-fhir2extension --- README.md | 22 ++++++++++++++++++++++ backend/distro.properties | 1 + backend/pom.xml | 17 +++++++++++++++++ database/README.md | 2 +- keycloak/users.csv | 2 -- 5 files changed, 41 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ed59fce..25d701f 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,28 @@ This distribution is a customized version of https://github.com/openmrs/openmrs- To login you can use the username (before @). For instance to log as `doctor.many@localhost.local`, you can use `doctor.many` in sso login page. + +## Maven configuration and GitHub token + +https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-apache-maven-registry#authenticating-to-github-packages + +To access to packages deployed on GitHub (https://github.com/icrc/openmrs-module-fhir2extension), you must have a GitHub account and provide a PAT. +Any GitHub account is working, You should configure your `settings.xml`file by adding: + +```xml + + openmrs-module-fhir2extension + #{GITHUB_USERNAME}# + #{GITHUB_TOKEN}# + +``` + +GITHUB_TOKEN is a `personal access token (classic) with at least read:packages scope to install packages associated with other private repositories (which GITHUB_TOKEN can't access).` + +To access to GitHub repositories a token is required. The file `settings-template.xml` can be used as a template to edit +your file `settings.xml` +Developers have to edit their file `settings.xml` to add valid token taken from a GitHub account. + # How to use images: A default docker-compose file is available here: [https://github.com/icrc/openmrs-android-fhir/docker-compose.yml](https://github.com/icrc/openmrs-android-fhir/blob/main/docker-compose.yml) diff --git a/backend/distro.properties b/backend/distro.properties index bc2cdcc..3bdda9e 100644 --- a/backend/distro.properties +++ b/backend/distro.properties @@ -32,6 +32,7 @@ omod.datafilter=${datafilter.version} omod.oauth2login=${oauth2login.version} # create users using datafilter on locations omod.create-users=${create-users.version} +omod.fhir2extension=${fhir2extension.version} # To Remove error: java.lang.NoClassDefFoundError: org/ict4h/atomfeed/transaction/AFTransactionWork #omod.openmrs-atomfeed=${openmrsAtomfeed.version} #omod.openmrs-atomfeed.groupId=org.ict4h.openmrs diff --git a/backend/pom.xml b/backend/pom.xml index 363b410..38dde93 100644 --- a/backend/pom.xml +++ b/backend/pom.xml @@ -25,6 +25,7 @@ 2.5.13-SNAPSHOT 2.8.0-SNAPSHOT 2.2.0-SNAPSHOT + 1.0.0-SNAPSHOT 1.4.0 1.0.0-SNAPSHOT 2.6.3 @@ -50,6 +51,12 @@ ${create-users.version} provided + + org.openmrs.module + fhir2extension-omod + ${fhir2extension.version} + provided + org.openmrs.module datafilter-omod @@ -175,6 +182,16 @@ interval:10080 + + openmrs-module-fhir2extension + https://maven.pkg.github.com/icrc/openmrs-module-fhir2extension + + true + + + true + + diff --git a/database/README.md b/database/README.md index e127c06..fa51079 100644 --- a/database/README.md +++ b/database/README.md @@ -18,4 +18,4 @@ It's possible to create another dump by using the scripts in the folder `dump-ex ## Improvements -it's possible to automate the full process but this operation is not oftenly used so these steps are acceptable. +it's possible to automate the full process but this operation is not often used so these steps are acceptable. diff --git a/keycloak/users.csv b/keycloak/users.csv index 11014a8..19f29e9 100644 --- a/keycloak/users.csv +++ b/keycloak/users.csv @@ -1,6 +1,4 @@ admin@localhost.local -clerk@localhost.local -doctor@localhost.local clerk.l1@localhost.local clerk.l2@localhost.local clerk.l3@localhost.local