Castle for eletronic health record