careteamservice

package
v0.0.0-...-25571b7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActivateMembership

func ActivateMembership(careTeam *fhir.CareTeam, party *fhir.Reference) bool

func Update

func Update(client fhirclient.Client, carePlanId string, updateTriggerTask fhir.Task, tx *coolfhir.BundleBuilder) (bool, error)

Update updates the CareTeam for a CarePlan based on its activities. It implements the business rules specified by https://santeonnl.github.io/shared-care-planning/overview.html#creating-and-responding-to-a-task updateTrigger is the Task that triggered the update, which is used to determine the CareTeam membership. It's passed to the function, as the new Task is not yet stored in the FHIR server, since the update is to be done in a single transaction. When the CareTeam is updated, it adds the update(s) to the given transaction and returns true. If no changes are made, it returns false.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL