Skip to content

Commit

Permalink
Initial commit to fork management for kenyaemr
Browse files Browse the repository at this point in the history
  • Loading branch information
donaldkibet committed Jun 19, 2024
1 parent 122acce commit 84beb4e
Show file tree
Hide file tree
Showing 18 changed files with 160 additions and 218 deletions.
64 changes: 0 additions & 64 deletions .github/workflows/e2e.yml

This file was deleted.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openmrs/esm-patient-management",
"version": "7.0.0",
"version": "7.0.1",
"private": true,
"description": "Patient management microfrontend for the OpenMRS 3.x frontend",
"workspaces": [
Expand All @@ -11,7 +11,7 @@
"ci:publish": "yarn workspaces foreach --all --topological --exclude @openmrs/esm-patient-management npm publish --access public --tag latest",
"ci:prepublish": "yarn workspaces foreach --all --topological --exclude @openmrs/esm-patient-management npm publish --access public --tag next",
"release": "yarn workspaces foreach --all --topological version",
"verify": "turbo run lint typescript test --concurrency=1",
"verify": "turbo run lint typescript --concurrency=1",
"test-e2e": "playwright test",
"postinstall": "husky install"
},
Expand Down
9 changes: 5 additions & 4 deletions packages/esm-active-visits-app/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@openmrs/esm-active-visits-app",
"version": "7.0.0",
"name": "@kenyaemr/esm-active-visits-app",
"version": "7.0.2",
"description": "Active visits widget microfrontend for the OpenMRS SPA",
"browser": "dist/openmrs-esm-active-visits-app.js",
"browser": "dist/kenyaemr-esm-active-visits-app.js",
"main": "src/index.ts",
"source": true,
"license": "MPL-2.0",
Expand Down Expand Up @@ -50,5 +50,6 @@
},
"devDependencies": {
"webpack": "^5.74.0"
}
},
"stableVersion": "7.0.1"
}
2 changes: 1 addition & 1 deletion packages/esm-active-visits-app/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { configSchema } from './config-schema';
import activeVisitsComponent from './active-visits-widget/active-visits.component';
import visitDetailComponent from './visits-summary/visit-detail.component';

const moduleName = '@openmrs/esm-active-visits-app';
const moduleName = '@kenyaemr/esm-active-visits-app';

const options = {
featureName: 'active-visits',
Expand Down
9 changes: 5 additions & 4 deletions packages/esm-appointments-app/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@openmrs/esm-appointments-app",
"version": "7.0.0",
"name": "@kenyaemr/esm-appointments-app",
"version": "7.0.2",
"description": "Appointments front-end module for the OpenMRS SPA",
"browser": "dist/openmrs-esm-appointments-app.js",
"browser": "dist/kenyaemr-esm-appointments-app.js",
"main": "src/index.ts",
"source": true,
"license": "MPL-2.0",
Expand Down Expand Up @@ -52,5 +52,6 @@
},
"devDependencies": {
"webpack": "^5.74.0"
}
},
"stableVersion": "7.0.1"
}
2 changes: 1 addition & 1 deletion packages/esm-appointments-app/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const spaHomePage = ` ${window.getOpenmrsSpaBase()}home`;
export const omrsDateFormat = 'YYYY-MM-DDTHH:mm:ss.SSSZZ';
export const appointmentLocationTagName = 'Appointment Location';

export const moduleName = '@openmrs/esm-appointments-app';
export const moduleName = '@kenyaemr/esm-appointments-app';

export const datePickerPlaceHolder = 'dd/mm/yyyy';
export const dateFormat = 'DD/MM/YYYY';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -275,22 +275,22 @@ const AppointmentsForm: React.FC<AppointmentsFormProps> = ({
const appointmentPayload = constructAppointmentPayload(data);

// check if Duplicate Response Occurs
const response: FetchResponse = await checkAppointmentConflict(appointmentPayload);
let errorMessage = t('appointmentConflict', 'Appointment conflict');
if (response?.data?.hasOwnProperty('SERVICE_UNAVAILABLE')) {
errorMessage = t('serviceUnavailable', 'Appointment time is outside of service hours');
} else if (response?.data?.hasOwnProperty('PATIENT_DOUBLE_BOOKING')) {
errorMessage = t('patientDoubleBooking', 'Patient already booked for an appointment at this time');
}
if (response.status === 200) {
setIsSubmitting(false);
showSnackbar({
isLowContrast: true,
kind: 'error',
title: errorMessage,
});
return;
}
// const response: FetchResponse = await checkAppointmentConflict(appointmentPayload);
// let errorMessage = t('appointmentConflict', 'Appointment conflict');
// if (response?.data?.hasOwnProperty('SERVICE_UNAVAILABLE')) {
// errorMessage = t('serviceUnavailable', 'Appointment time is outside of service hours');
// } else if (response?.data?.hasOwnProperty('PATIENT_DOUBLE_BOOKING')) {
// errorMessage = t('patientDoubleBooking', 'Patient already booked for an appointment at this time');
// }
// if (response.status === 200) {
// setIsSubmitting(false);
// showSnackbar({
// isLowContrast: true,
// kind: 'error',
// title: errorMessage,
// });
// return;
// }

// Construct recurring pattern payload
const recurringAppointmentPayload = {
Expand Down
9 changes: 5 additions & 4 deletions packages/esm-patient-list-management-app/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@openmrs/esm-patient-list-management-app",
"version": "7.0.0",
"name": "@kenyaemr/esm-patient-list-management-app",
"version": "7.0.2",
"description": "Microfrontend for managing patient lists in O3",
"browser": "dist/openmrs-esm-patient-list-management-app.js",
"browser": "dist/kenyaemr-esm-patient-list-management-app.js",
"main": "src/index.ts",
"source": true,
"license": "MPL-2.0",
Expand Down Expand Up @@ -51,5 +51,6 @@
},
"devDependencies": {
"webpack": "^5.74.0"
}
},
"stableVersion": "7.0.1"
}
2 changes: 1 addition & 1 deletion packages/esm-patient-list-management-app/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import rootComponent from './root.component';
import listDetailsTableComponent from './list-details-table/list-details-table.component';
import addPatientToPatientListMenuItemComponent from './add-patient-to-patient-list-menu-item.component';

