<OperationDefinition xmlns="http://hl7.org/fhir"> <id value="-s-persist-login"/> <text> <status value="generated"/> <div xmlns="http://www.w3.org/1999/xhtml"><h2>persist-login</h2><p>OPERATION: persist-login</p><p>The official URL for this operation definition is: </p><pre>http://ehealth.sundhed.dk/fhir/OperationDefinition/-s-persist-login</pre><div><p>This operation persists login information into CareTeams and PractitionerRoles The following elements of each careteam are mandatory:</p> <ul> <li>id: Reference based on the careteam from the saml security token</li> <li>status: any</li> <li>name: any</li> <li>reasonCode: any</li> <li>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)</li> </ul> <p>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:</p> <ul> <li>practitioner</li> <li>organization</li> <li>code: roles from the saml security token (CareteamParticipantRole valueset)</li> </ul> <p>Persist-login will search for practitionerRoles for each combination of (practitioner, organization) and create it if it doesn't already exists.</p> </div><p>URL: [base]/$persist-login</p><p>Parameters</p><table class="grid"><tr><td><b>Use</b></td><td><b>Name</b></td><td><b>Cardinality</b></td><td><b>Type</b></td><td><b>Binding</b></td><td><b>Documentation</b></td></tr><tr><td>IN</td><td>careTeam</td><td>0..*</td><td><a href="http://hl7.org/fhir/STU3/careteam.html">CareTeam</a></td><td/><td/></tr><tr><td>IN</td><td>practitionerRole</td><td>0..*</td><td><a href="http://hl7.org/fhir/STU3/practitionerrole.html">PractitionerRole</a></td><td/><td/></tr></table></div> </text> <url value="http://ehealth.sundhed.dk/fhir/OperationDefinition/-s-persist-login"/> <name value="persist-login"/> <status value="active"/> <kind value="operation"/> <date value="2020-04-30T11:21:16+00:00"/> <description value="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."/> <idempotent value="false"/> <code value="persist-login"/> <system value="true"/> <type value="false"/> <instance value="false"/> <parameter> <name value="careTeam"/> <use value="in"/> <min value="0"/> <max value="*"/> <type value="CareTeam"/> </parameter> <parameter> <name value="practitionerRole"/> <use value="in"/> <min value="0"/> <max value="*"/> <type value="PractitionerRole"/> </parameter> </OperationDefinition>