- juraj.horvathspecialist
- Posts : 146
Reputation : 8
Join date : 2018-08-07
Age : 44
Location : Bratislava, Slovak Republic
[Enhancement] [dnSpy] Releasing from observation when no hospitalization is needed
Wed Jan 01, 2020 11:31 pm
Description
If you have undiagnosed patient in ER observation without possibility to do any examinations, the game tries to release patient from ER observation room. If all possible diagnoses are in one department, the game tries to move patient to hospitalization part of this department, regardless if any of symptoms need hospitalization treatment - good example is Crohn's disease and Ulcerative colitis. In is not necessary to send patient to hospitalization part, if possible diseases can be cured on clinic. Especially on start, you don't have money to get hospitalization part working.
I was investigating with dnSpy the situation and find out, that probably everything about releasing from ER observaton is done in
Lopital.HospitalizationComponent.CheckPatientPlacement method. Instead of
I tried the proposed change and I didn't noticed any other side effects.
If you have undiagnosed patient in ER observation without possibility to do any examinations, the game tries to release patient from ER observation room. If all possible diagnoses are in one department, the game tries to move patient to hospitalization part of this department, regardless if any of symptoms need hospitalization treatment - good example is Crohn's disease and Ulcerative colitis. In is not necessary to send patient to hospitalization part, if possible diseases can be cured on clinic. Especially on start, you don't have money to get hospitalization part working.
I was investigating with dnSpy the situation and find out, that probably everything about releasing from ER observaton is done in
Lopital.HospitalizationComponent.CheckPatientPlacement method. Instead of
- Code:
if (department.HasWorkingHospitalization())
{
this.m_entity.Log("Department changed to " + department.GetDepartmentType().DatabaseID);
component2.ChangeDepartment(department, true, false);
return true;
}
- Code:
if (component.m_state.m_medicalCondition.AnySymptomNeedsHospitalization() && department.HasWorkingHospitalization())
{
this.m_entity.Log("Department changed to " + department.GetDepartmentType().DatabaseID + ", hospitalization needed.");
component.ChangeDepartment(department, true, false);
return true;
}
if (!component.m_state.m_medicalCondition.AnySymptomNeedsHospitalization())
{
if (this.IsOnObservation())
{
this.ReleaseFromObservation();
}
this.m_entity.Log("Department changed to " + department.GetDepartmentType().DatabaseID + ", hospitalization not needed.");
component.ChangeDepartment(department, false, false);
return true;
}
I tried the proposed change and I didn't noticed any other side effects.
Permissions in this forum:
You cannot reply to topics in this forum
|
|