Patient chart DB access is converted to ORM