Contact Management
Contact is an individual or business of various types, such as staff member, system user and clients (Animal Owners).
Contacts in Merlin?
Contacts exist in Merlin, however you will not see this terminology in the front end, this is a generic term that covers multiple interaction and data points for example, the Clients in Reception (minus account elements), Users in Administration and Surgeons (Practitioners) in the Diary.
Contact Child Data
Within the Contact Domain there are several datapoints for managing all contact data, from the schema you will notice that all child data have their own endpoints providing you granular control such as collecting data in a progressive profile build fashion.
There are endpoints specifically for Clients, others for Practitioners and Users while others can be used across all 3.
Child data currently consists of:
- Addresses
- Numbers (Mobile, Home, etc)
- Data Consent
- Practitioner Locations
- Practitioner Qualifications
Relationships
A contact will be referenced across domains, and for different contexts, e.g. appointment will have a contact for Client and another for Practitioner.
The contact contains specific metadata which supports the relationships between these entities such as Contact type, e.g. You cannot add practitioner metadata to a Client.
In the current iteration there is a 1:1 relationship between Account and Contact.
This is due the current legacy support, however please plan for a 1:M relationship where 1 Account may have Many Billing accounts.
Related Limitations
- An Account cannot be created without a
Contact
of the Client Type. - A Contact cannot change Types, e.g. from Practitioner to Client.
Contact Schema
Please take note of the following points for this domain:
- Eligibility can only be applied to
tenants
that are charities. - Data Consent - Currently data consent can only be recorded to Client Types.
Cross Domain UUID References
Reference | Domain | Resource | Note |
---|---|---|---|
communication-type-uuid | communications | /communication-channels | Reference for communication preferences to the channels e.g. SMS, email. |
communication-channel-uuid | communications | /communication-types | Reference for communication perferences to the type of communication e.g. Marketing. |
Security Scopes
The following authorisation scopes are required to access different resources within this domain:
- contact-mgt:create
- contact-mgt:read
- contact-mgt:update
- contact-mgt:remove
- contact-mgt:contacts:create
- contact-mgt:contacts:read
- contact-mgt:contacts:update
- contact-mgt:contacts:remove
- contact-mgt:eligibility:create
- contact-mgt:eligibility:read
- contact-mgt:eligibility:update
- contact-mgt:eligibility:remove
- contact-mgt:practitioner:create
- contact-mgt:practitioner:read
- contact-mgt:practitioner:update
- contact-mgt:practitioner:remove