Skip to content

Commit 7951236

Browse files
authored
Merge pull request #388 from ansforge/converter/rc-ri-single-message
Converter: RC-RI single message conversion
2 parents 37363c5 + 63846f2 commit 7951236

51 files changed

Lines changed: 2537 additions & 470 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/converter-tests.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,9 @@ jobs:
6363
path: tools/converter/htmlcov
6464
retention-days: 7
6565

66-
- name: Run ReportGenerator for test coverage
67-
uses: danielpalme/ReportGenerator-GitHub-Action@5.1.23
68-
with:
69-
reports: ./converter/coverage.xml
70-
targetdir: coveragereport
7166

7267
- name: Pytest coverage comment
73-
uses: MishaKav/pytest-coverage-comment@v1.1.53
68+
uses: MishaKav/pytest-coverage-comment@v1.7.1
7469
with:
7570
pytest-xml-coverage-path: ./converter/coverage.xml
7671
title: "Converter - python code coverage"

converter/README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,14 @@ Development mode:
5959
FLASK_APP=converter.converter \
6060
FLASK_ENV=development \
6161
FLASK_DEBUG=1 \
62-
uv run python -m flask run --port 8080
62+
uv run python -m flask run --port 8083
63+
# in a Linux environment, add --host 0.0.0.0
6364
```
6465

65-
*Note :* enable prometheus metrics, add `DEBUG_METRICS=1` in the above command.
66+
*Notes :*
67+
68+
- enable prometheus metrics, add `DEBUG_METRICS=1` in the above command.
69+
- utiliser le port 8083 pour lancer le converter avec la configuration par défaut du setup de dev local
6670

6771
Production mode (using Gunicorn):
6872

converter/converter/cisu/resources_info/resources_info_cisu_constants.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ class ResourcesInfoCISUConstants:
33
STATE_PATH = "$.state"
44
VEHICLE_TYPE_PATH = "$.vehicleType"
55

6+
CASE_ID_FIELD = "caseId"
7+
RESOURCE_ID_KEY = "resourceId"
68
PATIENT_ID_KEY = "patientId"
9+
POSITION_KEY = "position"
710

811
VEHICLE_TYPE_SIS = "SIS"
912
VEHICLE_TYPE_SMUR = "SMUR"
10-
VEHICULE_TYPE_OTHER = "AUTRE"
11-
12-
RS_VEHICULE_TYPE_AUTREVEC = "AUTREVEC"

0 commit comments

Comments
 (0)