Using Initializer for Drugs

Tags: #<Tag:0x00007f01dd1c1b88>

PIH is considering using Initializer for some types of configuration. Probably starting with Drugs. We would need an additional field or two for that loader. How should we go about negotiating those specs, at least until Initializer is brought into OpenMRS (which I take it from this thread is hopefully soon)?

@mksd @mksrom @mogoodrich @mseaton

1 Like

Hi @bistenes,

In short, no problem in regards to expanding on drugs.

Initializer to go to the community. I discussed this on the phone with @nthfloor. We will need to keep the control on the next release (1.2.0), “maybe” the following (1.3.0).

Okay, cool. Is Initializer deployed to any Maven repo? Is it possible to use it from the SDK, without checking out the git repo?

You can use our public Maven repo for now, this is a sample read-only config. Could that work for you?

Btw @bistenes, drugs are already supported. I’m curious to know already what limitations you may have faced with them?

Well, I’d thought that we had a non-coded “Concept Dosage Form” field, but then I found out it’s actually coded.

There is metadata (OpenBoxes IDs) associated with the drugs in our CSV drug lists, which are presently loaded with the Dipsensing module. But nothing actually happens with that metadata; i.e., the OpenBoxes IDs are not saved from the CSV into the database. We’d eventually want to save that as a drug reference term.

So actually, on reviewing everything, there are no changes we’d need immediately. Sorry for the bother.

Which version of OpenMRS Core are you using there?

We have stumbled upon an issue with Drugs from Core 2.x. I just haven’t had a chance to look at fixing it yet.

We’re on 2.2.0.

You will probably run into an issue but it’s on our radar and will be fixed soon. This is not supported past Core 1.12.x anymore.

We will introduce compatibility classes to workaround this problem (as well as other challenges). This requires us to completely Springify Iniz.

Both @samuel34 and I are working on it.

Cc. @nthfloor @mksrom

1 Like

Oh interesting, okay. I suppose we’ll wait until that problem is mitigated before we try to use it for drugs.

On a very tangential note, w/r/t Springification… I was musing the other day on whether it might be possible to create a standalone Initializer application that doesn’t require starting OpenMRS to run, so that one didn’t have to wait ten minutes for Liquibase, Spring, etc. to see the errors every time one made a configuration change. Is this on your radar at all? Do you think it would be feasible or worthwhile?

Sorry I completely missed your response here!

Sounds interesting, yes. In general I do my trials on a stripped down distro, so it’s not too bad, but such an option would be really cool!