From 8c385fe2749f26cb56b5ca87390524b9f80ad28d Mon Sep 17 00:00:00 2001 From: Benjamin Mwalimu Date: Thu, 10 Aug 2023 15:09:00 +0300 Subject: [PATCH] Adding the Practitioner Id getter and setters --- pom.xml | 2 +- .../practitioner/FhirPractitionerDetails.java | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 140c773..704f951 100755 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ org.smartregister fhir-common-utils - 0.0.9-SNAPSHOT + 0.0.10-SNAPSHOT diff --git a/src/main/java/org/smartregister/model/practitioner/FhirPractitionerDetails.java b/src/main/java/org/smartregister/model/practitioner/FhirPractitionerDetails.java index 3db5d1e..ccc003d 100755 --- a/src/main/java/org/smartregister/model/practitioner/FhirPractitionerDetails.java +++ b/src/main/java/org/smartregister/model/practitioner/FhirPractitionerDetails.java @@ -107,6 +107,16 @@ public class FhirPractitionerDetails extends Type implements ICompositeType { summary = false) private List organizationAffiliations; + @Child( + name = "practitionerId", + type = {StringType.class}, + order = 9, + min = 0, + max = -1, + modifier = false, + summary = false) + private StringType practitionerId; + public List getCareTeams() { return careTeams; } @@ -172,6 +182,14 @@ public void setOrganizationAffiliations(List organizati this.organizationAffiliations = organizationAffiliations; } + public StringType getPractitionerId() { + return practitionerId; + } + + public void setPractitionerId(StringType practitionerId) { + this.practitionerId = practitionerId; + } + @Override public Type copy() { FhirPractitionerDetails fhirPractitionerDetails = new FhirPractitionerDetails();