Skip to content

Commit

Permalink
Upgrade common utils library
Browse files Browse the repository at this point in the history
  • Loading branch information
ndegwamartin committed Jul 25, 2023
1 parent 8e8805c commit 637c8ca
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion configuration/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.smartregister</groupId>
<artifactId>hapi-fhir-opensrp-extensions</artifactId>
<version>0.0.20-SNAPSHOT</version>
<version>0.0.21-SNAPSHOT</version>
</parent>
<groupId>org.smartregister.hapi-fhir-opensrp-extensions</groupId>
<artifactId>configuration</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion location/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>hapi-fhir-opensrp-extensions</artifactId>
<groupId>org.smartregister</groupId>
<version>0.0.20-SNAPSHOT</version>
<version>0.0.21-SNAPSHOT</version>
</parent>

<description>The repository holds the location extensions on the HAPI server</description>
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<groupId>org.smartregister</groupId>
<artifactId>hapi-fhir-opensrp-extensions</artifactId>
<packaging>pom</packaging>
<version>0.0.20-SNAPSHOT</version>
<version>0.0.21-SNAPSHOT</version>
<name>HAPI FHIR OpenSRP Extensions</name>
<description>This repository holds all the code extensions on top of Hapi-FHIR</description>
<url>https://github.com/opensrp/hapi-fhir-opensrp-extensions</url>
Expand Down Expand Up @@ -99,7 +99,7 @@
<dependency>
<groupId>org.smartregister</groupId>
<artifactId>fhir-common-utils</artifactId>
<version>0.0.6-SNAPSHOT</version>
<version>0.0.7-SNAPSHOT</version>
</dependency>

<!-- Test Dependencies-->
Expand Down
2 changes: 1 addition & 1 deletion practitioner/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>hapi-fhir-opensrp-extensions</artifactId>
<groupId>org.smartregister</groupId>
<version>0.0.20-SNAPSHOT</version>
<version>0.0.21-SNAPSHOT</version>
</parent>

<description>The repository holds the practitioner details extensions on the HAPI server</description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,7 @@ public PractitionerDetails getPractitionerDetails(
List<IBaseResource> careTeams = getCareTeams(practitionerId);
List<CareTeam> careTeamsList = mapToCareTeams(careTeams);
fhirPractitionerDetails.setCareTeams(careTeamsList);
StringType practitionerIdString = new StringType();
practitionerIdString.setValue(practitionerId);
fhirPractitionerDetails.setPractitionerId(practitionerIdString);
fhirPractitionerDetails.setPractitioner((Practitioner) practitioner);

logger.info("Searching for Organizations tied with CareTeams: ");
List<IBaseResource> managingOrganizationsOfCareTeams =
Expand Down Expand Up @@ -135,7 +133,7 @@ public PractitionerDetails getPractitionerDetails(
logger.info("Groups are fetched");
List<Group> groupsList = mapToGroups(groups);
fhirPractitionerDetails.setGroups(groupsList);
fhirPractitionerDetails.setId(practitionerIdString.getValue());
fhirPractitionerDetails.setId(practitionerId);

logger.info("Searching for locations by organizations");
List<String> locationsIdReferences =
Expand Down

0 comments on commit 637c8ca

Please sign in to comment.