Skip to content

Commit

Permalink
1704: Update the Practitioner Details to get the Groups and Practitio…
Browse files Browse the repository at this point in the history
…ner Role resources attached to a practitioner.
  • Loading branch information
rehammuzzamil committed Jan 19, 2023
1 parent 3f9f448 commit 2e4b058
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>org.smartregister</groupId>
<artifactId>fhir-common-utils</artifactId>
<version>0.0.3-SNAPSHOT</version>
<version>0.0.4-SNAPSHOT</version>

<distributionManagement>
<repository>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,29 @@ public class FhirPractitionerDetails extends Type implements ICompositeType {
summary = false)
private List<LocationHierarchy> locationHierarchyList;

@Child(
name = "practitionerRoles",
type = {PractitionerRole.class},
order = 5,
min = 0,
max = -1,
modifier = false,
summary = false)
List<PractitionerRole> practitionerRoles;

@Child(
name = "groups",
type = {Group.class},
order = 6,
min = 0,
max = -1,
modifier = false,
summary = false)
List<Group> groups;
@Child(
name = "practitionerId",
type = {StringType.class},
order = 5,
order = 7,
min = 0,
max = -1,
modifier = false,
Expand Down Expand Up @@ -111,6 +130,22 @@ public void setLocationHierarchyList(List<LocationHierarchy> locationHierarchyLi
this.locationHierarchyList = locationHierarchyList;
}

public List<PractitionerRole> getPractitionerRoles() {
return practitionerRoles;
}

public void setPractitionerRoles(List<PractitionerRole> practitionerRoles) {
this.practitionerRoles = practitionerRoles;
}

public List<Group> getGroups() {
return groups;
}

public void setGroups(List<Group> groups) {
this.groups = groups;
}

public StringType getPractitionerId() {
return practitionerId;
}
Expand Down

0 comments on commit 2e4b058

Please sign in to comment.