This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) Edit file postgresql.conf and add the next 3 lines (any where): | |
shared_preload_libraries = 'pg_stat_statements' | |
pg_stat_statements.max = 10000 | |
pg_stat_statements.track = all | |
2) Restart PostgreSQL | |
3) Execute the next command on psql, pgAdmin or similar: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TURN OFF: | |
update ir_mail_server set active = 'f'; | |
update fetchmail_server set active = 'f'; | |
update ir_cron set active = 'f' where function = 'schedule_backup'; | |
TURN ON: | |
update ir_mail_server set active = 't'; | |
update fetchmail_server set active = 't'; | |
update ir_cron set active = 't' where function = 'schedule_backup'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void run(BahmniEncounterTransaction bahmniEncounterTransaction) { | |
calculateAndAdd(bahmniEncounterTransaction); | |
calculateDiffSurgTimeInAndOut(bahmniEncounterTransaction); | |
} | |
static def calculateDiffSurgTimeInAndOut(BahmniEncounterTransaction bahmniEncounterTransaction){ | |
Collection<BahmniObservation> observations = bahmniEncounterTransaction.getObservations() | |
BahmniObservation surgicalTimeDataObservation = find("OR Section", observations, null); | |
BahmniObservation surgicalTimeInObservation = find("Surgical Time In",surgicalTimeDataObservation ? [surgicalTimeDataObservation] : [], null); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"general":{ | |
"translationKey":"DASHBOARD_TAB_GENERAL_KEY", | |
"displayByDefault":true, | |
"maxRecentlyViewedPatients":10, | |
"sections":{ | |
"patientInformation":{ | |
"translationKey":"DASHBOARD_TITLE_PATIENT_INFORMATION_KEY", | |
"type":"patientInformation", | |
"displayOrder":0, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bahmni.ConceptSet.FormConditions.rules = { | |
'Diastolic Data' : function (formName, formFieldValues) { | |
var systolic = formFieldValues['Systolic']; | |
var diastolic = formFieldValues['Diastolic']; | |
if (systolic || diastolic) { | |
return { | |
enable: ["Posture"] | |
} | |
} else { | |
return { |