Bug Description
The unittest on adapter side breaks for: ExternalMessageXmlConverterTest#testMEASConvertXmls for the param doctordeclaration/test-files/meas/2025MEAS012345_MEAS_2025-A003-T904.xml does not map the "Person present condition" field, per example when "Dead" is defined in the XML.
This is not only unit test specific, but also occurs in runtime.
WARNING: After discussion @XavCol: this behavior must be implemented/fixed for all diseases.
Reproduction Steps
Run unit test: ExternalMessageXmlConverterTest#testMEASConvertXmls.
Expected Behavior
Person present condition / date of disease / cause of disease must be mapped using following logic:
<statutVital>enVie</statutVital> = nothing to do
if present map:
- /patient/dateDeces: 2025-07-07 -> Person.deathDate
if "Décédé suite à une cause différente"
- Person.presentCondition = PresentCondition#DEAD
- Person.causeOfDeath = CauseOfDeath.OTHER_CAUSE
- CaseData.outcome = ??
- CaseData.outcomeDate = ??
if "Décédé suite à la maladie"
- Person.presentCondition = PresentCondition#DEAD
- Person.causeOfDeath = CauseOfDeath.EPIDEMIC_DISEASE
- Person.causeOfDeathDisease = Disease of Doctors declaration
- CaseData.outcome = CaseOucome#DECEASED
- CaseData.outcomeDate = dateDeces (Xpath: /patient/dateDeces)
Affected Area(s)
Web app
SORMAS Version
1.104.0
Android version/Browser
Any
User Role(s)
Admin: XML processing for Doctor Declaration
Server URL
No response
Additional Information
No response
Bug Description
The unittest on adapter side breaks for:
ExternalMessageXmlConverterTest#testMEASConvertXmlsfor the paramdoctordeclaration/test-files/meas/2025MEAS012345_MEAS_2025-A003-T904.xmldoes not map the "Person present condition" field, per example when "Dead" is defined in the XML.This is not only unit test specific, but also occurs in runtime.
WARNING: After discussion @XavCol: this behavior must be implemented/fixed for all diseases.
Reproduction Steps
Run unit test:
ExternalMessageXmlConverterTest#testMEASConvertXmls.Expected Behavior
Person present condition / date of disease / cause of disease must be mapped using following logic:
<statutVital>enVie</statutVital>= nothing to doif present map:
if "Décédé suite à une cause différente"
if "Décédé suite à la maladie"
Affected Area(s)
Web app
SORMAS Version
1.104.0
Android version/Browser
Any
User Role(s)
Admin: XML processing for Doctor Declaration
Server URL
No response
Additional Information
No response