Skip to content

Commit

Permalink
(feat) KHP3-6944 : Add KDOD cascading units and cadre and required id…
Browse files Browse the repository at this point in the history
…entifiers for civilian rank
  • Loading branch information
donaldkibet committed Oct 28, 2024
1 parent b122872 commit 805b620
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 236 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { Field, type FieldProps } from 'formik';
import { Layer, Select, SelectItem } from '@carbon/react';
import { useTranslation } from 'react-i18next';
import classNames from 'classnames';
import { evaluateAsBoolean } from '@openmrs/esm-framework';
import { PatientRegistrationContext } from '../../patient-registration-context';
import styles from './../field.scss';

Expand Down Expand Up @@ -47,7 +46,8 @@ const CustomPersonAttributeField: React.FC<CustomPersonAttributeFieldProps> = ({
}) => {
const { t } = useTranslation();
const fieldName = `attributes.${personAttributeType.uuid}`;
const { setFieldValue, values } = useContext(PatientRegistrationContext) as PatientRegistrationContextType;
const context = useContext(PatientRegistrationContext) as PatientRegistrationContextType;
const { setFieldValue, values } = context;

// TODO: Improve this logic
const filteredCustomConceptAnswers = customConceptAnswers.filter((answer) => {
Expand Down

This file was deleted.

101 changes: 0 additions & 101 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2853,23 +2853,6 @@ __metadata:
languageName: node
linkType: hard

"@openmrs/esm-active-visits-app@workspace:packages/esm-active-visits-app":
version: 0.0.0-use.local
resolution: "@openmrs/esm-active-visits-app@workspace:packages/esm-active-visits-app"
dependencies:
"@carbon/react": "npm:~1.37.0"
lodash-es: "npm:^4.17.15"
webpack: "npm:^5.74.0"
peerDependencies:
"@openmrs/esm-framework": 5.x
dayjs: 1.x
react: ^18.1.0
react-dom: ^18.1.0
react-i18next: 11.x
swr: 2.x
languageName: unknown
linkType: soft

"@openmrs/esm-api@npm:5.8.2-pre.2420":
version: 5.8.2-pre.2420
resolution: "@openmrs/esm-api@npm:5.8.2-pre.2420"
Expand Down Expand Up @@ -2920,42 +2903,6 @@ __metadata:
languageName: node
linkType: hard

"@openmrs/esm-appointments-app@workspace:packages/esm-appointments-app":
version: 0.0.0-use.local
resolution: "@openmrs/esm-appointments-app@workspace:packages/esm-appointments-app"
dependencies:
"@carbon/react": "npm:~1.37.0"
formik: "npm:^2.2.9"
lodash-es: "npm:^4.17.15"
webpack: "npm:^5.74.0"
yup: "npm:^0.32.11"
peerDependencies:
"@openmrs/esm-framework": 5.x
"@openmrs/esm-patient-common-lib": 8.x
react: 18.x
react-i18next: 11.x
react-router-dom: 6.x
swr: 2.x
languageName: unknown
linkType: soft

"@openmrs/esm-bed-management-app@workspace:packages/esm-bed-management-app":
version: 0.0.0-use.local
resolution: "@openmrs/esm-bed-management-app@workspace:packages/esm-bed-management-app"
dependencies:
"@carbon/react": "npm:~1.37.0"
lodash-es: "npm:^4.17.15"
webpack: "npm:^5.74.0"
peerDependencies:
"@openmrs/esm-framework": 5.x
dayjs: 1.x
react: 18.x
react-i18next: 11.x
react-router-dom: 6.x
swr: 2.x
languageName: unknown
linkType: soft

"@openmrs/esm-config@npm:5.8.2-pre.2420":
version: 5.8.2-pre.2420
resolution: "@openmrs/esm-config@npm:5.8.2-pre.2420"
Expand Down Expand Up @@ -3203,22 +3150,6 @@ __metadata:
languageName: unknown
linkType: soft

"@openmrs/esm-patient-search-app@workspace:packages/esm-patient-search-app":
version: 0.0.0-use.local
resolution: "@openmrs/esm-patient-search-app@workspace:packages/esm-patient-search-app"
dependencies:
"@carbon/react": "npm:~1.37.0"
lodash-es: "npm:^4.17.15"
webpack: "npm:^5.74.0"
peerDependencies:
"@openmrs/esm-framework": 5.x
react: ^18.1.0
react-i18next: 11.x
react-router-dom: 6.x
swr: 2.x
languageName: unknown
linkType: soft

"@openmrs/esm-react-utils@npm:5.8.2-pre.2420":
version: 5.8.2-pre.2420
resolution: "@openmrs/esm-react-utils@npm:5.8.2-pre.2420"
Expand Down Expand Up @@ -3261,22 +3192,6 @@ __metadata:
languageName: node
linkType: hard

"@openmrs/esm-service-queues-app@workspace:packages/esm-service-queues-app":
version: 0.0.0-use.local
resolution: "@openmrs/esm-service-queues-app@workspace:packages/esm-service-queues-app"
dependencies:
"@carbon/react": "npm:~1.37.0"
lodash-es: "npm:^4.17.15"
webpack: "npm:^5.74.0"
peerDependencies:
"@openmrs/esm-framework": 5.x
react: ^18.1.0
react-i18next: 11.x
react-router-dom: 6.x
swr: 2.x
languageName: unknown
linkType: soft

"@openmrs/esm-state@npm:5.8.2-pre.2420":
version: 5.8.2-pre.2420
resolution: "@openmrs/esm-state@npm:5.8.2-pre.2420"
Expand Down Expand Up @@ -3346,22 +3261,6 @@ __metadata:
languageName: node
linkType: hard

"@openmrs/esm-ward-app@workspace:packages/esm-ward-app":
version: 0.0.0-use.local
resolution: "@openmrs/esm-ward-app@workspace:packages/esm-ward-app"
dependencies:
"@carbon/react": "npm:~1.37.0"
lodash-es: "npm:^4.17.15"
webpack: "npm:^5.74.0"
peerDependencies:
"@openmrs/esm-framework": 5.x
react: ^18.1.0
react-i18next: 11.x
react-router-dom: 6.x
swr: 2.x
languageName: unknown
linkType: soft

"@openmrs/webpack-config@npm:5.8.2-pre.2420":
version: 5.8.2-pre.2420
resolution: "@openmrs/webpack-config@npm:5.8.2-pre.2420"
Expand Down

0 comments on commit 805b620

Please sign in to comment.