Repository metrics
- Stars
- (0 stars)
- PR merge metrics
- (PR metrics pending)
Description
Currently many of the types used in the schema (such as common meta data, clinician etc) are hardcoded in the models. They should be separated out into reusable functions. In some places the reusable functions have been written such as address and code but they are either not very modular or are just randomly scattered around the shop.
They should really live all together in their own little file and be imported where they are needed. I have made a placeholder for this but not got much further than that. Not only will this make everything cleaner it will make implementing future changes to the schema much less painful.
Edit: In general the models should be refactored to better reflect the structure and inheritance pattern of the schema.