diff --git a/LICENSE b/LICENSE index 722fa1769..d7d3aaaf3 100644 --- a/LICENSE +++ b/LICENSE @@ -1,5 +1,6 @@ -Bahmni OpenMRS Apps -Copyright 2014 ThoughtWorks, Inc +Bahmni application configuration for default demo setup + +Copyright (C) 2018 OpenMRS, Inc This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as diff --git a/offline/openmrs/apps/registration/app.json b/offline/openmrs/apps/registration/app.json index d3bf8688f..f7f8fb498 100755 --- a/offline/openmrs/apps/registration/app.json +++ b/offline/openmrs/apps/registration/app.json @@ -82,10 +82,6 @@ } ], "conceptSetUI": { - "REGISTRATION FEES": { - "required": true, - "label": "Fee" - }, "FHS": { "buttonSelect": true }, diff --git a/offline/openmrs/apps/registration/extension.json b/offline/openmrs/apps/registration/extension.json index 8b1f3fc23..222990c76 100755 --- a/offline/openmrs/apps/registration/extension.json +++ b/offline/openmrs/apps/registration/extension.json @@ -44,17 +44,5 @@ }, "order": 1, "requiredPrivilege": "Edit Visits" - }, - "feeInformation":{ - "id": "bahmni.registration.conceptSetGroup.feeInformation", - "extensionPointId": "org.bahmni.registration.conceptSetGroup.observations", - "type": "config", - "extensionParams": { - "conceptName": "Fee Information", - "translationKey": "FEE_INFORMATION_LOCALE_KEY", - "required":true - }, - "order": 2, - "requiredPrivilege": "Edit Visits" } } diff --git a/openmrs/apps/appointments/app.json b/openmrs/apps/appointments/app.json index ad88678de..ac6f6257a 100644 --- a/openmrs/apps/appointments/app.json +++ b/openmrs/apps/appointments/app.json @@ -9,7 +9,7 @@ ], "config": { "minCharLengthToTriggerPatientSearch": 3, - "enableSpecialities": true, + "enableSpecialities": false, "startOfWeek": 2, "weekStart": "isoWeek", "calendarSlotDuration": "00:30", diff --git a/openmrs/apps/clinical/app.json b/openmrs/apps/clinical/app.json index 2f0150229..989b3ebca 100644 --- a/openmrs/apps/clinical/app.json +++ b/openmrs/apps/clinical/app.json @@ -40,31 +40,25 @@ "program": { "patientInformation": { "ageLimit": 100 - }, - "ID_Number": { - "required" : true - }, - "Co-morbidites": { - "excludeFrom": ["HIV Program"] - }, + }, "Doctor": { - "excludeFrom": ["TB Program"] + "excludeFrom": ["HIV Program","HEI Program","ART Program","PMTCT Program"] + }, + "Stage":{ + "excludeFrom": ["HEI Program","PMTCT Program"] } }, "patientContext": { "programAttributes": [ - "Id_Number", + "Doctor", - "Stage" + "Stage" + ], "personAttributes": [ "class", "caste" - ], - "additionalPatientIdentifiers": [ - "National ID" - ], - "preferredIdentifier": "Id_Number" + ] }, "obsIgnoreList": [ "REGISTRATION FEES", @@ -115,7 +109,7 @@ }, "Set2": { "allowAddMore": true - }, + }, "Coded3": { "multiSelect": true }, @@ -123,11 +117,140 @@ "allowAddMore": true }, "Gynaecology, Gravida": { - "stepper": true + "stepper": true }, + "Consultation Images": { + "allowAddMore": true + }, + "General Family Information": { + "allowAddMore": true + }, + "ART Regimen - Substitution within 1st Line": { + "allowAddMore": true + }, "Accepted Family Planning methods": { "multiSelect": true }, + "Other Entry Point":{ + "required":true + }, + "Other - Occupation":{ + "required":true + }, + "HIV - Entry Point":{ + "required":true + }, + "Name of Clinic":{ + "required":true + }, + "Date Transferred in":{ + "required":true + }, + "Literate":{ + "required":true + }, + "Education Level":{ + "required":true + }, + "HIV Care - Alcohol Intake":{ + "required":true + }, + "Drug Allergies":{ + "required":true + }, + "HIV Care -Drug Allergies Notes":{ + "required":true + }, + "ARVs Received in":{ + "required":true + }, + "Place Received ART":{ + "required":true + }, + "Other (Place specify)":{ + "required":true + }, + "Were ARVS Received , In Clinical Milestones":{ + "required":true + }, + "ART Follow up - Scheduled Date":{ + "required":true + }, + "FP Method":{ + "required":true + }, + "Number of Days Hospitalized":{ + "required":true + }, + "Child Regimen Information":{ + "allowAddMore": true + }, + "ART Regimen(Switch to 2nd Line)":{ + "allowAddMore": true + }, + "Reason":{ + "required":true + }, + "Specify Reason For Art Stop":{ + "required":true + }, + "Other Reason":{ + "required":true + }, + "Other Reason(Second Regimen Change)":{ + "required":true + }, + "Regimen Switched To":{ + "required":true + }, + "ART Treatment Reasons For Stop":{ + "required":true + }, + "Other Reason(First Line Regimen Change)":{ + "required":true + }, + "Immunization Not Given":{ + "required":true + }, + "Specify other Assessement":{ + "required":true + }, + "Development Milestones Missed":{ + "required":true + }, + "Specify other Mother's ART Regimen":{ + "required":true + }, + "HEI Treatment - Enrolled AT ART Date":{ + "required":true + }, + "HEI Treatment - Referred To ART Clinic Date":{ + "required":true + }, + "ANC, ART Start Date":{ + "required":true + }, + "ART ,Stop Date":{ + "required":true + }, + "CTX or Dapose Start Date":{ + "required":true + }, + "Classification Of Adherence":{ + "required":true + }, + "EDD":{ + "required":true + }, + "PMTCT - HIV & ART Follow up":{ + "required":true + }, + "WHO Stage":{ + "dropdown":true + }, + "Medical History":{ + "multiSelect" : true + }, "defaults": { "Number of living children": 1, "Accepted Family Planning methods": [ diff --git a/openmrs/apps/clinical/dashboard.json b/openmrs/apps/clinical/dashboard.json index 7febca3b0..0553265a4 100644 --- a/openmrs/apps/clinical/dashboard.json +++ b/openmrs/apps/clinical/dashboard.json @@ -82,12 +82,6 @@ "showDetailsButton":true } }, - "radiology":{ - "translationKey":"DASHBOARD_TITLE_RADIOLOGY_KEY", - "type":"radiology", - "showDetailsButton":true, - "displayOrder":5 - }, "programs":{ "translationKey":"DASHBOARD_TITLE_PROGRAMS_KEY", "type":"programs", @@ -105,16 +99,6 @@ "numberOfVisits":4 } }, - "pacs":{ - "orderType":"Radiology Order", - "type":"pacsOrders", - "translationKey":"DASHBOARD_TITLE_PACS_KEY", - "displayOrder":8, - "dashboardConfig":{ - "pacsImageUrl":"/oviyam2/viewer.html?patientID={{patientID}}&accessionNumber={{orderNumber}}", - "numberOfVisits":4 - } - }, "labOrdersDisplayControl":{ "translationKey":"DASHBOARD_TITLE_LAB_ORDERS_DISPLAY_CONTROL_KEY", "type":"ordersControl", @@ -139,17 +123,6 @@ "showDetailsButton":true } }, - "bacteriologyResults":{ - "translationKey":"DASHBOARD_TITLE_BACTERIOLOGY_RESULTS_KEY", - "type":"bacteriologyResultsControl", - "scope":"All", - "orderType":"", - "dashboardConfig":{ - "conceptNames":[ - "BACTERIOLOGY CONCEPT SET" - ] - } - }, "labResults":{ "translationKey":"DASHBOARD_TITLE_LAB_RESULTS_KEY", "type":"labOrders", @@ -278,52 +251,6 @@ } } }, - "gynaecology":{ - "translationKey":"DASHBOARD_TITLE_GYNAECOLOGY_KEY", - "type":"gynaecology", - "isObservation":true, - "displayOrder":15, - "dashboardConfig":{ - "conceptNames":[ - "Gynaecology" - ], - "showDetailsButton":true, - "numberOfVisits":2 - }, - "expandedViewConfig":{ - "conceptNames":[ - "Gynaecology" - ], - "numberOfVisits":2, - "showDetailsButton":true, - "pivotTable":{ - - } - } - }, - "obstetrics":{ - "translationKey":"DASHBOARD_TITLE_OBSTETRICS_KEY", - "type":"obstetrics", - "isObservation":true, - "displayOrder":16, - "dashboardConfig":{ - "showDetailsButton":true, - "conceptNames":[ - "Obstetrics" - ], - "numberOfVisits":2 - }, - "expandedViewConfig":{ - "conceptNames":[ - "Obstetrics" - ], - "numberOfVisits":2, - "showDetailsButton":true, - "pivotTable":{ - - } - } - }, "visits":{ "translationKey":"DASHBOARD_TITLE_VISITS_KEY", "type":"visits", @@ -334,51 +261,6 @@ "groupByVisits":true } }, - "diabetes":{ - "title":"Diabetes", - "templateName":"Diabetes Templates", - "type":"diseaseTemplate", - "displayOrder":18, - "dashboardConfig":{ - "showOnly":[ - - ] - }, - "expandedViewConfig":{ - "showDetailsButton":true, - "pivotTable":{ - "numberOfVisits":"15", - "groupBy":"encounters", - "obsConcepts":[ - "Weight", - "Height", - "Systolic", - "Diastolic", - "Diabetes, Foot Exam", - "Diabetes, Eye Exam" - ], - "drugConcepts":[ - "Ipratropium Pressurised", - "Garbhpal Rasa" - ], - "labConcepts":[ - "RBS", - "FBS", - "PP2BS", - "Hb1AC", - "Creatinine", - "Albumin", - "Polymorph" - ] - } - } - }, - "admissionDetails":{ - "translationKey":"DASHBOARD_TITLE_ADMISSION_DETAILS_KEY", - "type":"admissionDetails", - "displayOrder":19, - "showDetailsButton":true - }, "conditions": { "translationKey":"CONDITION_LIST_DISPLAY_CONTROL_TITLE", "type": "conditionsList", @@ -534,23 +416,6 @@ "translationKey":"DASHBOARD_TAB_PATIENT_SUMMARY_KEY", "maxRecentlyViewedPatients":10, "sections":{ - "Bacteriology Concept Set":{ - "displayType":"Full-Page", - "translationKey":"DASHBOARD_TITLE_BACTERIOLOGY_RESULTS_KEY", - "type":"obsToObsFlowSheet", - "dashboardConfig":{ - "numberOfVisits":1, - "templateName":"BACTERIOLOGY CONCEPT SET", - "groupByConcept":"Specimen Collection Date", - "conceptNames":[ - "Specimen Id" - ] - }, - "expandedViewConfig":{ - "templateName":"BACTERIOLOGY CONCEPT SET", - "groupByConcept":"Specimen Collection Date" - } - }, "HistoryAndExamination":{ "type":"historyAndExamination", "isObservation":true, diff --git a/openmrs/apps/clinical/extension.json b/openmrs/apps/clinical/extension.json index 8dd401c45..53239de05 100644 --- a/openmrs/apps/clinical/extension.json +++ b/openmrs/apps/clinical/extension.json @@ -131,28 +131,160 @@ "order": 5, "requiredPrivilege": "app:clinical" }, - "bahmniClinicalConceptSetGroupObservationsHistory": { + "bahmniClinicalConceptSetGroupObservationsHIV": { "id": "bahmni.clinical.conceptSetGroup.observations.history", "extensionPointId": "org.bahmni.clinical.conceptSetGroup.observations", "type": "config", "extensionParams": { - "conceptName": "History and Examination", + "conceptName": "HIV AND PERSONAL HISTORY FORM", "default": true }, "order": 1, "requiredPrivilege": "app:clinical:history" }, - "bahmniClinicalConceptSetGroupObservationsVitals": { + "bahmniClinicalConceptSetGroupObservationsARTHistory": { "id": "bahmni.clinical.conceptSetGroup.observations.vitals", "extensionPointId": "org.bahmni.clinical.conceptSetGroup.observations", "type": "config", "extensionParams": { "default": true, - "conceptName": "Vitals" + "conceptName": "ART History And Clinical Milestone" + }, + "order": 3, + "requiredPrivilege": "app:clinical" + }, + "bahmniClinicalConceptSetGroupObservationsFamilyHistory": { + "id": "bahmni.clinical.conceptSetGroup.observations.vitals", + "extensionPointId": "org.bahmni.clinical.conceptSetGroup.observations", + "type": "config", + "extensionParams": { + "default": true, + "conceptName": "HIV CARE - Family History Data" }, "order": 2, "requiredPrivilege": "app:clinical" }, + "bahmniClinicalConceptSetGroupObsertionsInterruption": { + "id": "bahmni.clinical.conceptSetGroup.observations.vitals", + "extensionPointId": "org.bahmni.clinical.conceptSetGroup.observations", + "type": "config", + "extensionParams": { + "default": true, + "conceptName": "ART Treatment And Interruption Form" + }, + "order": 4, + "requiredPrivilege": "app:clinical" + }, + "bahmniClinicalConceptSetGroupObsertionsHIVART": { + "id": "bahmni.clinical.conceptSetGroup.observations.vitals", + "extensionPointId": "org.bahmni.clinical.conceptSetGroup.observations", + "type": "config", + "extensionParams": { + "default": true, + "conceptName": "HIV AND ART FOLLOW UP FORM" + }, + "order": 5, + "requiredPrivilege": "app:clinical" + }, + "bahmniClinicalConceptSetGroupObsertionsTB": { + "id": "bahmni.clinical.conceptSetGroup.observations.vitals", + "extensionPointId": "org.bahmni.clinical.conceptSetGroup.observations", + "type": "config", + "extensionParams": { + "default": true, + "conceptName": "TB FORM" + }, + "order": 6, + "requiredPrivilege": "app:clinical" + }, + "bahmniClinicalConceptSetGroupObsertionsEndTB": { + "id": "bahmni.clinical.conceptSetGroup.observations.vitals", + "extensionPointId": "org.bahmni.clinical.conceptSetGroup.observations", + "type": "config", + "extensionParams": { + "default": true, + "conceptName": "End Of Follow Up Form" + }, + "order": 7, + "requiredPrivilege": "app:clinical" + }, + "bahmniClinicalConceptSetGroupObsertionsANCCARD": { + "id": "bahmni.clinical.conceptSetGroup.observations.vitals", + "extensionPointId": "org.bahmni.clinical.conceptSetGroup.observations", + "type": "config", + "extensionParams": { + "default": true, + "conceptName": "ANC CARD FORM" + }, + "order": 9, + "requiredPrivilege": "app:clinical" + }, + "bahmniClinicalConceptSetGroupObsertionsViralLoad": { + "id": "bahmni.clinical.conceptSetGroup.observations.vitals", + "extensionPointId": "org.bahmni.clinical.conceptSetGroup.observations", + "type": "config", + "extensionParams": { + "default": true, + "conceptName": "Viral Load Lab Request Form" + }, + "order": 8, + "requiredPrivilege": "app:clinical" + }, + "bahmniClinicalConceptSetGroupObsertionsHEIEnrollment": { + "id": "bahmni.clinical.conceptSetGroup.observations.vitals", + "extensionPointId": "org.bahmni.clinical.conceptSetGroup.observations", + "type": "config", + "extensionParams": { + "default": true, + "conceptName": "HEI Enrollment Form" + }, + "order": 10, + "requiredPrivilege": "app:clinical" + }, + "bahmniClinicalConceptSetGroupObsertionsInfantFollowup": { + "id": "bahmni.clinical.conceptSetGroup.observations.vitals", + "extensionPointId": "org.bahmni.clinical.conceptSetGroup.observations", + "type": "config", + "extensionParams": { + "default": true, + "conceptName": "Infant Clinical Follow Up Form" + }, + "order": 12, + "requiredPrivilege": "app:clinical" + }, + "bahmniClinicalConceptSetGroupObsertionsHEITesting": { + "id": "bahmni.clinical.conceptSetGroup.observations.vitals", + "extensionPointId": "org.bahmni.clinical.conceptSetGroup.observations", + "type": "config", + "extensionParams": { + "default": true, + "conceptName": "HEI TESTING INFORMATION" + }, + "order": 11, + "requiredPrivilege": "app:clinical" + }, + "bahmniClinicalConceptSetGroupObsertionsHEIEndOfFollowup": { + "id": "bahmni.clinical.conceptSetGroup.observations.vitals", + "extensionPointId": "org.bahmni.clinical.conceptSetGroup.observations", + "type": "config", + "extensionParams": { + "default": true, + "conceptName": "HEI END OF FOLLOW UP FORM" + }, + "order": 13, + "requiredPrivilege": "app:clinical" + }, + "bahmniClinicalConceptSetGroupObsertionsARTTreatment": { + "id": "bahmni.clinical.conceptSetGroup.observations.vitals", + "extensionPointId": "org.bahmni.clinical.conceptSetGroup.observations", + "type": "config", + "extensionParams": { + "default": true, + "conceptName": "ART Treatment And Interruptions Form" + }, + "order": 4, + "requiredPrivilege": "app:clinical" + }, "bahmniClinicalConceptSetGroupObservationsSecondVitals": { "id": "bahmni.clinical.conceptSetGroup.observations.secondVitals", "extensionPointId": "org.bahmni.clinical.conceptSetGroup.observations", @@ -235,4 +367,8 @@ "order": 7, "requiredPrivilege": "app:clinical:bacteriologyTab" } -} \ No newline at end of file + + + +} + diff --git a/openmrs/apps/clinical/formConditions.js b/openmrs/apps/clinical/formConditions.js index 9179a948a..4ce0b92d4 100644 --- a/openmrs/apps/clinical/formConditions.js +++ b/openmrs/apps/clinical/formConditions.js @@ -24,5 +24,480 @@ Bahmni.ConceptSet.FormConditions.rules = { disable: ["Posture"] } } - } -}; \ No newline at end of file + }, + "End Of Follow Up Reason" : function(formName, formFieldValues) { + var death = formFieldValues["End Of Follow Up Reason"]; + if(death === "Death during treatment") { + return { + hide: ["Lost To Follow Up Information" , "Transferred Out Information"], + show:["Death Information"] + } + } else if( death === "Lost Follow Up(< 28days)"){ + return { + hide: ["Death Information", "Transferred Out Information"], + show: ["Lost To Follow Up Information"] + } + }else if (death === "Transferred Out"){ + return { + hide: ["Lost To Follow Up Information" , "Death Information"], + show: ["Transferred Out Information"] + } + } + else { + return { + hide: ["Death Information", "Transferred Out Information" , "Lost To Follow Up Information"] + } + } + + }, + "Occupation" : function (formName , formFieldValues){ + var occupationanswer = formFieldValues["Occupation"]; + + if(occupationanswer === "Occupation - Other (Specify)"){ + return{ + show: ["Other - Occupation"] + } + }else { + return{ + hide: ["Other - Occupation"] + } + } + + }, + "HIV - Entry Point" : function (formName , formFieldValues){ + var entrypoint = formFieldValues["HIV - Entry Point"]; + + if(entrypoint === "Other Entry Point (Specify)"){ + return{ + show: ["Other Entry Point"] + } + }else { + return{ + hide: ["Other Entry Point"] + } + } + }, + "Transferred in on ART?" : function (formName , formFieldValues){ + var transferred = formFieldValues["Transferred in on ART?"]; + + if(transferred == true){ + return{ + show: ["Name of Clinic" , "Date Transferred in"] + } + }else { + return{ + hide: ["Name of Clinic" , "Date Transferred in"] + } + } + }, + "Literate" : function (formName , formFieldValues){ + var literate = formFieldValues["Literate"]; + if(literate == true){ + return{ + show: ["Education Level"] + } + }else { + return{ + hide: ["Education Level"] + } + } + }, + "Drug Allergies" : function (formName , formFieldValues){ + var allergy = formFieldValues["Drug Allergies"]; + if(allergy == true){ + return{ + show: ["HIV Care -Drug Allergies Notes"] + } + }else { + return{ + hide: ["HIV Care -Drug Allergies Notes"] + } + } + }, + "Were ARVS Received?" : function (formName , formFieldValues){ + var arvsreceived = formFieldValues["Were ARVS Received?"]; + if(arvsreceived == true){ + return{ + show: ["ARVs Received in" , "Place Received ART", "Other (Place specify)","ANC, ART Start Date","ART ,Stop Date"] + } + }else { + return{ + hide: ["ARVs Received in", "Place Received ART" , "Other (Place specify)","ANC, ART Start Date","ART ,Stop Date"] + + } + } + }, + "Planned Delivery Place" : function (formName , formFieldValues){ + var otheranswer = formFieldValues["Planned Delivery Place"]; + if(otheranswer === "Other Answer"){ + return{ + show: ["Other (Place specify)"] + } + }else { + return{ + hide: ["Other (Place specify)"] + } + } + }, + "TB Screening, Person Age" : function (formName , formFieldValues){ + var personage = formFieldValues["TB Screening, Person Age"]; + if(personage < 15){ + return{ + show: ["Close Contact History with TB patients"] + } + }else { + return{ + hide: ["Close Contact History with TB patients"] + } + } + }, + "Follow up - Scheduled" : function (formName , formFieldValues){ + var scheduled = formFieldValues["Follow up - Scheduled"]; + if(scheduled == true){ + return{ + show: ["ART Follow up - Scheduled Date"] + } + }else { + return{ + hide: ["ART Follow up - Scheduled Date"] + } + } + }, + "Current on FP" : function (formName , formFieldValues){ + var currentfp = formFieldValues["Current on FP"]; + if(currentfp == true){ + return{ + show: ["FP Method"] + } + }else { + return{ + hide: ["FP Method"] + } + } + }, + "Hospitalised" : function (formName , formFieldValues){ + var hospitalised = formFieldValues["Hospitalised"]; + if(hospitalised == true){ + return{ + show: ["Number of Days Hospitalized"] + } + }else { + return{ + hide: ["Number of Days Hospitalized"] + } + } + }, + "Interruption Type" : function (formName , formFieldValues){ + var interruptiontype = formFieldValues["Interruption Type"]; + if(interruptiontype === "Stop"){ + return{ + show: ["ART Treatment Reasons For Stop"] + } + }else { + return{ + hide: ["ART Treatment Reasons For Stop"] + } + } + }, + "Switched Regimen" : function (formName , formFieldValues){ + var switchedregimen = formFieldValues["Switched Regimen"]; + if(switchedregimen == true){ + return{ + show: ["Regimen Switched To"] + } + }else { + return{ + hide: ["Regimen Switched To"] + } + } + }, + "Regimen Switched To" : function (formName , formFieldValues){ + var switchedregimento = formFieldValues["Regimen Switched To"]; + if(switchedregimento === "Regimen Switched To (Adult First Line)"){ + return{ + show: ["ART Regimen - Substitution within 1st Line"], + hide: ["ART Regimen(Switch to 2nd Line)","Other Reason(First Line Regimen Change)"] + + } + }else if(switchedregimento === "Regimen Switched To (Adult Second Line)"){ + return{ + show: ["ART Regimen(Switch to 2nd Line)"], + hide: ["ART Regimen - Substitution within 1st Line","Other Reason(Second Regimen Change)"] + } + } else { + return{ + hide: ["ART Regimen - Substitution within 1st Line", "ART Regimen(Switch to 2nd Line)"] + + } + + } + }, + "ART Treatment Reasons For Stop" : function (formName , formFieldValues){ + var arttreatmentreason = formFieldValues["ART Treatment Reasons For Stop"]; + if(arttreatmentreason === "Other Reason For ART Stop"){ + return{ + show: ["Specify Reason For Art Stop"] + } + }else { + return{ + hide: ["Specify Reason For Art Stop"] + } + } + }, + "Reason For Regimen Change(First Line)" : function (formName , formFieldValues){ + var changereasonfirstreg = formFieldValues["Reason For Regimen Change(First Line)"]; + if(changereasonfirstreg === "Other Reason For Regimen Change(First Line)"){ + return{ + show: ["Other Reason(First Line Regimen Change)"] + } + }else { + return{ + hide: ["Other Reason(First Line Regimen Change)"] + } + } + }, + "Reason For Regimen Change(Second Line)" : function (formName , formFieldValues){ + var changereasonsecond = formFieldValues["Reason For Regimen Change(Second Line)"]; + if(changereasonsecond === "Other Reason For Regimen Change(First Line)"){ + return{ + show: ["Other Reason(Second Regimen Change)"] + } + }else { + return{ + hide: ["Other Reason(Second Regimen Change)"] + } + } + }, + "Family Member - HIV Status" : function (formName , formFieldValues){ + var hivstatus = formFieldValues["Family Member - HIV Status"]; + if(hivstatus === "Known"){ + return{ + show: ["Result","Date Tested HIV","Result of HTS","Unique ART No/HEI No"] + } + }else { + return{ + hide: ["Result","Date Tested HIV","Result of HTS","Unique ART No/HEI No"] + } + } + }, + "ART Follow up - Information" : function (formName , formFieldValues, patient){ + if(patient.gender === "F"){ + return{ + show: ["Current on FP","FP Pregnant","FP Method","EDD","PMTCT - HIV & ART Follow up"] + } + }else { + return{ + hide: ["Current on FP","FP Pregnant","FP Method","EDD","PMTCT - HIV & ART Follow up"] + } + } + }, + "VL Results" : function (formName , formFieldValues){ + var vlresults = formFieldValues["VL Results"]; + if(vlresults >= 1000){ + alert("Patient Required Enhanced Adherence Counselling"); + return{ + show:["Classification Of Adherence"] + } + }else { + return{ + hide:["Classification Of Adherence"] + } + } + }, + "FP Pregnant" : function (formName , formFieldValues){ + var fppregnant = formFieldValues["FP Pregnant"]; + if(fppregnant == true){ + alert("Enroll This Patient To PMTCT Clinic"); + } + }, + + "Date of HIV Retesting Before ART": function (formName, formFieldValues) { + var dateretestedhiv = formFieldValues["Date of HIV Retesting Before ART"]; + var datefirsttestedhiv = formFieldValues["Date First Tested HIV +"]; + var date1 = new Date(datefirsttestedhiv); + var date2 = new Date(dateretestedhiv); + if (date1 > date2) { + alert("HIV RETESTING DATE SHOULD BE GREATER THAN HIV FIRST TESTING DATE"); + + } + }, + "ART Regimen - Substitution within 1st Line" : function (formName , formFieldValues, patient){ + if(patient.age < 15){ + return{ + show: ["Child Regimens (First Line)"], + hide:["Substitution Regimen For Adults(First Line)"] + } + }else { + return{ + hide: ["Child Regimens (First Line)"], + show: ["Substitution Regimen For Adults(First Line)"] + } + } + }, + "ART Regimen(Switch to 2nd Line)" : function (formName , formFieldValues, patient){ + if(patient.age < 15){ + return{ + show: ["Children Second Line Regimens"], + hide:["Substitution Regimen (2nd Line Adults)"] + } + }else { + return{ + hide: ["Children Second Line Regimens"], + show:["Substitution Regimen (2nd Line Adults)"] + } + } + }, + "AntiRetroviral Treatment" : function (formName , formFieldValues, patient){ + if(patient.age < 15){ + return{ + show: ["Initial ART Regimen For Children"], + hide:["Initial ART Regimen (Adult)"] + + } + }else { + return{ + hide: ["Initial ART Regimen For Children"], + show:["Initial ART Regimen (Adult)"] + + } + } + }, + "Is there an immunization not Given?" : function (formName , formFieldValues){ + var immunizationgiven = formFieldValues["Is there an immunization not Given?"]; + if(immunizationgiven == true){ + return{ + show:["Immunization Not Given"] + } + }else { + return{ + hide:["Immunization Not Given"] + } + } + }, + "Clinical Assessment for Signs and Symptoms of HIV": function (formName, formFieldValues) { + var clinicalassessment = formFieldValues["Clinical Assessment for Signs and Symptoms of HIV"]; + if (clinicalassessment === "Other Assessment Specify") { + return { + show: ["Specify other Assessement"] + } + } else { + return { + hide: ["Specify other Assessement"] + } + } + }, + + "Was any Development Milestone Missed?": function (formName, formFieldValues) { + var milestonemissed = formFieldValues["Was any Development Milestone Missed?"]; + if (milestonemissed == true) { + return { + show: ["Development Milestones Missed"] + } + } else { + return { + hide: ["Development Milestones Missed"] + } + } + }, + "Mother's ART Regimen": function (formName, formFieldValues) { + var motherartregimen = formFieldValues["Mother's ART Regimen"]; + if (motherartregimen === "Other ART Regimen") { + return { + show: ["Specify other Mother's ART Regimen"] + } + } else { + return { + hide: ["Specify other Mother's ART Regimen"] + } + } + }, + "HEI Treatment - Referred To ART Clinic": function (formName, formFieldValues) { + var referredtoclinic = formFieldValues["HEI Treatment - Referred To ART Clinic"]; + if (referredtoclinic == true) { + return { + show: ["HEI Treatment - Referred To ART Clinic Date"] + } + } else { + return { + hide: ["HEI Treatment - Referred To ART Clinic Date"] + } + } + }, + "HEI Treatment - Referred To ART Clinic": function (formName, formFieldValues) { + var referredtoclinic = formFieldValues["HEI Treatment - Referred To ART Clinic"]; + if (referredtoclinic == true) { + return { + show: ["HEI Treatment - Referred To ART Clinic Date"] + } + } else { + return { + hide: ["HEI Treatment - Referred To ART Clinic Date"] + } + } + }, + "HEI Treatment - Enrolled AT ART Clinic": function (formName, formFieldValues) { + var enrolleddate = formFieldValues["HEI Treatment - Enrolled AT ART Clinic"]; + if (enrolleddate == true) { + return { + show: ["HEI Treatment - Enrolled AT ART Date"] + } + } else { + return { + hide: ["HEI Treatment - Enrolled AT ART Date"] + } + } + }, + "Place Received ART": function (formName, formFieldValues) { + var placeartreceived = formFieldValues["Place Received ART"]; + if (placeartreceived === "Other Answer") { + return { + show: ["Other (Place specify)"] + } + } else { + return { + hide: ["Other (Place specify)"] + } + } + }, + "Is Patient on CTX or Dapose?": function (formName, formFieldValues) { + var patientondapose = formFieldValues["Is Patient on CTX or Dapose?"]; + if (patientondapose == true) { + return { + show: ["CTX or Dapose Start Date"] + } + } else { + return { + hide: ["CTX or Dapose Start Date"] + } + } + }, + "FP Pregnant": function (formName, formFieldValues) { + var patientpreg = formFieldValues["FP Pregnant"]; + if (patientpreg == true) { + return { + show: ["EDD","PMTCT - HIV & ART Follow up"], + hide:["Current on FP"] + } + } else { + return { + hide: ["EDD","PMTCT - HIV & ART Follow up"], + show:["Current on FP"] + } + } + }, + "ART Follow up - Information": function (formName , formFieldValues, patient){ + if(patient.age < 15){ + return{ + show: ["TB Regimen For Children"], + hide: ["TB Regimen On"] + + } + }else { + return{ + hide: ["TB Regimen For Children"], + show: ["TB Regimen On"] + } + } + }, + }; + diff --git a/openmrs/apps/home/extension.json b/openmrs/apps/home/extension.json index 4f282dc65..ac41530e3 100644 --- a/openmrs/apps/home/extension.json +++ b/openmrs/apps/home/extension.json @@ -149,6 +149,16 @@ "icon": "fa fa-calendar", "order": 14, "requiredPrivilege": "app:appointments" - } + }, + "possible_dhis_2_integration": { + "id": "possible.dhis2Integration", + "extensionPointId": "org.bahmni.home.dashboard", + "type": "link", + "label": "DHIS2 integration", + "url": "/dhis-integration/index.html", + "icon": "fa-book", + "order": 15, + "requiredPrivilege": "app:reports" +} } diff --git a/openmrs/apps/home/whiteLabel.json b/openmrs/apps/home/whiteLabel.json index 10305921f..735e45a18 100644 --- a/openmrs/apps/home/whiteLabel.json +++ b/openmrs/apps/home/whiteLabel.json @@ -1,6 +1,6 @@ { "homePage": { - "header_text": "WELCOME TO
BAHMNI EMR & HOSPITAL SERVICE", + "header_text": "WELCOME TO
eHospital", "logo": "/bahmni/images/bahmniLogoFull.png", "title_text": " " }, diff --git a/openmrs/apps/ipd/app.json b/openmrs/apps/ipd/app.json index 5fd572af8..056a4e689 100644 --- a/openmrs/apps/ipd/app.json +++ b/openmrs/apps/ipd/app.json @@ -24,7 +24,7 @@ "visitUuid" ], "config": { - "wardListSqlSearchHandler": "emrapi.sqlGet.allWardsListDetails", + "wardListSqlSearchHandler": "bedManagement.sqlGet.patientListForAdmissionLocation", "diagnosisStatus": "Inactive", "onAdmissionForwardTo": "#/bedManagement/patient/{{patientUuid}}/visit/{{visitUuid}}", "onTransferForwardTo": "#/bedManagement/patient/{{patientUuid}}/visit/{{visitUuid}}", @@ -77,8 +77,8 @@ "customLinks": [ { "name": "bedManagement", - "translationKey": "PATIENT_BED_MANAGEMENT_PAGE_KE", - "url": "../bedmanagement/#/bedManagement/patient/{{patientUuid}}/visit/{{visitUuid}}" + "translationKey": "PATIENT_BED_MANAGEMENT_PAGE_KEY", + "url": "../bedmanagement/#/bedManagement/patient/{{patientUuid}}" } ] }, diff --git a/openmrs/apps/ipd/extension.json b/openmrs/apps/ipd/extension.json index b27a9cca7..4c1b0181f 100644 --- a/openmrs/apps/ipd/extension.json +++ b/openmrs/apps/ipd/extension.json @@ -1,93 +1,4 @@ { - "bahmniAdtAdmitContinueVisit":{ - "id": "bahmni.adt.admit.continue.visit", - "extensionPointId": "org.bahmni.adt.admit.action", - "type": "config", - "extensionParams" : { - "displayFunction": "getDisplayForContinuingVisit", - "action":"admit", - "showCondition":"visitExists" - }, - "order": 2, - "requiredPrivilege": "app:adt" - }, - "bahmniAdtAdmitCancel":{ - "id": "bahmni.adt.admit.cancel", - "extensionPointId": "org.bahmni.adt.admit.action", - "type": "config", - "extensionParams" : { - "display": "Cancel", - "action":"cancel" - }, - "order": 3, - "requiredPrivilege": "app:adt" - }, - "bahmniAdtTransferSave":{ - "id": "bahmni.adt.transfer.save", - "extensionPointId": "org.bahmni.adt.transfer.action", - "type": "config", - "extensionParams" : { - "display": "Save", - "action":"transfer" - }, - "order": 1, - "requiredPrivilege": "app:adt" - }, - "bahmniAdtTransferCancel":{ - "id": "bahmni.adt.transfer.cancel", - "extensionPointId": "org.bahmni.adt.transfer.action", - "type": "config", - "extensionParams" : { - "display": "Cancel", - "action":"cancel" - }, - "order": 2, - "requiredPrivilege": "app:adt" - }, - "bahmniAdtDischargeSave":{ - "id": "bahmni.adt.discharge.save", - "extensionPointId": "org.bahmni.adt.discharge.action", - "type": "config", - "extensionParams" : { - "display": "Discharge", - "action":"discharge" - }, - "order": 2, - "requiredPrivilege": "app:adt" - }, - "bahmniAdtDischargeCancel":{ - "id": "bahmni.adt.discharge.cancel", - "extensionPointId": "org.bahmni.adt.discharge.action", - "type": "config", - "extensionParams" : { - "display": "Cancel", - "action":"cancel" - }, - "order": 3, - "requiredPrivilege": "app:adt" - }, - "bahmniAdtUndoDischarge":{ - "id": "bahmni.adt.undo.discharge", - "extensionPointId": "org.bahmni.adt.undo.discharge.action", - "type": "config", - "extensionParams" : { - "display": "Undo Discharge", - "action":"undoDischarge" - }, - "order": 1, - "requiredPrivilege": "app:adt" - }, - "bahmniAdtUndoDischargeCancel":{ - "id": "bahmni.adt.undo.discharge.cancel", - "extensionPointId": "org.bahmni.adt.undo.discharge.action", - "type": "config", - "extensionParams" : { - "display": "Cancel", - "action":"cancel" - }, - "order": 2, - "requiredPrivilege": "app:adt" - }, "bahmniAdtPatientsSearchPatientsToAdmit":{ "id": "bahmni.adt.patients.search.patientsToAdmit", "extensionPointId": "org.bahmni.patient.search", diff --git a/openmrs/apps/registration/app.json b/openmrs/apps/registration/app.json index 915502784..ea3ee54f0 100644 --- a/openmrs/apps/registration/app.json +++ b/openmrs/apps/registration/app.json @@ -18,26 +18,65 @@ ], "config" : { "patientInformation": { - "additionalPatientInformation": { - "title": "Additional Patient Information", + "registrantInformation": { + "title": "Registrant Information", "attributes": [ - "distanceFromCenter", - "isUrban", - "cluster", - "RationCard", - "familyIncome", - "debt", - "cluster" - ] + "HealthFacilityName", + "TodaysDate", + "RegistrantName" + ], + "expand": true, + "order": 1 }, - "hidden": { + "registerNewPatient1": { + "title": "Register A New Patient", "attributes": [ - "primaryContact" - ] + "TypeofPatient" + ], + "expand": true, + "order": 2 }, - "defaults": { - "class": "General", - "landHolding": 2 + "registerNewPatient2": { + "title": "Not shown", + "attributes": [ + "UniqueArtNo", + "HIVExposedInfant(HEI)No" + ], + "expand": true, + "order": 3 + }, + "registerNewPatient3": { + "title": "Not shown", + "attributes": [ + "MaritalStatus" + ], + "expand": true, + "order": 4 + }, + "contactInformation": { + "title": "Contact Information", + "attributes": [ + "MobileCountryCode", + "MobileNumber", + "AlternativeNumber" + ], + "expand": true, + "order": 5 + }, + "treatmentSupporter": { + "title": "Treatment Supporter", + "attributes": [ + "TreatmentSupporterFirstName", + "TreatmentSupporterLastName", + "TreatmentSupporterTelephoneNumber", + "TreatmentSupporterAddress", + "HomeCareProvidedBy" + ], + "expand": true, + "order": 6 + }, + "defaults": { + "MobileCountryCode": "South Sudan" } }, "addressHierarchy": { @@ -49,43 +88,27 @@ "Parent":"patient" }, - "autoCompleteFields":["familyName", "caste"], - "defaultIdentifierPrefix": "GAN", + "disablePhotoCapture": true, + "showEnterID": false, + "dobMandatory": true, + "autoCompleteFields":["familyName", "givenName"], "defaultVisitType": "OPD", "searchByIdForwardUrl": "/patient/{{patientUuid}}", "showMiddleName": true, "showLastName": true, "isLastNameMandatory": true, "showSaveConfirmDialog": false, - "showBirthTime": true, + "showBirthTime": false, "showCasteSameAsLastNameCheckbox": false, "printOptions": [ { "translationKey": "REGISTRATION_PRINT_REG_CARD_LOCAL_KEY", "templateUrl": "/bahmni_config/openmrs/apps/registration/registrationCardLayout/print_local.html", "shortcutKey": "l" - }, - { - "translationKey": "REGISTRATION_PRINT_REG_CARD_KEY", - "templateUrl": "/bahmni_config/openmrs/apps/registration/registrationCardLayout/print.html", - "shortcutKey": "p" - }, - { - "translationKey": "REGISTRATION_PRINT_SUPPLEMENTAL_PAPER", - "templateUrl": "/bahmni_config/openmrs/apps/registration/supplementalPaperLayout/print.html", - "shortcutKey": "r" - }, - { - "translationKey": "REGISTRATION_PRINT_WITH_BARCODE", - "templateUrl": "/bahmni_config/openmrs/apps/registration/registrationCardLayout/printWithBarcode.html", - "shortcutKey": "c" } + ], "conceptSetUI": { - "REGISTRATION FEES": { - "required": true, - "label": "Fee" - }, "FHS": { "buttonSelect": true }, @@ -102,15 +125,10 @@ "address1" : {"pattern" : "[a-zA-Z0-9\\s]{2,}", "errorMessage" : "Should contain at least 2 characters"} }, "patientSearch": { - "address": { - "label": "Rural Ward", - "placeholder": "Enter ward", - "field": "address2" - }, "customAttributes": { - "label": "रुग्णाचे नाव", - "placeholder": "रुग्णाचे नाव", - "fields": ["givenNameLocal", "middleNameLocal", "familyNameLocal"] + "label": "Unique Art No.", + "placeholder": "Enter Unique Art No", + "fields": ["UniqueArtNo","MaritalStatus","Cohort"] } } } diff --git a/openmrs/apps/registration/extension.json b/openmrs/apps/registration/extension.json index f42906ff8..3b46086b5 100644 --- a/openmrs/apps/registration/extension.json +++ b/openmrs/apps/registration/extension.json @@ -45,18 +45,18 @@ "order": 1, "requiredPrivilege": "Edit Visits" }, - "feeInformation":{ - "id": "bahmni.registration.conceptSetGroup.feeInformation", - "extensionPointId": "org.bahmni.registration.conceptSetGroup.observations", + "enterConsultation": { + "id": "bahmni.patient.registration.next", + "extensionPointId": "org.bahmni.registration.patient.next", "type": "config", - "extensionParams": { - "conceptName": "Fee Information", - "translationKey": "FEE_INFORMATION_LOCALE_KEY", - "required":true + "extensionParams" : { + "display": "Start Consultation", + "shortcutKey": "c", + "forwardUrl": "../clinical/#/default/patient/{{patientUuid}}/dashboard" }, - "order": 2, - "requiredPrivilege": "Edit Visits" - }, + "order": 1, + "requiredPrivilege": "Edit Patients" + }, "nutritionalValue":{ "id": "bahmni.registration.conceptSetGroup.nutritionalValue", "extensionPointId": "org.bahmni.registration.conceptSetGroup.observations", @@ -67,7 +67,7 @@ "required":true, "showLatest": true }, - "order": 3, + "order": 4, "requiredPrivilege": "Edit Visits" } } diff --git a/openmrs/apps/registration/registrationCardLayout/images/bahmniLogoFull.png b/openmrs/apps/registration/registrationCardLayout/images/bahmniLogoFull.png new file mode 100644 index 000000000..12ba755d5 Binary files /dev/null and b/openmrs/apps/registration/registrationCardLayout/images/bahmniLogoFull.png differ diff --git a/openmrs/apps/registration/registrationCardLayout/print_local.html b/openmrs/apps/registration/registrationCardLayout/print_local.html index bade168eb..34bdb483d 100644 --- a/openmrs/apps/registration/registrationCardLayout/print_local.html +++ b/openmrs/apps/registration/registrationCardLayout/print_local.html @@ -1,131 +1,156 @@ - +
+ + - - + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Visit DateCD4 Count/CD4%
(<=15yrs)
Viral LoadCurrent ART
/Other Medication
Next appointment Date
 
 
 
 
+
+ onerror="this.onerror=null;this.src='../images/blank.jpeg';" />
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + -
- दिनाँक - : {{patient.registrationDate | bahmniDate}}
- रजिस्ट्रेशन - : {{patient.primaryIdentifier.identifier}}
- नाम - : - {{patient.fullNameLocal()}} -
- उम्र - : {{patient.age | age}}
- लिंग - : {{patient.gender}}
- पिता/पति - : {{patient.primaryRelative}}
- गाँव - : {{patient.address.cityVillage}}
- तहसील - : {{patient.address.address3}}
+ Facility Name : + .....................
+ Full Names: + + {{patient.fullNameLocal()}} +
+ Age:   {{patient.age | age}} + + Sex:   {{patient.gender}} +
+ ART No:   {{patient.primaryIdentifier.identifier}} + + HEI No:   ............. +
+ ART Start Date: + + .... / .... / .... +
Initial ART Regimen: + + ....................... +
+ + +
    +
  1. Carry this card and present it to the health worker at every visit.
  2. +
  3. Keep the appointment date as indicated in this card.
  4. +
  5. In case of new symptoms, visit the facility or call health worker.
  6. +
  7. If you can't come, call health worker on number below.
  8. +
+ + +
Health Facility Telephone No. ......................
+ - - - + + + +