Skip to content

Commit a3947df

Browse files
committed
Merge branch '2.1.2-merge'
# Conflicts: # openmrs/apps/clinical/patientMonitoringConf.json # openmrs/apps/reports/macroTemplates/CultureConversion.xls # openmrs/apps/reports/reports.json # openmrs/apps/reports/sql/cultureConversion.sql # playbooks/examples/setup.yml # playbooks/roles/bahmni-endtb-batch/tasks/main.yml
2 parents a53062f + 9a61b13 commit a3947df

33 files changed

+2545
-366
lines changed

openmrs/apps/clinical/app.json

Lines changed: 86 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"config": {
2323
"networkConnectivity" : {
2424
"showNetworkStatusMessage": true,
25-
"networkStatusCheckInterval": 5000,
25+
"networkStatusCheckInterval": 8000,
2626
"locales" : [
2727
{ "locale" : "fr", "css" : "offline-language-french"},
2828
{ "locale" : "es", "css": "offline-language-spanish"},
@@ -710,6 +710,60 @@
710710
"RETURN VISIT DATE": {
711711
"allowFutureDates": true
712712
},
713+
"Lab, Erythrocyte sedimentation rate":{
714+
"isTabular": true
715+
},
716+
"Lab, lymphocytes" : {
717+
"isTabular": true
718+
},
719+
"Lab, Mean Red Blood Cell volume": {
720+
"isTabular": true
721+
},
722+
"Lab, Activated partial thromboplastin time": {
723+
"isTabular": true
724+
},
725+
"Lab, Prothombon time" : {
726+
"isTabular": true
727+
},
728+
"Lab, INR" : {
729+
"isTabular": true
730+
},
731+
"Lab, Uric Acid" : {
732+
"isTabular": true
733+
},
734+
"Lab, Creatinine clearance" : {
735+
"isTabular": true
736+
},
737+
"Lab, GGT" : {
738+
"isTabular": true
739+
},
740+
"Erythrocyte sedimentation rate":{
741+
"disableAddNotes": true
742+
},
743+
"lymphocytes" : {
744+
"disableAddNotes": true
745+
},
746+
"Mean Red Blood Cell volume": {
747+
"disableAddNotes": true
748+
},
749+
"Activated partial thromboplastin time": {
750+
"disableAddNotes": true
751+
},
752+
"Prothombon time" : {
753+
"disableAddNotes": true
754+
},
755+
"INR" : {
756+
"disableAddNotes": true
757+
},
758+
"Uric Acid" : {
759+
"disableAddNotes": true
760+
},
761+
"Creatinine clearance" : {
762+
"disableAddNotes": true
763+
},
764+
"GGT" : {
765+
"disableAddNotes": true
766+
},
713767
"Lab, Hematocrit": {
714768
"isTabular": true
715769
},
@@ -797,6 +851,9 @@
797851
"SERUM POTASSIUM": {
798852
"disableAddNotes": true
799853
},
854+
"Erythrocyte sedimentation rate": {
855+
"disableAddNotes": true
856+
},
800857
"Lab, Magnesium test result": {
801858
"disableAddNotes": true
802859
},
@@ -932,8 +989,35 @@
932989
"Documents, Date": {
933990
"required": true
934991
},
935-
"Documents, Image": {
992+
"Pregnancy Report Form Template" : {
993+
"allowAddMore": true
994+
},
995+
"Hospital Admission Notification Template" : {
996+
"allowAddMore": true
997+
},
998+
"Hospital Discharge Summary Template" : {
999+
"allowAddMore": true
1000+
},
1001+
"HTO, The last day the patient received hepatitis C treatment" : {
1002+
"required": true
1003+
},
1004+
"DAS, Date alcohol abuse or PHQ-9 screening performed" : {
9361005
"required": true
1006+
},
1007+
"Hep C Treatment Outcome Template" : {
1008+
"allowAddMore": true
1009+
},
1010+
"Hep C Treatment Initiation Template" : {
1011+
"allowAddMore": true
1012+
},
1013+
"Depression Alcohol Score Template" : {
1014+
"allowAddMore": true
1015+
},
1016+
"HTI, Reason to start DAA at this time (chose all those that apply)" : {
1017+
"multiSelect": true
1018+
},
1019+
"HTI, Reason that DAA was not given during the study period" : {
1020+
"multiSelect": true
9371021
}
9381022
}
9391023
}

openmrs/apps/clinical/dashboard.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,24 @@
167167
"6 month Post Treatment Outcome Template"
168168
],
169169
"translationKey": "DASHBOARD_TITLE_OUTCOME_FORMS"
170+
},
171+
"HeptitiesCforms": {
172+
"type": "forms",
173+
"displayOrder": 12,
174+
"dashboardConfig": {
175+
"title": null,
176+
"maximumNoOfVisits": 12
177+
},
178+
"formGroup": [
179+
"Hep C Treatment Outcome Template",
180+
"Hep C Treatment Initiation Template",
181+
"Depression Alcohol Score Template"
182+
],
183+
"translationKey": "DASHBOARD_TITLE_HEP_FORMS"
170184
}
171185
},
172186
"translationKey": "DASHBOARD_TAB_GENERAL_KEY"
187+
173188
},
174189
"summary": {
175190
"displayByDefault": true,
@@ -199,6 +214,19 @@
199214
"displayOrder": 1,
200215
"translationKey": "SUMMARY_TITLE_TREATMENT_INFORMATION"
201216
},
217+
"HepctreatmentInfo": {
218+
"isObservation": true,
219+
"displayType": "Full-Page",
220+
"dashboardConfig": {
221+
"showGroupDateTime": false,
222+
"persistOrderOfConcepts": true,
223+
"conceptNames": [
224+
"HTI, DAA treatment start date:"
225+
]
226+
},
227+
"displayOrder": 2,
228+
"translationKey": "SUMMARY_TITLE_HEPC_TREATMENT_INFORMATION"
229+
},
202230
"casedefinition": {
203231
"isObservation": true,
204232
"displayType": "Full-Page",
@@ -774,6 +802,7 @@
774802
"dashboardConfig": {
775803
"groupByConcept": "Baseline, Date of baseline physical examination",
776804
"templateName": "Baseline, Clinical Examination",
805+
"obsDelimiter": "\n",
777806
"conceptNames": [
778807
"Visual acuity, left eye",
779808
"Visual acuity, right eye"

openmrs/apps/clinical/formConditions.js

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1065,6 +1065,63 @@ Bahmni.ConceptSet.FormConditions.rules = { //This is a constant that Bahmni
10651065
}
10661066
else
10671067
return false;
1068+
},
1069+
'HTO, DAA treatment outcome': function (formName, formFieldValues) {
1070+
var conditions = {enable: [], disable: []};
1071+
var outcome = formFieldValues['HTO, DAA treatment outcome'];
1072+
var Transferedout = "HTO, If Not evaluated, did the patient transfer out?";
1073+
var enDOD = "HTO, If death, date of death";
1074+
1075+
if (outcome == "HTO, Death") {
1076+
conditions.enable.push(enDOD);
1077+
} else {
1078+
conditions.disable.push(enDOD, Transferedout);
1079+
}
1080+
if (outcome == "HTO, Not Evaluated") {
1081+
conditions.enable.push(Transferedout);
1082+
} else {
1083+
conditions.disable.push(Transferedout, enDOD);
1084+
}
1085+
return conditions;
1086+
},
1087+
'HTO, If Not evaluated, did the patient transfer out?': function (formName, formFieldValues) {
1088+
var conditions = {enable: [], disable: []};
1089+
var transfered = formFieldValues['HTO, If Not evaluated, did the patient transfer out?'];
1090+
var where = "HTO, If transferred out, patient transferred out to where?";
1091+
var why = "HTO, If did not transfer out, why does the patient have this outcome?";
1092+
1093+
if (transfered == "True") {
1094+
conditions.enable.push(where);
1095+
} else {
1096+
conditions.disable.push(where, why);
1097+
}
1098+
if (transfered == "False") {
1099+
conditions.enable.push(why);
1100+
} else {
1101+
conditions.disable.push(why, where);
1102+
}
1103+
return conditions;
1104+
},
1105+
1106+
'HTI, Reason that DAA was not given during the study period': function (formName, formFieldValues) {
1107+
var conditions = {enable: [], disable: []};
1108+
var conditionConcept = formFieldValues['HTI, Reason that DAA was not given during the study period'];
1109+
if (conditionConcept == "Other") {
1110+
conditions.enable.push("HTI, Other reason not to start DAA during study period")
1111+
} else {
1112+
conditions.disable.push("HTI, Other reason not to start DAA during study period")
1113+
}
1114+
return conditions;
1115+
},
1116+
'HTI, Reason to start DAA at this time (chose all those that apply)': function (formName, formFieldValues) {
1117+
var conditions = {enable: [], disable: []};
1118+
var conditionConcept = formFieldValues['HTI, Reason to start DAA at this time (chose all those that apply)'];
1119+
if (conditionConcept == "Other") {
1120+
conditions.enable.push("HTI, Other reasons to start DAA")
1121+
} else {
1122+
conditions.disable.push("HTI, Other reasons to start DAA")
1123+
}
1124+
return conditions;
10681125
}
10691126

10701127
};

0 commit comments

Comments
 (0)