From 79ae1393f640a8e7a34dbf56b1c5e82bb0cedece Mon Sep 17 00:00:00 2001 From: Ian Date: Mon, 2 Aug 2021 13:14:11 -0400 Subject: [PATCH] Fix typo in FhirActivator --- .../main/java/org/openmrs/module/fhir2/FhirActivator.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/api/src/main/java/org/openmrs/module/fhir2/FhirActivator.java b/api/src/main/java/org/openmrs/module/fhir2/FhirActivator.java index 31fc9f6c3..4071bd5ae 100644 --- a/api/src/main/java/org/openmrs/module/fhir2/FhirActivator.java +++ b/api/src/main/java/org/openmrs/module/fhir2/FhirActivator.java @@ -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"); @@ -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);