eHealth Infrastructure (v2020.8)


OPERATION: persist-login

The official URL for this operation definition is:

This operation persists login information into CareTeams and PractitionerRoles The following elements of each careteam are mandatory: - id: Reference based on the careteam from the saml security token - status: any - name: any - reasonCode: any - participant: 1 for each careteam-role in the saml security token -- role: from the saml security token -- member: reference to the practitioner -- onBehalfOf: reference to organization (cannot be set currently because of a bug in hapi)

Persist-login will find each careteam, and update it with any new participants and roles from the input bundle. The input careteam resources are are used as a container for the participant list. The rest of the fields are not used. The following elements of each PractitionerRole are mandatory: - practitioner - organization - code: roles from the saml security token (CareteamParticipantRole valueset)

Persist-login will search for practitionerRoles for each combination of (practitioner, organization) and create it if it doesn't already exists.

URL: [base]/$persist-login