Drawing a model only when it's inside another

Is there a way to make it so that a model renders only when it’s inside another specified model? For instance, I want to make it so that the blood layer would stay inside the blood bag only. The picture below shows what it looks like right now.