How do you get value from Firebase?

You do not appear to be applying any secure rules to your data in the realtime database, for personal medical history this is a must! You can use Firebase Authentication and Secure Rules to help you with this.