Introduction:
...
...
Anchor | ||||
---|---|---|---|---|
|
Design of the Module:
ER Diagram:
The module deals with creating cohorts and associating it with cohort attributes which are dependent on cohort attribute types
Every cohort member who is a patient is associated to the cohort and also it can have cohort member attributes which are dependent on cohort member attribute types.
Search operations can be performed based on name under the mange cohorts page
Each of the cohort can have many encounters ,visits and observations which are created utilizing the forms from the HTML Form Entry Module
The search operation would be based on the cohort unlike in OpenMRS which is based on only patient identifier/names.
It is also created utilizing the Rest interface from the Rest Module wherein the resources are identified in requests using URIs as resource identifiers to view cohorts, cohort encounters and cohort observations.
Anchor | ||||
---|---|---|---|---|
|
Cohort Web Service Web Integration:
anchor
We would be utilizing REST services in our module so that users who are not accessing OpenMRS can view the available data of the module by sending an HTTP GET or POST request
GET Request can be sent to view the data related to cohorts , cohort members, cohort encounters and cohort observations
POST Request can be sent to add data into the database by sending parameters as a JSON object.
To know more about REST MODULE click here : REST Module
...
Info | ||
---|---|---|
| ||
POST: http://localhost:8080/openmrs/ws/rest/v1/cohortm/cohort PARAMETERS: {"name":"neurologicalrecoverystudy","cohortType":"(list the related cohortType uuid)","cohortProgram":"(list the related cohortProgram uuid)"}
POST :http://localhost:8080/openmrs/ws/rest/v1/cohortm/ {"name":"Horatio","person":"(list the related person uuid)","cohort":"(list the related cohort uuid)"}
POST: http://localhost:8080/openmrs/ws/rest/v1/cohortm/ {"encounterType":"(list the related encounterType uuid)","visit":"(list the related visit uuid)","cohort":"(list the related cohort uuid)","form":"(list the related form uuid")}
POST: http://localhost:8080/openmrs/ws/rest/v1/cohortm/cohortobs PARAMETERS{"encounterId":"(list the related encounter uuid)","concept":"(list the related concept uuid)","cohort":"(list the related cohort uuid)"} |
...
...
Anchor | ||||
---|---|---|---|---|
|
The min version required for the openmrs core is 1.11.0
The two modules Rest Module of 2.11+ version and HTML Form Entry of 2.5+ version are the required modules.
HTML FORM ENTRY OMOD FILE : https://modules.openmrs.org/#/show/58/htmlformentry
REST MODULE OMOD FILE: https://modules.openmrs.org/#/show/153/webservices-rest
These modules should be running on OpenMRS core before installing the Cohort Module.
...
Widget Connector | ||
---|---|---|
|
User Manual
Anchor | ||||
---|---|---|---|---|
|
User Manual
Potential Improvements:
Anchor potential potential
Potential Improvements:
Integrate it with Reporting Module
- fetch / add members dynamically from reporting query instead of adding one by one.
- Create reports for cohorts
Integrate Cohort Management with core OpenMRS
...
Widget Connector url http://youtube.com/watch?v=2-mPO2Io9og
Anchor | ||||
---|---|---|---|---|
|
Downloads and Resources:
- Source Code
- Project Pages : Cohort Module, Cohort Module Enhancements
- OpenMRS Talk Discussions
- Sharon's GSoC '15 Blog posts
- Shreyans' GSoC '16 Blog posts
...