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/clinical/.extension.json.swp b/offline/openmrs/apps/clinical/.extension.json.swp deleted file mode 100644 index 2d0545fb1..000000000 Binary files a/offline/openmrs/apps/clinical/.extension.json.swp and /dev/null differ diff --git a/offline/openmrs/apps/clinical/app.json b/offline/openmrs/apps/clinical/app.json old mode 100755 new mode 100644 index 9b6f03767..8f86ac56a --- a/offline/openmrs/apps/clinical/app.json +++ b/offline/openmrs/apps/clinical/app.json @@ -23,6 +23,7 @@ "visitUuid" ], "config": { + "hideConditions": false, "enableRadiologyOrderOptions":["Urgent","NeedsPrint"], "enableLabOrderOptions":["Urgent", "NeedsPrint"], "quickPrints":false, @@ -39,22 +40,25 @@ "program": { "patientInformation": { "ageLimit": 100 + }, + "Doctor": { + "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", @@ -105,22 +109,274 @@ }, "Set2": { "allowAddMore": true - }, + }, "Coded3": { "multiSelect": true }, "Image": { "allowAddMore": true }, - "video":{ - "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 + }, + "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 + }, + "GeneXpert , Result":{ + "dropdown":true + }, + "AFB Microscopic, Results":{ + "dropdown":true + }, + "CxR Results":{ + "dropdown":true + }, + "GeneXpert Information":{ + "isTabular": true + }, + "AFB Microscopic":{ + "isTabular": true + }, + "FNA":{ + "isTabular": true + }, + "Culture, TB Investigations":{ + "isTabular": true + }, + "Crx":{ + "isTabular": true + }, + "First Attempt Method":{ + "dropdown":true + }, + "First Attempt Outcome":{ + "dropdown":true + }, + "Second Attempt Method":{ + "dropdown":true + }, + "Third Attempt Method":{ + "dropdown":true + }, + "Third Attempt Outcome":{ + "dropdown":true + }, + "Fourth Attempt Method":{ + "dropdown":true + }, + "Fourth Attempt Outcome":{ + "dropdown":true + }, + "Outcome,Second Attempt":{ + "dropdown":true + }, + "Other Follow up Method Specify(First Attempt)":{ + "required":true + }, + "Follow up Outcome Others Specify(First Attempt)":{ + "required":true + }, + "Other Follow up Method Specify(Second Attempt)":{ + "required":true + }, + "Follow up Outcome Others Specify(Second Attempt)":{ + "required":true + }, + "Other Follow up Method Specify(Third Attempt)":{ + "required":true + }, + "Follow up Outcome Others Specify(Third Attempt)":{ + "required":true + }, + "Other Follow up Method Specify(Fourth Attempt)":{ + "required":true + }, + "Follow up Outcome Others Specify(Fourth Attempt)":{ + "required":true + }, + "Cohort":{ + "displayMonthAndYear": true + }, + "Reason why Adherence is Poor":{ + "required":true + }, + "Reason why Adherence is Fair":{ + "required":true + }, + "was counselling done?":{ + "required":true + }, + "EAC Results":{ + "required":true + }, + "First EAC Session Date":{ + "required":true + }, + "Classification Of Adherence(First session)":{ + "required":true + }, + "Date MDT Held":{ + "required":true + }, + "MDT Outcome":{ + "required":true + }, + "First EAC Service":{ + "required":true + }, + "First EAC Tools":{ + "required":true + }, + "Specify Other Tools for First EAC":{ + "required":true + }, + "Second EAC Service":{ + "required":true + }, + "Second EAC Tools":{ + "required":true + }, + "Specify Other Tools for Second EAC":{ + "required":true + }, + "Third EAC Service":{ + "required":true + }, + "Third EAC Tools":{ + "required":true + }, + "Specify Other Tools for Third EAC":{ + "required":true + }, + "Date Started TB Treatment":{ + "required":true + }, "defaults": { "Number of living children": 1, "Accepted Family Planning methods": [ diff --git a/offline/openmrs/apps/clinical/dashboard.json b/offline/openmrs/apps/clinical/dashboard.json old mode 100755 new mode 100644 index 9626d371a..ec83c0269 --- a/offline/openmrs/apps/clinical/dashboard.json +++ b/offline/openmrs/apps/clinical/dashboard.json @@ -19,13 +19,37 @@ "countyDistrict" ] }, - "diagnosis":{ - "translationKey":"DASHBOARD_TITLE_DIAGNOSIS_KEY", - "type":"diagnosis", - "showCertainty":true, - "showOrder":true, + + "navigationLinksControl":{ + "translationKey":"DASHBOARD_TITLE_NAVIGATION_LINKS_CONTROL_KEY", + "type":"navigationLinksControl", + "displayOrder":2, + "showLinks":[ + "home", + "visit", + "registration", + "inpatient", + "enrolment", + "visitAttribute" + ] + }, + "tuberculosis": { + "title": "Tuberculosis Follow Up", + "type": "tuberculosis", + "isObservation": true, + "dashboardConfig": { + "conceptNames": [ + "Tuberculosis Followup Template" + ], + "numberOfVisits": 2 + } + }, + "disposition":{ + "translationKey":"DASHBOARD_TITLE_DISPOSITION_KEY", "showDetailsButton":true, - "displayOrder":1 + "type":"disposition", + "numberOfVisits":1, + "displayOrder":7 }, "treatments":{ "translationKey":"DASHBOARD_TITLE_TREATMENTS_KEY", @@ -51,28 +75,11 @@ "showDetailsButton":true } }, - "labResults":{ - "translationKey":"DASHBOARD_TITLE_LAB_RESULTS_KEY", - "type":"labOrders", - "displayOrder":10, - "dashboardConfig":{ - "title":null, - "numberOfVisits":1, - "showChart":false, - "showTable":true, - "showDetailsButton":false, - "initialAccessionCount":0, - "latestAccessionCount":1 - }, - "expandedViewConfig":{ - "numberOfVisits":10 - } - }, "nutritionalValues":{ "translationKey":"DASHBOARD_TITLE_NUTRITIONAL_VALUES_KEY", "type":"vitals", "isObservation":true, - "displayOrder":11, + "displayOrder":2, "dashboardConfig":{ "conceptNames":[ "HEIGHT", @@ -90,7 +97,33 @@ "BMI", "BMI STATUS" ], - "numberOfVisits":2, + "numberOfVisits":24, + "scope":"latest", + "showDetailsButton":true, + "pivotTable":{ + + } + } + }, + "vlresults":{ + "translationKey":"DASHBOARD_TITLE_VIRAL_LOAD_AND_EAC_RESULTS_KEY", + "type":"vitals", + "isObservation":true, + "displayOrder":2, + "dashboardConfig":{ + "conceptNames":[ + "VL Results", + "EAC Results" + ], + "showDetailsButton":true, + "numberOfVisits":2 + }, + "expandedViewConfig":{ + "conceptNames":[ + "VL Results", + "EAC Results" + ], + "numberOfVisits":24, "scope":"latest", "showDetailsButton":true, "pivotTable":{ @@ -132,29 +165,6 @@ } } }, - "secondVitals":{ - "translationKey":"DASHBOARD_TITLE_SECOND_VITALS_KEY", - "type":"second vitals", - "isObservation":true, - "displayOrder":13, - "dashboardConfig":{ - "showDetailsButton":true, - "conceptNames":[ - "Second Vitals" - ], - "numberOfVisits":2 - }, - "expandedViewConfig":{ - "conceptNames":[ - "Second Vitals" - ], - "numberOfVisits":2, - "showDetailsButton":true, - "pivotTable":{ - - } - } - }, "historyAndExaminations":{ "translationKey":"DASHBOARD_TITLE_HISTORY_AND_EXAMINATIONS_KEY", "type":"vitals", @@ -178,52 +188,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", @@ -234,43 +198,27 @@ "groupByVisits":true } }, - "diabetes":{ - "title":"Diabetes", - "templateName":"Diabetes Templates", - "type":"diseaseTemplate", - "displayOrder":18, - "dashboardConfig":{ - "showOnly":[ - - ] + "conditions": { + "translationKey":"CONDITION_LIST_DISPLAY_CONTROL_TITLE", + "type": "conditionsList", + "displayOrder": 20 + }, + "formsDisplay": { + "type": "forms", + "displayOrder": 21, + "dashboardConfig": { + "title": null, + "maximumNoOfVisits": 10 }, - "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" - ] - } + "formGroup": [ ], + "translationKey": "DASHBOARD_TITLE_FORMS_DISPLAY_CONTROL_KEY" + }, + "patientAppointments": { + "type": "custom", + "displayOrder": 22, + "config": { + "title": "DASHBOARD_TITLE_APPOINTMENTS_KEY", + "template": "" } } } @@ -304,7 +252,7 @@ }, "growthChart":{ "type":"observationGraph", - "title":"Growth Chart", + "translationKey": "DASHBOARD_TITLE_GROWTH_CHART", "config":{ "yAxisConcepts":[ "Weight" @@ -316,7 +264,7 @@ }, "BP":{ "type":"observationGraph", - "title":"BP", + "translationKey": "DASHBOARD_TITLE_BLOOD_PRESSURE", "config":{ "yAxisConcepts":[ "Systolic Data", @@ -329,7 +277,7 @@ }, "weight/BMI":{ "type":"observationGraph", - "title":"Weight/BMI", + "translationKey": "DASHBOARD_TITLE_WEIGHT_BMI", "config":{ "yAxisConcepts":[ "Weight", @@ -342,7 +290,7 @@ }, "diabetes/BloodSugar":{ "type":"observationGraph", - "title":"Diabetes/Blood Sugar", + "translationKey": "DASHBOARD_TITLE_DIABETES_BLOOD_SUGAR", "config":{ "yAxisConcepts":[ "Blood Sugar Fasting", @@ -355,7 +303,7 @@ }, "observationGraph":{ "type":"observationGraph", - "title":"Pulse", + "translationKey": "DASHBOARD_TITLE_PULSE", "config":{ "yAxisConcepts":[ "Pulse Data" @@ -405,23 +353,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, @@ -444,7 +375,7 @@ "type":"drugOrderDetails", "displayType":"Full-Page", "showDetailsButton":true, - "displayOrder":24, + "displayOrder":1, "dashboardConfig":{ "showOnlyActive":true, "drugConceptSet":"All Other Drugs" @@ -484,4 +415,3 @@ } } } - diff --git a/offline/openmrs/apps/clinical/extension.json b/offline/openmrs/apps/clinical/extension.json old mode 100755 new mode 100644 index c74f8bd36..c1c4407db --- a/offline/openmrs/apps/clinical/extension.json +++ b/offline/openmrs/apps/clinical/extension.json @@ -11,6 +11,49 @@ "order": 1, "requiredPrivilege": "app:clinical:observationTab" }, + "diagnosis": { + "id": "bahmni.clinical.consultation.diagnosis", + "extensionPointId": "org.bahmni.clinical.consultation.board", + "type": "link", + "label": "Diagnosis", + "translationKey":"DIAGNOSIS_BOARD_LABEL_KEY", + "url": "diagnosis", + "icon": "fa-user-md", + "order": 2, + "requiredPrivilege": "app:clinical:diagnosisTab" + }, + "disposition": { + "id": "bahmni.clinical.consultation.disposition", + "extensionPointId": "org.bahmni.clinical.consultation.board", + "type": "link", + "label": "Disposition", + "translationKey":"DISPOSITION_BOARD_LABEL_KEY", + "url": "disposition", + "icon": "fa-user-md", + "order": 3, + "requiredPrivilege": "app:clinical:dispositionTab" + }, + "consultationSummary": { + "id": "bahmni.clinical.consultation.summary", + "extensionPointId": "org.bahmni.clinical.consultation.board", + "type": "link", + "label": "Consultation", + "translationKey":"CONSULTATION_BOARD_LABEL_KEY", + "url": "consultation", + "icon": "fa-user-md", + "order": 5, + "requiredPrivilege": "app:clinical:consultationTab" + }, + "bahmniClinicalOrdersPending": { + "id": "bahmni.clinical.orders.pending", + "extensionPointId": "org.bahmni.clinical.orders", + "type": "link", + "label": "Pending Orders", + "url": "pendingOrders", + "icon": "fa-user-md", + "order": 5, + "requiredPrivilege": "app:radiologyOrders" + }, "bahmniClinicalPatientsSearchAllActivePatients": { "id": "bahmni.clinical.patients.search.allActivePatients", "extensionPointId": "org.bahmni.patient.search", @@ -24,56 +67,82 @@ "order": 1, "requiredPrivilege": "app:clinical" }, + "bahmniClinicalPatientsSearchOPDActivePatientsByProvider": { + "id": "bahmni.clinical.patients.search.OPDActivePatientsByProvider", + "extensionPointId": "org.bahmni.patient.search", + "type": "config", + "extensionParams": { + "searchHandler": "emrapi.sqlSearch.activePatientsByProvider", + "translationKey": "MODULE_LABEL_OPD_1_KEY", + "forwardUrl": "#/default/patient/{{patientUuid}}/dashboard" + }, + "label": "OPD-1", + "order": 2, + "requiredPrivilege": "app:clinical" + }, + "bahmniClinicalPatientsSearchOPDActivePMTCTPatients": { + "id": "bahmni.clinical.patients.search.PmtctActivePatientsByProvider", + "extensionPointId": "org.bahmni.patient.search", + "type": "config", + "extensionParams": { + "searchHandler": "emrapi.sqlSearch.activePMTCTPatients", + "translationKey": "MODULE_LABEL_PMTCT_KEY", + "forwardUrl": "#/default/patient/{{patientUuid}}/dashboard" + }, + "label": "OPD-1", + "order": 3, + "requiredPrivilege": "app:clinical" + }, "bahmniClinicalPatientsSearchActivePatientsForPrograms": { "id": "bahmni.clinical.patients.search.activePatients", "extensionPointId": "org.bahmni.patient.search", "type": "config", "extensionParams": { - "searchHandler": "emrapi.sqlSearch.activePatients", - "translationKey": "MODULE_LABEL_PROGRAMS_KEY", - "forwardUrl": "#/default/patient/{{patientUuid}}/consultationContext" + "searchHandler": "emrapi.sqlSearch.activeHeiPatients", + "translationKey": "MODULE_LABEL_HEI_KEY", + "forwardUrl": "#/default/patient/{{patientUuid}}/dashboard" }, "label": "Active", - "order": 1, + "order": 4, "requiredPrivilege": "app:clinical" }, - "bahmniClinicalPatientsASearchActivePatientsByProvider": { - "id": "bahmni.clinical.patients.search.activePatientsByProvider", + "bahmniClinicalPatientsSearchOPDActiveDrugsPatients": { + "id": "bahmni.clinical.patients.search.ActiveDrugsPatients", "extensionPointId": "org.bahmni.patient.search", "type": "config", "extensionParams": { - "searchHandler": "emrapi.sqlSearch.activePatientsByProvider", - "translationKey": "MODULE_LABEL_MY_PATIENTS_KEY", + "searchHandler": "emrapi.sqlSearch.activeDrugPatients", + "translationKey": "MODULE_LABEL_DRUGS_PATIENTS_KEY", "forwardUrl": "#/default/patient/{{patientUuid}}/dashboard" }, - "label": "Active", - "order": 2, + "label": "OPD-1", + "order": 5, "requiredPrivilege": "app:clinical" }, - "bahmniClinicalPatientsSearchOPDActivePatientsByProvider": { - "id": "bahmni.clinical.patients.search.OPDActivePatientsByProvider", + "bahmniClinicalPatientsSearchViralloadPatients": { + "id": "bahmni.clinical.patients.search.Viralloadpatients", "extensionPointId": "org.bahmni.patient.search", "type": "config", "extensionParams": { - "searchHandler": "emrapi.sqlSearch.activePatientsByProvider", - "translationKey": "MODULE_LABEL_OPD_1_KEY", - "forwardUrl": "#/default/patient/{{patientUuid}}/consultationContext" + "searchHandler": "emrapi.sqlSearch.activeViralloadPatients", + "translationKey": "MODULE_LABEL_VIRAL_LOAD_PATIENTS_KEY", + "forwardUrl": "#/default/patient/{{patientUuid}}/dashboard" }, "label": "OPD-1", - "order": 3, + "order": 6, "requiredPrivilege": "app:clinical" }, - "activePatientsByLocation": { - "id": "bahmni.clinical.patients.search.activePatientsByLocation", + "bahmniClinicalPatientsASearchActivePatientsByProvider": { + "id": "bahmni.clinical.patients.search.activePatientsByProvider", "extensionPointId": "org.bahmni.patient.search", "type": "config", "extensionParams": { - "searchHandler": "emrapi.sqlSearch.activePatientsByLocation", - "translationKey": "MODULE_LABEL_ACTIVE_PATIENTS_BY_LOCATION", + "searchHandler": "emrapi.sqlSearch.activePatientsByProvider", + "translationKey": "MODULE_LABEL_MY_PATIENTS_KEY", "forwardUrl": "#/default/patient/{{patientUuid}}/dashboard" }, "label": "Active", - "order": 4, + "order": 7, "requiredPrivilege": "app:clinical" }, "bahmniClinicalPatientsSearchAllPatients": { @@ -85,31 +154,186 @@ "forwardUrl": "#/default/patient/{{patientUuid}}/dashboard" }, "label": "All", - "order": 5, + "order": 8, "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" + }, + "bahmniClinicalConceptSetGroupObsertionsTbScreeningForm": { + "id": "bahmni.clinical.conceptSetGroup.observations.vitals", + "extensionPointId": "org.bahmni.clinical.conceptSetGroup.observations", + "type": "config", + "extensionParams": { + "default": true, + "conceptName": "TB SCREENING FORM" + }, + "order": 14, + "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" + }, + "bahmniClinicalConceptSetGroupObsertionsEACForm": { + "id": "bahmni.clinical.conceptSetGroup.observations.vitals", + "extensionPointId": "org.bahmni.clinical.conceptSetGroup.observations", + "type": "config", + "extensionParams": { + "default": true, + "conceptName": "ENHANCED ADHERENCE COUNSELLING FORM" + }, + "order": 9, + "requiredPrivilege": "app:clinical" + }, "bahmniClinicalConceptSetGroupObservationsSecondVitals": { "id": "bahmni.clinical.conceptSetGroup.observations.secondVitals", "extensionPointId": "org.bahmni.clinical.conceptSetGroup.observations", @@ -125,5 +349,50 @@ }, "order": 3, "requiredPrivilege": "app:clinical" + }, + "bahmniClinicalConceptSetGroupObservationsObstetrics": { + "id": "bahmni.clinical.conceptSetGroup.observations.obstetrics", + "extensionPointId": "org.bahmni.clinical.conceptSetGroup.observations", + "type": "config", + "extensionParams": { + "conceptName": "Obstetrics" + }, + "order": 4, + "requiredPrivilege": "app:clinical" + }, + "bahmniClinicalConceptSetGroupObservationsGynaecology": { + "id": "bahmni.clinical.conceptSetGroup.observations.gynaecology", + "extensionPointId": "org.bahmni.clinical.conceptSetGroup.observations", + "type": "config", + "extensionParams": { + "conceptName": "Gynaecology" + }, + "order": 5, + "requiredPrivilege": "app:clinical" + }, + "bahmniClinicalConceptSetGroupObservationsDischargeSummary": { + "id": "bahmni.clinical.conceptSetGroup.observations.dischargeSummary", + "extensionPointId": "org.bahmni.clinical.conceptSetGroup.observations", + "type": "config", + "extensionParams": { + "conceptName": "Discharge Summary" + }, + "order": 6, + "requiredPrivilege": "Discharge Summary" + }, + "bahmniClinicalBillingTreatment": { + "id": "bahmni.clinical.billing.treatment", + "extensionPointId": "org.bahmni.clinical.consultation.board", + "type": "link", + "label": "Medications", + "translationKey":"MEDICATIONS_BOARD_LABEL_KEY", + "extensionParams":{ + "tabConfigName": "allMedicationTabConfig" + }, + "url": "treatment", + "icon": "fa-user-md", + "order": 7, + "requiredPrivilege": "app:clinical:treatmentTab" } } + diff --git a/offline/openmrs/apps/clinical/formConditions.js b/offline/openmrs/apps/clinical/formConditions.js old mode 100755 new mode 100644 index 9179a948a..22389c164 --- a/offline/openmrs/apps/clinical/formConditions.js +++ b/offline/openmrs/apps/clinical/formConditions.js @@ -24,5 +24,657 @@ 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 information" : function (formName , formFieldValues, patient){ + if(patient.age < 15){ + return{ + show: ["Close Contact History with TB patients","Failure to Thrive, Children"], + hide:["TB Screening , Night Sweats","TB Screening ,Weight loss"] + } + }else { + return{ + hide: ["Close Contact History with TB patients","Failure to Thrive, Children"], + show:["TB Screening , Night Sweats","TB Screening ,Weight loss"] + } + } + }, + "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"); + } + }, + "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"); + + } + }, + + "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"] + + } + }else { + return{ + hide: ["TB Regimen For Children"] + } + } + }, + "First Attempt Method": function (formName, formFieldValues) { + var firstmethod = formFieldValues["First Attempt Method"]; + if (firstmethod === "Other Specify") { + return { + show:["Other Follow up Method Specify(First Attempt)"] + } + } else { + return { + hide:["Other Follow up Method Specify(First Attempt)"] + } + } + }, + "First Attempt Outcome": function (formName, formFieldValues) { + var firstoutcome = formFieldValues["First Attempt Outcome"]; + if (firstoutcome === "Other Outcome") { + return { + show:["Follow up Outcome Others Specify(First Attempt)"] + } + } else { + return { + hide:["Follow up Outcome Others Specify(First Attempt)"] + } + } + }, + "Second Attempt Method": function (formName, formFieldValues) { + var secondmethod = formFieldValues["Second Attempt Method"]; + if (secondmethod === "Other Specify") { + return { + show:["Other Follow up Method Specify(Second Attempt)"] + } + } else { + return { + hide:["Other Follow up Method Specify(Second Attempt)"] + } + } + }, + "Outcome,Second Attempt": function (formName, formFieldValues) { + var secondoutcome = formFieldValues["Outcome,Second Attempt"]; + if (secondoutcome === "Other Specify") { + return { + show:["Follow up Outcome Others Specify(Second Attempt)"] + } + } else { + return { + hide:["Follow up Outcome Others Specify(Second Attempt)"] + } + } + }, + "Third Attempt Method": function (formName, formFieldValues) { + var thirdmethod = formFieldValues["Third Attempt Method"]; + if (thirdmethod === "Other") { + return { + show:["Other Follow up Method Specify(Third Attempt)"] + } + } else { + return { + hide:["Other Follow up Method Specify(Third Attempt)"] + } + } + }, + "Third Attempt Outcome": function (formName, formFieldValues) { + var thirdoutcome = formFieldValues["Third Attempt Outcome"]; + if (thirdoutcome === "Other Outcome") { + return { + show:["Follow up Outcome Others Specify(Third Attempt)"] + } + } else { + return { + hide:["Follow up Outcome Others Specify(Third Attempt)"] + } + } + }, + "Fourth Attempt Method": function (formName, formFieldValues) { + var forthmethod = formFieldValues["Fourth Attempt Method"]; + if (forthmethod === "Other") { + return { + show:["Other Follow up Method Specify(Fourth Attempt)"] + } + } else { + return { + hide:["Other Follow up Method Specify(Fourth Attempt)"] + } + } + }, + "Fourth Attempt Outcome": function (formName, formFieldValues) { + var forthoutcome = formFieldValues["Fourth Attempt Outcome"]; + if (forthoutcome === "Other Outcome") { + return { + show:["Follow up Outcome Others Specify(Fourth Attempt)"] + } + } else { + return { + hide:["Follow up Outcome Others Specify(Fourth Attempt)"] + } + } + }, + "CTX Adherence": function (formName, formFieldValues) { + var ctxsadherence = formFieldValues["CTX Adherence"]; + if (ctxsadherence === "Adherence Fair") { + return { + show: ["Reason why Adherence is Fair"], + hide: ["Reason why Adherence is Poor"] + } + } else if (ctxsadherence === "Adherence Poor") { + return { + show: ["Reason why Adherence is Poor"], + hide: ["Reason why Adherence is Fair"] + + } + } else { + return{ + hide: ["Reason why Adherence is Fair","Reason why Adherence is Poor"] + } + } + }, + "Is Family Member in ART Care?": function (formName, formFieldValues) { + var memberinclinic = formFieldValues["Is Family Member in ART Care?"]; + if (memberinclinic == true) { + return { + show:["Family Member ART Number"] + } + } else { + return { + hide:["Family Member ART Number"] + } + } + }, + "MDT Held?": function (formName, formFieldValues) { + var mdtheld = formFieldValues["MDT Held?"]; + if (mdtheld == true) { + return { + show:["Date MDT Held","MDT Outcome"] + } + } else { + return { + hide:["Date MDT Held","MDT Outcome"] + } + } + }, + "On TB Treatment" : function (formName , formFieldValues){ + var ontbtreatment = formFieldValues["On TB Treatment"]; + if(ontbtreatment == true){ + return{ + show: ["TB Unit Number","Date Started TB Treatment","TB Clinic Enrolled"] + } + }else { + return{ + hide: ["TB Unit Number","Date Started TB Treatment","TB Clinic Enrolled"] + } + } + }, + "Classification Of Adherence(First EAC session)" : function (formName , formFieldValues){ + var firstclassification = formFieldValues["Classification Of Adherence(First EAC session)"]; + if((firstclassification === "Adherence Fair") || (firstclassification === "Adherence Poor")) { + return{ + show: ["First EAC Service","First EAC Tools"] + } + }else { + return{ + hide: ["First EAC Service","First EAC Tools"] + } + } + }, + "First EAC Tools" : function (formName , formFieldValues){ + var firsteactools = formFieldValues["First EAC Tools"]; + if(firsteactools === "Other Tools for First EAC") { + return{ + show: ["Specify Other Tools for First EAC"] + } + }else { + return{ + hide: ["Specify Other Tools for First EAC"] + } + } + }, + "Classification Of Adherence(Second EAC session)" : function (formName , formFieldValues){ + var secondclassification = formFieldValues["Classification Of Adherence(Second EAC session)"]; + if((secondclassification === "Adherence Fair") || (secondclassification === "Adherence Poor")) { + return{ + show: ["Second EAC Service","Second EAC Tools"] + } + }else { + return{ + hide: ["Second EAC Service","Second EAC Tools"] + } + } + }, + "Second EAC Tools" : function (formName , formFieldValues){ + var secondeactools = formFieldValues["Second EAC Tools"]; + if(secondeactools === "Other Tools for Second EAC") { + return{ + show: ["Specify Other Tools for Second EAC"] + } + }else { + return{ + hide: ["Specify Other Tools for Second EAC"] + } + } + }, + "Classification Of Adherence(Third EAC session)" : function (formName , formFieldValues){ + var thirdclassification = formFieldValues["Classification Of Adherence(Third EAC session)"]; + if((thirdclassification === "Adherence Fair") || (thirdclassification === "Adherence Poor")) { + return{ + show: ["Third EAC Service","Third EAC Tools"] + } + }else { + return{ + hide: ["Third EAC Service","Third EAC Tools"] + } + } + }, + "Third EAC Tools" : function (formName , formFieldValues){ + var thirdeactools = formFieldValues["Third EAC Tools"]; + if(thirdeactools === "Other Tools For Third EAC") { + return{ + show: ["Specify Other Tools for Third EAC"] + } + }else { + return{ + hide: ["Specify Other Tools for Third EAC"] + } + } + }, + + }; + diff --git a/offline/openmrs/apps/clinical/growthChartReference.csv b/offline/openmrs/apps/clinical/growthChartReference.csv old mode 100755 new mode 100644 diff --git a/offline/openmrs/apps/clinical/visit.json b/offline/openmrs/apps/clinical/visit.json old mode 100755 new mode 100644 diff --git a/offline/openmrs/apps/home/app.json b/offline/openmrs/apps/home/app.json old mode 100755 new mode 100644 diff --git a/offline/openmrs/apps/home/extension.json b/offline/openmrs/apps/home/extension.json old mode 100755 new mode 100644 diff --git a/offline/openmrs/apps/registration/app.json b/offline/openmrs/apps/registration/app.json old mode 100755 new mode 100644 index d3bf8688f..f39b43c1b --- a/offline/openmrs/apps/registration/app.json +++ b/offline/openmrs/apps/registration/app.json @@ -17,75 +17,124 @@ "activeVisitUuid" ], "config" : { + "afterVisitSaveForwardUrl" : "../clinical/#/default/patient/{{patientUuid}}/dashboard", "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", + "Walk-InReason" + ], + "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 + }, + "registerNewPatient5": { + "title": "Not shown", + "attributes": [ + "MobileCountryCode", + "MobileNumber", + "AlternativeNumber" + ], + "expand": true, + "order": 5 + }, + "CaregiverFollowUp": { + "title": "Mother Follow Up Information", + "attributes": [ + "HeiChildMothersName", + "MotherInCareAtArtClinic", + "MothersArtNo", + "FacilityName", + "MothersContactNumber" + ], + "expand": true, + "order": 6 + }, + "alternateContactInformation": { + "title": "Alternative Caregiver", + "attributes": [ + "AlternateContactPerson", + "TelephoneNo", + "AlternateContactPersonLocation", + "AlternateContactPersonRelationship", + "ContactPersonDisclosedTo" + ], + "expand": true, + "order": 7 + }, + "treatmentSupporter": { + "title": "Treatment Supporter", + "attributes": [ + "TreatmentSupporterFirstName", + "TreatmentSupporterLastName", + "TreatmentSupporterTelephoneNumber", + "TreatmentSupporterAddress", + "HomeCareProvidedBy" + ], + "expand": true, + "order": 8 + }, + "defaults": { + "MobileCountryCode": "South Sudan" } }, "addressHierarchy": { - "showAddressFieldsTopDown": false, - "strictAutocompleteFromLevel": "stateProvince" + "showAddressFieldsTopDown": true, + "strictAutocompleteFromLevel": "address1" }, "relationshipTypeMap": { "Doctor":"provider", "Parent":"patient" }, - "autoCompleteFields":["familyName", "caste"], - "defaultIdentifierPrefix": "GAN", + "disablePhotoCapture": true, + "showEnterID": false, + "dobMandatory": true, + "autoCompleteFields":["familyName", "givenName"], "defaultVisitType": "OPD", - "showLastName": true, - "isLastNameMandatory": true, - "disablePhotoCapture": true, "searchByIdForwardUrl": "/patient/{{patientUuid}}", "showMiddleName": true, - "showBirthTime": true, + "showLastName": true, + "isLastNameMandatory": false, + "showSaveConfirmDialog": false, + "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 }, @@ -99,19 +148,20 @@ "familyName" : {"pattern" : "[a-zA-Z]{0,}", "errorMessage" : "Should contain characters"}, "givenName" : {"pattern" : "[a-zA-Z]{0,}", "errorMessage" : "Should contain characters"}, "middleName" : {"pattern" : "[a-zA-Z]{0,}", "errorMessage" : "Should contain characters"}, - "address1" : {"pattern" : "[a-zA-Z0-9]{3}", "errorMessage" : "Should contain 3 characters"} + "address1" : {"pattern" : "[a-zA-Z0-9\\s]{2,}", "errorMessage" : "Should contain at least 2 characters"}, + "TreatmentSupporterTelephoneNumber" : {"pattern" : "[0-9]{0,10}", "errorMessage" : "Should be 10 digits"}, + "TelephoneNo" : {"pattern" : "[0-9]{0,10}", "errorMessage" : "Should be 10 digits"}, + "MothersContactNumber" : {"pattern" : "[0-9]{0,10}", "errorMessage" : "Should be 10 digits"}, + "MobileNumber" : {"pattern" : "[0-9]{0,10}", "errorMessage" : "Should be 10 digits"}, + "AlternativeNumber" : {"pattern" : "[0-9]{0,10}", "errorMessage" : "Should be 10 digits"} }, "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/offline/openmrs/apps/registration/extension.json b/offline/openmrs/apps/registration/extension.json old mode 100755 new mode 100644 index 8b1f3fc23..222990c76 --- 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..2bbbda1c4 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,307 @@ "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 + }, + "CTX or Dapose Start Date":{ + "required":true + }, + "Classification Of Adherence":{ + "required":true + }, + "EDD":{ + "required":true, + "allowFutureDates": true + }, + "PMTCT - HIV & ART Follow up":{ + "required":true + }, + "WHO Stage":{ + "dropdown":true + }, + "Medical History":{ + "multiSelect" : true + }, + "GeneXpert , Result":{ + "dropdown":true + }, + "AFB Microscopic, Results":{ + "dropdown":true + }, + "CxR Results":{ + "dropdown":true + }, + "GeneXpert Information":{ + "isTabular": true + }, + "AFB Microscopic":{ + "isTabular": true + }, + "FNA":{ + "isTabular": true + }, + "Culture, TB Investigations":{ + "isTabular": true + }, + "Chest X-RAY Investigations":{ + "isTabular": true + }, + "First Attempt Method":{ + "dropdown":true + }, + "First Attempt Outcome":{ + "dropdown":true + }, + "Second Attempt Method":{ + "dropdown":true + }, + "Third Attempt Method":{ + "dropdown":true + }, + "Third Attempt Outcome":{ + "dropdown":true + }, + "Fourth Attempt Method":{ + "dropdown":true + }, + "Fourth Attempt Outcome":{ + "dropdown":true + }, + "Outcome,Second Attempt":{ + "dropdown":true + }, + "Other Follow up Method Specify(First Attempt)":{ + "required":true + }, + "Follow up Outcome Others Specify(First Attempt)":{ + "required":true + }, + "Other Follow up Method Specify(Second Attempt)":{ + "required":true + }, + "Follow up Outcome Others Specify(Second Attempt)":{ + "required":true + }, + "Other Follow up Method Specify(Third Attempt)":{ + "required":true + }, + "Follow up Outcome Others Specify(Third Attempt)":{ + "required":true + }, + "Other Follow up Method Specify(Fourth Attempt)":{ + "required":true + }, + "Follow up Outcome Others Specify(Fourth Attempt)":{ + "required":true + }, + "Cohort":{ + "displayMonthAndYear": true + }, + "Reason why Adherence is Poor":{ + "required":true + }, + "Reason why Adherence is Fair":{ + "required":true + }, + "was counselling done?":{ + "required":true + }, + "EAC Results":{ + "required":true + }, + "First EAC Session Date":{ + "required":true + }, + "Classification Of Adherence(First session)":{ + "required":true + }, + "Date MDT Held":{ + "required":true + }, + "MDT Outcome":{ + "required":true + }, + "First EAC Service":{ + "required":true + }, + "First EAC Tools":{ + "required":true + }, + "Specify Other Tools for First EAC":{ + "required":true + }, + "Second EAC Service":{ + "required":true + }, + "Second EAC Tools":{ + "required":true + }, + "Specify Other Tools for Second EAC":{ + "required":true + }, + "Third EAC Service":{ + "required":true + }, + "Third EAC Tools":{ + "required":true + }, + "Specify Other Tools for Third EAC":{ + "required":true + }, + "Date Started TB Treatment":{ + "required":true + }, + "First EAC Adherence Barriers":{ + "required":true + }, + "Second EAC Adherence Barriers":{ + "required":true + }, + "Third EAC Adherence Barriers":{ + "required":true + }, + "First EAC Barrier Reason Specify":{ + "required":true + }, + "Second EAC Barrier Reason Specify":{ + "required":true + }, + "Third EAC Barrier Reason Specify":{ + "required":true + }, + "Sexual Partner Relationship":{ + "required":true + }, + "Other sexual Partner Relationship Specify":{ + "required":true + }, + "ART Treatment Stop/Lost Date":{ + "required":true + }, + "Initial ART Regimen (Adult)":{ + "required":true + }, + "Date If Restarted":{ + "required":true + }, + "Regimen Changed to(Adults)":{ + "required":true + }, + "Initial Regimen Change Reason":{ + "required":true + }, + "defaults": { "Number of living children": 1, "Accepted Family Planning methods": [ diff --git a/openmrs/apps/clinical/clinical.json b/openmrs/apps/clinical/clinical.json new file mode 100644 index 000000000..95beecde9 --- /dev/null +++ b/openmrs/apps/clinical/clinical.json @@ -0,0 +1 @@ +{"medication.json": {"commonConfig": {}, "tabConfig": {"allMedicationTabConfig": {"orderSet": {"calculateDoseOnlyOnCurrentVisitValues": false}, "inputOptionsConfig": {"frequencyDefaultDurationUnitsMap": [{"minFrequency": "1/7", "maxFrequency": 5, "defaultDurationUnit": "Day(s)"}, {"minFrequency": "1/30", "maxFrequency": "1/7", "defaultDurationUnit": "Week(s)"}, {"minFrequency": null, "maxFrequency": "1/30", "defaultDurationUnit": "Month(s)"}], "hideOrderSet": false, "drugFormDefaults": {"Cream": {"route": "Topical"}, "Pessary": {"doseUnits": "Unit(s)", "route": "Per Vaginal"}, "Tablet": {"doseUnits": "Tablet(s)", "route": "Oral"}, "Liquid": {"doseUnits": "ml", "route": "Oral"}, "Lotion": {"route": "Topical"}, "Injection": {"doseUnits": "mg", "route": "Intravenous"}, "Jelly": {"route": "Topical"}, "Ayurvedic": {"doseUnits": "Teaspoon", "route": "Oral"}, "Granule": {"doseUnits": "Unit(s)", "route": "Oral"}, "Spray": {"doseUnits": "Puff(s)", "route": "Nasal"}, "Solution": {"doseUnits": "ml", "route": "Topical"}, "Capsule": {"doseUnits": "Capsule(s)", "route": "Oral"}, "Ointment": {"route": "Topical"}, "Powder": {"doseUnits": "mg", "route": "Topical"}, "Food Supplement": {"doseUnits": "Unit(s)", "route": "Oral"}, "Drops": {"doseUnits": "Drop", "route": "Topical"}, "Syrup": {"doseUnits": "ml", "route": "Oral"}, "Inhaler": {"doseUnits": "Puff(s)", "route": "Inhalation"}, "Gel": {"route": "Topical"}}, "defaultDurationUnit": "Day(s)", "defaultInstructions": "As directed"}}}}, "formConditions.js": "Bahmni.ConceptSet.FormConditions.rules = {\r 'Diastolic Data' : function (formName, formFieldValues) {\r var systolic = formFieldValues['Systolic'];\r var diastolic = formFieldValues['Diastolic'];\r if (systolic || diastolic) {\r return {\r enable: [\"Posture\"]\r }\r } else {\r return {\r disable: [\"Posture\"]\r }\r }\r },\r 'Systolic Data' : function (formName, formFieldValues) {\r var systolic = formFieldValues['Systolic'];\r var diastolic = formFieldValues['Diastolic'];\r if (systolic || diastolic) {\r return {\r enable: [\"Posture\"]\r }\r } else {\r return {\r disable: [\"Posture\"]\r }\r }\r }\r};", "extension.json": {"bahmniClinicalPatientsASearchActivePatientsByProvider": {"extensionPointId": "org.bahmni.patient.search", "extensionParams": {"translationKey": "MODULE_LABEL_MY_PATIENTS_KEY", "forwardUrl": "#/default/patient/{{patientUuid}}/dashboard", "searchHandler": "emrapi.sqlSearch.activePatientsByProvider"}, "id": "bahmni.clinical.patients.search.activePatientsByProvider", "requiredPrivilege": "app:clinical", "label": "Active", "type": "config", "order": 2}, "bahmniClinicalPatientsSearchAllPatients": {"extensionPointId": "org.bahmni.patient.search", "extensionParams": {"translationKey": "MODULE_LABEL_ALL_KEY", "forwardUrl": "#/default/patient/{{patientUuid}}/dashboard"}, "id": "bahmni.clinical.patients.search.allPatients", "requiredPrivilege": "app:clinical", "label": "All", "type": "config", "order": 5}, "bahmniClinicalConceptSetGroupObservationsHistory": {"extensionPointId": "org.bahmni.clinical.conceptSetGroup.observations", "extensionParams": {"default": true, "conceptName": "History and Examination"}, "order": 1, "requiredPrivilege": "app:clinical:history", "type": "config", "id": "bahmni.clinical.conceptSetGroup.observations.history"}, "bahmniClinicalConceptSetGroupObservationsVitals": {"extensionPointId": "org.bahmni.clinical.conceptSetGroup.observations", "extensionParams": {"default": true, "conceptName": "Vitals"}, "order": 2, "requiredPrivilege": "app:clinical", "type": "config", "id": "bahmni.clinical.conceptSetGroup.observations.vitals"}, "bahmniClinicalPatientsSearchOPDActivePatientsByProvider": {"extensionPointId": "org.bahmni.patient.search", "extensionParams": {"translationKey": "MODULE_LABEL_OPD_1_KEY", "forwardUrl": "#/default/patient/{{patientUuid}}/consultationContext", "searchHandler": "emrapi.sqlSearch.activePatientsByProvider"}, "id": "bahmni.clinical.patients.search.OPDActivePatientsByProvider", "requiredPrivilege": "app:clinical", "label": "OPD-1", "type": "config", "order": 3}, "activePatientsByLocation": {"extensionPointId": "org.bahmni.patient.search", "extensionParams": {"translationKey": "MODULE_LABEL_ACTIVE_PATIENTS_BY_LOCATION", "forwardUrl": "#/default/patient/{{patientUuid}}/dashboard", "searchHandler": "emrapi.sqlSearch.activePatientsByLocation"}, "id": "bahmni.clinical.patients.search.activePatientsByLocation", "requiredPrivilege": "app:clinical", "label": "Active", "type": "config", "order": 4}, "bahmniClinicalPatientsSearchAllActivePatients": {"extensionPointId": "org.bahmni.patient.search", "extensionParams": {"translationKey": "MODULE_LABEL_ACTIVE_KEY", "forwardUrl": "#/default/patient/{{patientUuid}}/dashboard", "searchHandler": "emrapi.sqlSearch.activePatients"}, "id": "bahmni.clinical.patients.search.allActivePatients", "requiredPrivilege": "app:clinical", "label": "Active", "type": "config", "order": 1}, "observations": {"extensionPointId": "org.bahmni.clinical.consultation.board", "requiredPrivilege": "app:clinical:observationTab", "url": "concept-set-group/observations", "label": "Observations", "translationKey": "OBSERVATIONS_BOARD_LABEL_KEY", "default": true, "order": 1, "type": "link", "id": "bahmni.clinical.consultation.observations", "icon": "fa-user-md"}, "bahmniClinicalConceptSetGroupObservationsSecondVitals": {"extensionPointId": "org.bahmni.clinical.conceptSetGroup.observations", "extensionParams": {"showIf": ["var visitTypes = [];", "if(visitTypes.length === 0) return true;", "var visitTypeName = context.visitType ? context.visitType.name : null;", "return visitTypes.indexOf(visitTypeName) !== -1;"], "conceptName": "Second Vitals"}, "order": 3, "requiredPrivilege": "app:clinical", "type": "config", "id": "bahmni.clinical.conceptSetGroup.observations.secondVitals"}, "bahmniClinicalPatientsSearchActivePatientsForPrograms": {"extensionPointId": "org.bahmni.patient.search", "extensionParams": {"translationKey": "MODULE_LABEL_PROGRAMS_KEY", "forwardUrl": "#/default/patient/{{patientUuid}}/consultationContext", "searchHandler": "emrapi.sqlSearch.activePatients"}, "id": "bahmni.clinical.patients.search.activePatients", "requiredPrivilege": "app:clinical", "label": "Active", "type": "config", "order": 1}}, "visit.json": {"dischargeSummary": {"translationKey": "DASHBOARD_TAB_DISCHARGE_SUMMARY_KEY", "printing": {"logo": "../images/bahmniLogo.png", "header": "Discharge Summary", "title": "Bahmni"}, "sections": {"weightInitial": {"translationKey": "DISCHARGE_SUMMARY_AT_ADMISSION_KEY", "config": {"conceptNames": ["WEIGHT"], "scope": "initial"}, "type": "observation", "displayOrder": 2}, "diagnoses": {"config": {"translationKey": "DISCHARGE_SUMMARY_DIAGNOSIS_KEY", "showOrder": false, "showDetailsButton": true, "showCertainty": false}, "type": "diagnosis", "displayOrder": 4}, "adviceOnDischarge": {"translationKey": "DISCHARGE_SUMMARY_ADVICE_ON_DISCHARGE_KEY", "config": {"conceptNames": ["Additional Advice on Discharge", "Follow up Date", "Discharge Summary, Plan for follow up"], "scope": "latest"}, "type": "observation", "displayOrder": 8}, "labInvestigations": {"config": {"initialAccessionCount": 1, "showAccessionNotes": true, "showTable": false, "numberOfVisits": 10, "showChart": true, "translationKey": "LAB_INVESTIGATION", "showCommentsExpanded": true, "showNormalLabResults": true, "latestAccessionCount": 1}, "type": "investigationResult", "displayOrder": 6}, "Treatments": {"config": {"showListView": true, "showDetailsButton": true, "showRoute": true, "showFlowSheet": true, "translationKey": "VISIT_TITLE_TREATMENTS_KEY", "showOtherActive": false, "showProvider": false, "showDrugForm": true}, "type": "treatment", "displayOrder": 6}, "PatientInformation": {"config": {"patientAttributes": ["caste", "class", "education", "occupation", "debt", "distanceFromCenter", "isUrban", "cluster", "RationCard", "familyIncome"], "addressFields": ["address1", "address2", "cityVillage", "countyDistrict"], "title": "PatientInformation"}, "type": "patientInformation", "displayOrder": 0}, "weightLatest": {"translationKey": "DISCHARGE_SUMMARY_AT_DISCHARGE_KEY", "config": {"conceptNames": ["WEIGHT"], "scope": "latest"}, "type": "observation", "displayOrder": 3}, "clinicalNotes": {"translationKey": "DISCHARGE_SUMMARY_CLINICAL_NOTES_KEY", "config": {"conceptNames": ["History and Examination Notes", "Discharge Summary", "Lab Investigation Notes", "Radiology Notes", "Other Notes"], "scope": "latest", "numberOfVisits": "1"}, "type": "observation", "displayOrder": 5}, "admissionDetails": {"config": {"translationKey": "DISCHARGE_SUMMARY_ADMISSION_DETAILS_KEY", "showDetailsButton": true}, "type": "admissionDetails", "displayOrder": 1}}}, "orders": {"translationKey": "DASHBOARD_TAB_ORDERS_KEY", "sections": {"Radiology Orders": {"translationKey": "Radiology Orders", "config": {"translationKey": "Radiology Orders", "orderType": "Radiology Order", "conceptNames": ["Summary"], "name": "ordersControl"}, "type": "order", "displayOrder": 0}}}, "general": {"translationKey": "DASHBOARD_TAB_GENERAL_KEY", "displayByDefault": true, "defaultSections": true, "printing": {"logo": "../images/bahmniLogo.png", "header": "Visit", "title": "Bahmni"}, "sections": {"pivotTable": {"config": {"labConcepts": "", "obsConcepts": ["Pulse", "Diastolic", "Systolic", "Temperature", "RR", "SPO2", "Height", "WEIGHT", "M/C Days"], "groupBy": "encounters"}, "type": "pivotTable", "displayOrder": 0, "title": "Vitals Flowsheet"}, "conditions": {"config": {}, "type": "conditionsList", "displayOrder": 2, "title": "Conditions"}, "pacsOrders": {"translationKey": "PACS_ORDERS_VISIT_PAGE_KEY", "config": {"orderType": "Radiology Order"}, "type": "pacsOrders", "displayOrder": 1}}}}, "app.json": {"config": {"obsIgnoreList": ["REGISTRATION FEES", "COMMENTS", "Patient file"], "visitTypeForRetrospectiveEntries": "Special OPD", "enableRadiologyOrderOptions": ["Urgent", "NeedsPrint"], "conceptSetUI": {"Chief Complaint Data": {"autocomplete": true, "nonCodedConceptName": "Non-Coded Chief Complaint", "codedConceptName": "Chief Complaint", "durationRequired": false, "allowAddMore": true}, "Gynaecology, Gravida": {"stepper": true}, "Anaemia, Stopped Since When": {"conciseText": true}, "Examination Notes": {"conciseText": true}, "Coded3": {"multiSelect": true}, "Image": {"allowAddMore": true}, "P/A Presenting Part": {"multiSelect": true}, "video": {"allowAddMore": true}, "Set1": {"allowAddMore": true}, "Set2": {"allowAddMore": true}, "defaults": {"Pain management given": true, "Accepted Family Planning methods": ["Condoms", "Pills"], "Number of living children": 1, "Malaria, Death Date": "2015-12-01", "Safe Abortion, Remarks": "Remarks"}, "Accepted Family Planning methods": {"multiSelect": true}, "Tuberculosis, Adverse Effects": {"autocomplete": true, "multiSelect": true}, "P/S (Per Speculum) - Cervix": {"grid": true}, "FHS": {"buttonSelect": true}, "Posture": {"buttonSelect": true}}, "defaultVisitType": "OPD", "maxConceptSetLevels": 3, "enableLabOrderOptions": ["Urgent", "NeedsPrint"], "patientContext": {"preferredIdentifier": "Id_Number", "additionalPatientIdentifiers": ["National ID"], "personAttributes": ["class", "caste"], "programAttributes": ["Id_Number", "Doctor", "Stage"]}, "diagnosisStatus": "Inactive", "program": {"patientInformation": {"ageLimit": 100}}, "networkConnectivity": {"networkStatusCheckInterval": 20000, "locales": [{"locale": "fr", "css": "offline-language-french"}, {"locale": "es", "css": "offline-language-spanish"}, {"locale": "pt", "css": "offline-language-portuguese-brazil"}], "showNetworkStatusMessage": false}, "quickPrints": false, "visitPage": {"observationDisplay": {"conceptNames": []}}, "otherInvestigationsMap": {"Radiology": "Radiology Order", "Endoscopy": "Endoscopy Order"}, "allowConsultationWhenNoOpenVisit": false, "allowOnlyCodedDiagnosis": false}, "contextModel": ["patientUuid", "visitUuid"], "id": "bahmni.clinical", "extensionPoints": [{"id": "org.bahmni.clinical.consultation.board", "description": "Bahmni Clinical Consultation Page"}, {"id": "org.bahmni.clinical.conceptSetGroup.*", "description": "Define conceptsets part of a conceptset group"}, {"id": "org.bahmni.clinical.orders", "description": "Bahmni Orders Page"}, {"id": "org.bahmni.patient.search", "description": "Bahmni Patient search, lookups Page"}]}, "dashboard.json": {"trends": {"translationKey": "DASHBOARD_TAB_TRENDS_KEY", "sections": {"weight/BMI": {"config": {"yAxisConcepts": ["Weight", "BMI"], "xAxisConcept": "observationDateTime", "numberOfVisits": 10}, "type": "observationGraph", "displayOrder": 3, "title": "Weight/BMI"}, "observationGraph": {"config": {"yAxisConcepts": ["Pulse Data"], "xAxisConcept": "observationDateTime", "numberOfVisits": 10}, "type": "observationGraph", "displayOrder": 5, "title": "Pulse"}, "patientInformation": {"translationKey": "DASHBOARD_TITLE_PATIENT_INFORMATION_KEY", "patientAttributes": ["caste", "class", "education", "occupation", "debt", "distanceFromCenter", "isUrban", "cluster", "RationCard", "familyIncome"], "addressFields": ["address1", "address2", "cityVillage", "countyDistrict"], "type": "patientInformation", "displayOrder": 0}, "BP": {"config": {"yAxisConcepts": ["Systolic Data", "Diastolic Data"], "xAxisConcept": "observationDateTime", "numberOfVisits": 10}, "type": "observationGraph", "displayOrder": 2, "title": "BP"}, "diabetes/BloodSugar": {"config": {"yAxisConcepts": ["Blood Sugar Fasting", "Blood Sugar P.P"], "xAxisConcept": "observationDateTime", "numberOfVisits": 10}, "type": "observationGraph", "displayOrder": 4, "title": "Diabetes/Blood Sugar"}, "growthChart": {"config": {"yAxisConcepts": ["Weight"], "referenceData": "growthChartReference.csv", "numberOfVisits": 20}, "type": "observationGraph", "displayOrder": 1, "title": "Growth Chart"}, "diabetes": {"templateName": "Diabetes, Progress", "dashboardConfig": {"showOnly": []}, "title": "Diabetes", "expandedViewConfig": {"pivotTable": {"labConcepts": ["RBS", "FBS", "PP2BS", "Hb1AC", "Creatinine", "Cholesterol"], "numberOfVisits": "10", "obsConcepts": ["Diabetes, Blood Pressure", "Diabetes, A1C", "Diabetes, LDL", "Diabetes, Ulcers on Feet", "Blood Sugar Fasting", "Blood Sugar PP"], "groupBy": "visits"}, "showDetailsButton": true}, "type": "diseaseTemplate", "displayOrder": 6}}, "maxRecentlyViewedPatients": 10}, "patientSummary": {"translationKey": "DASHBOARD_TAB_PATIENT_SUMMARY_KEY", "sections": {"Bacteriology Concept Set": {"translationKey": "DASHBOARD_TITLE_BACTERIOLOGY_RESULTS_KEY", "displayType": "Full-Page", "expandedViewConfig": {"groupByConcept": "Specimen Collection Date", "templateName": "BACTERIOLOGY CONCEPT SET"}, "type": "obsToObsFlowSheet", "dashboardConfig": {"conceptNames": ["Specimen Id"], "numberOfVisits": 1, "groupByConcept": "Specimen Collection Date", "templateName": "BACTERIOLOGY CONCEPT SET"}}, "HistoryAndExamination": {"dashboardConfig": {"conceptNames": ["Chief Complaint Data", "Examination Notes", "Smoking History", "Clief COmplaint Notes", "Blood Pressure"], "showGroupDateTime": false}, "isObservation": true, "translationKey": "DASHBOARD_TITLE_HISTORY_AND_EXAMINATIONS_KEY", "displayType": "Full-Page", "type": "historyAndExamination", "displayOrder": 6}, "drugOther": {"showDetailsButton": true, "dashboardConfig": {"showOnlyActive": true, "drugConceptSet": "All Other Drugs"}, "translationKey": "DASHBOARD_TITLE_TREATMENTS_KEY", "displayType": "Full-Page", "type": "drugOrderDetails", "displayOrder": 24}, "malaria": {"displayType": "Full-Page", "dashboardConfig": {"conceptNames": ["Malaria, Parents Name", "Malaria, drug regimen", "Malaria, Malaria Type", "Malaria, Source"], "groupByConcept": "Malaria, Treatment Start Date", "templateName": "Malaria"}, "type": "obsToObsFlowSheet", "displayOrder": 26, "title": "Malaria"}, "Chronic Treatment Chart": {"displayType": "Full-Page", "expandedViewConfig": {"drugs": []}, "type": "chronicTreatmentChart", "dashboardConfig": {"drugs": []}, "title": "Chronic Treatment Chart"}}, "maxRecentlyViewedPatients": 10}, "general": {"translationKey": "DASHBOARD_TAB_GENERAL_KEY", "displayByDefault": true, "sections": {"gynaecology": {"dashboardConfig": {"conceptNames": ["Gynaecology"], "numberOfVisits": 2, "showDetailsButton": true}, "isObservation": true, "translationKey": "DASHBOARD_TITLE_GYNAECOLOGY_KEY", "expandedViewConfig": {"conceptNames": ["Gynaecology"], "numberOfVisits": 2, "pivotTable": {}, "showDetailsButton": true}, "type": "gynaecology", "displayOrder": 15}, "obstetrics": {"dashboardConfig": {"conceptNames": ["Obstetrics"], "numberOfVisits": 2, "showDetailsButton": true}, "isObservation": true, "translationKey": "DASHBOARD_TITLE_OBSTETRICS_KEY", "expandedViewConfig": {"conceptNames": ["Obstetrics"], "numberOfVisits": 2, "pivotTable": {}, "showDetailsButton": true}, "type": "obstetrics", "displayOrder": 16}, "labResults": {"translationKey": "DASHBOARD_TITLE_LAB_RESULTS_KEY", "dashboardConfig": {"showDetailsButton": false, "title": null, "showTable": true, "numberOfVisits": 1, "showChart": false, "initialAccessionCount": 0, "latestAccessionCount": 1}, "expandedViewConfig": {"numberOfVisits": 10}, "type": "labOrders", "displayOrder": 10}, "treatments": {"translationKey": "DASHBOARD_TITLE_TREATMENTS_KEY", "dashboardConfig": {"showListView": true, "showDetailsButton": true, "showRoute": true, "showFlowSheet": true, "numberOfVisits": 5, "showOtherActive": true, "showDrugForm": true}, "expandedViewConfig": {"showListView": true, "showDetailsButton": true, "showRoute": true, "showFlowSheet": true, "numberOfVisits": 10, "translationKey": "DASHBOARD_TITLE_TREATMENTS_KEY", "showOtherActive": true, "showDrugForm": true}, "type": "treatment", "displayOrder": 4}, "visits": {"translationKey": "DASHBOARD_TITLE_VISITS_KEY", "dashboardConfig": {"maximumNoOfVisits": 8, "groupByVisits": true, "title": null}, "type": "visits", "displayOrder": 3}, "secondVitals": {"dashboardConfig": {"conceptNames": ["Second Vitals"], "numberOfVisits": 2, "showDetailsButton": true}, "isObservation": true, "translationKey": "DASHBOARD_TITLE_SECOND_VITALS_KEY", "expandedViewConfig": {"conceptNames": ["Second Vitals"], "numberOfVisits": 2, "pivotTable": {}, "showDetailsButton": true}, "type": "second vitals", "displayOrder": 13}, "patientInformation": {"ageLimit": 100, "translationKey": "DASHBOARD_TITLE_PATIENT_INFORMATION_KEY", "patientAttributes": [], "addressFields": ["address1", "address2", "cityVillage", "countyDistrict"], "type": "patientInformation", "displayOrder": 0}, "diagnosis": {"showOrder": true, "showDetailsButton": true, "translationKey": "DASHBOARD_TITLE_DIAGNOSIS_KEY", "type": "diagnosis", "displayOrder": 1, "showCertainty": true}, "vitals": {"dashboardConfig": {"conceptNames": ["Vitals"], "numberOfVisits": 2, "showDetailsButton": true}, "isObservation": true, "translationKey": "DASHBOARD_TITLE_VITALS_KEY", "expandedViewConfig": {"conceptNames": ["Vitals"], "numberOfVisits": 2, "pivotTable": {"drugConcepts": [], "numberOfVisits": "10", "obsConcepts": ["Weight", "Vitals"], "groupBy": "encounters", "labConcepts": []}, "showDetailsButton": true}, "type": "vitals", "displayOrder": 12}, "nutritionalValues": {"dashboardConfig": {"conceptNames": ["HEIGHT", "Weight", "BMI Data", "BMI Status Data"], "numberOfVisits": 2, "showDetailsButton": true}, "isObservation": true, "translationKey": "DASHBOARD_TITLE_NUTRITIONAL_VALUES_KEY", "expandedViewConfig": {"conceptNames": ["HEIGHT", "Weight", "BMI", "BMI STATUS"], "scope": "latest", "numberOfVisits": 2, "pivotTable": {}, "showDetailsButton": true}, "type": "vitals", "displayOrder": 11}, "diabetes": {"templateName": "Diabetes Templates", "dashboardConfig": {"showOnly": []}, "title": "Diabetes", "expandedViewConfig": {"pivotTable": {"drugConcepts": ["Ipratropium Pressurised", "Garbhpal Rasa"], "numberOfVisits": "15", "obsConcepts": ["Weight", "Height", "Systolic", "Diastolic", "Diabetes, Foot Exam", "Diabetes, Eye Exam"], "groupBy": "encounters", "labConcepts": ["RBS", "FBS", "PP2BS", "Hb1AC", "Creatinine", "Albumin", "Polymorph"]}, "showDetailsButton": true}, "type": "diseaseTemplate", "displayOrder": 18}, "historyAndExaminations": {"dashboardConfig": {"conceptNames": ["History and Examination"], "numberOfVisits": 2, "showDetailsButton": true}, "isObservation": true, "translationKey": "DASHBOARD_TITLE_HISTORY_AND_EXAMINATIONS_KEY", "expandedViewConfig": {"conceptNames": ["History and Examination"], "numberOfVisits": 2, "pivotTable": {}, "showDetailsButton": true}, "type": "vitals", "displayOrder": 14}}, "maxRecentlyViewedPatients": 10}}, "extension-programs.json": {"bahmniClinicalPatientsSearchAllPatients": {"extensionPointId": "org.bahmni.patient.search", "extensionParams": {"translationKey": "MODULE_LABEL_ALL_KEY", "forwardUrl": "#/programs/patient/{{patientUuid}}/consultationContext"}, "id": "bahmni.clinical.patients.search.allPatients", "requiredPrivilege": "app:clinical", "label": "All", "type": "config", "order": 2}, "diagnosis": {"extensionPointId": "org.bahmni.clinical.consultation.board", "url": "diagnosis", "label": "Diagnosis", "translationKey": "DIAGNOSIS_BOARD_LABEL_KEY", "requiredPrivilege": "app:clinical:diagnosisTab", "order": 2, "type": "link", "id": "bahmni.clinical.consultation.diagnosis", "icon": "fa-user-md"}, "bahmniClinicalConceptSetGroupObservationsHistory": {"extensionPointId": "org.bahmni.clinical.conceptSetGroup.observations", "extensionParams": {"default": true, "conceptName": "History and Examination"}, "order": 1, "requiredPrivilege": "app:clinical:history", "type": "config", "id": "bahmni.clinical.conceptSetGroup.observations.history"}, "bahmniClinicalConceptSetGroupObservationsVitals": {"extensionPointId": "org.bahmni.clinical.conceptSetGroup.observations", "extensionParams": {"default": true, "conceptName": "Vitals"}, "order": 2, "requiredPrivilege": "app:clinical", "type": "config", "id": "bahmni.clinical.conceptSetGroup.observations.vitals"}, "disposition": {"extensionPointId": "org.bahmni.clinical.consultation.board", "url": "disposition", "label": "Disposition", "translationKey": "DISPOSITION_BOARD_LABEL_KEY", "requiredPrivilege": "app:clinical:dispositionTab", "order": 3, "type": "link", "id": "bahmni.clinical.consultation.disposition", "icon": "fa-user-md"}, "observations": {"extensionPointId": "org.bahmni.clinical.consultation.board", "requiredPrivilege": "app:clinical:observationTab", "url": "concept-set-group/observations", "label": "Observations", "translationKey": "OBSERVATIONS_BOARD_LABEL_KEY", "default": true, "order": 1, "type": "link", "id": "bahmni.clinical.consultation.observations", "icon": "fa-user-md"}, "bahmniClinicalConceptSetGroupObservationsSecondVitals": {"extensionPointId": "org.bahmni.clinical.conceptSetGroup.observations", "extensionParams": {"showIf": ["var visitTypes = [];", "if(visitTypes.length === 0) return true;", "var visitTypeName = context.visitType ? context.visitType.name : null;", "return visitTypes.indexOf(visitTypeName) !== -1;"], "conceptName": "Second Vitals"}, "order": 3, "requiredPrivilege": "app:clinical", "type": "config", "id": "bahmni.clinical.conceptSetGroup.observations.secondVitals"}, "bahmniClinicalConceptSetGroupObservationsGynaecology": {"extensionPointId": "org.bahmni.clinical.conceptSetGroup.observations", "extensionParams": {"conceptName": "Gynaecology"}, "order": 5, "requiredPrivilege": "app:clinical", "type": "config", "id": "bahmni.clinical.conceptSetGroup.observations.gynaecology"}, "bahmniClinicalConceptSetGroupObservationsObstetrics": {"extensionPointId": "org.bahmni.clinical.conceptSetGroup.observations", "extensionParams": {"conceptName": "Obstetrics"}, "order": 4, "requiredPrivilege": "app:clinical", "type": "config", "id": "bahmni.clinical.conceptSetGroup.observations.obstetrics"}, "consultationSummary": {"extensionPointId": "org.bahmni.clinical.consultation.board", "url": "consultation", "label": "Consultation", "requiredPrivilege": "app:clinical:consultationTab", "order": 5, "type": "link", "id": "bahmni.clinical.consultation.summary", "icon": "fa-user-md"}, "bahmniClinicalPatientsSearchActivePatientsForPrograms": {"extensionPointId": "org.bahmni.patient.search", "extensionParams": {"translationKey": "MODULE_LABEL_PROGRAMS_KEY", "forwardUrl": "#/programs/patient/{{patientUuid}}/consultationContext", "searchHandler": "emrapi.sqlSearch.activePatients"}, "id": "bahmni.clinical.patients.search.activePatients", "requiredPrivilege": "app:clinical", "label": "Active", "type": "config", "order": 1}, "bahmniClinicalConceptSetGroupObservationsDischargeSummary": {"extensionPointId": "org.bahmni.clinical.conceptSetGroup.observations", "extensionParams": {"conceptName": "Discharge Summary"}, "order": 6, "requiredPrivilege": "Discharge Summary", "type": "config", "id": "bahmni.clinical.conceptSetGroup.observations.dischargeSummary"}}} \ No newline at end of file diff --git a/openmrs/apps/clinical/dashboard.json b/openmrs/apps/clinical/dashboard.json index 7febca3b0..cf8b5afb9 100644 --- a/openmrs/apps/clinical/dashboard.json +++ b/openmrs/apps/clinical/dashboard.json @@ -19,14 +19,7 @@ "countyDistrict" ] }, - "diagnosis":{ - "translationKey":"DASHBOARD_TITLE_DIAGNOSIS_KEY", - "type":"diagnosis", - "showCertainty":true, - "showOrder":true, - "showDetailsButton":true, - "displayOrder":1 - }, + "navigationLinksControl":{ "translationKey":"DASHBOARD_TITLE_NAVIGATION_LINKS_CONTROL_KEY", "type":"navigationLinksControl", @@ -82,97 +75,11 @@ "showDetailsButton":true } }, - "radiology":{ - "translationKey":"DASHBOARD_TITLE_RADIOLOGY_KEY", - "type":"radiology", - "showDetailsButton":true, - "displayOrder":5 - }, - "programs":{ - "translationKey":"DASHBOARD_TITLE_PROGRAMS_KEY", - "type":"programs", - "displayOrder":10 - }, - "radiologyOrders":{ - "orderType":"Radiology Order", - "type":"ordersControl", - "translationKey":"DASHBOARD_TITLE_RADIOLOGY_ORDERS_KEY", - "displayOrder":17, - "dashboardConfig":{ - "conceptNames":[ - "Summary" - ], - "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", - "orderType":"Lab Order", - "showDetailsButton":true, - "displayOrder":9, - "dashboardConfig":{ - "conceptNames":[ - "Systolic", - "Diastolic", - "Posture", - "Temperature" - ] - }, - "expandedViewConfig":{ - "conceptNames":[ - "Systolic", - "Diastolic", - "Posture", - "Temperature" - ], - "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", - "displayOrder":6, - "dashboardConfig":{ - "title":null, - "numberOfVisits":6, - "showChart":false, - "showTable":true, - "showNormalLabResults": true, - "showCommentsExpanded": true, - "showAccessionNotes": true, - "showDetailsButton":false - }, - "expandedViewConfig":{ - "numberOfVisits":10 - } - }, "nutritionalValues":{ "translationKey":"DASHBOARD_TITLE_NUTRITIONAL_VALUES_KEY", "type":"vitals", "isObservation":true, - "displayOrder":11, + "displayOrder":2, "dashboardConfig":{ "conceptNames":[ "HEIGHT", @@ -190,7 +97,7 @@ "BMI", "BMI STATUS" ], - "numberOfVisits":2, + "numberOfVisits":24, "scope":"latest", "showDetailsButton":true, "pivotTable":{ @@ -198,124 +105,133 @@ } } }, - "vitals":{ - "translationKey":"DASHBOARD_TITLE_VITALS_KEY", + "vlresults":{ + "translationKey":"DASHBOARD_TITLE_VIRAL_LOAD_AND_EAC_RESULTS_KEY", "type":"vitals", "isObservation":true, - "displayOrder":12, + "displayOrder":2, "dashboardConfig":{ - "showDetailsButton":true, "conceptNames":[ - "Vitals" + "VL Results", + "First EAC Session Date", + "Second EAC Session Date", + "Third EAC Session Date" ], + "showDetailsButton":true, "numberOfVisits":2 }, "expandedViewConfig":{ "conceptNames":[ - "Vitals" + "VL Results", + "First EAC Session Date", + "Second EAC Session Date", + "Third EAC Session Date" ], - "numberOfVisits":2, + "numberOfVisits":24, + "scope":"latest", "showDetailsButton":true, "pivotTable":{ - "numberOfVisits":"10", - "groupBy":"encounters", - "obsConcepts":[ - "Weight", - "Vitals" - ], - "drugConcepts":[ - ], - "labConcepts":[ - - ] } } }, - "secondVitals":{ - "translationKey":"DASHBOARD_TITLE_SECOND_VITALS_KEY", - "type":"second vitals", + "CD4results":{ + "translationKey":"DASHBOARD_TITLE_CD4_KEY", + "type":"vitals", "isObservation":true, - "displayOrder":13, + "displayOrder":3, "dashboardConfig":{ - "showDetailsButton":true, "conceptNames":[ - "Second Vitals" + "CD4 Details" ], + "showDetailsButton":true, "numberOfVisits":2 }, "expandedViewConfig":{ "conceptNames":[ - "Second Vitals" + "CD4 Details" ], - "numberOfVisits":2, + "numberOfVisits":24, + "scope":"latest", "showDetailsButton":true, "pivotTable":{ } } }, - "historyAndExaminations":{ - "translationKey":"DASHBOARD_TITLE_HISTORY_AND_EXAMINATIONS_KEY", + "TBDiognized":{ + "translationKey":"DASHBOARD_TITLE_TB_DIAGNOSIS", "type":"vitals", "isObservation":true, - "displayOrder":14, + "displayOrder":3, "dashboardConfig":{ - "showDetailsButton":true, "conceptNames":[ - "History and Examination" + "TB Diagnosed?" ], + "showDetailsButton":true, "numberOfVisits":2 }, "expandedViewConfig":{ "conceptNames":[ - "History and Examination" + "TB Diagnosed?" ], - "numberOfVisits":2, + "numberOfVisits":24, + "scope":"latest", "showDetailsButton":true, "pivotTable":{ } } }, - "gynaecology":{ - "translationKey":"DASHBOARD_TITLE_GYNAECOLOGY_KEY", - "type":"gynaecology", + "vitals":{ + "translationKey":"DASHBOARD_TITLE_VITALS_KEY", + "type":"vitals", "isObservation":true, - "displayOrder":15, + "displayOrder":12, "dashboardConfig":{ + "showDetailsButton":true, "conceptNames":[ - "Gynaecology" + "Vitals" ], - "showDetailsButton":true, "numberOfVisits":2 }, "expandedViewConfig":{ "conceptNames":[ - "Gynaecology" + "Vitals" ], "numberOfVisits":2, "showDetailsButton":true, "pivotTable":{ + "numberOfVisits":"10", + "groupBy":"encounters", + "obsConcepts":[ + "Weight", + "Vitals" + ], + "drugConcepts":[ + ], + "labConcepts":[ + + ] } } }, - "obstetrics":{ - "translationKey":"DASHBOARD_TITLE_OBSTETRICS_KEY", - "type":"obstetrics", + "historyAndExaminations":{ + "translationKey":"DASHBOARD_TITLE_HISTORY_AND_EXAMINATIONS_KEY", + "type":"vitals", "isObservation":true, - "displayOrder":16, + "displayOrder":14, "dashboardConfig":{ "showDetailsButton":true, "conceptNames":[ - "Obstetrics" + "History and Examination" ], "numberOfVisits":2 }, "expandedViewConfig":{ "conceptNames":[ - "Obstetrics" + "History and Examination" ], "numberOfVisits":2, "showDetailsButton":true, @@ -327,58 +243,13 @@ "visits":{ "translationKey":"DASHBOARD_TITLE_VISITS_KEY", "type":"visits", - "displayOrder":3, + "displayOrder":2, "dashboardConfig":{ "title":null, "maximumNoOfVisits":8, "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 +405,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, @@ -573,7 +427,7 @@ "type":"drugOrderDetails", "displayType":"Full-Page", "showDetailsButton":true, - "displayOrder":24, + "displayOrder":1, "dashboardConfig":{ "showOnlyActive":true, "drugConceptSet":"All Other Drugs" diff --git a/openmrs/apps/clinical/extension-programs.json b/openmrs/apps/clinical/extension-programs.json index 31400109a..55e717c31 100644 --- a/openmrs/apps/clinical/extension-programs.json +++ b/openmrs/apps/clinical/extension-programs.json @@ -1,17 +1,4 @@ { - "bahmniClinicalPatientsSearchActivePatientsForPrograms": { - "id": "bahmni.clinical.patients.search.activePatients", - "extensionPointId": "org.bahmni.patient.search", - "type": "config", - "extensionParams": { - "searchHandler": "emrapi.sqlSearch.activePatients", - "translationKey": "MODULE_LABEL_PROGRAMS_KEY", - "forwardUrl": "#/programs/patient/{{patientUuid}}/consultationContext" - }, - "label": "Active", - "order": 1, - "requiredPrivilege": "app:clinical" - }, "bahmniClinicalPatientsSearchAllPatients": { "id": "bahmni.clinical.patients.search.allPatients", "extensionPointId": "org.bahmni.patient.search", diff --git a/openmrs/apps/clinical/extension.json b/openmrs/apps/clinical/extension.json index 8dd401c45..c1c4407db 100644 --- a/openmrs/apps/clinical/extension.json +++ b/openmrs/apps/clinical/extension.json @@ -67,56 +67,82 @@ "order": 1, "requiredPrivilege": "app:clinical" }, + "bahmniClinicalPatientsSearchOPDActivePatientsByProvider": { + "id": "bahmni.clinical.patients.search.OPDActivePatientsByProvider", + "extensionPointId": "org.bahmni.patient.search", + "type": "config", + "extensionParams": { + "searchHandler": "emrapi.sqlSearch.activePatientsByProvider", + "translationKey": "MODULE_LABEL_OPD_1_KEY", + "forwardUrl": "#/default/patient/{{patientUuid}}/dashboard" + }, + "label": "OPD-1", + "order": 2, + "requiredPrivilege": "app:clinical" + }, + "bahmniClinicalPatientsSearchOPDActivePMTCTPatients": { + "id": "bahmni.clinical.patients.search.PmtctActivePatientsByProvider", + "extensionPointId": "org.bahmni.patient.search", + "type": "config", + "extensionParams": { + "searchHandler": "emrapi.sqlSearch.activePMTCTPatients", + "translationKey": "MODULE_LABEL_PMTCT_KEY", + "forwardUrl": "#/default/patient/{{patientUuid}}/dashboard" + }, + "label": "OPD-1", + "order": 3, + "requiredPrivilege": "app:clinical" + }, "bahmniClinicalPatientsSearchActivePatientsForPrograms": { "id": "bahmni.clinical.patients.search.activePatients", "extensionPointId": "org.bahmni.patient.search", "type": "config", "extensionParams": { - "searchHandler": "emrapi.sqlSearch.activePatients", - "translationKey": "MODULE_LABEL_PROGRAMS_KEY", - "forwardUrl": "#/default/patient/{{patientUuid}}/consultationContext" + "searchHandler": "emrapi.sqlSearch.activeHeiPatients", + "translationKey": "MODULE_LABEL_HEI_KEY", + "forwardUrl": "#/default/patient/{{patientUuid}}/dashboard" }, "label": "Active", - "order": 1, + "order": 4, "requiredPrivilege": "app:clinical" }, - "bahmniClinicalPatientsASearchActivePatientsByProvider": { - "id": "bahmni.clinical.patients.search.activePatientsByProvider", + "bahmniClinicalPatientsSearchOPDActiveDrugsPatients": { + "id": "bahmni.clinical.patients.search.ActiveDrugsPatients", "extensionPointId": "org.bahmni.patient.search", "type": "config", "extensionParams": { - "searchHandler": "emrapi.sqlSearch.activePatientsByProvider", - "translationKey": "MODULE_LABEL_MY_PATIENTS_KEY", + "searchHandler": "emrapi.sqlSearch.activeDrugPatients", + "translationKey": "MODULE_LABEL_DRUGS_PATIENTS_KEY", "forwardUrl": "#/default/patient/{{patientUuid}}/dashboard" }, - "label": "Active", - "order": 2, + "label": "OPD-1", + "order": 5, "requiredPrivilege": "app:clinical" }, - "bahmniClinicalPatientsSearchOPDActivePatientsByProvider": { - "id": "bahmni.clinical.patients.search.OPDActivePatientsByProvider", + "bahmniClinicalPatientsSearchViralloadPatients": { + "id": "bahmni.clinical.patients.search.Viralloadpatients", "extensionPointId": "org.bahmni.patient.search", "type": "config", "extensionParams": { - "searchHandler": "emrapi.sqlSearch.activePatientsByProvider", - "translationKey": "MODULE_LABEL_OPD_1_KEY", - "forwardUrl": "#/default/patient/{{patientUuid}}/consultationContext" + "searchHandler": "emrapi.sqlSearch.activeViralloadPatients", + "translationKey": "MODULE_LABEL_VIRAL_LOAD_PATIENTS_KEY", + "forwardUrl": "#/default/patient/{{patientUuid}}/dashboard" }, "label": "OPD-1", - "order": 3, + "order": 6, "requiredPrivilege": "app:clinical" }, - "activePatientsByLocation": { - "id": "bahmni.clinical.patients.search.activePatientsByLocation", + "bahmniClinicalPatientsASearchActivePatientsByProvider": { + "id": "bahmni.clinical.patients.search.activePatientsByProvider", "extensionPointId": "org.bahmni.patient.search", "type": "config", "extensionParams": { - "searchHandler": "emrapi.sqlSearch.activePatientsByLocation", - "translationKey": "MODULE_LABEL_ACTIVE_PATIENTS_BY_LOCATION", + "searchHandler": "emrapi.sqlSearch.activePatientsByProvider", + "translationKey": "MODULE_LABEL_MY_PATIENTS_KEY", "forwardUrl": "#/default/patient/{{patientUuid}}/dashboard" }, "label": "Active", - "order": 4, + "order": 7, "requiredPrivilege": "app:clinical" }, "bahmniClinicalPatientsSearchAllPatients": { @@ -128,31 +154,186 @@ "forwardUrl": "#/default/patient/{{patientUuid}}/dashboard" }, "label": "All", - "order": 5, + "order": 8, "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": "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": "Vitals" + "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" + }, + "bahmniClinicalConceptSetGroupObsertionsTbScreeningForm": { + "id": "bahmni.clinical.conceptSetGroup.observations.vitals", + "extensionPointId": "org.bahmni.clinical.conceptSetGroup.observations", + "type": "config", + "extensionParams": { + "default": true, + "conceptName": "TB SCREENING FORM" + }, + "order": 14, + "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" + }, + "bahmniClinicalConceptSetGroupObsertionsEACForm": { + "id": "bahmni.clinical.conceptSetGroup.observations.vitals", + "extensionPointId": "org.bahmni.clinical.conceptSetGroup.observations", + "type": "config", + "extensionParams": { + "default": true, + "conceptName": "ENHANCED ADHERENCE COUNSELLING FORM" + }, + "order": 9, + "requiredPrivilege": "app:clinical" + }, "bahmniClinicalConceptSetGroupObservationsSecondVitals": { "id": "bahmni.clinical.conceptSetGroup.observations.secondVitals", "extensionPointId": "org.bahmni.clinical.conceptSetGroup.observations", @@ -212,27 +393,6 @@ "icon": "fa-user-md", "order": 7, "requiredPrivilege": "app:clinical:treatmentTab" - }, - "bahmniClinicalConsultationOrders": { - "id": "bahmni.clinical.consultation.orders", - "extensionPointId": "org.bahmni.clinical.consultation.board", - "type": "link", - "label": "Orders", - "translationKey":"ORDERS_BOARD_LABEL_KEY", - "url": "orders", - "icon": "icon-user-md", - "order": 6, - "requiredPrivilege": "app:clinical:ordersTab" - }, - "bahmniClinicalConsultationBacteriology": { - "id": "bahmni.clinical.consultation.bacteriology", - "extensionPointId": "org.bahmni.clinical.consultation.board", - "type": "link", - "label": "Bacteriology", - "translationKey":"BACTERIOLOGY_BOARD_LABEL_KEY", - "url": "bacteriology", - "icon": "icon-user-md", - "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..df8fee287 100644 --- a/openmrs/apps/clinical/formConditions.js +++ b/openmrs/apps/clinical/formConditions.js @@ -24,5 +24,760 @@ 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 information" : function (formName , formFieldValues, patient){ + if(patient.age < 15){ + return{ + show: ["Close Contact History with TB patients","Failure to Thrive, Children"], + hide:["TB Screening , Night Sweats","TB Screening ,Weight loss"] + } + }else { + return{ + hide: ["Close Contact History with TB patients","Failure to Thrive, Children"], + show:["TB Screening , Night Sweats","TB Screening ,Weight loss"] + } + } + }, + "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","ART Treatment Stop/Lost Date","Date If Restarted"], + hide:["Initial ART Regimen (Adult)","Regimen Changed to(Adults)","Initial Regimen Change Reason","Other Reason(First Line Regimen Change)"] + } + } else if (interruptiontype === "Changed Regimen"){ + return{ + show: ["Initial ART Regimen (Adult)","Regimen Changed to(Adults)","Initial Regimen Change Reason","Other Reason(First Line Regimen Change)"], + hide:["ART Treatment Stop/Lost Date"] + } + } + else if (interruptiontype === "Lost"){ + return{ + show: ["Date If Restarted"], + hide: ["ART Treatment Reasons For Stop","Initial ART Regimen (Adult)","Regimen Changed to(Adults)","Initial Regimen Change Reason","ART Treatment Stop/Lost Date","Regimen Change Date","Other Reason(First Line Regimen Change)"] + } + } + else { + return{ + hide: ["ART Treatment Reasons For Stop","Initial ART Regimen (Adult)","Regimen Changed to(Adults)","Initial Regimen Change Reason","ART Treatment Stop/Lost Date","Regimen Change Date","Date If Restarted","Other Reason(First Line Regimen Change)","Date when ART Drugs Lost"] + + } + } + }, + "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"); + } + }, + "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"); + + } + }, + + "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"] + + } + }else { + return{ + hide: ["TB Regimen For Children"] + } + } + }, + "First Attempt Method": function (formName, formFieldValues) { + var firstmethod = formFieldValues["First Attempt Method"]; + if (firstmethod === "Other Specify") { + return { + show:["Other Follow up Method Specify(First Attempt)"] + } + } else { + return { + hide:["Other Follow up Method Specify(First Attempt)"] + } + } + }, + "First Attempt Outcome": function (formName, formFieldValues) { + var firstoutcome = formFieldValues["First Attempt Outcome"]; + if (firstoutcome === "Other Outcome") { + return { + show:["Follow up Outcome Others Specify(First Attempt)"] + } + } else { + return { + hide:["Follow up Outcome Others Specify(First Attempt)"] + } + } + }, + "Second Attempt Method": function (formName, formFieldValues) { + var secondmethod = formFieldValues["Second Attempt Method"]; + if (secondmethod === "Other Specify") { + return { + show:["Other Follow up Method Specify(Second Attempt)"] + } + } else { + return { + hide:["Other Follow up Method Specify(Second Attempt)"] + } + } + }, + "Outcome,Second Attempt": function (formName, formFieldValues) { + var secondoutcome = formFieldValues["Outcome,Second Attempt"]; + if (secondoutcome === "Other Specify") { + return { + show:["Follow up Outcome Others Specify(Second Attempt)"] + } + } else { + return { + hide:["Follow up Outcome Others Specify(Second Attempt)"] + } + } + }, + "Third Attempt Method": function (formName, formFieldValues) { + var thirdmethod = formFieldValues["Third Attempt Method"]; + if (thirdmethod === "Other") { + return { + show:["Other Follow up Method Specify(Third Attempt)"] + } + } else { + return { + hide:["Other Follow up Method Specify(Third Attempt)"] + } + } + }, + "Third Attempt Outcome": function (formName, formFieldValues) { + var thirdoutcome = formFieldValues["Third Attempt Outcome"]; + if (thirdoutcome === "Other Outcome") { + return { + show:["Follow up Outcome Others Specify(Third Attempt)"] + } + } else { + return { + hide:["Follow up Outcome Others Specify(Third Attempt)"] + } + } + }, + "Fourth Attempt Method": function (formName, formFieldValues) { + var forthmethod = formFieldValues["Fourth Attempt Method"]; + if (forthmethod === "Other") { + return { + show:["Other Follow up Method Specify(Fourth Attempt)"] + } + } else { + return { + hide:["Other Follow up Method Specify(Fourth Attempt)"] + } + } + }, + "Fourth Attempt Outcome": function (formName, formFieldValues) { + var forthoutcome = formFieldValues["Fourth Attempt Outcome"]; + if (forthoutcome === "Other Outcome") { + return { + show:["Follow up Outcome Others Specify(Fourth Attempt)"] + } + } else { + return { + hide:["Follow up Outcome Others Specify(Fourth Attempt)"] + } + } + }, + "CTX Adherence": function (formName, formFieldValues) { + var ctxsadherence = formFieldValues["CTX Adherence"]; + if (ctxsadherence === "Adherence Fair") { + return { + show: ["Reason why Adherence is Fair"], + hide: ["Reason why Adherence is Poor"] + } + } else if (ctxsadherence === "Adherence Poor") { + return { + show: ["Reason why Adherence is Poor"], + hide: ["Reason why Adherence is Fair"] + + } + } else { + return{ + hide: ["Reason why Adherence is Fair","Reason why Adherence is Poor"] + } + } + }, + "Is Family Member in ART Care?": function (formName, formFieldValues) { + var memberinclinic = formFieldValues["Is Family Member in ART Care?"]; + if (memberinclinic == true) { + return { + show:["Family Member ART Number"] + } + } else { + return { + hide:["Family Member ART Number"] + } + } + }, + "MDT Held?": function (formName, formFieldValues) { + var mdtheld = formFieldValues["MDT Held?"]; + if (mdtheld == true) { + return { + show:["Date MDT Held","MDT Outcome"] + } + } else { + return { + hide:["Date MDT Held","MDT Outcome"] + } + } + }, + "On TB Treatment" : function (formName , formFieldValues){ + var ontbtreatment = formFieldValues["On TB Treatment"]; + if(ontbtreatment == true){ + return{ + show: ["TB Unit Number","Date Started TB Treatment","TB Clinic Enrolled"] + } + }else { + return{ + hide: ["TB Unit Number","Date Started TB Treatment","TB Clinic Enrolled"] + } + } + }, + "Classification Of Adherence(First EAC session)" : function (formName , formFieldValues){ + var firstclassification = formFieldValues["Classification Of Adherence(First EAC session)"]; + if((firstclassification === "Adherence Fair") || (firstclassification === "Adherence Poor")) { + return{ + show: ["First EAC Service","First EAC Tools","First EAC Adherence Barriers"] + } + }else { + return{ + hide: ["First EAC Service","First EAC Tools","First EAC Adherence Barriers"] + } + } + }, + "First EAC Tools" : function (formName , formFieldValues){ + var firsteactools = formFieldValues["First EAC Tools"]; + if(firsteactools === "Other Tools for First EAC") { + return{ + show: ["Specify Other Tools for First EAC"] + } + }else { + return{ + hide: ["Specify Other Tools for First EAC"] + } + } + }, + "Classification Of Adherence(Second EAC session)" : function (formName , formFieldValues){ + var secondclassification = formFieldValues["Classification Of Adherence(Second EAC session)"]; + if((secondclassification === "Adherence Fair") || (secondclassification === "Adherence Poor")) { + return{ + show: ["Second EAC Service","Second EAC Tools","Second EAC Adherence Barriers"] + } + }else { + return{ + hide: ["Second EAC Service","Second EAC Tools","Second EAC Adherence Barriers"] + } + } + }, + "Second EAC Tools" : function (formName , formFieldValues){ + var secondeactools = formFieldValues["Second EAC Tools"]; + if(secondeactools === "Other Tools for Second EAC") { + return{ + show: ["Specify Other Tools for Second EAC"] + } + }else { + return{ + hide: ["Specify Other Tools for Second EAC"] + } + } + }, + "Classification Of Adherence(Third EAC session)" : function (formName , formFieldValues){ + var thirdclassification = formFieldValues["Classification Of Adherence(Third EAC session)"]; + if((thirdclassification === "Adherence Fair") || (thirdclassification === "Adherence Poor")) { + return{ + show: ["Third EAC Service","Third EAC Tools","Third EAC Adherence Barriers"] + } + }else { + return{ + hide: ["Third EAC Service","Third EAC Tools","Third EAC Adherence Barriers"] + } + } + }, + "Third EAC Tools" : function (formName , formFieldValues){ + var thirdeactools = formFieldValues["Third EAC Tools"]; + if(thirdeactools === "Other Tools For Third EAC") { + return{ + show: ["Specify Other Tools for Third EAC"] + } + }else { + return{ + hide: ["Specify Other Tools for Third EAC"] + } + } + }, + "First EAC Adherence Barriers" : function (formName , formFieldValues){ + var firsteacbarriers = formFieldValues["First EAC Adherence Barriers"]; + if(firsteacbarriers === "Other First EAC Barrier Reason") { + return{ + show: ["First EAC Barrier Reason Specify"] + } + }else { + return{ + hide: ["First EAC Barrier Reason Specify"] + } + } + }, + "Second EAC Adherence Barriers" : function (formName , formFieldValues){ + var secondeacbarriers = formFieldValues["Second EAC Adherence Barriers"]; + if(secondeacbarriers === "Other Second EAC Barrier Reason") { + return{ + show: ["Second EAC Barrier Reason Specify"] + } + }else { + return{ + hide: ["Second EAC Barrier Reason Specify"] + } + } + }, + "Third EAC Adherence Barriers" : function (formName , formFieldValues){ + var thirdeacbarriers = formFieldValues["Third EAC Adherence Barriers"]; + if(thirdeacbarriers === "Other Third EAC Barrier Reason") { + return{ + show: ["Third EAC Barrier Reason Specify"] + } + }else { + return{ + hide: ["Third EAC Barrier Reason Specify"] + } + } + }, + "Sexual Partner?" : function (formName , formFieldValues){ + var sexualpartner = formFieldValues["Sexual Partner?"]; + if(sexualpartner == true) { + return{ + show: ["Sexual Partner Relationship"] + } + }else { + return{ + hide: ["Sexual Partner Relationship"] + } + } + }, + "Sexual Partner Relationship" : function (formName , formFieldValues){ + var sexualpartnerrelationship = formFieldValues["Sexual Partner Relationship"]; + if(sexualpartnerrelationship === "Specify other sexual Partners") { + return{ + show: ["Other sexual Partner Relationship Specify"] + } + }else { + return{ + hide: ["Other sexual Partner Relationship Specify"] + } + } + }, + "Initial Regimen Change Reason" : function (formName , formFieldValues){ + var initialregimen = formFieldValues["Initial Regimen Change Reason"]; + if(initialregimen === "Other Reason For Regimen Change(First Line)") { + return{ + show: ["Other Reason(First Line Regimen Change)"] + } + }else { + return{ + hide: ["Other Reason(First Line Regimen Change)"] + } + } + }, + "PMTCT - HIV & ART Follow up" : function (formName , formFieldValues){ + var pmtct = formFieldValues["PMTCT - HIV & ART Follow up"]; + if(pmtct == false) { + alert("Please Enroll this Patient To PMTCT"); + return{ + + show: ["Enroll Patient To PMTCT"] + + } + }else { + return{ + hide: ["Enroll Patient To PMTCT"] + } + } + }, + + + + }; + diff --git a/openmrs/apps/dbNameCondition/dbNameCondition.json b/openmrs/apps/dbNameCondition/dbNameCondition.json new file mode 100644 index 000000000..56f0b8062 --- /dev/null +++ b/openmrs/apps/dbNameCondition/dbNameCondition.json @@ -0,0 +1 @@ +{"dbNameCondition.js": "Bahmni.Common.Offline.dbNameCondition.get = function (provider, loginLocation) {\r return loginLocation;\r};"} \ No newline at end of file diff --git a/openmrs/apps/home/extension.json b/openmrs/apps/home/extension.json index 4f282dc65..2712a00d4 100644 --- a/openmrs/apps/home/extension.json +++ b/openmrs/apps/home/extension.json @@ -9,16 +9,6 @@ "order": 1, "requiredPrivilege": "app:registration" }, - "programs": { - "id": "bahmni.programs", - "extensionPointId": "org.bahmni.home.dashboard", - "type": "link", - "translationKey": "MODULE_LABEL_PROGRAMS_KEY", - "url": "../clinical/#/programs/patient/search", - "icon": "icon-bahmni-program", - "order": 2, - "requiredPrivilege": "app:clinical" - }, "clinical": { "id": "bahmni.clinical", "extensionPointId": "org.bahmni.home.dashboard", @@ -149,6 +139,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/home.json b/openmrs/apps/home/home.json new file mode 100644 index 000000000..8d9106052 --- /dev/null +++ b/openmrs/apps/home/home.json @@ -0,0 +1 @@ +{"locale_languages.json": {"locales": [{"nativeName": "English", "code": "en"}, {"nativeName": "Espa\u00f1ol", "code": "es"}, {"nativeName": "Fran\u00e7ais", "code": "fr"}, {"nativeName": "Italiano", "code": "it"}, {"nativeName": "Portugu\u00eas", "code": "pt_BR"}]}, "offline-config.json": {"schedulerInterval": 40000}, "extension.json": {"clinical": {"extensionPointId": "org.bahmni.home.dashboard", "url": "../clinical/index.html#/default/patient/search", "order": 3, "translationKey": "MODULE_LABEL_CLINICAL_KEY", "requiredPrivilege": "app:clinical", "type": "link", "id": "bahmni.clinical", "icon": "fa-stethoscope"}, "registration": {"extensionPointId": "org.bahmni.home.dashboard", "url": "../registration/index.html", "order": 1, "translationKey": "MODULE_LABEL_REGISTRATION_KEY", "requiredPrivilege": "app:registration", "type": "link", "id": "bahmni.registration", "icon": "fa-user"}}, "whiteLabel.json": {"loginPage": {"logo": "/bahmni/images/bahmniLogoFull.png", "showTitleText": false, "showHeaderText": true}, "homePage": {"logo": "/bahmni/images/bahmniLogoFull.png", "header_text": "WELCOME TO
eHospital", "title_text": " "}, "helpLink": {"url": "https://bahmni.atlassian.net/wiki/display/BAH/Bahmni+Home"}}, "app.json": {"id": "bahmni.homepage", "extensionPoints": [{"id": "org.bahmni.home.dashboard", "description": "Bahmni Home Page"}]}} \ No newline at end of file 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..1c22eac7f 100644 --- a/openmrs/apps/registration/app.json +++ b/openmrs/apps/registration/app.json @@ -17,75 +17,131 @@ "activeVisitUuid" ], "config" : { + "afterVisitSaveForwardUrl" : "../clinical/#/default/patient/{{patientUuid}}/dashboard", "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", + "Walk-InReason" + ], + "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 + }, + "registerNewPatient5": { + "title": "Not shown", + "attributes": [ + "MobileCountryCode", + "MobileNumber", + "AlternativeNumber" + ], + "expand": true, + "order": 5 + }, + "CaregiverFollowUp": { + "title": "Mother Follow Up Information", + "attributes": [ + "HeiChildMothersName", + "MotherInCareAtArtClinic", + "MothersArtNo", + "FacilityName", + "MothersContactNumber" + ], + "expand": true, + "order": 6 + }, + "alternateContactInformation": { + "title": "Alternative Caregiver", + "attributes": [ + "AlternateContactPerson", + "TelephoneNo", + "AlternateContactPersonLocation", + "AlternateContactPersonRelationship", + "ContactPersonDisclosedTo" + ], + "expand": true, + "order": 7 + }, + "treatmentSupporter": { + "title": "Treatment Supporter", + "attributes": [ + "TreatmentSupporterName", + "TreatmentSupporterTelephoneNumber", + "TreatmentSupporterAddress", + "HomeCareProvidedBy" + ], + "expand": true, + "order": 8 + }, + "defaults": { + "MobileCountryCode": "South Sudan" } }, + "forwardUrlsForVisitTypes": [ + { + "visitType": "HEI", + "forwardUrl": "../clinical/#/default/patient/{{patientUuid}}/dashboard/treatment?tabConfigName=allMedicationTabConfig", + "translationKey": "HEI", + "shortcutKey": "c" + } + ], "addressHierarchy": { - "showAddressFieldsTopDown": false, - "strictAutocompleteFromLevel": "stateProvince" + "showAddressFieldsTopDown": true, + "strictAutocompleteFromLevel": "address1" }, "relationshipTypeMap": { "Doctor":"provider", - "Parent":"patient" + "Mother":"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 }, @@ -99,19 +155,20 @@ "familyName" : {"pattern" : "[a-zA-Z]{0,}", "errorMessage" : "Should contain characters"}, "givenName" : {"pattern" : "[a-zA-Z]{0,}", "errorMessage" : "Should contain characters"}, "middleName" : {"pattern" : "[a-zA-Z]{0,}", "errorMessage" : "Should contain characters"}, - "address1" : {"pattern" : "[a-zA-Z0-9\\s]{2,}", "errorMessage" : "Should contain at least 2 characters"} + "address1" : {"pattern" : "[a-zA-Z0-9\\s]{2,}", "errorMessage" : "Should contain at least 2 characters"}, + "TreatmentSupporterTelephoneNumber" : {"pattern" : "[0-9]{0,10}", "errorMessage" : "Should be 10 digits"}, + "TelephoneNo" : {"pattern" : "[0-9]{0,10}", "errorMessage" : "Should be 10 digits"}, + "MothersContactNumber" : {"pattern" : "[0-9]{0,10}", "errorMessage" : "Should be 10 digits"}, + "MobileNumber" : {"pattern" : "[0-9]{0,10}", "errorMessage" : "Should be 10 digits"}, + "AlternativeNumber" : {"pattern" : "[0-9]{0,10}", "errorMessage" : "Should be 10 digits"} }, "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..44e44ef6d 100644 --- a/openmrs/apps/registration/extension.json +++ b/openmrs/apps/registration/extension.json @@ -45,18 +45,7 @@ "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" - }, + "nutritionalValue":{ "id": "bahmni.registration.conceptSetGroup.nutritionalValue", "extensionPointId": "org.bahmni.registration.conceptSetGroup.observations", @@ -67,7 +56,7 @@ "required":true, "showLatest": true }, - "order": 3, + "order": 4, "requiredPrivilege": "Edit Visits" } } diff --git a/openmrs/apps/registration/registration.json b/openmrs/apps/registration/registration.json new file mode 100644 index 000000000..f14a57dee --- /dev/null +++ b/openmrs/apps/registration/registration.json @@ -0,0 +1 @@ +{"appTemplate.json": {"contextModel": ["patientUuid", "activeVisitUuid"], "id": "bahmni.template.registration", "configOptions": {"autoCompleteFields": {"defaultValue": ["givenName", "familyName", "caste", "primaryContact", "secondaryContact", "primaryRelative", "secondaryIdentifier"], "name": "autoCompleteFields", "description": "auto complete fields in patient create page. eg. givenName, familyName, caste, primaryContact, secondaryContact, primaryRelative, secondaryIdentifier"}, "searchByIdForwardUrl": {"defaultValue": "/patient/{{patientUuid}}", "name": "searchByIdForwardUrl", "description": "Url to forward when searched by id"}, "defaultIdentifierPrefix": {"defaultValue": null, "name": "defaultIdentifierPrefix", "description": "Default identifier prefix used in search, create patient. eg. GAN"}}}, "fieldValidation.js": "Bahmni.Registration.customValidator = {\r \"age.days\": {\r method: function (name, value) {\r return value >= 0;\r },\r errorMessage: \"REGISTRATION_AGE_ERROR_KEY\"\r },\r \"Telephone Number\": {\r method: function (name, value, personAttributeDetails) {\r return value && value.length> 6;\r },\r errorMessage: \"REGISTRATION_TELEPHONE_NUMBER_ERROR_KEY\"\r },\r \"caste\": {\r method: function (name, value, personAttributeDetails) {\r return value.match(/^\\w+$/);\r },\r errorMessage: \"REGISTRATION_CASTE_TEXT_ERROR_KEY\"\r }\r};\r", "extension.json": {"nutritionalValues": {"extensionPointId": "org.bahmni.registration.conceptSetGroup.observations", "extensionParams": {"translationKey": "NUTRITIONAL_VALUES_LOCALE_KEY", "conceptNames": ["HEIGHT", "WEIGHT", "BMI Data", "BMI Status Data"], "required": true, "showLatest": true, "conceptName": "Nutritional Values"}, "order": 1, "requiredPrivilege": "Edit Visits", "type": "config", "id": "bahmni.registration.conceptSetGroup.nutritionalLevels"}, "search": {"extensionPointId": "org.bahmni.registration.navigation", "url": "/search", "order": 1, "translationKey": "REGISTRATION_SEARCH_CONFIG_KEY", "requiredPrivilege": "View Patients", "shortcutKey": "REGISTRATION_SEARCH_CONFIG_ACCESS_KEY", "type": "link", "id": "bahmni.registration.navigation.patient.search", "icon": "fa-search"}, "view": {"extensionPointId": "org.bahmni.registration.patient.search.result.action", "url": "/patient/{{patientUuid}}", "order": 1, "translationKey": "REGISTRATION_VIEW_CONFIG_KEY", "requiredPrivilege": "View Patients", "type": "link", "id": "bahmni.patient.search.result.action.edit", "icon": "fa-patient-edit"}, "createNew": {"extensionPointId": "org.bahmni.registration.navigation", "url": "/patient/new", "order": 2, "translationKey": "REGISTRATION_CREATE_NEW_CONFIG_KEY", "requiredPrivilege": "Add Patients", "shortcutKey": "REGISTRATION_CREATE_NEW_CONFIG_ACCESS_KEY", "type": "link", "id": "bahmni.registration.navigation.patient.create", "icon": "fa-plus"}}, "app.json": {"instanceOf": "bahmni.template.registration", "extensionPoints": [{"id": "org.bahmni.registration.patient.search.result.action", "description": "Bahmni Patient Search Result Action"}, {"id": "org.bahmni.registration.patient.next", "description": "After Bahmni Patient Registration, forward url configuration"}], "contextModel": ["patientUuid", "activeVisitUuid"], "config": {"showCasteSameAsLastNameCheckbox": false, "addressHierarchy": {"showAddressFieldsTopDown": false, "strictAutocompleteFromLevel": "stateProvince"}, "searchByIdForwardUrl": "/patient/{{patientUuid}}", "defaultVisitType": "OPD", "disablePhotoCapture": true, "showLastName": true, "isLastNameMandatory": true, "defaultIdentifierPrefix": "GAN", "fieldValidation": {"landHolding": {"pattern": "[0-9]{0,3}", "errorMessage": "Should be between 1 to 999 acres"}, "middleName": {"pattern": "[a-zA-Z]{0,}", "errorMessage": "Should contain characters"}, "address1": {"pattern": "[a-zA-Z0-9]{3}", "errorMessage": "Should contain 3 characters"}, "familyName": {"pattern": "[a-zA-Z]{0,}", "errorMessage": "Should contain characters"}, "primaryContact": {"pattern": "[0-9]{8,10}", "errorMessage": "Should be 12 characters starting with 91 (country code)"}, "givenName": {"pattern": "[a-zA-Z]{0,}", "errorMessage": "Should contain characters"}}, "relationshipTypeMap": {"Parent": "patient", "Doctor": "provider"}, "showBirthTime": true, "printOptions": [{"translationKey": "REGISTRATION_PRINT_REG_CARD_LOCAL_KEY", "shortcutKey": "l", "templateUrl": "/bahmni_config/openmrs/apps/registration/registrationCardLayout/print_local.html"}, {"translationKey": "REGISTRATION_PRINT_REG_CARD_KEY", "shortcutKey": "p", "templateUrl": "/bahmni_config/openmrs/apps/registration/registrationCardLayout/print.html"}, {"translationKey": "REGISTRATION_PRINT_SUPPLEMENTAL_PAPER", "shortcutKey": "r", "templateUrl": "/bahmni_config/openmrs/apps/registration/supplementalPaperLayout/print.html"}, {"translationKey": "REGISTRATION_PRINT_WITH_BARCODE", "shortcutKey": "c", "templateUrl": "/bahmni_config/openmrs/apps/registration/registrationCardLayout/printWithBarcode.html"}], "patientInformation": {"hidden": {"attributes": ["primaryContact"]}, "additionalPatientInformation": {"attributes": ["distanceFromCenter", "isUrban", "cluster", "RationCard", "familyIncome", "debt", "cluster"], "title": "Additional Patient Information"}, "defaults": {"landHolding": 2, "class": "General"}}, "autoCompleteFields": ["familyName", "caste"], "patientSearch": {"customAttributes": {"fields": ["givenNameLocal", "middleNameLocal", "familyNameLocal"], "placeholder": "\u0930\u0941\u0917\u094d\u0923\u093e\u091a\u0947 \u0928\u093e\u0935", "label": "\u0930\u0941\u0917\u094d\u0923\u093e\u091a\u0947 \u0928\u093e\u0935"}, "address": {"field": "address2", "placeholder": "Enter ward", "label": "Rural Ward"}}, "showMiddleName": true, "conceptSetUI": {"defaults": {"FHS": "Present"}, "FHS": {"buttonSelect": true}}}, "id": "bahmni.registration", "description": "Bahmni Patient Registration App"}} \ No newline at end of file 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. ......................
+ - - - + + + +