Skip to content

Commit

Permalink
Set managinEntity for Group resource from extraction
Browse files Browse the repository at this point in the history
Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>
  • Loading branch information
ellykits committed Sep 15, 2022
1 parent cd94dc1 commit f216391
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,16 @@ constructor(
ResourceType.Patient,
ResourceType.Practitioner,
ResourceType.PractitionerRole,
ResourceType.RelatedPerson,
ResourceType.Specimen
)
) {
this.member?.add(Group.GroupMemberComponent().apply { entity = resource.asReference() })
}

// set managing entity for extracted related resource
if (resource.resourceType == ResourceType.RelatedPerson) {
this.managingEntity = resource.logicalId.asReference(ResourceType.RelatedPerson)
}
defaultRepository.addOrUpdate(this)
}
}
Expand Down

0 comments on commit f216391

Please sign in to comment.