I could not participate earlier in the developers forum, as I came late but I had this idea that I wanted to share: having a CLI interface in addition to the Web interface can be helpful for quick access/entry of data. is this a good project idea ? what do you think, is it feasible ?
I guess it could be done with a command that reads either from input or from a file ( for several entries), e.g add concept [required fields] [optional fields] . I have not though about the format yet
I agree that I don’t see a use case for a real user wanting to interact
with OpenMRS at the command line. Our end user is a doctor, or a data
clerk, not a sysadmin.
I could see some utility for a CLI, especially if it was incorporated into the SDK.
> sql select count(*) from patient
1320
> get visits.enabled
true
> patient.getPatient(1).personName
John Doe
> restart
Restarting OpenMRS... restarted in 27 seconds.
It’s harder to imagine a CLI like this being useful for data entry.
Python would offer a wider base of free & open source software contributors. We definitely get people coming to OpenMRS looking for python projects much more frequently than we do C* developers.
I’m not sure why I stopped playing with Groovy, but it’s a beautiful language. Node.js, Ruby, Python are all options. I would object to C, too much care needs to be taken with C.
I think the question i have is, is there any implementation asking for this?. The other thing is that in production we recommend admins to add/remove modules to/from the modules folder and restart OpenMRS as opposed to starting/stopping them through the application, so i wouldn’t put much effort in the starting/stopping modules feature.