Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add openmrs-module-fhir2extension #12

Merged
merged 1 commit into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 `[email protected]`, 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
<server>
<id>openmrs-module-fhir2extension</id>
<username>#{GITHUB_USERNAME}#</username>
<password>#{GITHUB_TOKEN}#</password>
</server>
```

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)
Expand Down
1 change: 1 addition & 0 deletions backend/distro.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
17 changes: 17 additions & 0 deletions backend/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
<openmrs.version>2.5.13-SNAPSHOT</openmrs.version>
<initializer.version>2.8.0-SNAPSHOT</initializer.version>
<datafilter.version>2.2.0-SNAPSHOT</datafilter.version>
<fhir2extension.version>1.0.0-SNAPSHOT</fhir2extension.version>
<oauth2login.version>1.4.0</oauth2login.version>
<create-users.version>1.0.0-SNAPSHOT</create-users.version>
<openmrsAtomfeed.version>2.6.3</openmrsAtomfeed.version>
Expand All @@ -50,6 +51,12 @@
<version>${create-users.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.openmrs.module</groupId>
<artifactId>fhir2extension-omod</artifactId>
<version>${fhir2extension.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.openmrs.module</groupId>
<artifactId>datafilter-omod</artifactId>
Expand Down Expand Up @@ -175,6 +182,16 @@
<updatePolicy>interval:10080</updatePolicy>
</snapshots>
</repository>
<repository>
<id>openmrs-module-fhir2extension</id>
<url>https://maven.pkg.github.com/icrc/openmrs-module-fhir2extension</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>

<pluginRepositories>
Expand Down
2 changes: 1 addition & 1 deletion database/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
2 changes: 0 additions & 2 deletions keycloak/users.csv
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
Expand Down
Loading