You go through the yellow door with Tenmyouji to reach the Infirmary.
The first step is to collect items around the room.
Take the metal piece from the desk.
Get the scalpel from the table with the basin on it.
Look under the table with the basin on it to find a worn out key.
Take the jar of white powder from the middle right shelf.
Slide open the right panel below the shelf to get a memory card and a piece of paper.
Get the metal stake from the third bed.
Combine the metal piece with the metal stake to make a key.
Use the two keys on the grid of pills next to the door.
Take the pill grid that slides out of the wall and tilt it to slide everything to the correct place. Here is one way to do it: right, up, left, up, right, up, left, down, right
After this, count how many there are of each pill symbol.
12 = green
2 = red
6 = yellow
5 = blue
Go to the medicine shelf and tap the area with the blue, yellow, and red buttons. Enter the number that you counted from the grid. There were 5 blue symbols, 6 yellow, 2 red, so enter 5, 6, 2.
You get a note from the drawer. It says 3 yellow, 1 blue, 2 red.
Use the scalpel on the second bed to get the extra sheet.
Touch the arrows on the monitor on the wall and put the blue memory card in. This further explains the note you found earlier.
Pour the white powder from the shelf into the basin. Then turn the sink on and use the empty jar on the water. Pour the water from the jar into the basin.
Use the dirty sheet on the basin full of detergent.
Get the Secret File Password
Take your clean sheet and compare it with the grid of pills next to the door. You have to just do this mentally. Count how many blue, yellow, and red pills are covered up by the numbers on the clean sheet. 2, 2, 1. Enter that into the shelf where you entered 5, 6, 2 earlier. The other drawer opens, giving you a new clean sheet. Put this sheet onto the ADAM bed, then touch the red button on the ADAM. Tap the handheld scanning device on top of the ADAM, then scan the clean sheet in order of the numbers. You should get the code "FOUND". Press Check to get the green password.
Get the Escape Password
Put the other clean sheet (the one with symbols on it) onto the ADAM bed, then touch the red button on the ADAM. Tap the handheld scanning device on top of the ADAM, then scan the clean sheet in order of the numbers. For the pills, remember the note that you found earlier that said 3 yellow (triangle), 1 blue (round pill), 2 red (bottle). This tells you the numbers that those pills represent. You should get the code "CURED". Press Check to get the blue password.
Find the Safe
The safe is in the bottom left door of the shelf with the pills on it. Enter the passwords to get the secret file and the escape key.
After the Escape
After the lounge, you eventually have to play the Ambidex Game. You and Phi go into an Ambidex Room together because you are a pair, and you have to vote against Tenmyouji, who is the solo who went with you. It doesn't matter what you choose in Rock, Paper, Scissors. You will win no matter what.