So I’d made a copy of the clinical app inside the default-config and also openmrs-module-bahmniapps and renamed to postClinical.
Also I updated the postClinical app ID inside default-config/openmrs/apps/postClinical/app.json and all the related ID’s (extension-programs.json, extension.json)
Done the same in the openmrs-module-bahmniapps/ui/apps/postClinical/ updated all the angular.module(‘bahmni.clinical’) to angular.module(‘bahmni.postClinical’) inside controllers, directives, services, modules, mappers, etc.
Updated the gruntfile.js in order to run all the compilation and create the new postClinical inside the dist folder and it works after run the grunt command
Added the new postClinical app to the home dashboard and it works without a problem, when I click the app icon it redirect me to the list of Active Patients and inside the Patient Search view I can click one patient and it redirect me to the Patient Dashboard just the same like the original Clinical app
But, I have a problem, when I want to show/hide display controls my new postClinical app sections inside the Patient Dashboard updating the default-config/openmrs/apps/postClinical/dashboard.jsonnothing happen.
I followed this guide in order to Show/Hide Display Control for the Clinical Apps, but it only works inside the original Clinical app (default-config/openmrs/apps/clinical/dashboard.json), not in my new postClinical app.
Could it be that the dashboard of your post clinical app is still driven by config/openmrs/apps/clinical/dashboard.json (and not by config/openmrs/apps/postClinical/dashboard.json)?
Well when I add this line inside one or more sections that are empty with No data => “hideEmptyDisplayControl”: true
It suppost to hide the section, also when I delete a section inside config/openmrs/apps/postClinical/dashboard.json the dashboard remain the same with all the default sections.
About this: Could it be that the dashboard of your post clinical app is still driven by config/openmrs/apps/clinical/dashboard.json (and not by config/openmrs/apps/postClinical/dashboard.json)?
Well I just check that and is correct, the /clinical/dashboard.json file is still driven the postClinical app. How I can change that?