Skip to content

Commit

Permalink
Update Shared Health Record Implementation (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
akileng56 authored Jul 12, 2024
1 parent 5e2d02d commit 3df265b
Show file tree
Hide file tree
Showing 16 changed files with 2,390 additions and 284 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"packages/*"
],
"scripts": {
"start": "openmrs develop --sources 'packages/esm-*-app' --backend http://194.163.171.253:8282",
"start": "openmrs develop --sources 'packages/esm-*-app'",
"ci:publish": "lerna publish from-package --yes",
"ci:prepublish": "lerna publish from-package --no-git-reset --yes --dist-tag next",
"release": "lerna version --no-git-tag-version",
Expand Down
3 changes: 1 addition & 2 deletions packages/esm-patient-registration-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@
"license": "MPL-2.0",
"homepage": "https://github.com/METS-Programme/esm-patient-registration-app#readme",
"scripts": {
"start": "openmrs develop --backend http://194.163.171.253:8282",
"start": "openmrs develop",
"serve": "webpack serve --mode=development",
"debug": "npm run serve",
"build": "webpack --mode production",
"analyze": "webpack --mode=production --env.analyze=true",
"lint": "cross-env TIMING=1 eslint src --ext ts,tsx",
"test": "cross-env TZ=UTC jest --config jest.config.js --verbose false --passWithNoTests --color",
"test:watch": "cross-env TZ=UTC jest --watch --config jest.config.js --color",
"coverage": "yarn test --coverage",
"typescript": "tsc",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React, { useMemo } from 'react';
import { useTranslation } from 'react-i18next';
import { Layer, TextInput, TextInputProps } from '@carbon/react';
import { Layer, TextInput } from '@carbon/react';
import { useField } from 'formik';

interface InputProps extends TextInputProps {
interface InputProps {
checkWarning?(value: string): string;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React, { useEffect, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { Layer, Search, SearchProps } from '@carbon/react';
import { Layer, Search } from '@carbon/react';
import styles from './autosuggest.scss';

interface AutosuggestProps extends SearchProps {
interface AutosuggestProps {
getDisplayValue: Function;
getFieldValue: Function;
getSearchResults: (query: string) => Promise<any>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,18 +132,6 @@
justify-content: flex-end;
}

:global(.omrs-breakpoint-lt-desktop) {
.toolbarWrapper {
height: spacing.$spacing-09;
}
}

:global(.omrs-breakpoint-gt-tablet) {
.toolbarWrapper {
height: spacing.$spacing-07;
}
}

.tableContainer {
padding: 0;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ export async function handleSavePatientToRegistry(
showToast({
title: `${selectedRegistry} error`,
description: `${error}`,
millis: 10000,
kind: 'error',
critical: true,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ const PatientVerification: React.FC<PatientVerificationProps> = ({
showToast({
title: 'Client registry error',
description: `Please reload the registration page and try again, if the issue persists contact system administrator`,
millis: 10000,
kind: 'error',
critical: true,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const patientRegistries = [
uuid: '',
id: 2,
name: 'Shared Health Record (SHR)',
url: 'http://165.232.114.52:8080',
url: 'http://165.227.170.84:9091',
},
{
uuid: '',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ const MultiplePatientPrompt: React.FC<MultiplePatientPromptProps> = ({ close, on
<div className="cds--modal-content">
{patient.length > 0 ? <DataList data={patient} columns={registryPatientHeaders} /> : <EmptyStateComponent />}
</div>
<div className="cds--modal-footer">
<Button kind="secondary" onClick={close}>
{t('close', 'Close')}
</Button>
</div>
</>
);
};
Expand Down
1 change: 1 addition & 0 deletions packages/esm-patient-registration-app/translations/am.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"birthFieldLabelText": "Birth",
"cancel": "Cancel",
"causeOfDeathInputLabel": "Cause of Death",
"close": "Close",
"configure": "Configure",
"contactSection": "Contact Details",
"continue": "Continue to registration",
Expand Down
1 change: 1 addition & 0 deletions packages/esm-patient-registration-app/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"birthFieldLabelText": "Birth",
"cancel": "Cancel",
"causeOfDeathInputLabel": "Cause of Death",
"close": "Close",
"configure": "Configure",
"contactSection": "Contact Details",
"continue": "Continue",
Expand Down
1 change: 1 addition & 0 deletions packages/esm-patient-registration-app/translations/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"birthFieldLabelText": "Birth",
"cancel": "Cancel",
"causeOfDeathInputLabel": "Cause of Death",
"close": "Close",
"configure": "Configure",
"contactSection": "Contact Details",
"continue": "Continue to registration",
Expand Down
1 change: 1 addition & 0 deletions packages/esm-patient-registration-app/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"birthFieldLabelText": "Naissance",
"cancel": "Annuller",
"causeOfDeathInputLabel": "Cause de décès",
"close": "Close",
"configure": "Configurer",
"contactSection": "Contact Details",
"continue": "Continue to registration",
Expand Down
1 change: 1 addition & 0 deletions packages/esm-patient-registration-app/translations/he.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"birthFieldLabelText": "לידה",
"cancel": "ביטול",
"causeOfDeathInputLabel": "סיבת המוות",
"close": "Close",
"configure": "הגדר",
"contactSection": "Contact Details",
"continue": "Continue to registration",
Expand Down
1 change: 1 addition & 0 deletions packages/esm-patient-registration-app/translations/km.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"birthFieldLabelText": "ថ្ងៃខែឆ្នាំកំណើត",
"cancel": "បោះបង់ចោល",
"causeOfDeathInputLabel": "មូលហេតុនៃការស្លាប់",
"close": "Close",
"configure": "កំណត់រចនាសម្ព័ន្ធ",
"contactSection": "Contact Details",
"continue": "Continue to registration",
Expand Down
Loading

0 comments on commit 3df265b

Please sign in to comment.