Skip to content

icrc/openmrs-android-fhir

Setup

Accessing artifacts hosted on GitHub necessitates the use of a GitHub account for downloading purposes:

  • Duplicate the file local.properties.default and rename it to local.properties.
  • Then, open the "local.properties" file and insert your GitHub account/token details.
  • Other properties ( URLS, oauth2) should be changed only if you use a custom OpenMRS / Keycloak Setup

To run the OpenMRS Server & Keycloak

Common setup issues fixes:

  1. Error 404 on clicking login button
    • Match the discovery_uri's port matches with your keycloak container's port in your file local.properties
  2. After successful login sync is failing directly & in logs it's throwing error 404:
    • Match the BASE_URL's port with your gateway container's port in your file local.properties
  3. The first sync is fetching too many resources:
    • Narrow down the scope of the download sync by modifying the urls here

OpenMRS Notes

to logout: http://localhost:8080/realms/main/protocol/openid-connect/logout There is an issue with current OpenMRS installation and SSO Logout process.

List of Users for OpenMRS: https://github.com/icrc/openmrs-distro-sso/blob/main/keycloak/users.csv

Keycloak and localhost vs 10.0.0.2

Keycloak can be accessed only from one URL but:

  • localhost will be used to log into OpenMRS Web application
  • 10.0.0.2 will be used from the android App

Thus the variable KC_HOSTNAME ( see docker-compose.yml, line 89) defining Keycloak hostname should be changed accordingly to the use case.

After a modification, Restart Keycloak with docker compose up -d that will restart only the service keycloak if you change that variable only or use docker compose restart keycloak.

Development

See https://github.com/google/android-fhir/tree/openmrs as a custom code is made for openmrs

Download

Android FHIR SDK with the FHIR Info Gateway

About

No description, website, or topics provided.

Resources

License

BSD-3-Clause, BSD-3-Clause licenses found

Licenses found

BSD-3-Clause
LICENSE
BSD-3-Clause
license-header.txt

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors 4

  •  
  •  
  •  
  •