-
Notifications
You must be signed in to change notification settings - Fork 0
feat(converter): conversion RC-RI/RS-RI #326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(converter): conversion RC-RI/RS-RI #326
Conversation
…er and conversion mixin
|
|
| resources = get_field_value( | ||
| output_use_case_json, ResourcesInfoCISUConstants.RESOURCE_PATH | ||
| ) | ||
|
|
||
| for resource in resources: | ||
| state = get_field_value(resource, ResourcesInfoCISUConstants.STATE_PATH) | ||
| set_value(resource, ResourcesInfoCISUConstants.STATE_PATH, [state]) | ||
|
|
||
| return cls.format_rs_output_json(output_json, output_use_case_json) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment gère-t-on la différence de cardinalité entre cisu (0..n) et health (1..n) ? si le RC-RI ne contient aucune ressource ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bonne question, pour l'instant on laissera le dispatcher échouer à la validation en attendant de voir s'il s'agit d'une coquille dans le modèle de nexsis (il semble peu pertinent d'envoyer un RC-RI sans ressource, le message étant alors presque vide)
| DEFAULT_CISU_STATE_VEHICLE_TYPE = "SMUR" | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok pour le moment, en espérant obtenir une troisième valeur dans l'enum
bou3108
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Petite question sur la direction CISU -> health en l'absence de ressource
4a6e062
into
refactor/converter/cisu-conversion-pipeline
🔎 Détails
Conversion des messages de type RC-RI en RS-RI et inversement
📄 Documentation
📸 Captures d'écran
🔗 Ticket associé
Asana