...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
"programs": { "id": "bahmni.programs", "extensionPointId": "org.bahmni.home.dashboard", "type": "link", "label": "Programs", "url": "../clinical/#/PROGRAMSprograms/patient/search", "icon": "fa-tasks", "order": 2, "requiredPrivilege": "app:clinical" } |
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{ "bahmniClinicalPatientsSearchActivePatientsForPrograms": { "id": "bahmni.clinical.patients.search.activePatients", "extensionPointId": "org.bahmni.patient.search", "type": "config", "extensionParams": { "searchHandler": "emrapi.sqlSearch.activePatients", "display": "Programs", "forwardUrl": "#/programs/patient/{{patientUuid}}/consultationContext" }, "label": "Active", "order": 1, "requiredPrivilege": "app:clinical" }, "bahmniClinicalPatientsSearchAllPatients": { "id": "bahmni.clinical.patients.search.allPatients", "extensionPointId": "org.bahmni.patient.search", "type": "config", "extensionParams": { "display": "All", "forwardUrl": "#/programs/patient/{{patientUuid}}/dashboard" }, "label": "All", "order": 2, "requiredPrivilege": "app:clinical" } } |
...
In the entity_mapping_type table, add a record to define the mapping between program and concept
Code Block language sql title entity_mapping_type entry insert into entity_mapping_type(name, uuid, entity1_type, entity2_type, date_created) values ('program_obstemplate', uuid(), 'org.openmrs.Program', 'org.openmrs.Concept', now())
In the entity_mapping table, insert a record to create the mapping between a specific program and the specific concept
Code Block language sql title entity_mapping entry insert into entity_mapping(uuid, entity_mapping_type_id, entity1_uuid, entity2_uuid, date_created) values (uuid(), <id_of_the_record_created_in_step_1>, <uuid_of_program>, <uuid_of_concept>, now())
...
Configuring the dashboard and Medication tab to show data within program enrollment date range
To view all the data in dashboard within and medication tab within the program enrollment date range add this config to clinical/app.json.
Code Block | ||||
---|---|---|---|---|
| ||||
"config" : { "program": { "showDashBoardWithinDateRangeshowDetailsWithinDateRange" : true, } } |
...
Info |
---|
To associate programs to patients, please see this user guide |
...