Potential feature of varying encounter session duration

This is just a note of a feature that would be useful for our implementation of Bahmni. We currently have bahmni.encountersession.duration set to 240 minutes. For doctors in the outpatient clinic, it would be hard to work with anything shorter than this. But we also have some inpatients, and sometimes need make repeated vital signs observations every hour.

Right now there seems to be no way to support this in Bahmni. It would be useful if there was some solution to this, such as:

  • allow inpatient observations to be added without the idea of an encounter session
  • allow inpatient observations to have a different encounter session setting which could be set to something shorter

As far as I can tell, implementing a seperate bahmni.encountersession.duration variable for inpatients would require just a few changes to the function findMatchingEncounter in the file EncounterSessionMatcher.java in the bahmni-core module, and then the corresponding liquibase.xml and a few tests.

Is this the kind of feature it would be suitable to make a pull request for? or would we just need to build a custom bahmni-core module?

Another solution could be to mark encounters as ‘closed’ in the database rather than just based on the encounter start time. Then a feature could exist to manually close a consultation.