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/clinical.json b/offline/openmrs/apps/clinical/clinical.json deleted file mode 100644 index 95beecde9..000000000 --- a/offline/openmrs/apps/clinical/clinical.json +++ /dev/null @@ -1 +0,0 @@ -{"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/offline/openmrs/apps/clinical/dashboard.json b/offline/openmrs/apps/clinical/dashboard.json index 0553265a4..9626d371a 100644 --- a/offline/openmrs/apps/clinical/dashboard.json +++ b/offline/openmrs/apps/clinical/dashboard.json @@ -27,37 +27,6 @@ "showDetailsButton":true, "displayOrder":1 }, - "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, - "type":"disposition", - "numberOfVisits":1, - "displayOrder":7 - }, "treatments":{ "translationKey":"DASHBOARD_TITLE_TREATMENTS_KEY", "type":"treatment", @@ -82,60 +51,18 @@ "showDetailsButton":true } }, - "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 - } - }, - "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 - } - }, "labResults":{ "translationKey":"DASHBOARD_TITLE_LAB_RESULTS_KEY", "type":"labOrders", - "displayOrder":6, + "displayOrder":10, "dashboardConfig":{ "title":null, - "numberOfVisits":6, + "numberOfVisits":1, "showChart":false, "showTable":true, - "showNormalLabResults": true, - "showCommentsExpanded": true, - "showAccessionNotes": true, - "showDetailsButton":false + "showDetailsButton":false, + "initialAccessionCount":0, + "latestAccessionCount":1 }, "expandedViewConfig":{ "numberOfVisits":10 @@ -251,6 +178,52 @@ } } }, + "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", @@ -261,27 +234,43 @@ "groupByVisits":true } }, - "conditions": { - "translationKey":"CONDITION_LIST_DISPLAY_CONTROL_TITLE", - "type": "conditionsList", - "displayOrder": 20 - }, - "formsDisplay": { - "type": "forms", - "displayOrder": 21, - "dashboardConfig": { - "title": null, - "maximumNoOfVisits": 10 + "diabetes":{ + "title":"Diabetes", + "templateName":"Diabetes Templates", + "type":"diseaseTemplate", + "displayOrder":18, + "dashboardConfig":{ + "showOnly":[ + + ] }, - "formGroup": [ ], - "translationKey": "DASHBOARD_TITLE_FORMS_DISPLAY_CONTROL_KEY" - }, - "patientAppointments": { - "type": "custom", - "displayOrder": 22, - "config": { - "title": "DASHBOARD_TITLE_APPOINTMENTS_KEY", - "template": "" + "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" + ] + } } } } @@ -315,7 +304,7 @@ }, "growthChart":{ "type":"observationGraph", - "translationKey": "DASHBOARD_TITLE_GROWTH_CHART", + "title":"Growth Chart", "config":{ "yAxisConcepts":[ "Weight" @@ -327,7 +316,7 @@ }, "BP":{ "type":"observationGraph", - "translationKey": "DASHBOARD_TITLE_BLOOD_PRESSURE", + "title":"BP", "config":{ "yAxisConcepts":[ "Systolic Data", @@ -340,7 +329,7 @@ }, "weight/BMI":{ "type":"observationGraph", - "translationKey": "DASHBOARD_TITLE_WEIGHT_BMI", + "title":"Weight/BMI", "config":{ "yAxisConcepts":[ "Weight", @@ -353,7 +342,7 @@ }, "diabetes/BloodSugar":{ "type":"observationGraph", - "translationKey": "DASHBOARD_TITLE_DIABETES_BLOOD_SUGAR", + "title":"Diabetes/Blood Sugar", "config":{ "yAxisConcepts":[ "Blood Sugar Fasting", @@ -366,7 +355,7 @@ }, "observationGraph":{ "type":"observationGraph", - "translationKey": "DASHBOARD_TITLE_PULSE", + "title":"Pulse", "config":{ "yAxisConcepts":[ "Pulse Data" @@ -416,6 +405,23 @@ "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, @@ -478,3 +484,4 @@ } } } + diff --git a/offline/openmrs/apps/clinical/extension-programs.json b/offline/openmrs/apps/clinical/extension-programs.json deleted file mode 100644 index 31400109a..000000000 --- a/offline/openmrs/apps/clinical/extension-programs.json +++ /dev/null @@ -1,139 +0,0 @@ -{ - "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", - "type": "config", - "extensionParams": { - "translationKey": "MODULE_LABEL_ALL_KEY", - "forwardUrl": "#/programs/patient/{{patientUuid}}/consultationContext" - }, - "label": "All", - "order": 2, - "requiredPrivilege": "app:clinical" - }, - "bahmniClinicalConceptSetGroupObservationsHistory": { - "id": "bahmni.clinical.conceptSetGroup.observations.history", - "extensionPointId": "org.bahmni.clinical.conceptSetGroup.observations", - "type": "config", - "extensionParams": { - "conceptName": "History and Examination", - "default": true - }, - "order": 1, - "requiredPrivilege": "app:clinical:history" - }, - "bahmniClinicalConceptSetGroupObservationsVitals": { - "id": "bahmni.clinical.conceptSetGroup.observations.vitals", - "extensionPointId": "org.bahmni.clinical.conceptSetGroup.observations", - "type": "config", - "extensionParams": { - "default": true, - "conceptName": "Vitals" - }, - "order": 2, - "requiredPrivilege": "app:clinical" - }, - "bahmniClinicalConceptSetGroupObservationsSecondVitals": { - "id": "bahmni.clinical.conceptSetGroup.observations.secondVitals", - "extensionPointId": "org.bahmni.clinical.conceptSetGroup.observations", - "type": "config", - "extensionParams": { - "conceptName": "Second Vitals", - "showIf": [ - "var visitTypes = [];", - "if(visitTypes.length === 0) return true;", - "var visitTypeName = context.visitType ? context.visitType.name : null;", - "return visitTypes.indexOf(visitTypeName) !== -1;" - ] - }, - "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" - }, - "observations": { - "id": "bahmni.clinical.consultation.observations", - "extensionPointId": "org.bahmni.clinical.consultation.board", - "type": "link", - "label": "Observations", - "translationKey": "OBSERVATIONS_BOARD_LABEL_KEY", - "url": "concept-set-group/observations", - "default": true, - "icon": "fa-user-md", - "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", - "url": "consultation", - "icon": "fa-user-md", - "order": 5, - "requiredPrivilege": "app:clinical:consultationTab" - } -} \ No newline at end of file diff --git a/offline/openmrs/apps/clinical/extension.json b/offline/openmrs/apps/clinical/extension.json index 1a19005bb..c74f8bd36 100644 --- a/offline/openmrs/apps/clinical/extension.json +++ b/offline/openmrs/apps/clinical/extension.json @@ -11,49 +11,6 @@ "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", @@ -131,171 +88,28 @@ "order": 5, "requiredPrivilege": "app:clinical" }, - "bahmniClinicalConceptSetGroupObservationsHIV": { + "bahmniClinicalConceptSetGroupObservationsHistory": { "id": "bahmni.clinical.conceptSetGroup.observations.history", "extensionPointId": "org.bahmni.clinical.conceptSetGroup.observations", "type": "config", "extensionParams": { - "conceptName": "HIV AND PERSONAL HISTORY FORM", + "conceptName": "History and Examination", "default": true }, "order": 1, "requiredPrivilege": "app:clinical:history" }, - "bahmniClinicalConceptSetGroupObservationsARTHistory": { + "bahmniClinicalConceptSetGroupObservationsVitals": { "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": "HIV CARE - Family History Data" + "conceptName": "Vitals" }, "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" - }, "bahmniClinicalConceptSetGroupObservationsSecondVitals": { "id": "bahmni.clinical.conceptSetGroup.observations.secondVitals", "extensionPointId": "org.bahmni.clinical.conceptSetGroup.observations", @@ -311,75 +125,5 @@ }, "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" - }, - "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" } - - - } - diff --git a/offline/openmrs/apps/clinical/formConditions.js b/offline/openmrs/apps/clinical/formConditions.js index d1623c381..9179a948a 100644 --- a/offline/openmrs/apps/clinical/formConditions.js +++ b/offline/openmrs/apps/clinical/formConditions.js @@ -24,592 +24,5 @@ Bahmni.ConceptSet.FormConditions.rules = { disable: ["Posture"] } } - }, - "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"); - return{ - show:["Classification Of Adherence"] - } - }else { - return{ - hide:["Classification Of Adherence"] - } - } - }, - "FP Pregnant" : function (formName , formFieldValues){ - var fppregnant = formFieldValues["FP Pregnant"]; - if(fppregnant == true){ - alert("Enroll This Patient To PMTCT Clinic"); - } - }, - - "Date of HIV Retesting Before ART": function (formName, formFieldValues) { - var dateretestedhiv = formFieldValues["Date of HIV Retesting Before ART"]; - var datefirsttestedhiv = formFieldValues["Date First Tested HIV +"]; - var date1 = new Date(datefirsttestedhiv); - var date2 = new Date(dateretestedhiv); - if (date1 > date2) { - alert("HIV RETESTING DATE SHOULD BE GREATER THAN HIV FIRST TESTING DATE"); - - } - }, - "ART Regimen - Substitution within 1st Line" : function (formName , formFieldValues, patient){ - if(patient.age < 15){ - return{ - show: ["Child Regimens (First Line)"], - hide:["Substitution Regimen For Adults(First Line)"] - } - }else { - return{ - hide: ["Child Regimens (First Line)"], - show: ["Substitution Regimen For Adults(First Line)"] - } - } - }, - "ART Regimen(Switch to 2nd Line)" : function (formName , formFieldValues, patient){ - if(patient.age < 15){ - return{ - show: ["Children Second Line Regimens"], - hide:["Substitution Regimen (2nd Line Adults)"] - } - }else { - return{ - hide: ["Children Second Line Regimens"], - show:["Substitution Regimen (2nd Line Adults)"] - } - } - }, - "AntiRetroviral Treatment" : function (formName , formFieldValues, patient){ - if(patient.age < 15){ - return{ - show: ["Initial ART Regimen For Children"], - hide:["Initial ART Regimen (Adult)"] - - } - }else { - return{ - hide: ["Initial ART Regimen For Children"], - show:["Initial ART Regimen (Adult)"] - - } - } - }, - "Is there an immunization not Given?" : function (formName , formFieldValues){ - var immunizationgiven = formFieldValues["Is there an immunization not Given?"]; - if(immunizationgiven == true){ - return{ - show:["Immunization Not Given"] - } - }else { - return{ - hide:["Immunization Not Given"] - } - } - }, - "Clinical Assessment for Signs and Symptoms of HIV": function (formName, formFieldValues) { - var clinicalassessment = formFieldValues["Clinical Assessment for Signs and Symptoms of HIV"]; - if (clinicalassessment === "Other Assessment Specify") { - return { - show: ["Specify other Assessement"] - } - } else { - return { - hide: ["Specify other Assessement"] - } - } - }, - - "Was any Development Milestone Missed?": function (formName, formFieldValues) { - var milestonemissed = formFieldValues["Was any Development Milestone Missed?"]; - if (milestonemissed == true) { - return { - show: ["Development Milestones Missed"] - } - } else { - return { - hide: ["Development Milestones Missed"] - } - } - }, - "Mother's ART Regimen": function (formName, formFieldValues) { - var motherartregimen = formFieldValues["Mother's ART Regimen"]; - if (motherartregimen === "Other ART Regimen") { - return { - show: ["Specify other Mother's ART Regimen"] - } - } else { - return { - hide: ["Specify other Mother's ART Regimen"] - } - } - }, - "HEI Treatment - Referred To ART Clinic": function (formName, formFieldValues) { - var referredtoclinic = formFieldValues["HEI Treatment - Referred To ART Clinic"]; - if (referredtoclinic == true) { - return { - show: ["HEI Treatment - Referred To ART Clinic Date"] - } - } else { - return { - hide: ["HEI Treatment - Referred To ART Clinic Date"] - } - } - }, - "HEI Treatment - Referred To ART Clinic": function (formName, formFieldValues) { - var referredtoclinic = formFieldValues["HEI Treatment - Referred To ART Clinic"]; - if (referredtoclinic == true) { - return { - show: ["HEI Treatment - Referred To ART Clinic Date"] - } - } else { - return { - hide: ["HEI Treatment - Referred To ART Clinic Date"] - } - } - }, - "HEI Treatment - Enrolled AT ART Clinic": function (formName, formFieldValues) { - var enrolleddate = formFieldValues["HEI Treatment - Enrolled AT ART Clinic"]; - if (enrolleddate == true) { - return { - show: ["HEI Treatment - Enrolled AT ART Date"] - } - } else { - return { - hide: ["HEI Treatment - Enrolled AT ART Date"] - } - } - }, - "Place Received ART": function (formName, formFieldValues) { - var placeartreceived = formFieldValues["Place Received ART"]; - if (placeartreceived === "Other Answer") { - return { - show: ["Other (Place specify)"] - } - } else { - return { - hide: ["Other (Place specify)"] - } - } - }, - "Is Patient on CTX or Dapose?": function (formName, formFieldValues) { - var patientondapose = formFieldValues["Is Patient on CTX or Dapose?"]; - if (patientondapose == true) { - return { - show: ["CTX or Dapose Start Date"] - } - } else { - return { - hide: ["CTX or Dapose Start Date"] - } - } - }, - "FP Pregnant": function (formName, formFieldValues) { - var patientpreg = formFieldValues["FP Pregnant"]; - if (patientpreg == true) { - return { - show: ["EDD","PMTCT - HIV & ART Follow up"], - hide:["Current on FP"] - } - } else { - return { - hide: ["EDD","PMTCT - HIV & ART Follow up"], - show:["Current on FP"] - } - } - }, - "ART Follow up - Information": function (formName , formFieldValues, patient){ - if(patient.age < 15){ - return{ - show: ["TB Regimen For Children"], - hide: ["TB Regimen On"] - - } - }else { - return{ - hide: ["TB Regimen For Children"], - show: ["TB Regimen On"] - } - } - }, - "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)"] - } - } - }, - // "Hei End Of Follow up (First Attempt Date)": function (formName, formFieldValues) { - // var firstattdate= formFieldValues["Hei End Of Follow up (First Attempt Date)"]; - // if (firstattdate == null) { - // return { - // show:["First Attempt Method"] - // } - // } else { - // return { - // hide:["First Attempt Method"] - // } - // } - // }, - - - - }; - + } +}; \ No newline at end of file diff --git a/offline/openmrs/apps/clinical/medication.json b/offline/openmrs/apps/clinical/medication.json deleted file mode 100644 index c2b54917d..000000000 --- a/offline/openmrs/apps/clinical/medication.json +++ /dev/null @@ -1,106 +0,0 @@ -{ - "commonConfig": { - }, - "tabConfig": { - "allMedicationTabConfig": { - "orderSet": { - "calculateDoseOnlyOnCurrentVisitValues": false - }, - "inputOptionsConfig": { - "defaultDurationUnit": "Day(s)", - "hideOrderSet" : false, - "defaultInstructions": "As directed", - "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)" - } - ], - "drugFormDefaults": { - "Ayurvedic": { - "doseUnits": "Teaspoon", - "route": "Oral" - }, - "Capsule": { - "doseUnits": "Capsule(s)", - "route": "Oral" - }, - "Cream": { - "route": "Topical" - }, - "Drops": { - "doseUnits": "Drop", - "route": "Topical" - }, - "Food Supplement": { - "doseUnits": "Unit(s)", - "route": "Oral" - }, - "Gel": { - "route": "Topical" - }, - "Granule": { - "doseUnits": "Unit(s)", - "route": "Oral" - }, - "Inhaler": { - "doseUnits": "Puff(s)", - "route": "Inhalation" - }, - "Injection": { - "doseUnits": "mg", - "route": "Intravenous" - }, - "Jelly": { - "route": "Topical" - }, - "Liquid": { - "doseUnits": "ml", - "route": "Oral" - }, - "Lotion": { - "route": "Topical" - }, - "Ointment": { - "route": "Topical" - }, - "Pessary": { - "doseUnits": "Unit(s)", - "route": "Per Vaginal" - }, - "Powder": { - "doseUnits": "mg", - "route": "Topical" - }, - "Solution": { - "doseUnits": "ml", - "route": "Topical" - }, - "Spray": { - "doseUnits": "Puff(s)", - "route": "Nasal" - }, - "Syrup": { - "doseUnits": "ml", - "route": "Oral" - }, - "Tablet": { - "doseUnits": "Tablet(s)", - "route": "Oral" - } - } - } - } - } -} diff --git a/offline/openmrs/apps/home/extension.json b/offline/openmrs/apps/home/extension.json index d4edcd603..2bce0fdaa 100644 --- a/offline/openmrs/apps/home/extension.json +++ b/offline/openmrs/apps/home/extension.json @@ -18,137 +18,5 @@ "icon": "fa-stethoscope", "order": 3, "requiredPrivilege": "app:clinical" - }, - "adt": { - "id": "bahmni.adt", - "extensionPointId": "org.bahmni.home.dashboard", - "type": "link", - "translationKey": "MODULE_LABEL_INPATIENT_KEY", - "url": "../adt/", - "icon": "icon-bahmni-inpatient", - "order": 4, - "requiredPrivilege": "app:adt" - }, - "bahmniIpd": { - "id": "bahmni.ipd", - "extensionPointId": "org.bahmni.home.dashboard", - "type": "link", - "translationKey": "MODULE_LABEL_BED_MANAGEMENT_KEY", - "label": "InPatient", - "url": "../bedmanagement/#/home", - "icon": "fa-bed", - "order": 7, - "requiredPrivilege": "app:adt" - }, - "radiologyDocumentUpload": { - "id": "bahmni.radiology.document.upload", - "extensionPointId": "org.bahmni.home.dashboard", - "type": "link", - "translationKey": "MODULE_LABEL_RADIOLOGY_UPLOAD_KEY", - "url": "../document-upload/?encounterType=RADIOLOGY&topLevelConcept=Radiology", - "icon": "icon-bahmni-radiology", - "order": 5, - "requiredPrivilege": "app:radiology-upload" - }, - "patientDocumentUpload": { - "id": "bahmni.patient.document.upload", - "extensionPointId": "org.bahmni.home.dashboard", - "type": "link", - "translationKey": "MODULE_LABEL_PATIENT_DOCUMENTS_KEY", - "url": "../document-upload/?encounterType=Patient Document&topLevelConcept=Patient Document&defaultOption=Patient file", - "icon": "icon-bahmni-documents", - "order": 6, - "requiredPrivilege": "app:patient-documents" - }, - "admin": { - "id": "bahmni.admin", - "extensionPointId": "org.bahmni.home.dashboard", - "type": "link", - "translationKey": "MODULE_LABEL_ADMIN_KEY", - "url": "../admin/#/dashboard/home", - "icon": "icon-bahmni-admin", - "order": 7, - "requiredPrivilege": "app:admin" - }, - "orders": { - "id": "bahmni.orders", - "extensionPointId": "org.bahmni.home.dashboard", - "type": "link", - "translationKey": "MODULE_LABEL_ORDERS_KEY", - "url": "../orders/#/search", - "icon": "icon-bahmni-orders", - "order": 10, - "requiredPrivilege": "app:orders" - }, - "reports": { - "id": "bahmni.reports", - "extensionPointId": "org.bahmni.home.dashboard", - "type": "link", - "translationKey": "MODULE_LABEL_REPORTS_KEY", - "url": "../reports/#/dashboard", - "icon": "icon-bahmni-reports", - "order": 8, - "requiredPrivilege": "app:reports" - }, - "bahmniOT": { - "id": "bahmni.ot", - "extensionPointId": "org.bahmni.home.dashboard", - "type": "link", - "translationKey": "Operation Theatre", - "url": "../ot/", - "icon": "fa-hospital-o", - "order": 9, - "requiredPrivilege": "app:ot" - }, - "appointments": { - "id": "bahmni.appointments", - "extensionPointId": "org.bahmni.home.dashboard", - "type": "link", - "translationKey": "MODULE_LABEL_APOOINTMENTS_KEY", - "url": "../../openmrs/appointmentschedulingui/home.page", - "icon": "fa fa-calendar", - "order": 11, - "requiredPrivilege": "App: appointmentschedulingui.home" - }, - "implementerInterface": { - "id": "bahmni.implementer.interface", - "extensionPointId": "org.bahmni.home.dashboard", - "type": "link", - "translationKey": "MODULE_LABEL_IMPLEMENTER_INTERFACE_KEY", - "url": "/implementer-interface", - "icon": "fa fa-pencil-square-o", - "order": 12, - "requiredPrivilege": "app:implementer-interface" - }, - "atomfeedConsole": { - "id": "bahmni.atomfeed.console", - "extensionPointId": "org.bahmni.home.dashboard", - "type": "link", - "translationKey": "MODULE_LABEL_ATOMFEED_CONSOLE_KEY", - "url": "/atomfeed-console", - "icon": "fa fa-terminal", - "order": 13, - "requiredPrivilege": "app:admin" - }, - "appointmentScheduling": { - "id": "bahmni.appointment.scheduling", - "extensionPointId": "org.bahmni.home.dashboard", - "type": "link", - "translationKey": "MODULE_LABEL_APPOINTMENT_SCHEDULING_KEY", - "url": "../appointments", - "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/offline/openmrs/apps/home/home.json b/offline/openmrs/apps/home/home.json deleted file mode 100644 index 8d9106052..000000000 --- a/offline/openmrs/apps/home/home.json +++ /dev/null @@ -1 +0,0 @@ -{"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/offline/openmrs/apps/home/locale_languages.json b/offline/openmrs/apps/home/locale_languages.json deleted file mode 100644 index 78059ef2a..000000000 --- a/offline/openmrs/apps/home/locale_languages.json +++ /dev/null @@ -1,6 +0,0 @@ -{"locales": [ {"code": "en", "nativeName": "English"}, - {"code": "es", "nativeName": "Español"}, - {"code": "fr", "nativeName": "Français"}, - {"code": "it", "nativeName": "Italiano"}, - {"code": "pt_BR", "nativeName": "Português"}] -} \ No newline at end of file diff --git a/offline/openmrs/apps/home/offline-config.json b/offline/openmrs/apps/home/offline-config.json deleted file mode 100644 index defcccded..000000000 --- a/offline/openmrs/apps/home/offline-config.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "schedulerInterval": 40000 -} diff --git a/offline/openmrs/apps/home/whiteLabel.json b/offline/openmrs/apps/home/whiteLabel.json deleted file mode 100644 index 735e45a18..000000000 --- a/offline/openmrs/apps/home/whiteLabel.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "homePage": { - "header_text": "WELCOME TO
eHospital", - "logo": "/bahmni/images/bahmniLogoFull.png", - "title_text": " " - }, - "loginPage": { - "logo": "/bahmni/images/bahmniLogoFull.png", - "showHeaderText": true, - "showTitleText": false - }, - "helpLink": { - "url": "https://bahmni.atlassian.net/wiki/display/BAH/Bahmni+Home" - } -} \ No newline at end of file diff --git a/offline/openmrs/apps/registration/appTemplate.json b/offline/openmrs/apps/registration/appTemplate.json deleted file mode 100644 index 219174016..000000000 --- a/offline/openmrs/apps/registration/appTemplate.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id": "bahmni.template.registration", - "contextModel": [ - "patientUuid", - "activeVisitUuid" - ], - "configOptions": { - "autoCompleteFields":{ - "name": "autoCompleteFields", - "description": "auto complete fields in patient create page. eg. givenName, familyName, caste, primaryContact, secondaryContact, primaryRelative, secondaryIdentifier", - "defaultValue": ["givenName", "familyName", "caste", "primaryContact", "secondaryContact", "primaryRelative", "secondaryIdentifier"] - }, - "defaultIdentifierPrefix":{ - "name": "defaultIdentifierPrefix", - "description": "Default identifier prefix used in search, create patient. eg. GAN", - "defaultValue": null - }, - "searchByIdForwardUrl":{ - "name": "searchByIdForwardUrl", - "description": "Url to forward when searched by id", - "defaultValue": "/patient/{{patientUuid}}" - } - } -} diff --git a/offline/openmrs/apps/registration/extension.json b/offline/openmrs/apps/registration/extension.json index 44e44ef6d..222990c76 100644 --- a/offline/openmrs/apps/registration/extension.json +++ b/offline/openmrs/apps/registration/extension.json @@ -38,25 +38,11 @@ "extensionParams": { "conceptName": "Nutritional Values", "translationKey": "NUTRITIONAL_VALUES_LOCALE_KEY", - "conceptNames": ["Height", "Weight", "BMI Data", "BMI Status Data"], + "conceptNames": ["HEIGHT", "WEIGHT", "BMI Data", "BMI Status Data"], "required":true, "showLatest": true }, "order": 1, "requiredPrivilege": "Edit Visits" - }, - - "nutritionalValue":{ - "id": "bahmni.registration.conceptSetGroup.nutritionalValue", - "extensionPointId": "org.bahmni.registration.conceptSetGroup.observations", - "type": "forms", - "extensionParams": { - "formName": "Nutritional Values", - "conceptNames": ["Height", "Weight", "BMI Data", "BMI Status Data"], - "required":true, - "showLatest": true - }, - "order": 4, - "requiredPrivilege": "Edit Visits" } } diff --git a/offline/openmrs/apps/registration/fieldValidation.js b/offline/openmrs/apps/registration/fieldValidation.js deleted file mode 100644 index eafcf6296..000000000 --- a/offline/openmrs/apps/registration/fieldValidation.js +++ /dev/null @@ -1,20 +0,0 @@ -Bahmni.Registration.customValidator = { - "age.days": { - method: function (name, value) { - return value >= 0; - }, - errorMessage: "REGISTRATION_AGE_ERROR_KEY" - }, - "Telephone Number": { - method: function (name, value, personAttributeDetails) { - return value && value.length> 6; - }, - errorMessage: "REGISTRATION_TELEPHONE_NUMBER_ERROR_KEY" - }, - "caste": { - method: function (name, value, personAttributeDetails) { - return value.match(/^\w+$/); - }, - errorMessage: "REGISTRATION_CASTE_TEXT_ERROR_KEY" - } -}; diff --git a/offline/openmrs/apps/registration/registration.json b/offline/openmrs/apps/registration/registration.json deleted file mode 100644 index f14a57dee..000000000 --- a/offline/openmrs/apps/registration/registration.json +++ /dev/null @@ -1 +0,0 @@ -{"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/offline/openmrs/apps/registration/registrationCardLayout/css/print.css b/offline/openmrs/apps/registration/registrationCardLayout/css/print.css deleted file mode 100644 index 762143bcb..000000000 --- a/offline/openmrs/apps/registration/registrationCardLayout/css/print.css +++ /dev/null @@ -1,124 +0,0 @@ -@page { - margin-left: 0.2cm; - margin-right: 0.2cm; - margin-top: 0.2cm; - margin-bottom: 0.2cm; -} - -/* line 10, print.scss */ -p, h1, h2, h3, table, tr, td, div, span, li { - margin: 0px; - padding: 0px; -} - -/* line 14, print.scss */ -h1, h2, h3 { - text-align: center; -} - -/* line 17, print.scss */ -.print-center { - text-align: center; -} - -/* line 20, print.scss */ -.registrationCard-print-table { - width: 150mm; - height: 83mm; - overflow: scroll; - margin: 0 auto; - table-layout: fixed; -} - -/* line 24, print.scss */ -.registrationCard-print-table td.registrationCard-photo { - padding-top: 2px; -} - -/* line 27, print.scss */ -.print-table-left { - width: 77mm; -} - -/* line 30, print.scss */ -.print-table-header { - text-align: center; - margin-top: 10px; - text-align: center; -} - -/* line 35, print.scss */ -.print-table-left-body { - font-size: 4mm; - margin-bottom: 0px; - padding-bottom: 0px; - margin-top: 15px; -} - -/* line 41, print.scss */ -.print-table-left-body li { - margin: 0px; - padding: 0px 0px 5px 0px; - line-height: 18px; -} - -/* line 46, print.scss */ -.caution { - text-align: center; - line-height: 20px; -} - -/* line 50, print.scss */ -.caution h3 { - line-height: 25px; - margin-bottom: 6px; - margin-top: 12px; -} - -/* line 55, print.scss */ -.print-table-right { - width: 77mm; -} - -/* line 58, print.scss */ -.print-table-right .logo { - text-align: center; - width: 12mm; - padding: 0px; - margin: 0px; - height: 12mm; -} - -/* line 65, print.scss */ -.print-table-right-header { - text-align: center; - width: 42mm; - text-align: left; - height: 12mm; -} - -/* line 71, print.scss */ -.registrationCard-location { - padding: 5px 8px 8px 8px; -} - -/* line 74, print.scss */ -.registrationCard-details { - padding: 0mm 5mm 0mm 5mm; -} - -/* line 77, print.scss */ -.registrationCard-details-name { - width: 70px; -} - -/* line 80, print.scss */ -.registrationCard-details-seperator { - width: 20px; - text-align: center; -} - -/* line 84, print.scss */ -.hindi-text { - vertical-align: bottom; -} diff --git a/offline/openmrs/apps/registration/registrationCardLayout/images/bahmni-icon.png b/offline/openmrs/apps/registration/registrationCardLayout/images/bahmni-icon.png deleted file mode 100644 index f0914072d..000000000 Binary files a/offline/openmrs/apps/registration/registrationCardLayout/images/bahmni-icon.png and /dev/null differ diff --git a/offline/openmrs/apps/registration/registrationCardLayout/images/bahmniLogoFull.png b/offline/openmrs/apps/registration/registrationCardLayout/images/bahmniLogoFull.png deleted file mode 100644 index 12ba755d5..000000000 Binary files a/offline/openmrs/apps/registration/registrationCardLayout/images/bahmniLogoFull.png and /dev/null differ diff --git a/offline/openmrs/apps/registration/registrationCardLayout/print.html b/offline/openmrs/apps/registration/registrationCardLayout/print.html deleted file mode 100644 index a7cb28cc1..000000000 --- a/offline/openmrs/apps/registration/registrationCardLayout/print.html +++ /dev/null @@ -1,128 +0,0 @@ - - - - - - - - -
diff --git a/offline/openmrs/apps/registration/registrationCardLayout/printWithBarcode.html b/offline/openmrs/apps/registration/registrationCardLayout/printWithBarcode.html deleted file mode 100644 index 39279bc2c..000000000 --- a/offline/openmrs/apps/registration/registrationCardLayout/printWithBarcode.html +++ /dev/null @@ -1,92 +0,0 @@ - - - - - - - -
- - - diff --git a/offline/openmrs/apps/registration/registrationCardLayout/print_local.html b/offline/openmrs/apps/registration/registrationCardLayout/print_local.html deleted file mode 100644 index 34bdb483d..000000000 --- a/offline/openmrs/apps/registration/registrationCardLayout/print_local.html +++ /dev/null @@ -1,166 +0,0 @@ - - - - - - - -
- - - - - - - \ No newline at end of file diff --git a/offline/openmrs/apps/registration/supplementalPaperLayout/css/print.css b/offline/openmrs/apps/registration/supplementalPaperLayout/css/print.css deleted file mode 100644 index cbd2bf3c3..000000000 --- a/offline/openmrs/apps/registration/supplementalPaperLayout/css/print.css +++ /dev/null @@ -1,15 +0,0 @@ -.row { - float: clear; -} -.left { - width: 50%; - float: left; -} -.right { - width: 50%; - float: left; -} - -.label { - font-weight: bold; -} diff --git a/offline/openmrs/apps/registration/supplementalPaperLayout/print.html b/offline/openmrs/apps/registration/supplementalPaperLayout/print.html deleted file mode 100644 index ba18349ed..000000000 --- a/offline/openmrs/apps/registration/supplementalPaperLayout/print.html +++ /dev/null @@ -1,52 +0,0 @@ - -
- -
-
- ओपीडी क्र.: - -
-
- दिनांक: - {{today | date:'dd/MM/yyyy'}} -
-
-
-
- पंजी. क्र.: - {{patient.primaryIdentifier.identifier}} -
-
- गाँव: - {{patient.address.cityVillage}} -
-
-
-
- नाम: - {{patient.fullNameLocal() || patient.name}} -
-
- जिला: - {{patient.address.countyDistrict}} -
-
-
-
- पिता/पति का नाम: - {{patient.primaryRelative}} -
-
- उम्र/लिंग: - {{patient.age.years || "0"}} - / {{patient.gender}} -
-
-
-
- वज़न: - {{obs.WEIGHT}} -
-
-
\ No newline at end of file