const moduleName = '@openmrs/esm-patient-list-management-app';
const moduleName = '@kenyaemr/esm-patient-list-management-app';

const options = {
featureName: 'patient list',
Expand Down
5 changes: 3 additions & 2 deletions packages/esm-patient-registration-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kenyaemr/esm-patient-registration-app",
"version": "6.0.1-pre.1.0.6",
"version": "7.0.2",
"description": "Patient registration microfrontend for the OpenMRS SPA",
"browser": "dist/kenyaemr-esm-patient-registration-app.js",
"main": "src/index.ts",
Expand Down Expand Up @@ -53,5 +53,6 @@
},
"devDependencies": {
"webpack": "^5.74.0"
}
},
"stableVersion": "7.0.1"
}
3 changes: 1 addition & 2 deletions packages/esm-patient-registration-app/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"configureIdentifiers": "Configure identifiers",
"contactSection": "Contact Details",
"continue": "Continue",
"createNew": "Create New",
"createNewPatient": "Create new patient",
"dateOfBirth": "Date of birth",
"dateOfBirthLabelText": "Date of Birth",
"deathDateInputLabel": "Date of Death",
Expand Down Expand Up @@ -70,7 +70,6 @@
"obsFieldUnknownDatatype": "Concept for obs field '{{fieldDefinitionId}}' has unknown datatype '{{datatypeName}}'",
"optional": "optional",
"other": "Other",
"patient": "Patient",
"patientDetailsFound": "Patient information found in the registry, do you want to use the information to continue with registration?",
"patientName": "Patient name",
"patientNameKnown": "Patient's Name is Known?",
Expand Down
9 changes: 5 additions & 4 deletions packages/esm-patient-search-app/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@openmrs/esm-patient-search-app",
"version": "7.0.0",
"name": "@kenyaemr/esm-patient-search-app",
"version": "7.0.2",
"description": "Patient search microfrontend for the OpenMRS SPA",
"browser": "dist/openmrs-esm-patient-search-app.js",
"browser": "dist/kenyaemr-esm-patient-search-app.js",
"main": "src/index.ts",
"source": true,
"license": "MPL-2.0",
Expand Down Expand Up @@ -49,5 +49,6 @@
},
"devDependencies": {
"webpack": "^5.74.0"
}
},
"stableVersion": "7.0.1"
}
2 changes: 1 addition & 1 deletion packages/esm-patient-search-app/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import patientSearchIconComponent from './patient-search-icon';
import patientSearchButtonComponent from './patient-search-button/patient-search-button.component';
import patientSearchBarComponent from './compact-patient-search-extension';

const moduleName = '@openmrs/esm-patient-search-app';
const moduleName = '@kenyaemr/esm-patient-search-app';

const options = {
featureName: 'patient-search',
Expand Down
9 changes: 5 additions & 4 deletions packages/esm-service-queues-app/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@openmrs/esm-service-queues-app",
"version": "7.0.0",
"name": "@kenyaemr/esm-service-queues-app",
"version": "7.0.2",
"description": "Outpatient front-end module for the OpenMRS SPA",
"browser": "dist/openmrs-esm-service-queues-app.js",
"browser": "dist/kenyaemr-esm-service-queues-app.js",
"main": "src/index.ts",
"source": true,
"license": "MPL-2.0",
Expand Down Expand Up @@ -49,5 +49,6 @@
},
"devDependencies": {
"webpack": "^5.74.0"
}
},
"stableVersion": "7.0.1"
}
2 changes: 1 addition & 1 deletion packages/esm-service-queues-app/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import VisitFormQueueFields from './patient-search/visit-form-queue-fields/visit

export const importTranslation = require.context('../translations', false, /.json$/, 'lazy');

const moduleName = '@openmrs/esm-service-queues-app';
const moduleName = '@kenyaemr/esm-service-queues-app';

const options = {
featureName: 'outpatient',
Expand Down
9 changes: 5 additions & 4 deletions packages/esm-ward-app/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@openmrs/esm-ward-app",
"version": "7.0.0",
"name": "@kenyaemr/esm-ward-app",
"version": "7.0.2",
"description": "Ward and bed management module for O3",
"browser": "dist/openmrs-esm-ward-app.js",
"browser": "dist/kenyaemr-esm-ward-app.js",
"main": "src/index.ts",
"source": true,
"license": "MPL-2.0",
Expand Down Expand Up @@ -49,5 +49,6 @@
},
"devDependencies": {
"webpack": "^5.74.0"
}
},
"stableVersion": "7.0.1"
}
2 changes: 1 addition & 1 deletion packages/esm-ward-app/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import rootComponent from './root.component';

export const importTranslation = require.context('../translations', false, /.json$/, 'lazy');

const moduleName = '@openmrs/esm-ward-app';
const moduleName = '@kenyaemr/esm-ward-app';

const options = {
featureName: 'ward',
Expand Down
Loading

0 comments on commit 84beb4e

Please sign in to comment.