Enable dispensing module in the application

Morning, Still stuck where I was. Need some help. Can’t get the code. Thanks

Yeah, as @ball mentioned, although we are using this at many locations at PIH, it’s always been a slightly hacky implementation and not well documented.

Also, we are likely going to be building and migrating to a new dispense model (and module) going forward, I would check out the discussion here: Plans for integrated prescribing/dispensing workflow - #10 by dkayiwa

Morning, Thanks @mogoodrich, that was helpful

Hello dear implementers!

Hello everyone, how did you finally solve the problem? I successfully configured it, and when I click on the prescription icon, the medication administration window opens. But when I click to administer, I get this error. Any help? Thanks in advance!

UI Framework Error Root Error

java.lang.RuntimeException: Cannot find tag: null at org.openmrs.module.htmlformentry.element.EncounterDetailSubmissionElement.(EncounterDetailSubmissionElement.java:338) at org.openmrs.module.htmlformentry.handler.EncounterLocationHandler.getSubstitution(EncounterLocationHandler.java:38) at org.openmrs.module.htmlformentry.handler.SubstitutionTagHandler.doStartTag(SubstitutionTagHandler.java:40) at org.openmrs.module.htmlformentry.HtmlFormEntryGenerator.applyTagsHelper(HtmlFormEntryGenerator.java:615) at org.openmrs.module.htmlformentry.HtmlFormEntryGenerator.applyTagsHelper(HtmlFormEntryGenerator.java:632) at org.openmrs.module.htmlformentry.HtmlFormEntryGenerator.applyTagsHelper(HtmlFormEntryGenerator.java:632) at org.openmrs.module.htmlformentry.HtmlFormEntryGenerator.applyTagsHelper(HtmlFormEntryGenerator.java:632) at org.openmrs.module.htmlformentry.HtmlFormEntryGenerator.applyTagsHelper(HtmlFormEntryGenerator.java:632) at org.openmrs.module.htmlformentry.HtmlFormEntryGenerator.applyTagsHelper(HtmlFormEntryGenerator.java:632) at org.openmrs.module.htmlformentry.HtmlFormEntryGenerator.applyTagsHelper(HtmlFormEntryGenerator.java:632) at org.openmrs.module.htmlformentry.HtmlFormEntryGenerator.applyTags(HtmlFormEntryGenerator.java:588) at org.openmrs.module.htmlformentry.FormEntrySession.createForm(FormEntrySession.java:433) at org.openmrs.module.htmlformentry.FormEntrySession.getHtmlToDisplay(FormEntrySession.java:1055) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:98) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325) at org.codehaus.groovy.runtime.metaclass.MethodMetaProperty$GetBeanMethodMetaProperty.getProperty(MethodMetaProperty.java:76) at org.codehaus.groovy.runtime.callsite.GetEffectivePojoPropertySite.getProperty(GetEffectivePojoPropertySite.java:63) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty(AbstractCallSite.java:299) at SimpleTemplateScript23.run(SimpleTemplateScript23.groovy:159) at groovy.text.SimpleTemplateEngine$SimpleTemplate$1.writeTo(SimpleTemplateEngine.java:181) at groovy.text.SimpleTemplateEngine$SimpleTemplate$1.toString(SimpleTemplateEngine.java:193) at org.openmrs.ui.framework.fragment.GroovyFragmentView.render(GroovyFragmentView.java:46) at org.openmrs.ui.framework.fragment.FragmentFactory.processThisFragment(FragmentFactory.java:196) at org.openmrs.ui.framework.fragment.FragmentFactory.process(FragmentFactory.java:124) at org.openmrs.ui.framework.page.PageContext.includeFragment(PageContext.java:77) at org.openmrs.ui.framework.UiUtils.includeFragment(UiUtils.java:170) at org.openmrs.ui.framework.UiUtils$includeFragment$15.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:144) at SimpleTemplateScript22.run(SimpleTemplateScript22.groovy:30) at groovy.text.SimpleTemplateEngine$SimpleTemplate$1.writeTo(SimpleTemplateEngine.java:181) at groovy.text.SimpleTemplateEngine$SimpleTemplate$1.toString(SimpleTemplateEngine.java:193) at org.openmrs.ui.framework.page.GroovyPageView.render(GroovyPageView.java:43) at org.openmrs.ui.framework.page.PageFactory.processThisFragment(PageFactory.java:188) at org.openmrs.ui.framework.page.PageFactory.process(PageFactory.java:117) at org.openmrs.ui.framework.page.PageFactory.handle(PageFactory.java:86)