Fix ServiceManager test.
updated tests, refactored a bunch of stuff, wrote resourceToModel().
Merge branch 'feature/transactions' of github.com:openeyes/OpenEyes into feature/transactions
DataObjectTest bugfixes
maybe fixed unit test
Add country fixture to ModelConverterTest.
removed db code
Merge branch 'feature/transactions' of github.com:openeyes/OpenEyes into feature/transactions
Methods to filter resource values when going to/from FHIR representation.
FHIR conversions for Address.
Remove magic for now as Yii's autoloader thwarts it.

We can think about a better way to handle this later.
GenderService::getReferenceByName().
FHIR conversions for Patient.
Fix tests broken due to patient gender becoming a resource.
Don't generate references where there is no ID in the source model.
fixed bug where new $patient returns 0 for the pk if there are no rows in patient_metadata_keys.
bugfixes and test bugfixes and tests.
Merge branch 'feature/transactions' of github.com:openeyes/OpenEyes into feature/transactions
fixed tests
fixed parameter order