After aligning the code to make it easier to read, it appeared to me that it should not be correct. I would like you to remove the parts that are not fully implemented and have not been decided upon for FW, such as this one.
I believe I replaced all HD references to TD already, Could you be more specific. I only found one "_HD" and it is not in my range of defined alarms.
{ 24 , ALARM_ID_HD_ALARM_AUDIO_SELF_TEST_FAILURE , "TD | Service Required: Hemodialysis Device | A problem was detected with the hemodialysis device.\n- Locate the ID code found in the bottom left corner\nof the alarm screen.\n- Call service to report the issue and schedule a repair. | TD POST: Primary Alarm Current | TD alarm audio failed POST | If alarm audio current is NOT in expected range for than 1 second while alarm tone is being output | "},
Please refactor any structure, model, view, qml object, usage of TreatmentSetPoint (the naming is too general and confusing) to TreatmentParametersSetPoint. And please test with the simulator to ensure it is working as expected.