Skip to content

Commit

Permalink
C2C-305: Embed OpenMRS, Bahmni and Odoo config files in distro repo (#17
Browse files Browse the repository at this point in the history
)
  • Loading branch information
VaishSiddharth authored Nov 5, 2024
1 parent fd364b9 commit 73563a0
Show file tree
Hide file tree
Showing 64 changed files with 29,448 additions and 74 deletions.
460 changes: 460 additions & 0 deletions configs/bahmni/openmrs/apps/clinical/dashboard.json

Large diffs are not rendered by default.

300 changes: 300 additions & 0 deletions configs/bahmni/openmrs/apps/clinical/extension.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,300 @@
{
"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": 3,
"requiredPrivilege": "app:clinical:diagnosisTab"
},
"bahmniClinicalOrdersPending": {
"id": "bahmni.clinical.orders.pending",
"extensionPointId": "org.bahmni.clinical.orders",
"type": "link",
"label": "Pending Orders",
"url": "pendingOrders",
"icon": "fa-user-md",
"order": 2,
"requiredPrivilege": "app:radiologyOrders"
},
"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"
},
"bahmniClinicalPatientsSearchAllPatients": {
"id": "bahmni.clinical.patients.search.allPatients",
"extensionPointId": "org.bahmni.patient.search",
"type": "config",
"extensionParams": {
"translationKey": "MODULE_LABEL_ALL_KEY",
"forwardUrl": "#/default/patient/{{patientUuid}}/dashboard"
},
"label": "All",
"order": 10,
"requiredPrivilege": "app:clinical"
},
"bahmniClinicalPatientsSearchAllActivePatients": {
"id": "bahmni.clinical.patients.search.allActivePatients",
"extensionPointId": "org.bahmni.patient.search",
"type": "config",
"extensionParams": {
"searchHandler": "emrapi.sqlSearch.activePatients",
"translationKey": "MODULE_LABEL_ACTIVE_KEY",
"forwardUrl": "#/default/patient/{{patientUuid}}/dashboard"
},
"label": "Active",
"order": 1,
"requiredPrivilege": "app:clinical"
},
"bahmniClinicalPatientsSearchEmergencyPatient": {
"id": "bahmni.clinical.patients.search.emergencyPatients",
"extensionPointId": "org.bahmni.patient.search",
"type": "config",
"extensionParams": {
"searchHandler": "emrapi.sqlSearch.emergencyPatients",
"translationKey": "MODULE_LABEL_EMERGENCY_KEY",
"forwardUrl": "#/default/patient/{{patientUuid}}/dashboard"
},
"label": "Emergency",
"order": 2,
"requiredPrivilege": "app:clinical"
},
"bahmniClinicalPatientsSearchPriorityPatient": {
"id": "bahmni.clinical.patients.search.priorityPatients",
"extensionPointId": "org.bahmni.patient.search",
"type": "config",
"extensionParams": {
"searchHandler": "emrapi.sqlSearch.priorityPatients",
"translationKey": "MODULE_LABEL_PRIORITY_KEY",
"forwardUrl": "#/default/patient/{{patientUuid}}/dashboard"
},
"label": "Priority",
"order": 3,
"requiredPrivilege": "app:clinical"
},
"bahmniClinicalPatientsSearchPrenatalPatient": {
"id": "bahmni.clinical.patients.search.prenatalPatients",
"extensionPointId": "org.bahmni.patient.search",
"type": "config",
"extensionParams": {
"searchHandler": "emrapi.sqlSearch.prenatalPatients",
"translationKey": "MODULE_LABEL_PRENATAL_KEY",
"forwardUrl": "#/default/patient/{{patientUuid}}/dashboard"
},
"label": "Prenatal",
"order": 4,
"requiredPrivilege": "app:clinical"
},
"bahmniClinicalPatientsSearchFamilyPlanningPatient": {
"id": "bahmni.clinical.patients.search.familyPlanningPatients",
"extensionPointId": "org.bahmni.patient.search",
"type": "config",
"extensionParams": {
"searchHandler": "emrapi.sqlSearch.familyPlanningPatients",
"translationKey": "MODULE_LABEL_FAMILY_PLANNING_KEY",
"forwardUrl": "#/default/patient/{{patientUuid}}/dashboard"
},
"label": "Family Planning",
"order": 5,
"requiredPrivilege": "app:clinical"
},
"bahmniClinicalPatientsSearchInfantVaccinationPatient": {
"id": "bahmni.clinical.patients.search.infantvaccinationPatients",
"extensionPointId": "org.bahmni.patient.search",
"type": "config",
"extensionParams": {
"searchHandler": "emrapi.sqlSearch.infantvaccinationPatients",
"translationKey": "MODULE_LABEL_INFANT_VACCINATION_KEY",
"forwardUrl": "#/default/patient/{{patientUuid}}/dashboard"
},
"label": "Infant Vaccination",
"order": 6,
"requiredPrivilege": "app:clinical"
},
"bahmniClinicalPatientsSearchInfantVaccinationCommunityPatients": {
"id": "bahmni.clinical.patients.search.infantVaccinationCommunityPatients",
"extensionPointId": "org.bahmni.patient.search",
"type": "config",
"extensionParams": {
"searchHandler": "emrapi.sqlSearch.vaccinationInfantileCommunautaire",
"translationKey": "MODULE_LABEL_INFANT_VACCINATION_COMMUNITY_KEY",
"forwardUrl": "#/default/patient/{{patientUuid}}/dashboard"
},
"label": "Infant Vaccination Community",
"order": 7,
"requiredPrivilege": "app:clinical"
},
"bahmniClinicalPatientsSearchFamilyPlanningCommunityPatient": {
"id": "bahmni.clinical.patients.search.familyPlanningCommunityPatient",
"extensionPointId": "org.bahmni.patient.search",
"type": "config",
"extensionParams": {
"searchHandler": "emrapi.sqlSearch.planificationFamilialeCommunautaire",
"translationKey": "MODULE_LABEL_FAMILY_PLANNING_COMMUNITY_KEY",
"forwardUrl": "#/default/patient/{{patientUuid}}/dashboard"
},
"label": "Family Planning Community",
"order": 8,
"requiredPrivilege": "app:clinical"
},
"bahmniClinicalPatientsSearchMalnutritionPatient": {
"id": "bahmni.clinical.patients.search.MalnutritionPatients",
"extensionPointId": "org.bahmni.patient.search",
"type": "config",
"extensionParams": {
"searchHandler": "emrapi.sqlSearch.MalnutritionPatients",
"translationKey": "MODULE_LABEL_MALNUTRITION_KEY",
"forwardUrl": "#/default/patient/{{patientUuid}}/dashboard"
},
"label": "Malnutrition",
"order": 7,
"requiredPrivilege": "app:clinical"
},
"bahmniClinicalPatientsSearchGeneralPatient": {
"id": "bahmni.clinical.patients.search.GeneralPatients",
"extensionPointId": "org.bahmni.patient.search",
"type": "config",
"extensionParams": {
"searchHandler": "emrapi.sqlSearch.GeneralPatients",
"translationKey": "MODULE_LABEL_GENERAL_KEY",
"forwardUrl": "#/default/patient/{{patientUuid}}/dashboard"
},
"label": "General",
"order": 8,
"requiredPrivilege": "app:clinical"
},
"bahmniClinicalPatientsSearchTBPatient": {
"id": "bahmni.clinical.patients.search.TBPatients",
"extensionPointId": "org.bahmni.patient.search",
"type": "config",
"extensionParams": {
"searchHandler": "emrapi.sqlSearch.TBPatients",
"translationKey": "MODULE_LABEL_TB_KEY",
"forwardUrl": "#/default/patient/{{patientUuid}}/dashboard"
},
"label": "TB",
"order": 9,
"requiredPrivilege": "app:clinical"
},
"bahmniClinicalPatientsSearchLabPatient": {
"id": "bahmni.clinical.patients.search.LabPatients",
"extensionPointId": "org.bahmni.patient.search",
"type": "config",
"extensionParams": {
"searchHandler": "emrapi.sqlSearch.LabPatients",
"translationKey": "MODULE_LABEL_LAB_KEY",
"forwardUrl": "#/default/patient/{{patientUuid}}/dashboard"
},
"label": "LAB",
"order": 10,
"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"
},
"bahmniClinicalConceptSetGroupObservationsVaccination": {
"id": "bahmni.clinical.conceptSetGroup.observations.vaccination",
"extensionPointId": "org.bahmni.clinical.conceptSetGroup.observations",
"type": "config",
"extensionParams": {
"conceptName": "Vaccination History",
"default": true
},
"order": 3,
"requiredPrivilege": "app:clinical"
},
"bahmniClinicalConceptSetGroupObservationsLabSamples": {
"id": "bahmni.clinical.conceptSetGroup.observations.labsamples",
"extensionPointId": "org.bahmni.clinical.conceptSetGroup.observations",
"type": "config",
"extensionParams": {
"conceptName": "Lab Samples",
"default": true
},
"order": 4,
"requiredPrivilege": "app:clinical"
},
"bahmniClinicalConceptSetGroupObservationsSecondVitals": {
"id": "bahmni.clinical.conceptSetGroup.observations.secondVitals",
"extensionPointId": "org.bahmni.clinical.conceptSetGroup.observations",
"type": "config",
"extensionParams": {
"conceptName": "Second Vitals",
"default": true,
"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"
},
"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": 4,
"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": 2,
"requiredPrivilege": "app:clinical:ordersTab"
}
}
30 changes: 30 additions & 0 deletions configs/bahmni/openmrs/apps/clinical/visit.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"general":{
"translationKey": "DASHBOARD_TAB_GENERAL_KEY",
"displayByDefault": true,
"printing": {
"title": "C2C",
"header": "Visite",
"logo": "/bahmni_config/openmrs/apps/home/C2C_logo.png"
},
"defaultSections": true,
"sections": {
"pivotTable":{
"type": "pivotTable",
"displayOrder": 0,
"title": "Vitals Flowsheet",
"config": {
"groupBy": "encounters",
"obsConcepts": [
"Groupe tension artérielle",
"Température",
"Pouls",
"Frequence respiratoire",
"Saturation d'oxygène",
"Périmètre bracchial"
]
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<div class="template-container">
<h2>
<span class="title-link">{{'VACCINATIONS' | translate}} </span>
</h2>
<div ng-show="!vaccinations.length">
<div class="placeholder-text">
<p translate="DISPLAY_CONTROL_ERROR_MESSAGE_KEY"
translate-values="{displayControl : '{{config.translationKey | translate}}'}"></p>
</div>
</div>
<table ng-show="vaccinations.length">
<thead>
<tr>
<th>
<span>{{ ::'VACCINE' | translate }}</span>
</th>
<th>
<span>{{ ::'DATE_GIVEN' | translate }}</span>
</th>
<th>
<span>{{ ::'VACCINE_LOT_NUMBER' | translate }}</span>
</th>
</tr>

</thead>
<tbody>
<tr ng-repeat="(key, value) in groupedvaccination">
<td>
<div ng-repeat="obs in value | orderBy:['-vaccationSequenceValue']">
{{obs.name | translate }}

<b ng-if="obs.vaccationSequenceValue == null"></b>
<b ng-if="obs.vaccationSequenceValue < 10"> ({{obs.vaccationSequenceValue }})</b>
<b ng-if="obs.vaccationSequenceValue >10">
({{"Booster " + (obs.vaccationSequenceValue -10) }})</b>
</div>
</td>
<td>
<div ng-repeat="obs in value | orderBy:['-vaccationSequenceValue']">
{{obs.vaccinationDate | bahmniDate }}
</div>
</td>
<td>
<div ng-repeat="obs in value | orderBy:['-vaccationSequenceValue']">
{{obs.vaccineLotNumber }}
</div>
</td>
</tr>
</tbody>
</table>

</div>
Binary file added configs/bahmni/openmrs/apps/home/C2C_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 73563a0

Please sign in to comment.