+
+ ),
+ disabled: !hasGroupRead,
+ },
+ {
+ label: t('User roles'),
+ key: 'Roles',
+ children: (
+
+ ),
+ },
+ {
+ label: t('Practitioners'),
+ key: 'Practitioners',
+ children: (
+
+ ),
+ disabled: !hasPractitionerRead,
+ },
+ {
+ label: t('CareTeams'),
+ key: 'CareTeams',
+ children: (
+
+ ),
+ disabled: !hasPractitionerRead,
+ },
+ {
+ label: t('Organizations'),
+ key: 'Organizations',
+ children: (
+
+ ),
+ disabled: !hasPractitionerRead,
+ },
+ ]}
+ />
+
+
);
};
diff --git a/packages/fhir-location-management/package.json b/packages/fhir-location-management/package.json
index 691c3f793..cbfb2c14e 100644
--- a/packages/fhir-location-management/package.json
+++ b/packages/fhir-location-management/package.json
@@ -35,6 +35,8 @@
"@onaio/redux-reducer-registry": "^0.0.9",
"@onaio/session-reducer": "0.0.12",
"@onaio/utils": "^0.0.1",
+ "@opensrp/fhir-group-management": "^0.0.5",
+ "@opensrp/fhir-helpers": "workspace:^",
"@opensrp/notifications": "^0.0.5",
"@opensrp/pkg-config": "^0.0.9",
"@opensrp/rbac": "workspace:^",
diff --git a/packages/fhir-location-management/src/components/AddEditLocationUnit/base.tsx b/packages/fhir-location-management/src/components/AddEditLocationUnit/base.tsx
new file mode 100644
index 000000000..01593cd1e
--- /dev/null
+++ b/packages/fhir-location-management/src/components/AddEditLocationUnit/base.tsx
@@ -0,0 +1,120 @@
+import React from 'react';
+import { RouteComponentProps, useHistory, useLocation, useParams } from 'react-router';
+import { LocationFormProps, LocationForm } from '../LocationForm';
+import { defaultValidationRulesFactory, getLocationFormFields } from '../LocationForm/utils';
+import { Col, Spin } from 'antd';
+import { BodyLayout } from '@opensrp/react-utils';
+import { Helmet } from 'react-helmet';
+import { BrokenPage, Resource404 } from '@opensrp/react-utils';
+import { useGetLocation, useGetLocationHierarchy } from '../../helpers/utils';
+import { useMls } from '../../mls';
+import { parentIdQueryParam, BACK_SEARCH_PARAM } from '../../constants';
+
+export type LocationRouteProps = { id?: string };
+
+/** full props for the new location component */
+export interface BaseNewEditLocationUnitProps
+ extends Pick<
+ LocationFormProps,
+ 'hidden' | 'disabled' | 'disabledTreeNodesCallback' | 'successURLGenerator'
+ >,
+ RouteComponentProps