Skip to content

Commit

Permalink
fix: fix some bug
Browse files Browse the repository at this point in the history
* release: release version 2.24.0

* fix: in biology, value can be negative - Ref gestion-de-projet#2271

* fix: resolve delete pmsi filter

* fix: fix age inconnu in deid when patient has under 1 months

* fix: clean clo

---------

Co-authored-by: mourads <111437871+mouradsellam2@users.noreply.github.com>
  • Loading branch information
Mehdi-BOUYAHIA and mouradsellam2 authored Sep 19, 2023
1 parent 6960ce1 commit eb5f647
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ const DemographicForm: React.FC<DemographicFormProps> = (props) => {
const _onSubmit = () => {
const errorType = _onCheckError()
setError(errorType)
console.log('defaultValues', defaultValues)
if (errorType === Error.NO_ERROR) return onChangeSelectedCriteria(defaultValues)
}

Expand Down
1 change: 1 addition & 0 deletions src/utils/age.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { AgeRangeType, CohortPatient } from 'types'
import moment from 'moment'

export const getAgeAphp = (ageValue: number | undefined, momentUnit: 'days' | 'months'): string => {
if (ageValue === 0 && momentUnit === 'months') return '< 1 mois'
if (!ageValue) return 'Âge inconnu'
let ageUnit: 'year' | 'month' | 'day' = 'year'
let ageUnitDisplay = ''
Expand Down
1 change: 0 additions & 1 deletion src/utils/cohortCreation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1477,7 +1477,6 @@ export async function unbuildRequest(_json: string): Promise<any> {
} else {
valueComparator = Comparators.GREATER_OR_EQUAL
valueMin = parseInt(value?.replace('ge', ''))
console.log('valueMin', valueMin)
}
} else if (value?.search('gt') === 0) {
valueComparator = Comparators.GREATER
Expand Down

0 comments on commit eb5f647

Please sign in to comment.