Skip to content

fix: types and stuff #2857

fix: types and stuff

fix: types and stuff #2857

Triggered via push January 14, 2025 15:42
Status Failure
Total duration 1m 59s
Artifacts

main.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

9 errors and 12 warnings
src/__tests__/cohortCreation/cohortCreation.test.ts > test of buildEncounterFilter > should return complete build Encounter: src/__tests__/cohortCreation/cohortCreation.test.ts#L284
AssertionError: expected '_filter=(period-end ge 2024-09-06T00:…' to deeply equal '_filter=(period-end ge 2024-09-06T00:…' Expected: "_filter=(period-end ge 2024-09-06T00:00:00Z and period-end le 2024-09-07T00:00:00Z) or not (period-end eq "*")&_filter=(period-start ge 2024-09-05T00:00:00Z and period-start le 2024-09-05T00:00:00Z) or not (period-start eq "*")&admission-destination-type=reason1,reason2&admission-mode=entry1,entry2&admission-type=admission1,admission2&admit-source=provenance1,provenance2&class=prise1,prise2&discharge-disposition-mode=exit1,exit2&discharge-disposition=destination1,destination2&encounter-care-site=8312002244&length=ge1616&length=le1616&reason-code=mode1,mode2&start-age-visit=ge428&start-age-visit=le428&status=status1,status2&stay=sejour1,sejour2&subject.active=true" Received: "_filter=(period-end ge 2024-09-06T00:00:00Z and period-end le 2024-09-07T00:00:00Z) or not (period-end eq "*")&_filter=(period-start ge 2024-09-05T00:00:00Z and period-start le 2024-09-05T00:00:00Z) or not (period-start eq "*")&admission-destination-type=reason1,reason2&admission-mode=entry1,entry2&admission-type=admission1,admission2&admit-source=provenance1,provenance2&class=prise1,prise2&discharge-disposition-mode=exit1,exit2&discharge-disposition=destination1,destination2&encounter-care-site=scope_tree|8312002244&length=ge1616&length=le1616&reason-code=mode1,mode2&start-age-visit=ge428&start-age-visit=le428&status=status1,status2&stay=sejour1,sejour2&subject.active=true" ❯ src/__tests__/cohortCreation/cohortCreation.test.ts:284:114
src/__tests__/cohortCreation/cohortCreation.test.ts > test of buildDocumentFilter > should return complete documentCriteria: src/__tests__/cohortCreation/cohortCreation.test.ts#L309
AssertionError: expected '_filter=(encounter.period-end ge 2024…' to deeply equal '_filter=(encounter.period-end ge 2024…' Expected: "_filter=(encounter.period-end ge 2024-09-06T00:00:00Z and encounter.period-end le 2024-09-07T00:00:00Z) or not (encounter.period-end eq "*")&_filter=(encounter.period-start ge 2024-09-05T00:00:00Z and encounter.period-start le 2024-09-05T00:00:00Z) or not (encounter.period-start eq "*")&_text=cancer&contenttype=text/plain&date=ge2024-09-02T00:00:00Z&date=le2024-09-04T00:00:00Z&docstatus=http://hl7.org/fhir/CodeSystem/composition-status|final,http://hl7.org/fhir/CodeSystem/composition-status|preliminary&encounter.encounter-care-site=8312016825&encounter.status=cancelled&subject.active=true&type:not=doc-impor&type=crh-j,crh-chir" Received: "_filter=(encounter.period-end ge 2024-09-06T00:00:00Z and encounter.period-end le 2024-09-07T00:00:00Z) or not (encounter.period-end eq "*")&_filter=(encounter.period-start ge 2024-09-05T00:00:00Z and encounter.period-start le 2024-09-05T00:00:00Z) or not (encounter.period-start eq "*")&_text=cancer&contenttype=text/plain&date=ge2024-09-02T00:00:00Z&date=le2024-09-04T00:00:00Z&docstatus=http://hl7.org/fhir/CodeSystem/composition-status|final,http://hl7.org/fhir/CodeSystem/composition-status|preliminary&encounter.encounter-care-site=scope_tree|8312016825&encounter.status=cancelled&subject.active=true&type:not=doc-impor&type=crh-j,crh-chir" ❯ src/__tests__/cohortCreation/cohortCreation.test.ts:309:107
src/__tests__/cohortCreation/cohortCreation.test.ts > test of buildConditionFilter > should return complete conditionCriteria: src/__tests__/cohortCreation/cohortCreation.test.ts#L333
AssertionError: expected '_filter=(encounter.period-start ge 20…' to deeply equal '_filter=(encounter.period-start ge 20…' Expected: "_filter=(encounter.period-start ge 2024-09-05T00:00:00Z and encounter.period-start le 2024-09-05T00:00:00Z) or not (encounter.period-start eq "*")&_source=AREM&code=https://smt.esante.gouv.fr/terminologie-cim-10/|I841,https://smt.esante.gouv.fr/terminologie-cim-10/|I842&encounter.encounter-care-site=8312016825&encounter.period-end=ge2024-09-06T00:00:00Z&encounter.period-end=le2024-09-07T00:00:00Z&encounter.status=finished&orbis-status=fp,f&subject.active=true" Received: "_filter=(encounter.period-start ge 2024-09-05T00:00:00Z and encounter.period-start le 2024-09-05T00:00:00Z) or not (encounter.period-start eq "*")&_source=AREM&code=https://smt.esante.gouv.fr/terminologie-cim-10/|I841,https://smt.esante.gouv.fr/terminologie-cim-10/|I842&encounter.encounter-care-site=scope_tree|8312016825&encounter.period-end=ge2024-09-06T00:00:00Z&encounter.period-end=le2024-09-07T00:00:00Z&encounter.status=finished&orbis-status=fp,f&subject.active=true" ❯ src/__tests__/cohortCreation/cohortCreation.test.ts:333:107
src/__tests__/cohortCreation/cohortCreation.test.ts > test of buildProcedureFilter > should return complete procedureCriteria : src/__tests__/cohortCreation/cohortCreation.test.ts#L356
AssertionError: expected '_filter=(encounter.period-end ge 2024…' to deeply equal '_filter=(encounter.period-end ge 2024…' Expected: "_filter=(encounter.period-end ge 2024-09-06T00:00:00Z and encounter.period-end le 2024-09-07T00:00:00Z) or not (encounter.period-end eq "*")&_source=ORBIS&code=https://www.atih.sante.fr/plateformes-de-transmiss…ls/logiciels-espace-de-telechargement/id_lot/3550|000126,https://www.atih.sante.fr/plateformes-de-transmiss…ls/logiciels-espace-de-telechargement/id_lot/3550|000127&date=ge2024-09-06T00:00:00Z&date=le2024-09-06T00:00:00Z&encounter.encounter-care-site=8312016825&encounter.period-start=ge2024-09-05T00:00:00Z&encounter.period-start=le2024-09-05T00:00:00Z&encounter.status=entered-in-error&subject.active=true" Received: "_filter=(encounter.period-end ge 2024-09-06T00:00:00Z and encounter.period-end le 2024-09-07T00:00:00Z) or not (encounter.period-end eq "*")&_source=ORBIS&code=https://www.atih.sante.fr/plateformes-de-transmiss…ls/logiciels-espace-de-telechargement/id_lot/3550|000126,https://www.atih.sante.fr/plateformes-de-transmiss…ls/logiciels-espace-de-telechargement/id_lot/3550|000127&date=ge2024-09-06T00:00:00Z&date=le2024-09-06T00:00:00Z&encounter.encounter-care-site=scope_tree|8312016825&encounter.period-start=ge2024-09-05T00:00:00Z&encounter.period-start=le2024-09-05T00:00:00Z&encounter.status=entered-in-error&subject.active=true" ❯ src/__tests__/cohortCreation/cohortCreation.test.ts:356:107
src/__tests__/cohortCreation/cohortCreation.test.ts > test of buildClaimFilter > should return complete claimCriteria: src/__tests__/cohortCreation/cohortCreation.test.ts#L378
AssertionError: expected '_filter=(encounter.period-start ge 20…' to deeply equal '_filter=(encounter.period-start ge 20…' Expected: "_filter=(encounter.period-start ge 2024-09-04T00:00:00Z and encounter.period-start le 2024-09-07T00:00:00Z) or not (encounter.period-start eq "*")&created=ge2024-09-03T00:00:00Z&created=le2024-09-04T00:00:00Z&diagnosis=https://terminology.eds.aphp.fr/aphp-orbis-ghm|05C021,https://terminology.eds.aphp.fr/aphp-orbis-ghm|05C022,https://terminology.eds.aphp.fr/aphp-orbis-ghm|05C023,https://terminology.eds.aphp.fr/aphp-orbis-ghm|05C024&encounter.encounter-care-site=8312016825&encounter.period-end=ge2024-09-02T00:00:00Z&encounter.period-end=le2024-09-06T00:00:00Z&encounter.status=cancelled&patient.active=true" Received: "_filter=(encounter.period-start ge 2024-09-04T00:00:00Z and encounter.period-start le 2024-09-07T00:00:00Z) or not (encounter.period-start eq "*")&created=ge2024-09-03T00:00:00Z&created=le2024-09-04T00:00:00Z&diagnosis=https://terminology.eds.aphp.fr/aphp-orbis-ghm|05C021,https://terminology.eds.aphp.fr/aphp-orbis-ghm|05C022,https://terminology.eds.aphp.fr/aphp-orbis-ghm|05C023,https://terminology.eds.aphp.fr/aphp-orbis-ghm|05C024&encounter.encounter-care-site=nan|8312016825&encounter.period-end=ge2024-09-02T00:00:00Z&encounter.period-end=le2024-09-06T00:00:00Z&encounter.status=cancelled&patient.active=true" ❯ src/__tests__/cohortCreation/cohortCreation.test.ts:378:107
src/__tests__/cohortCreation/cohortCreation.test.ts > test of buildMedicationFilter > should return complete Medication administation criteria: src/__tests__/cohortCreation/cohortCreation.test.ts#L404
AssertionError: expected '_filter=(context.period-start ge 2024…' to deeply equal '_filter=(context.period-start ge 2024…' Expected: "_filter=(context.period-start ge 2024-09-04T00:00:00Z and context.period-start le 2024-09-07T00:00:00Z) or not (context.period-start eq "*")&code=https://terminology.eds.aphp.fr/atc|D01AA01,https://terminology.eds.aphp.fr/atc|D01AA02,https://terminology.eds.aphp.fr/smt-medicament-ucd|3400890000055&context.encounter-care-site=8312016825&context.period-end=ge2024-09-02T00:00:00Z&context.period-end=le2024-09-06T00:00:00Z&context.status=cancelled&dosage-route=CUTAN&effective-time=ge2024-09-03T00:00:00Z&effective-time=le2024-09-04T00:00:00Z&subject.active=true" Received: "_filter=(context.period-start ge 2024-09-04T00:00:00Z and context.period-start le 2024-09-07T00:00:00Z) or not (context.period-start eq "*")&code=https://terminology.eds.aphp.fr/atc|D01AA01,https://terminology.eds.aphp.fr/atc|D01AA02,https://terminology.eds.aphp.fr/smt-medicament-ucd|3400890000055&context.encounter-care-site=scope_tree|8312016825&context.period-end=ge2024-09-02T00:00:00Z&context.period-end=le2024-09-06T00:00:00Z&context.status=cancelled&dosage-route=CUTAN&effective-time=ge2024-09-03T00:00:00Z&effective-time=le2024-09-04T00:00:00Z&subject.active=true" ❯ src/__tests__/cohortCreation/cohortCreation.test.ts:404:107
src/__tests__/cohortCreation/cohortCreation.test.ts > test of buildMedicationFilter > should return default Medication administation criteria: src/__tests__/cohortCreation/cohortCreation.test.ts#L422
AssertionError: expected '_filter=(encounter.period-start ge 20…' to deeply equal '_filter=(encounter.period-start ge 20…' Expected: "_filter=(encounter.period-start ge 2024-09-04T00:00:00Z and encounter.period-start le 2024-09-07T00:00:00Z) or not (encounter.period-start eq "*")&category=172641&code=https://terminology.eds.aphp.fr/atc|D01AA01,https://terminology.eds.aphp.fr/atc|D01AA02,https://terminology.eds.aphp.fr/smt-medicament-ucd|3400890000055&encounter.encounter-care-site=8312016825&encounter.period-end=ge2024-09-02T00:00:00Z&encounter.period-end=le2024-09-06T00:00:00Z&encounter.status=cancelled&subject.active=true&validity-period-start=ge2024-09-03T00:00:00Z&validity-period-start=le2024-09-04T00:00:00Z" Received: "_filter=(encounter.period-start ge 2024-09-04T00:00:00Z and encounter.period-start le 2024-09-07T00:00:00Z) or not (encounter.period-start eq "*")&category=172641&code=https://terminology.eds.aphp.fr/atc|D01AA01,https://terminology.eds.aphp.fr/atc|D01AA02,https://terminology.eds.aphp.fr/smt-medicament-ucd|3400890000055&encounter.encounter-care-site=scope_tree|8312016825&encounter.period-end=ge2024-09-02T00:00:00Z&encounter.period-end=le2024-09-06T00:00:00Z&encounter.status=cancelled&subject.active=true&validity-period-start=ge2024-09-03T00:00:00Z&validity-period-start=le2024-09-04T00:00:00Z" ❯ src/__tests__/cohortCreation/cohortCreation.test.ts:422:107
src/__tests__/cohortCreation/cohortCreation.test.ts > test of buildObservationFilter > should return build complete obervation criteria: src/__tests__/cohortCreation/cohortCreation.test.ts#L445
AssertionError: expected '_filter=(encounter.period-start ge 20…' to deeply equal '_filter=(encounter.period-start ge 20…' Expected: "_filter=(encounter.period-start ge 2024-09-04T00:00:00Z and encounter.period-start le 2024-09-07T00:00:00Z) or not (encounter.period-start eq "*")&code=https://terminology.eds.aphp.fr/aphp-itm-anabio|I3356&date=ge2024-09-03T00:00:00Z&date=le2024-09-04T00:00:00Z&encounter.encounter-care-site=8312016825&encounter.period-end=ge2024-09-02T00:00:00Z&encounter.period-end=le2024-09-06T00:00:00Z&encounter.status=cancelled&status=Val&subject.active=true&value-quantity=3" Received: "_filter=(encounter.period-start ge 2024-09-04T00:00:00Z and encounter.period-start le 2024-09-07T00:00:00Z) or not (encounter.period-start eq "*")&code=https://terminology.eds.aphp.fr/aphp-itm-anabio|I3356&date=ge2024-09-03T00:00:00Z&date=le2024-09-04T00:00:00Z&encounter.encounter-care-site=scope_tree|8312016825&encounter.period-end=ge2024-09-02T00:00:00Z&encounter.period-end=le2024-09-06T00:00:00Z&encounter.status=cancelled&status=Val&subject.active=true&value-quantity=3" ❯ src/__tests__/cohortCreation/cohortCreation.test.ts:445:107
test
Process completed with exit code 1.
test
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/[email protected]. Please update your workflow to use either v3 or v4 of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-12-05-notice-of-upcoming-releases-and-breaking-changes-for-github-actions/#actions-cache-v1-v2-and-actions-toolkit-cache-package-closing-down
test
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test: src/components/CreationCohort/DiagramView/components/TemporalConstraintCard/TemporalConstraintCard.tsx#L38
React Hook useEffect has a missing dependency: 'temporalConstraints?.length'. Either include it or remove the dependency array
test: src/components/CreationCohort/DiagramView/components/TemporalConstraintCard/TemporalConstraintCard.tsx#L52
React Hook useEffect has missing dependencies: 'criteriaGroup', 'dispatch', 'selectedCriteria', and 'temporalConstraints'. Either include them or remove the dependency array
test: src/components/CreationCohort/DiagramView/index.tsx#L51
React Hook useEffect has a missing dependency: 'dispatch'. Either include it or remove the dependency array
test: src/components/CreationCohort/Modals/ModalCreateNewRequest/ModalCreateNewRequest.tsx#L112
React Hook useEffect has missing dependencies: '_fetchProject' and '_fetchRequestNumber'. Either include them or remove the dependency array
test: src/components/CreationCohort/Requeteur.tsx#L115
React Hook useCallback has missing dependencies: 'config.features.questionnaires.enabled' and 'valueSets.cache'. Either include them or remove the dependency array
test: src/components/CreationCohort/Requeteur.tsx#L125
React Hook useEffect has missing dependencies: 'criteriaGroup', 'dispatch', and 'selectedCriteria'. Either include them or remove the dependency array
test: src/components/Dashboard/BiologyList/index.tsx#L42
Arrow function has too many statements (31). Maximum allowed is 30
test: src/components/Dashboard/BiologyList/index.tsx#L177
React Hook useEffect has a missing dependency: 'getSavedFilters'. Either include it or remove the dependency array
test: src/components/Dashboard/BiologyList/index.tsx#L204
React Hook useEffect has missing dependencies: 'dispatch', 'groupId', and 'setSearchParams'. Either include them or remove the dependency array
test: src/components/Dashboard/BiologyList/index.tsx#L211
React Hook useEffect has a missing dependency: '_fetchBiology'. Either include it or remove the dependency array