Fix medicalsyncapi view for schema changes.
Merge pull request #1176 from learning-unlimited/medicalsyncapi-schema-fixes

Medicalsyncapi schema fixes