Skip to content

Commit

Permalink
AP-84-V2 - Added test translation and place in default template
Browse files Browse the repository at this point in the history
  • Loading branch information
icrc-toliveira committed Oct 11, 2022
1 parent 1c8374a commit ce11a20
Show file tree
Hide file tree
Showing 11 changed files with 34 additions and 3 deletions.
3 changes: 3 additions & 0 deletions i18n/appointments/locale_en.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@
"APPOINTMENT_CREATE_OUTOF": "out of",
"APPOINTMENT_PATIENT_ID": "Patient ID",
"APPOINTMENT_PATIENT_NAME": "Patient Name",
"APPOINTMENT_PATIENT_AGE": "Patient Age",
"APPOINTMENT_PATIENT_GENDER": "Patient Gender",
"APPOINTMENT_PATIENT_AUXILIARY_IDENTIFIER": "Patient Auxiliary Identifier",
"APPOINTMENT_CHECKIN_TIME_KEY": "Check in time",
"APPOINTMENT_SERVICE_TYPE_FULL": "Service Appointment Type",
"APPOINTMENT_WALK_IN": "Walk In",
Expand Down
3 changes: 3 additions & 0 deletions i18n/appointments/locale_es.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@
"APPOINTMENT_CREATE_OUTOF": "out of",
"APPOINTMENT_PATIENT_ID": "Patient ID",
"APPOINTMENT_PATIENT_NAME": "Patient Name",
"APPOINTMENT_PATIENT_AGE": "Patient Age",
"APPOINTMENT_PATIENT_GENDER": "Patient Gender",
"APPOINTMENT_PATIENT_AUXILIARY_IDENTIFIER": "Patient Auxiliary Identifier",
"APPOINTMENT_CHECKIN_TIME_KEY": "Check in time",
"APPOINTMENT_SERVICE_TYPE_FULL": "Service Appointment Type",
"APPOINTMENT_WALK_IN": "Walk In",
Expand Down
3 changes: 3 additions & 0 deletions i18n/appointments/locale_fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@
"APPOINTMENT_CREATE_OUTOF": "out of",
"APPOINTMENT_PATIENT_ID": "Patient ID",
"APPOINTMENT_PATIENT_NAME": "Patient Name",
"APPOINTMENT_PATIENT_AGE": "Patient Age",
"APPOINTMENT_PATIENT_GENDER": "Patient Gender",
"APPOINTMENT_PATIENT_AUXILIARY_IDENTIFIER": "Patient Auxiliary Identifier",
"APPOINTMENT_CHECKIN_TIME_KEY": "Check in time",
"APPOINTMENT_SERVICE_TYPE_FULL": "Service Appointment Type",
"APPOINTMENT_WALK_IN": "Walk In",
Expand Down
3 changes: 3 additions & 0 deletions i18n/appointments/locale_pt_BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@
"APPOINTMENT_CREATE_OUTOF": "out of",
"APPOINTMENT_PATIENT_ID": "Patient ID",
"APPOINTMENT_PATIENT_NAME": "Patient Name",
"APPOINTMENT_PATIENT_AGE": "Patient Age",
"APPOINTMENT_PATIENT_GENDER": "Patient Gender",
"APPOINTMENT_PATIENT_AUXILIARY_IDENTIFIER": "Patient Auxiliary Identifier",
"APPOINTMENT_CHECKIN_TIME_KEY": "Check in time",
"APPOINTMENT_SERVICE_TYPE_FULL": "Service Appointment Type",
"APPOINTMENT_WALK_IN": "Walk In",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ angular.module('bahmni.appointments')
{heading: 'APPOINTMENT_PATIENT_NAME', sortInfo: 'patient.name', class: true, enable: true},
{heading: 'APPOINTMENT_PATIENT_AGE', sortInfo: 'patient.age', class: true, enable: true},
{heading: 'APPOINTMENT_PATIENT_GENDER', sortInfo: 'patient.gender', class: true, enable: true},
{heading: 'APPOINTMENT_PATIENT_AUXILIARY_IDENTIFIER', class: true, enable: true},
{heading: 'APPOINTMENT_PATIENT_AUXILIARY_IDENTIFIER', sortInfo: 'auxiliary_identifiers', class: true, enable: true},
{heading: 'APPOINTMENT_DATE', sortInfo: 'date', enable: true},
{heading: 'APPOINTMENT_START_TIME_KEY', sortInfo: 'startDateTime', enable: true},
{heading: 'APPOINTMENT_END_TIME_KEY', sortInfo: 'endDateTime', enable: true},
Expand Down
7 changes: 7 additions & 0 deletions src/views/manage/list/listView.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@
<span ng-hide="shouldShowAppointmentsListPatientLink">{{::appointment.patient.identifier}}</span>
</td>
<td class="table-mid-width">{{::appointment.patient.name | titleCase}}</td>
<td class="table-mid-width">{{::appointment.patient.age}}</td>
<td class="table-mid-width">{{::appointment.patient.gender}}</td>
<td class="table-mid-width">
<p ng-repeat="auxiliary_identifiers in appointment.patient.auxiliary_identifiers">
{{auxiliary_identifiers}}
</p>
</td>
<td>{{::appointment.startDateTime | bahmniDate}}</td>
<td>{{::appointment.startDateTime | bahmniTime}}</td>
<td>{{::appointment.endDateTime | bahmniTime}}</td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -709,11 +709,11 @@ describe('AppointmentsListViewController', function () {

it("should have table info", function () {
var tableInfo = [{heading: 'APPOINTMENT_PATIENT_ID', sortInfo: 'patient.identifier', enable: true},
{heading: 'APPOINTMENT_PATIENT_NAME', sortInfo: 'patient.name', class: true, enable: true},
{heading: 'APPOINTMENT_PATIENT_NAME', sortInfo: 'patient.name', class: true, enable: true},
{heading: 'APPOINTMENT_PATIENT_AGE', sortInfo: 'patient.age', class: true, enable: true},
{heading: 'APPOINTMENT_PATIENT_GENDER', sortInfo: 'patient.gender', class: true, enable: true},
{heading: 'APPOINTMENT_PATIENT_AUXILIARY_IDENTIFIER', class: true, enable: true},
{heading: 'APPOINTMENT_DATE', sortInfo: 'date', enable: true},
{heading: 'APPOINTMENT_DATE', sortInfo: 'date', enable: true},
{heading: 'APPOINTMENT_START_TIME_KEY', sortInfo: 'startDateTime', enable: true},
{heading: 'APPOINTMENT_END_TIME_KEY', sortInfo: 'endDateTime', enable: true},
{heading: 'APPOINTMENT_PROVIDER', sortInfo: 'provider.name', class: true, enable: true},
Expand Down
3 changes: 3 additions & 0 deletions ui/i18n/appointments/locale_en.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@
"APPOINTMENT_CREATE_OUTOF": "out of",
"APPOINTMENT_PATIENT_ID": "Patient ID",
"APPOINTMENT_PATIENT_NAME": "Patient Name",
"APPOINTMENT_PATIENT_AGE": "Patient Age",
"APPOINTMENT_PATIENT_GENDER": "Patient Gender",
"APPOINTMENT_PATIENT_AUXILIARY_IDENTIFIER": "Patient Auxiliary Identifier",
"APPOINTMENT_CHECKIN_TIME_KEY": "Check in time",
"APPOINTMENT_SERVICE_TYPE_FULL": "Service Appointment Type",
"APPOINTMENT_WALK_IN": "Walk In",
Expand Down
3 changes: 3 additions & 0 deletions ui/i18n/appointments/locale_es.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@
"APPOINTMENT_CREATE_OUTOF": "out of",
"APPOINTMENT_PATIENT_ID": "Patient ID",
"APPOINTMENT_PATIENT_NAME": "Patient Name",
"APPOINTMENT_PATIENT_AGE": "Patient Age",
"APPOINTMENT_PATIENT_GENDER": "Patient Gender",
"APPOINTMENT_PATIENT_AUXILIARY_IDENTIFIER": "Patient Auxiliary Identifier",
"APPOINTMENT_CHECKIN_TIME_KEY": "Check in time",
"APPOINTMENT_SERVICE_TYPE_FULL": "Service Appointment Type",
"APPOINTMENT_WALK_IN": "Walk In",
Expand Down
3 changes: 3 additions & 0 deletions ui/i18n/appointments/locale_fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@
"APPOINTMENT_CREATE_OUTOF": "out of",
"APPOINTMENT_PATIENT_ID": "Patient ID",
"APPOINTMENT_PATIENT_NAME": "Patient Name",
"APPOINTMENT_PATIENT_AGE": "Patient Age",
"APPOINTMENT_PATIENT_GENDER": "Patient Gender",
"APPOINTMENT_PATIENT_AUXILIARY_IDENTIFIER": "Patient Auxiliary Identifier",
"APPOINTMENT_CHECKIN_TIME_KEY": "Check in time",
"APPOINTMENT_SERVICE_TYPE_FULL": "Service Appointment Type",
"APPOINTMENT_WALK_IN": "Walk In",
Expand Down
3 changes: 3 additions & 0 deletions ui/i18n/appointments/locale_pt_BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@
"APPOINTMENT_CREATE_OUTOF": "out of",
"APPOINTMENT_PATIENT_ID": "Patient ID",
"APPOINTMENT_PATIENT_NAME": "Patient Name",
"APPOINTMENT_PATIENT_AGE": "Patient Age",
"APPOINTMENT_PATIENT_GENDER": "Patient Gender",
"APPOINTMENT_PATIENT_AUXILIARY_IDENTIFIER": "Patient Auxiliary Identifier",
"APPOINTMENT_CHECKIN_TIME_KEY": "Check in time",
"APPOINTMENT_SERVICE_TYPE_FULL": "Service Appointment Type",
"APPOINTMENT_WALK_IN": "Walk In",
Expand Down

0 comments on commit ce11a20

Please sign in to comment.