enabled creation/association of legacy episodes to patients when pulling them in from pas.
[OE-1984] made the legacyletters feature branch of the pas module set the episode dates correctly.
Reduce PAS connections
Merge branch 'release/1-moorfields' into feature/nice
First attempt to add mutex locking to assignments
Try raw SQL
Fixes
fix available check
catch empty assignment
Fix contact orphan
First attempt at spin lock for assignment model
debugging
avoid holding locked row
Fix primary phone saving
Clean up debug logging
debug logging
better debugging
update config in docs
Merge branch 'release/1-moorfields' into feature/nice
Merge branch 'feature/nice' into release/1.1-moorfields

Conflicts:
	components/PasService.php
Temporary hotfix to populate GP addresses with surgery addresses