@@ -781,7 +781,7 @@ def check_if_fever_is_caused_by_malaria(
781
781
"""
782
782
783
783
# Call the DxTest RDT to diagnose malaria
784
- dx_result = diagnosis_function (' malaria_rdt' )
784
+ dx_result = diagnosis_function (" malaria_rdt" )
785
785
786
786
# Log the test: line-list of summary information about each test
787
787
logger .info (
@@ -797,10 +797,10 @@ def check_if_fever_is_caused_by_malaria(
797
797
)
798
798
799
799
# Severe malaria infection always returns positive RDT
800
- if true_malaria_infection_type == ' severe' :
801
- return ' severe_malaria'
802
- elif dx_result and true_malaria_infection_type in (' clinical' , ' asym' ):
803
- return ' clinical_malaria'
800
+ if true_malaria_infection_type == " severe" :
801
+ return " severe_malaria"
802
+ elif dx_result and true_malaria_infection_type in (" clinical" , " asym" ):
803
+ return " clinical_malaria"
804
804
else :
805
805
return "negative_malaria_test"
806
806
@@ -844,7 +844,7 @@ def do_at_generic_first_appt(
844
844
event , priority = 0 , topen = self .sim .date
845
845
)
846
846
847
- # return type ' clinical_malaria' includes asymptomatic infection
847
+ # return type " clinical_malaria" includes asymptomatic infection
848
848
elif malaria_test_result == "clinical_malaria" :
849
849
patient_details_updates ["ma_dx_counter" ] = patient_details .ma_dx_counter + 1
850
850
event = HSI_Malaria_Treatment (person_id = patient_id , module = self )
@@ -869,8 +869,8 @@ def do_at_generic_first_appt_emergency(
869
869
# symptoms of severe malaria.)
870
870
patient_details_updates = {}
871
871
872
- if ' severe_malaria' in symptoms :
873
- if patient_details .ma_tx == ' none' :
872
+ if " severe_malaria" in symptoms :
873
+ if patient_details .ma_tx == " none" :
874
874
# Check if malaria parasitaemia:
875
875
malaria_test_result = self .check_if_fever_is_caused_by_malaria (
876
876
true_malaria_infection_type = patient_details .ma_inf_type ,
@@ -883,8 +883,8 @@ def do_at_generic_first_appt_emergency(
883
883
)
884
884
885
885
# if any symptoms indicative of malaria and they have parasitaemia (would return a positive rdt)
886
- if malaria_test_result in (' severe_malaria' , ' clinical_malaria' ):
887
- patient_details_updates [' ma_dx_counter' ] = patient_details .ma_dx_counter + 1
886
+ if malaria_test_result in (" severe_malaria" , " clinical_malaria" ):
887
+ patient_details_updates [" ma_dx_counter" ] = patient_details .ma_dx_counter + 1
888
888
889
889
# Launch the HSI for treatment for Malaria, HSI_Malaria_Treatment will determine correct treatment
890
890
event = HSI_Malaria_Treatment_Complicated (
0 commit comments