Scenario:
I have an existing resource in Medplum (such as a Patient or Practitioner). How can I send an invite request for this existing resource, ensuring that I can:
1. Assign an access policy at the time of sending the invite.
2. Set a default password for the resource.
3. Send an invite email.
4. Invite using existing resourceID
I need the invite to be specifically for an existing resource as currently inviteRequest creates a resource on its own. Any guidance or examples on how to achieve this would be greatly appreciated!