Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BAH 665: Dashboard & Display Control Privileges #44

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
120 changes: 88 additions & 32 deletions openmrs/apps/clinical/dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@
"showCertainty":true,
"showOrder":true,
"showDetailsButton":true,
"displayOrder":1
"displayOrder":1,
"dashboardConfig":{
"requiredPrivilege":"app:clinical"
}
},
"navigationLinksControl":{
"translationKey":"DASHBOARD_TITLE_NAVIGATION_LINKS_CONTROL_KEY",
Expand All @@ -48,15 +51,19 @@
"conceptNames": [
"Tuberculosis Followup Template"
],
"numberOfVisits": 2
"numberOfVisits": 2,
"requiredPrivilege":"app:clinical"
}
},
"disposition":{
"translationKey":"DASHBOARD_TITLE_DISPOSITION_KEY",
"showDetailsButton":true,
"type":"disposition",
"numberOfVisits":1,
"displayOrder":7
"displayOrder":7,
"dashboardConfig":{
"requiredPrivilege":"app:clinical"
}
},
"treatments":{
"translationKey":"DASHBOARD_TITLE_TREATMENTS_KEY",
Expand All @@ -69,7 +76,8 @@
"showDrugForm":true,
"numberOfVisits":5,
"showOtherActive":true,
"showDetailsButton":true
"showDetailsButton":true,
"requiredPrivilege":"app:clinical"
},
"expandedViewConfig":{
"translationKey":"DASHBOARD_TITLE_TREATMENTS_KEY",
Expand All @@ -86,12 +94,18 @@
"translationKey":"DASHBOARD_TITLE_RADIOLOGY_KEY",
"type":"radiology",
"showDetailsButton":true,
"displayOrder":5
"displayOrder":5,
"dashboardConfig":{
"requiredPrivilege":"app:clinical"
}
},
"programs":{
"translationKey":"DASHBOARD_TITLE_PROGRAMS_KEY",
"type":"programs",
"displayOrder":10
"displayOrder":10,
"dashboardConfig":{
"requiredPrivilege":"app:clinical"
}
},
"radiologyOrders":{
"orderType":"Radiology Order",
Expand All @@ -102,7 +116,8 @@
"conceptNames":[
"Summary"
],
"numberOfVisits":4
"numberOfVisits":4,
"requiredPrivilege":"app:clinical"
}
},
"pacs":{
Expand All @@ -112,7 +127,8 @@
"displayOrder":8,
"dashboardConfig":{
"pacsImageUrl":"/oviyam2/viewer.html?patientID={{patientID}}&accessionNumber={{orderNumber}}",
"numberOfVisits":4
"numberOfVisits":4,
"requiredPrivilege":"app:clinical"
}
},
"labOrdersDisplayControl":{
Expand All @@ -127,7 +143,8 @@
"Diastolic",
"Posture",
"Temperature"
]
],
"requiredPrivilege":"app:clinical"
},
"expandedViewConfig":{
"conceptNames":[
Expand All @@ -147,7 +164,8 @@
"dashboardConfig":{
"conceptNames":[
"BACTERIOLOGY CONCEPT SET"
]
],
"requiredPrivilege":"app:clinical"
}
},
"labResults":{
Expand All @@ -162,7 +180,8 @@
"showNormalLabResults": true,
"showCommentsExpanded": true,
"showAccessionNotes": true,
"showDetailsButton":false
"showDetailsButton":false,
"requiredPrivilege":"app:clinical"
},
"expandedViewConfig":{
"numberOfVisits":10
Expand All @@ -181,7 +200,8 @@
"BMI Status Data"
],
"showDetailsButton":true,
"numberOfVisits":2
"numberOfVisits":2,
"requiredPrivilege":"app:clinical"
},
"expandedViewConfig":{
"conceptNames":[
Expand All @@ -208,7 +228,8 @@
"conceptNames":[
"Vitals"
],
"numberOfVisits":2
"numberOfVisits":2,
"requiredPrivilege":"app:clinical"
},
"expandedViewConfig":{
"conceptNames":[
Expand Down Expand Up @@ -242,7 +263,8 @@
"conceptNames":[
"Second Vitals"
],
"numberOfVisits":2
"numberOfVisits":2,
"requiredPrivilege":"app:clinical"
},
"expandedViewConfig":{
"conceptNames":[
Expand All @@ -265,7 +287,8 @@
"conceptNames":[
"History and Examination"
],
"numberOfVisits":2
"numberOfVisits":2,
"requiredPrivilege":"app:clinical"
},
"expandedViewConfig":{
"conceptNames":[
Expand All @@ -288,7 +311,8 @@
"Gynaecology"
],
"showDetailsButton":true,
"numberOfVisits":2
"numberOfVisits":2,
"requiredPrivilege":"app:clinical"
},
"expandedViewConfig":{
"conceptNames":[
Expand All @@ -311,7 +335,8 @@
"conceptNames":[
"Obstetrics"
],
"numberOfVisits":2
"numberOfVisits":2,
"requiredPrivilege":"app:clinical"
},
"expandedViewConfig":{
"conceptNames":[
Expand All @@ -331,7 +356,8 @@
"dashboardConfig":{
"title":null,
"maximumNoOfVisits":8,
"groupByVisits":true
"groupByVisits":true,
"requiredPrivilege":"app:clinical"
}
},
"diabetes":{
Expand Down Expand Up @@ -377,19 +403,26 @@
"translationKey":"DASHBOARD_TITLE_ADMISSION_DETAILS_KEY",
"type":"admissionDetails",
"displayOrder":19,
"showDetailsButton":true
"showDetailsButton":true,
"dashboardConfig":{
"requiredPrivilege":"app:clinical"
}
},
"conditions": {
"translationKey":"CONDITION_LIST_DISPLAY_CONTROL_TITLE",
"type": "conditionsList",
"displayOrder": 20
"displayOrder": 20,
"dashboardConfig":{
"requiredPrivilege":"app:clinical"
}
},
"formsDisplay": {
"type": "forms",
"displayOrder": 21,
"dashboardConfig": {
"title": null,
"maximumNoOfVisits": 10
"maximumNoOfVisits": 10,
"requiredPrivilege":"app:clinical"
},
"formGroup": [ ],
"translationKey": "DASHBOARD_TITLE_FORMS_DISPLAY_CONTROL_KEY"
Expand All @@ -399,7 +432,10 @@
"displayOrder": 22,
"config": {
"title": "DASHBOARD_TITLE_APPOINTMENTS_KEY",
"template": "<patient-appointments-dashboard section='config' patient='patient'></patient-appointments-dashboard>"
"template": "<patient-appointments-dashboard section='config' patient='patient'></patient-appointments-dashboard>",
"dashboardConfig": {
"requiredPrivilege":"app:clinical"
}
}
}
}
Expand Down Expand Up @@ -441,7 +477,10 @@
"referenceData":"growthChartReference.csv",
"numberOfVisits":20
},
"displayOrder":1
"displayOrder":1,
"dashboardConfig":{
"requiredPrivilege":"app:clinical"
}
},
"BP":{
"type":"observationGraph",
Expand All @@ -454,7 +493,10 @@
"xAxisConcept":"observationDateTime",
"numberOfVisits":10
},
"displayOrder":2
"displayOrder":2,
"dashboardConfig":{
"requiredPrivilege":"app:clinical"
}
},
"weight/BMI":{
"type":"observationGraph",
Expand All @@ -467,7 +509,10 @@
"xAxisConcept":"observationDateTime",
"numberOfVisits":10
},
"displayOrder":3
"displayOrder":3,
"dashboardConfig":{
"requiredPrivilege":"app:clinical"
}
},
"diabetes/BloodSugar":{
"type":"observationGraph",
Expand All @@ -480,7 +525,10 @@
"xAxisConcept":"observationDateTime",
"numberOfVisits":10
},
"displayOrder":4
"displayOrder":4,
"dashboardConfig":{
"requiredPrivilege":"app:clinical"
}
},
"observationGraph":{
"type":"observationGraph",
Expand All @@ -492,7 +540,10 @@
"xAxisConcept":"observationDateTime",
"numberOfVisits":10
},
"displayOrder":5
"displayOrder":5,
"dashboardConfig":{
"requiredPrivilege":"app:clinical"
}
},
"diabetes":{
"title":"Diabetes",
Expand Down Expand Up @@ -544,7 +595,8 @@
"groupByConcept":"Specimen Collection Date",
"conceptNames":[
"Specimen Id"
]
],
"requiredPrivilege":"app:clinical"
},
"expandedViewConfig":{
"templateName":"BACTERIOLOGY CONCEPT SET",
Expand All @@ -563,7 +615,8 @@
"Smoking History",
"Clief COmplaint Notes",
"Blood Pressure"
]
],
"requiredPrivilege":"app:clinical"
},
"displayOrder":6,
"translationKey":"DASHBOARD_TITLE_HISTORY_AND_EXAMINATIONS_KEY"
Expand All @@ -576,7 +629,8 @@
"displayOrder":24,
"dashboardConfig":{
"showOnlyActive":true,
"drugConceptSet":"All Other Drugs"
"drugConceptSet":"All Other Drugs",
"requiredPrivilege":"app:clinical"
}
},
"malaria":{
Expand All @@ -592,7 +646,8 @@
"Malaria, drug regimen",
"Malaria, Malaria Type",
"Malaria, Source"
]
],
"requiredPrivilege":"app:clinical"
}
},
"Chronic Treatment Chart":{
Expand All @@ -602,7 +657,8 @@
"dashboardConfig":{
"drugs":[

]
],
"requiredPrivilege":"app:clinical"
},
"expandedViewConfig":{
"drugs":[
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<section class="app-dashboard-integration">
<ul show-if-privilege="{{::section.dashboardConfig.requiredPrivilege}}">
<h2 class="section-title" ng-click="goToListView()"><span style="border-bottom: 1px solid white;">{{ section.title | titleTranslate}}</span></h2>

<ul style="font-size: 14px;color: #000000">
Expand Down Expand Up @@ -59,4 +60,5 @@ <h2 class="section-title" ng-click="goToListView()"><span style="border-bottom:
</table>
</ul>
</ul>
</ul>
</section>