Skip to content

Commit

Permalink
feat: rename criteria tabs from hierarchy to exploration - Ref gestio…
Browse files Browse the repository at this point in the history
…n-de-projet#2238

feat: rename criteria tabs from hierarchy to exploration - Ref gestion-de-projet#2238

Co-authored-by: mourads <mourad.sellam@open-groupe.com>
Co-authored-by: Mehdi-BOUYAHIA <63298037+Mehdi-BOUYAHIA@users.noreply.github.com>
  • Loading branch information
3 people authored Oct 17, 2023
1 parent 9f46642 commit 592e685
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@ import { initSyncHierarchyTableEffect, OBSERVATION, syncOnChangeFormValue } from
import { PmsiListType } from 'state/pmsi'
import { fetchBiology } from 'state/biology'
import { useAppDispatch, useAppSelector } from 'state'
import { Comparators } from 'types'
import { EXPLORATION } from 'utils/constants'

import { Comparators, CriteriaDrawerComponentProps } from 'types'


export const defaultBiology = {
type: OBSERVATION,
title: 'Critères de biologie',
Expand Down Expand Up @@ -73,7 +77,7 @@ const Index = (props: CriteriaDrawerComponentProps) => {
value={selectedTab}
onChange={(e, tab) => setSelectedTab(tab)}
>
<Tab label="Hiérarchie" value="hierarchy" />
<Tab label={EXPLORATION} value="hierarchy" />
<Tab label="Recherche" value="search" />
<Tab label="Formulaire" value="form" />
</Tabs>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@ import CcamHierarchy from './components/Hierarchy/CCAMHierarchy'
import { initSyncHierarchyTableEffect, PROCEDURE, syncOnChangeFormValue } from 'utils/pmsi'
import { useAppDispatch, useAppSelector } from 'state'
import { fetchProcedure, PmsiListType } from 'state/pmsi'
import { EXPLORATION } from 'utils/constants'

import { CriteriaDrawerComponentProps } from 'types'


export const defaultProcedure = {
type: PROCEDURE,
title: "Critères d'actes CCAM",
Expand Down Expand Up @@ -70,7 +73,7 @@ const Index = (props: CriteriaDrawerComponentProps) => {
value={selectedTab}
onChange={(e, tab) => setSelectedTab(tab)}
>
<Tab label="Hiérarchie" value="hierarchy" />
<Tab label={EXPLORATION} value="hierarchy" />
<Tab label="Formulaire" value="form" />
</Tabs>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ import useStyles from './styles'
import { CONDITION, initSyncHierarchyTableEffect, syncOnChangeFormValue } from 'utils/pmsi'
import { useAppDispatch, useAppSelector } from 'state'
import { fetchCondition, PmsiListType } from 'state/pmsi'
import { EXPLORATION } from 'utils/constants'
import { CriteriaDrawerComponentProps } from 'types'


export const defaultCondition = {
type: CONDITION,
title: 'Critère de diagnostic',
Expand Down Expand Up @@ -71,7 +73,7 @@ const Index = (props: CriteriaDrawerComponentProps) => {
value={selectedTab}
onChange={(e, tab) => setSelectedTab(tab)}
>
<Tab label="Hiérarchie" value="hierarchy" />
<Tab label={EXPLORATION} value="hierarchy" />
<Tab label="Formulaire" value="form" />
</Tabs>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import useStyles from './styles'
import { useAppDispatch, useAppSelector } from 'state'
import { CLAIM, initSyncHierarchyTableEffect, syncOnChangeFormValue } from 'utils/pmsi'
import { fetchClaim, PmsiListType } from 'state/pmsi'
import { EXPLORATION } from 'utils/constants'
import { CriteriaDrawerComponentProps } from 'types'

export const defaultDemographic = {
Expand Down Expand Up @@ -73,7 +74,7 @@ const Index = (props: CriteriaDrawerComponentProps) => {
value={selectedTab}
onChange={(e, tab) => setSelectedTab(tab)}
>
<Tab label="Hiérarchie" value="hierarchy" />
<Tab label={EXPLORATION} value="hierarchy" />
<Tab label="Formulaire" value="form" />
</Tabs>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { useAppDispatch, useAppSelector } from 'state'
import { initSyncHierarchyTableEffect, MEDICATION_REQUEST, syncOnChangeFormValue } from 'utils/pmsi'
import { fetchMedication } from 'state/medication'
import { PmsiListType } from 'state/pmsi'
import { EXPLORATION } from 'utils/constants'

export const defaultMedication: MedicationDataType = {
type: MEDICATION_REQUEST,
Expand Down Expand Up @@ -76,7 +77,7 @@ const Index = (props: CriteriaDrawerComponentProps) => {
value={selectedTab}
onChange={(e, tab) => setSelectedTab(tab)}
>
<Tab label="Exploration" value="exploration" />
<Tab label={EXPLORATION} value="hierarchy" />
<Tab label="Formulaire" value="form" />
</Tabs>

Expand Down
2 changes: 2 additions & 0 deletions src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ export enum JobStatus {
pending = 'pending',
suspended = 'suspended'
}

export const EXPLORATION = 'Exploration'

0 comments on commit 592e685

Please sign in to comment.