RA-36 - Refactor PIH's EMR, splitting it into API and multiple apps