From 2e4b05831f2ab78583d87678c78edee41657c6d5 Mon Sep 17 00:00:00 2001 From: Reham Muzzamil Date: Fri, 20 Jan 2023 01:39:08 +0500 Subject: [PATCH] 1704: Update the Practitioner Details to get the Groups and Practitioner Role resources attached to a practitioner. --- pom.xml | 2 +- .../practitioner/FhirPractitionerDetails.java | 37 ++++++++++++++++++- 2 files changed, 37 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 8f724f4..41bab79 100755 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ org.smartregister fhir-common-utils - 0.0.3-SNAPSHOT + 0.0.4-SNAPSHOT diff --git a/src/main/java/org/smartregister/model/practitioner/FhirPractitionerDetails.java b/src/main/java/org/smartregister/model/practitioner/FhirPractitionerDetails.java index d204cbe..22ce639 100755 --- a/src/main/java/org/smartregister/model/practitioner/FhirPractitionerDetails.java +++ b/src/main/java/org/smartregister/model/practitioner/FhirPractitionerDetails.java @@ -68,10 +68,29 @@ public class FhirPractitionerDetails extends Type implements ICompositeType { summary = false) private List locationHierarchyList; + @Child( + name = "practitionerRoles", + type = {PractitionerRole.class}, + order = 5, + min = 0, + max = -1, + modifier = false, + summary = false) + List practitionerRoles; + + @Child( + name = "groups", + type = {Group.class}, + order = 6, + min = 0, + max = -1, + modifier = false, + summary = false) + List groups; @Child( name = "practitionerId", type = {StringType.class}, - order = 5, + order = 7, min = 0, max = -1, modifier = false, @@ -111,6 +130,22 @@ public void setLocationHierarchyList(List locationHierarchyLi this.locationHierarchyList = locationHierarchyList; } + public List getPractitionerRoles() { + return practitionerRoles; + } + + public void setPractitionerRoles(List practitionerRoles) { + this.practitionerRoles = practitionerRoles; + } + + public List getGroups() { + return groups; + } + + public void setGroups(List groups) { + this.groups = groups; + } + public StringType getPractitionerId() { return practitionerId; }