Project Hospital
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Go down
RayRoy
RayRoy
resident
Posts : 19
Reputation : 6
Join date : 2018-11-26

Emergency X-Ray Room/Examination  Empty Emergency X-Ray Room/Examination

Mon Jun 10, 2019 11:27 am
Good news, my suggestion is being considered for a possible future update. In the meantime, it seems that more people are engaging in the modding community and from there, I learn more about the modding/editing from them and what possibilities are out there.

If I remember correctly, QEUH made an improvement to a large sandbox hospital a while back and I like his idea of adding an X-ray room next to the trauma center - which is likely what the real hospital do. I implemented the same to my trauma center, however, the problem is that patients from any department could use the X-ray, so TC patients more often than not didn't really get to be examined in the strategically sensible X-ray room.

So I decided to experiment a bit by creating a simple mod that adds a separate X-ray room and examinations to the emergency department, I just lazily call it "Emergency X-Ray." This X-Ray room will only, exclusively examines patients from the emergency department. To allows only observation ward and TC patients to be examined here, just uncheck the clinic patients from the radiologist's card. I kept the vanilla X-ray and Emergency X-ray examination separated, but what can it unraveled is perfectly identical.

Obviously the dev have a better idea on how to implement it through employee roles system, which is more flexible than creating an entire new room and have to go through every symptoms that can be revealed by the X-ray. However, modding something like that is beyond my amateur abilities, but I'm intrigued by the new room/new examination approach of this mod I made.

So far, the mod have been working without any problems on the gameplay, and I'm very happy with the result. Although it needs to be polished a bit, the only remaining things to do is -

1. Give technologist a radiology specialization filter in the staff hiring box - While I found a way to add technologists with radiology specialization into the emergency department hiring pool, I have unsuccessfully add a relevant filter into the hiring box (the same way you can filter technologist with USG specialization in other department). This problem doesn't impact the functionality of the mod, but it'll be great if I could fix this, let me know if anyone knows how to fix this.

2. Make automatic Emergency X-Ray a priority over normal X-Ray - This might involves deleting some of the line, and it seems to be easily done. Though I also have an alternative of preserving the option to get hospitalized emergency patients to get examined at the vanilla X-ray department by editing the priority value, though I have to test it.

3. Complete the examination options for the Emergency X-Ray - This is easy, simply going through all the lines in diagnosis/symptom .xml files that allows the Emergency X-ray to reveals the symptom. Since my mod is just "proof of concept" at the moment, I lazily clone the "X-ray torso" section, edit it and applied that to all symptoms that can be revealed by the vanilla X-ray. So the Emergency X-ray can reveal a leg fracture from animations that X-ray the torso. I'll organize it better later on, but it's a trivial fix. I left the vanilla X-ray option alone and add the relevant Emergency X-ray line next to it.

And I like said earlier, I'm just an amateur, so I'm seeking advice and suggestions from the more tech-savvy players on what I might missed or how could I make this better.


Here's every lines I added to get this mod:

---------------------- RoomTypes----------------------

<GameDBRoomType ID="ROOM_TYPE_EMERGENCY_X_RAY_ROOM">
<AbbreviationLocID>ROOM_TYPE_EMERGENCY_X_RAY_ROOM_DESCRIPTION</AbbreviationLocID>
<TextureID>392</TextureID>
<IconIndex>816</IconIndex>
<AccessRights>PATIENT_PROCEDURE</AccessRights>

<RequiredEquipment>
<GameDBRequiredEquipment> <Tag>ui_pc</Tag> <MinCount>1</MinCount> </GameDBRequiredEquipment>
<GameDBRequiredEquipment> <Tag>ui_xray_control_panel</Tag> <MinCount>1</MinCount> </GameDBRequiredEquipment>
<GameDBRequiredEquipment> <Tag>ui_xray_machine</Tag> <MinCount>1</MinCount> </GameDBRequiredEquipment>
<GameDBRequiredEquipment> <Tag>ui_xray_viewer</Tag> <MinCount>1</MinCount> </GameDBRequiredEquipment>
<GameDBRequiredEquipment> <Tag>ui_cabinets_equipment</Tag> <MinCount>1</MinCount> </GameDBRequiredEquipment> <!-- because of barrium swallov xray exm-->
</RequiredEquipment>

<!--Will block the room for hospitalized patients :/ AcceptsOutpatients>true</AcceptsOutpatients-->

<LockedByDefault>false</LockedByDefault>

<BuildingModeFilters>
<Tag>ui_office_desk</Tag>
<Tag>ui_chair_office</Tag>
<Tag>ui_cabinets</Tag>
<Tag>ui_card_file</Tag>
<Tag>ui_privacy_screens</Tag>
<Tag>ui_equipment_table</Tag>
</BuildingModeFilters>

<Tags>
<Tag>lab_specialist_workspace</Tag>
</Tags>

<RequiredSkill>SKILL_LAB_SPECIALIST_SPEC_RADIOLOGY</RequiredSkill>

<MinWidth>5</MinWidth>
<MinHeight>5</MinHeight>
<StatisticsMultiplier>2.0</StatisticsMultiplier>
</GameDBRoomType>

---------------------- Departments----------------------

<HospitalizationLockedByDefault>true</HospitalizationLockedByDefault>

<LabQualification>SKILL_LAB_SPECIALIST_SPEC_RADIOLOGY</LabQualification>

<MinDoctorLevel>1</MinDoctorLevel>

<GameDBDepartmentRoomRequirement>
<RoomDatabaseEntryRef>ROOM_TYPE_EMERGENCY_X_RAY_ROOM</RoomDatabaseEntryRef>
<MinCount>0</MinCount>
<MaxCount>1</MaxCount>
</GameDBDepartmentRoomRequirement>

