Skip to content

Commit

Permalink
Fix typo in FhirActivator
Browse files Browse the repository at this point in the history
  • Loading branch information
ibacher committed Aug 2, 2021
1 parent 3eb50ed commit 79ae139
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions api/src/main/java/org/openmrs/module/fhir2/FhirActivator.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ public void started() {
if (applicationContext == null) {
throw new ModuleException("Cannot load FHIR2 module as the main application context is not available");
}
applicationContext.getBean("forR4", FhirContext.class).registerCustomType(GroupMember.class);

applicationContext.getBean("fhirR4", FhirContext.class).registerCustomType(GroupMember.class);

loadModules();
started = true;
log.info("Started FHIR");
Expand All @@ -83,7 +85,8 @@ public void contextRefreshed() {
if (!started) {
return;
}
applicationContext.getBean("forR4", FhirContext.class).registerCustomType(GroupMember.class);

applicationContext.getBean("fhirR4", FhirContext.class).registerCustomType(GroupMember.class);
loadModules();

lifecycleListeners.forEach(ModuleLifecycleListener::refreshed);
Expand Down

0 comments on commit 79ae139

Please sign in to comment.