|
| 1 | +class CreateCaseCISUConstants: |
| 2 | + CISU_PATHS_TO_DELETE = [ |
| 3 | + "qualification.victims", |
| 4 | + "referenceVersion", |
| 5 | + "freetext", |
| 6 | + "location.geometry.point.coord.heading", |
| 7 | + "location.geometry.point.coord.speed", |
| 8 | + "location.geometry.sketch", |
| 9 | + "location.country", |
| 10 | + "location.locID", |
| 11 | + "location.locLabel", |
| 12 | + "location.city.detail", |
| 13 | + "initialAlert.id", |
| 14 | + "initialAlert.attachment", |
| 15 | + "initialAlert.reporting", |
| 16 | + "initialAlert.qualification", |
| 17 | + "initialAlert.location", |
| 18 | + "initialAlert.callTaker", |
| 19 | + "newAlert", |
| 20 | + ] |
| 21 | + |
| 22 | + HEALTH_PATHS_TO_DELETE = [ |
| 23 | + "owner", |
| 24 | + "patient", |
| 25 | + "medicalNote", |
| 26 | + "decision", |
| 27 | + "perimeter", |
| 28 | + "interventionType", |
| 29 | + "qualification.origin", |
| 30 | + "qualification.details", |
| 31 | + "location.detailedAddress.highway", |
| 32 | + "location.geometry.point.isAml", |
| 33 | + ] |
| 34 | + |
| 35 | + CISU_PATHS_TO_ADD_TO_INITIAL_ALERT_NOTES = [ |
| 36 | + {"path": "$.initialAlert.attachment", "label": "Pièces jointes :"}, |
| 37 | + {"path": "$.initialAlert.callTaker", "label": "Contact de l'opérateur SIS :"}, |
| 38 | + {"path": "$.freetext", "label": ""}, |
| 39 | + {"path": "$.newAlert", "label": "Nouvelles alertes :"}, |
| 40 | + ] |
| 41 | + |
| 42 | + MEDICAL_NOTE_KEY_TRANSLATIONS = { |
| 43 | + "freetext:": "Commentaire général :", |
| 44 | + "mainVictim:": "Victime principale :", |
| 45 | + "count:": "Nombre de victimes :", |
| 46 | + } |
| 47 | + |
| 48 | + DEFAULT_WHATS_HAPPEN = {"code": "C11.06.00", "label": "Autre nature de fait"} |
| 49 | + |
| 50 | + DEFAULT_LOCATION_EXTERNAL_INFO_TYPE = "AUTRE" |
| 51 | + |
| 52 | + DEFAULT_LOCATION_COUNTRY = "FR" |
| 53 | + |
| 54 | + LOCATION_PATH = "$.location" |
| 55 | + LOCATION_FREETEXT_PATH = f"{LOCATION_PATH}.freetext" |
| 56 | + LOCATION_CITY_DETAIL_PATH = f"{LOCATION_PATH}.city.detail" |
| 57 | + LOCATION_EXTERNAL_INFO_PATH = f"{LOCATION_PATH}.externalInfo" |
| 58 | + LOCATION_EXTERNAL_INFO_TYPE_PATH = "$.type" |
| 59 | + LOCATION_LOC_ID_PATH = f"{LOCATION_PATH}.locID" |
| 60 | + LOCATION_COUNTRY_PATH = f"{LOCATION_PATH}.country" |
| 61 | + |
| 62 | + INITIAL_ALERT_PATH = "$.initialAlert" |
| 63 | + INITIAL_ALERT_REPORTING_PATH = f"{INITIAL_ALERT_PATH}.reporting" |
| 64 | + INITIAL_ALERT_NOTES_PATH = f"{INITIAL_ALERT_PATH}.notes" |
| 65 | + INITIAL_ALERT_ID_PATH = f"{INITIAL_ALERT_PATH}.id" |
| 66 | + INITIAL_ALERT_CALL_TAKER_PATH = f"{INITIAL_ALERT_PATH}.callTaker" |
| 67 | + INITIAL_ALERT_RECEPTION_PATH = f"{INITIAL_ALERT_PATH}.reception" |
| 68 | + INITIAL_ALERT_QUALIFICATION_PATH = f"{INITIAL_ALERT_PATH}.qualification" |
| 69 | + INITIAL_ALERT_LOCATION_PATH = f"{INITIAL_ALERT_PATH}.location" |
| 70 | + |
| 71 | + QUALIFICATION_PATH = "$.qualification" |
| 72 | + QUALIFICATION_VICTIMS_PATH = f"{QUALIFICATION_PATH}.victims" |
| 73 | + QUALIFICATION_DETAILS_PRIORITY_PATH = f"{QUALIFICATION_PATH}.details.priority" |
| 74 | + QUALIFICATION_WHATS_HAPPEN_PATH = f"{QUALIFICATION_PATH}.whatsHappen" |
| 75 | + |
| 76 | + MEDICAL_NOTE_PATH = "$.medicalNote" |
| 77 | + |
| 78 | + OWNER_PATH = "$.owner" |
| 79 | + |
| 80 | + REFERENCE_VERSION_PATH = "$.referenceVersion" |
| 81 | + |
| 82 | + CREATION_PATH = "$.creation" |
0 commit comments