Skip to content

Commit

Permalink
Return FHIRPractitionerDetails practitioners as list
Browse files Browse the repository at this point in the history
  • Loading branch information
ndegwamartin committed Jul 26, 2023
1 parent bd422a9 commit 3945a72
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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.7-SNAPSHOT</version>
<version>0.0.8-SNAPSHOT</version>

<distributionManagement>
<repository>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public class FhirPractitionerDetails extends Type implements ICompositeType {
max = -1,
modifier = false,
summary = false)
private Practitioner practitioner;
private List<Practitioner> practitioners;

public List<CareTeam> getCareTeams() {
return careTeams;
Expand Down Expand Up @@ -146,12 +146,12 @@ public void setGroups(List<Group> groups) {
this.groups = groups;
}

public Practitioner getPractitioner() {
return practitioner;
public List<Practitioner> getPractitioners() {
return practitioners;
}

public void setPractitioner(Practitioner practitioner) {
this.practitioner = practitioner;
public void setPractitioners(List<Practitioner> practitioners) {
this.practitioners = practitioners;
}

@Override
Expand All @@ -163,7 +163,7 @@ public Type copy() {

@Override
public boolean isEmpty() {
return ElementUtil.isEmpty(practitioner);
return ElementUtil.isEmpty(practitioners);
}

@Override
Expand Down

0 comments on commit 3945a72

Please sign in to comment.