The auto-create configuration option has been enabled for the interface
A new medical record will not have any existing links to any Teams, and so a new Consent Record will be created for each Linked Team.
When an HL7 message is processed for a medical record that already exists, PKB will make sure a Consent Record exists for each Linked Team, regardless of whether the message was a demographic update or whether auto-create was enabled.
When creating a new Consent Record via this workflow, the default privacy labels for the Team will automatically be granted.
If the Linked Teams workflow finds a Consent Record is already in place, it will not modify it. For example, if the patient had previously chosen to change the privacy labels granted to the Team, this workflow will not overwrite those preferences.
When creating a new Consent Record, the patient will be considered to be admitted to the corresponding Team.
If the Linked Teams workflow finds a Consent Record is already in place, it will not modify it. For example, if the patient had previously been discharged from a Team, sending them additional data will not automatically re-admit them.
Notably, this is true even if the HL7 message is relates to a real-world admission or discharge (e.g. an ADT A01 or ADT A03).