Skip to content

feat: harmonisation textuelle - Ref gestion-de-projet#2371 #2704

feat: harmonisation textuelle - Ref gestion-de-projet#2371

feat: harmonisation textuelle - Ref gestion-de-projet#2371 #2704

Triggered via push November 29, 2024 17:11
Status Failure
Total duration 2m 0s
Artifacts

main.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 10 warnings
Unhandled error: src/services/aphp/serviceValueSets.ts#L145
AxiosError: Network Error ❯ XMLHttpRequest.handleError node_modules/axios/lib/adapters/xhr.js:110:14 ❯ XMLHttpRequest.invokeTheCallbackFunction node_modules/jsdom/lib/jsdom/living/generated/EventHandlerNonNull.js:18:28 ❯ XMLHttpRequest.<anonymous> node_modules/jsdom/lib/jsdom/living/helpers/create-event-accessor.js:35:32 ❯ innerInvokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:338:25 ❯ invokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:274:3 ❯ XMLHttpRequestImpl._dispatch node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:221:9 ❯ fireAnEvent node_modules/jsdom/lib/jsdom/living/helpers/events.js:18:36 ❯ requestErrorSteps node_modules/jsdom/lib/jsdom/living/xhr/xhr-utils.js:131:3 ❯ Object.dispatchError node_modules/jsdom/lib/jsdom/living/xhr/xhr-utils.js:60:3 ❯ Request.<anonymous> node_modules/jsdom/lib/jsdom/living/xhr/XMLHttpRequest-impl.js:655:18 ❯ Axios.request node_modules/axios/lib/core/Axios.js:45:41 ❯ processTicksAndRejections node:internal/process/task_queues:95:5 ❯ Module.getChildrenFromCodes src/services/aphp/serviceValueSets.ts:145:15 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { description: undefined, number: undefined, fileName: undefined, lineNumber: undefined, columnNumber: undefined, config: { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false }, adapter: [ 'xhr', 'http', 'fetch' ], transformRequest: [ 'Function<transformRequest>' ], transformResponse: [ 'Function<transformResponse>' ], timeout: +0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, env: { FormData: 'Function<FormData>', Blob: 'Function<Blob>' }, validateStatus: 'Function<validateStatus>', headers: { Accept: 'application/fhir+json', 'Content-Type': 'application/json', Authorization: '***', authorizationMethod: 'JWT' }, baseURL: '/api/fhir', method: 'post', url: '/ValueSet/$expand', data: '{"resourceType":"Parameters","parameter":[{"name":"count","valueInteger":999},{"name":"valueSet","resource":{"resourceType":"ValueSet","url":"https://terminology.eds.aphp.fr/aphp-itm-anabio","compose":{"include":[{"filter":[{"op":"is-a","value":"I3356"}]}]}}},{"name":"excludeNested","valueString":"false"}]}' }, code: 'ERR_NETWORK', status: null } This error originated in "src/__tests__/cohortCreation/cohortCreation.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
src/__tests__/cohortCreation/cohortCreation.test.ts > test of buildConditionFilter > should return complete conditionCriteria: src/__tests__/cohortCreation/cohortCreation.test.ts#L314
AssertionError: expected [ 'subject.active=true', …(9) ] to deeply equal [ 'subject.active=true', …(9) ] - Expected + Received Array [ "subject.active=true", - "code=I841,I842", + "code=https://smt.esante.gouv.fr/terminologie-cim-10/|I841,https://smt.esante.gouv.fr/terminologie-cim-10/|I842", "orbis-status=fp,f", "_source=AREM", "encounter.encounter-care-site=8312016825", "encounter.status=finished", "", "", "_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 \"*\")", "encounter.period-end=ge2024-09-06T00:00:00Z&encounter.period-end=le2024-09-07T00:00:00Z", ] ❯ src/__tests__/cohortCreation/cohortCreation.test.ts:314:52
src/__tests__/cohortCreation/cohortCreation.test.ts > test of buildProcedureFilter > should return complete procedureCriteria : src/__tests__/cohortCreation/cohortCreation.test.ts#L337
AssertionError: expected [ 'subject.active=true', …(8) ] to deeply equal [ 'subject.active=true', …(8) ] - Expected + Received Array [ "subject.active=true", - "code=000126,000127", + "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", "encounter.encounter-care-site=8312016825", "encounter.status=entered-in-error", "date=ge2024-09-06T00:00:00Z", "date=le2024-09-06T00:00:00Z", "_source=ORBIS", "encounter.period-start=ge2024-09-05T00:00:00Z&encounter.period-start=le2024-09-05T00:00:00Z", "_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 \"*\")", ] ❯ src/__tests__/cohortCreation/cohortCreation.test.ts:337:52
src/__tests__/cohortCreation/cohortCreation.test.ts > test of buildClaimFilter > should return complete claimCriteria: src/__tests__/cohortCreation/cohortCreation.test.ts#L359
AssertionError: expected [ 'patient.active=true', …(7) ] to deeply equal [ 'patient.active=true', …(7) ] - Expected + Received Array [ "patient.active=true", - "diagnosis=05C021,05C022,05C023,05C024", + "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.status=cancelled", "created=ge2024-09-03T00:00:00Z", "created=le2024-09-04T00:00:00Z", "_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 \"*\")", "encounter.period-end=ge2024-09-02T00:00:00Z&encounter.period-end=le2024-09-06T00:00:00Z", ] ❯ src/__tests__/cohortCreation/cohortCreation.test.ts:359:48
src/__tests__/cohortCreation/cohortCreation.test.ts > test of buildObservationFilter > should return build complete obervation criteria: src/__tests__/cohortCreation/cohortCreation.test.ts#L426
AssertionError: expected [ …(9) ] to deeply equal [ …(9) ] - Expected + Received Array [ "subject.active=true&status=Val", - "code=I3356", + "code=https://terminology.eds.aphp.fr/aphp-itm-anabio|I3356", "encounter.encounter-care-site=8312016825", "encounter.status=cancelled", "date=ge2024-09-03T00:00:00Z", "date=le2024-09-04T00:00:00Z", - "value-quantity=3", + "value-quantity=le0,ge0", "_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 \"*\")", "encounter.period-end=ge2024-09-02T00:00:00Z&encounter.period-end=le2024-09-06T00:00:00Z", ] ❯ src/__tests__/cohortCreation/cohortCreation.test.ts:426:54
src/__tests__/utilsFunction/hierarchy.test.ts > Utility Functions > getMissingCodesWithSystems > should fetch missing codes across systems: src/__tests__/utilsFunction/hierarchy.test.ts#L140
AssertionError: expected "spy" to be called with arguments: [ 'code2', 'system2' ] Received: Number of calls: 0 ❯ src/__tests__/utilsFunction/hierarchy.test.ts:140:28
src/__tests__/utilsFunction/hierarchy.test.ts > Utility Functions > getMissingCodes > should identify missing codes: src/__tests__/utilsFunction/hierarchy.test.ts#L158
AssertionError: expected "spy" to be called at least once ❯ src/__tests__/utilsFunction/hierarchy.test.ts:158:28
src/__tests__/utilsFunction/hierarchy.test.ts > Utility Functions > createHierarchyRoot > should create a hierarchy root node: src/__tests__/utilsFunction/hierarchy.test.ts#L192
AssertionError: expected { id: '*', …(5) } to deeply equal { id: 'root', …(5) } - Expected + Received Object { "above_levels_ids": "", - "id": "root", + "id": "*", "inferior_levels_ids": "", "label": "Toute la hiérarchie", "status": 1, "system": "system1", } ❯ src/__tests__/utilsFunction/hierarchy.test.ts:192:22
src/__tests__/utilsFunction/hierarchy.test.ts > Utility Functions > getDisplayFromTree > should generate a display string from a tree: src/__tests__/utilsFunction/hierarchy.test.ts#L231
AssertionError: expected [ { id: 'code1', …(2) }, …(1) ] to be 'Label1, Label2' // Object.is equality - Expected: "Label1, Label2" + Received: Array [ Object { "id": "code1", "label": "Label1", "system": "system1", }, Object { "id": "code2", "label": "Label2", "system": "system1", }, ] ❯ src/__tests__/utilsFunction/hierarchy.test.ts:231:22
src/__tests__/utilsFunction/hierarchy.test.ts > Utility Functions > getDisplayFromTrees > should generate a display string from multiple trees: src/__tests__/utilsFunction/hierarchy.test.ts#L246
AssertionError: expected [ { id: 'code1', …(2) }, …(1) ] to be 'Label1, Label2' // Object.is equality - Expected: "Label1, Label2" + Received: Array [ Object { "id": "code1", "label": "Label1", "system": "system1", }, Object { "id": "code2", "label": "Label2", "system": "system2", }, ] ❯ src/__tests__/utilsFunction/hierarchy.test.ts:246:22
test: src/components/CreationCohort/DiagramView/components/LogicalOperator/components/CriteriaRightPanel/BiologyForm/index.tsx#L104
React Hook useEffect has a missing dependency: 'currentCriteria'. Either include it or remove the dependency array. You can also do a functional update 'setCurrentCriteria(c => ...)' if you only need 'currentCriteria' in the 'setCurrentCriteria' call
test: src/components/CreationCohort/DiagramView/components/LogicalOperator/components/CriteriaRightPanel/BiologyForm/index.tsx#L122
React Hook useEffect has missing dependencies: 'criteriaData.data.biologyData' and 'currentCriteria'. Either include them or remove the dependency array. You can also do a functional update 'setCurrentCriteria(c => ...)' if you only need 'currentCriteria' in the 'setCurrentCriteria' call
test: src/components/CreationCohort/DiagramView/components/LogicalOperator/components/CriteriaRightPanel/CcamForm/index.tsx#L74
React Hook useEffect has missing dependencies: 'criteriaData.data.ccamData' and 'currentCriteria'. Either include them or remove the dependency array. You can also do a functional update 'setCurrentCriteria(c => ...)' if you only need 'currentCriteria' in the 'setCurrentCriteria' call
test: src/components/CreationCohort/DiagramView/components/LogicalOperator/components/CriteriaRightPanel/Cim10Form/index.tsx#L87
React Hook useEffect has missing dependencies: 'criteriaData.data.cim10Diagnostic' and 'currentCriteria'. Either include them or remove the dependency array. You can also do a functional update 'setCurrentCriteria(c => ...)' if you only need 'currentCriteria' in the 'setCurrentCriteria' call
test: src/components/CreationCohort/DiagramView/components/LogicalOperator/components/CriteriaRightPanel/DocumentsForm/DocumentsForm.tsx#L115
React Hook useEffect has missing dependencies: 'defaultValues.search' and 'searchInputError'. Either include them or remove the dependency array. You can also do a functional update 'setSearchInputError(s => ...)' if you only need 'searchInputError' in the 'setSearchInputError' call