---------------------- Examinations----------------------

<GameDBExamination ID="EXM_EMERGENCY_X_RAY">
<AbbreviationLocID>EXM_EMERGENCY_X_RAY_DESCRIPTION</AbbreviationLocID>
<DiscomfortLevel>Low</DiscomfortLevel>
<Procedure>
<StaffSelectionRules>REQUIRED_ROOM_IGNORE_DOCTOR</StaffSelectionRules>
<RequiredSkillsToPrescribe>
<SkillRef>SKILL_DOC_QUALIF_GENERAL_MEDICINE</SkillRef>
</RequiredSkillsToPrescribe>
<RequiredStatLabQualificationRef>SKILL_LAB_SPECIALIST_SPEC_RADIOLOGY</RequiredStatLabQualificationRef>
<RequiredEquipmentList>
<RequiredEquipment>
<Tag>x_ray_bed</Tag>
</RequiredEquipment>
<RequiredEquipment>
<Tag>x_ray_panel</Tag>
</RequiredEquipment>
<RequiredEquipment>
<Tag>x_ray_board</Tag>
</RequiredEquipment>
<RequiredEquipment>
<Tag>xray_viewer</Tag>
</RequiredEquipment>
<RequiredEquipment>
<Tag>x_ray_machine_anim</Tag>
</RequiredEquipment>
</RequiredEquipmentList>
<RequiredRoomTypeList>
<RequiredRoomTypeRef>ROOM_TYPE_EMERGENCY_X_RAY_ROOM</RequiredRoomTypeRef>
</RequiredRoomTypeList>
<ProcedureScript>ProcedureScriptExaminationXray</ProcedureScript>
<ProcedureAnimationState>STANDING</ProcedureAnimationState>
<AnimationSetupLying>
<AnimationNameIn>move_start_torso</AnimationNameIn>
<AnimationNameOut>move_end_torso</AnimationNameOut>
</AnimationSetupLying>
<AnimationSetupSitting>
<AnimationNameIn>move_start_torso</AnimationNameIn>
<AnimationNameOut>move_end_torso</AnimationNameOut>
</AnimationSetupSitting>
<DressLevel>FULL</DressLevel>
<Priority>0</Priority>
<AnimationFrame>4</AnimationFrame>
</Procedure>
<Cost>50</Cost>
<IconIndex>1669</IconIndex>
<DurationHours>0</DurationHours>
</GameDBExamination>

---------------------- StringTableEnBuildingMode----------------------

<GameDBLocalizedString> <LocID>ROOM_TYPE_EMERGENCY_X_RAY_ROOM</LocID> <Text>Emergency X-ray room</Text> </GameDBLocalizedString>
<GameDBLocalizedString> <LocID>ROOM_TYPE_EMERGENCY_X_RAY_ROOM_DESCRIPTION</LocID> <Text>The X-ray room provides X-ray imaging of different parts of human body, depicting structures beneath the skin and muscles.\n\nMin. Staff requirements: \n1x Technologist - Radiologist</Text> </GameDBLocalizedString>


---------------------- StringTableEnExaminations----------------------

<GameDBLocalizedString> <LocID>EXM_EMERGENCY_X_RAY</LocID> <Text>Emergency X-ray</Text> </GameDBLocalizedString>
<GameDBLocalizedString> <LocID>EXM_EMERGENCY_X_RAY_DESCRIPTION</LocID> <Text>Emergency X-ray imaging. \n\nRequired room: Emergency X-ray room</Text> </GameDBLocalizedString>


---------------------- DiagnosesORTHO---------------------- & ---------------------- Symptoms_main----------------------

<ExaminationRef>EXM_EMERGENCY_X_RAY</ExaminationRef>


Add this line to the following (incomplete):

Spondylolisthesis
Shoulder dislocation
Knee dislocation
Dislocated ankle
Simple fracture of ulna
Open fracture of ulna
Complicated fracture of ulna
Simple fracture of radius
Simple fracture of humerus
Open fracture of humerus
Open fracture of humerus
Complicated fracture of humerus
Brokebn ribs
Simple fracture of femur
Open fracture of femur
Complicated fracture of femur
Simple fracture of tibia
Spiral fracture of tibia
Simple fracture of fibula
Open fracture of tibia
Ankle fracture
Metatarsal bones fracture
Fracture of finger
Mandibular fracture
Nasal fracture
QEUH
QEUH
specialist
Posts : 239
Reputation : 42
Join date : 2018-03-26
Location : Glasgow

Emergency X-Ray Room/Examination  Empty Re: Emergency X-Ray Room/Examination

Mon Jun 10, 2019 12:10 pm
I designed the large sandbox map (and the updated version) based on how it's done at the hospital I work in, with imaging being directly adjacent to the emergency department.

Good idea for a mod!
avatar
MedJet
specialist
Posts : 206
Reputation : 2
Join date : 2018-11-21

Emergency X-Ray Room/Examination  Empty Re: Emergency X-Ray Room/Examination

Tue Jun 11, 2019 12:25 am
excellent idea -- i'll be following this thread. I really miss the older version of the TC - ICU interaction. Right now TC care only allows for stabilization -- no diagnostics -- and really railroads one into coming up with a diagnosis so they can be sent to a dept. I'd love to see the ability to conduct diagnostic activities in TC expand a bit.
Sponsored content

Emergency X-Ray Room/Examination  Empty Re: Emergency X-Ray Room/Examination

Back to top
Permissions in this forum:
You cannot reply to topics in this forum