Refactor some schemaextender things
Missing client/patient view code

WIP