diff --git a/pom.xml b/pom.xml
index 8c5821a..61181a7 100755
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
org.smartregister
fhir-common-utils
- 0.0.6-SNAPSHOT
+ 0.0.7-SNAPSHOT
diff --git a/src/main/java/org/smartregister/model/practitioner/FhirPractitionerDetails.java b/src/main/java/org/smartregister/model/practitioner/FhirPractitionerDetails.java
index 22ce639..4c89883 100755
--- a/src/main/java/org/smartregister/model/practitioner/FhirPractitionerDetails.java
+++ b/src/main/java/org/smartregister/model/practitioner/FhirPractitionerDetails.java
@@ -88,14 +88,14 @@ public class FhirPractitionerDetails extends Type implements ICompositeType {
summary = false)
List groups;
@Child(
- name = "practitionerId",
- type = {StringType.class},
+ name = "practitioner",
+ type = {Practitioner.class},
order = 7,
min = 0,
max = -1,
modifier = false,
summary = false)
- private StringType practitionerId;
+ private Practitioner practitioner;
public List getCareTeams() {
return careTeams;
@@ -146,12 +146,12 @@ public void setGroups(List groups) {
this.groups = groups;
}
- public StringType getPractitionerId() {
- return practitionerId;
+ public Practitioner getPractitioner() {
+ return practitioner;
}
- public void setPractitionerId(StringType practitionerId) {
- this.practitionerId = practitionerId;
+ public void setPractitioner(Practitioner practitioner) {
+ this.practitioner = practitioner;
}
@Override
@@ -163,7 +163,7 @@ public Type copy() {
@Override
public boolean isEmpty() {
- return ElementUtil.isEmpty(practitionerId);
+ return ElementUtil.isEmpty(practitioner);
}
@Override