Skip to content

Instantly share code, notes, and snippets.

View mherman22's full-sized avatar
:octocat:
Try again and again and again

Herman Muhereza mherman22

:octocat:
Try again and again and again
View GitHub Profile
{
"swagger" : "2.0",
"info" : {
"description" : "OpenMRS RESTful API documentation generated by Swagger",
"version" : "2.8.0-42ce79",
"title" : "OpenMRS API Docs",
"contact" : {
"name" : "OpenMRS",
"url" : "http://openmrs.org"
},
config.distro-emr-configuration=3.3.0-SNAPSHOT
distro.artifactId=distro-emr-configuration
distro.groupId=org.openmrs
name=Ref 3.x distro
omod.addresshierarchy=2.17.0
omod.appointments=2.0.0-20240305.062514-14
omod.appointments.groupId=org.bahmni.module
omod.attachments=3.3.0-SNAPSHOT
omod.authentication=1.0.0
omod.calculation=1.3.0
#Tue Oct 08 11:53:28 EAT 2024
config.distro-emr-configuration=3.3.0-SNAPSHOT
distro.artifactId=distro-emr-configuration
distro.groupId=org.openmrs
name=Ref 3.x distro
omod.addresshierarchy=2.17.0
omod.appointments=2.1.0-SNAPSHOT
omod.appointments.groupId=org.bahmni.module
omod.attachments=3.3.0-SNAPSHOT
omod.authentication=1.0.0
@mherman22
mherman22 / distro.properties
Created September 17, 2024 17:44
Just a distro.properties file for setting up an openmrs v3 instance using the setup command
config.distro-emr-configuration=3.3.0-SNAPSHOT
distro.artifactId=distro-emr-configuration
distro.groupId=org.openmrs
name=Ref 3.x distro
omod.addresshierarchy=2.17.0
omod.appointments=2.0.0-20240305.062514-14
omod.appointments.groupId=org.bahmni.module
omod.attachments=3.2.0
omod.authentication=1.0.0
omod.calculation=1.3.0
@mherman22
mherman22 / having-multiple-jdk-macos.md
Created September 7, 2024 03:28 — forked from gramcha/having-multiple-jdk-macos.md
Managing multiple Java versions in MacOS

Installing different versions of open jdk through Homebrew(assuming already installed) and already having Java 8.

We need to install a tool called jenv - Java version manager which is similar to nvm(nodeJs version manager).

brew install jenv

Export the jenv path to .bash_profile or .zshrc - whatever you are using. I am using .zshrc

@mherman22
mherman22 / ReadMe.md
Created February 15, 2024 18:14
Install Oracle JDK 8 on Ubuntu 20 +
  • Head over to Oracle JDK 8 download page (https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html). Accept the license agreement and download the tar.gz file. It will prompt you to create an Oracle account.
  • After logging into your Oracle account, you can download JDK 8. Then open up a terminal window and navigate to the download directory. Then extract the tar.gz file to /usr/lib/jvm/ directory using sudo tar xvf jdk-8u221-linux-x64.tar.gz --directory /usr/lib/jvm/
  • Now we can check Java version using /usr/lib/jvm/jdk1.8.0_221/bin/java -version where the Output is
java version "1.8.0_221"
Java(TM) SE Runtime Environment (build 1.8.0_221-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.221-b11, mixed mode)
  • Check Java compiler version using/usr/lib/jvm/jdk1.8.0_221/bin/javac -version where the Output is javac 1.8.0_221
@mherman22
mherman22 / java-setup.md
Created January 27, 2024 19:11 — forked from starlinq/java-setup.md
How to install Java JDK8 in Ubuntu 16.04

How to install Java JDK8 in Ubuntu 16.04

Let's consider a JDK8 installation using 2 different versions: default and Oracle. The default version is easiest because it is packaged with Ubuntu.

There is default Java installation called the JDK (Java Development Kit). The JDK is usually only needed if you are going to to do some software developmwent using Java or if some software requires it. The JDK does contain the JRE.

Installing the default JDK

@mherman22
mherman22 / patient
Created September 28, 2023 05:49
$everything in fhir
java.lang.AssertionError:
Expected: response with HTTP status indicating request was handled successfully
but: response with status code <500> with message "Failed to call access method: org.hibernate.QueryException: not an association: patient"
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:6)
at org.openmrs.module.fhir2.providers.r3.PatientFhirResourceProviderIntegrationTest.shouldReturnForPatientTypeEverythingWhenCountIsSpecifiedAsXml(PatientFhirResourceProviderIntegrationTest.java:764)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
@mherman22
mherman22 / initializer.txt
Created August 20, 2023 17:07
Run "mvn clean install" on openmrs module initializer
mherman22@kuntakinte:~/Pictures/gsoc2023/openmrs-module-initializer$ mvn clean install
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Initializer [pom]
[INFO] Initializer API [jar]
[INFO] Initializer API with Bahmni [jar]
[INFO] Initializer API 2.2 [jar]
[INFO] Initializer API 2.3 [jar]
@Test
public void generateUUIDsForTests() {
int count = 10;
for (int i = 0; i < count; i++) {
UUID uuid = UUID.randomUUID();
String uuidString = uuid.toString();
System.out.println("Generated UUID: " + uuidString);
}
}