Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ActivateMembership ¶
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.
Click to show internal directories.
Click to hide internal directories.