Skip to content

Commit

Permalink
Update FHIRPractitionerDetails Schema
Browse files Browse the repository at this point in the history
- Replace Practitioner ID with Practitioner Field
- Artifact release version 0.0.7
  • Loading branch information
ndegwamartin committed Jul 25, 2023
1 parent f9a30bb commit bd422a9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 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.6-SNAPSHOT</version>
<version>0.0.7-SNAPSHOT</version>

<distributionManagement>
<repository>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,14 @@ public class FhirPractitionerDetails extends Type implements ICompositeType {
summary = false)
List<Group> 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<CareTeam> getCareTeams() {
return careTeams;
Expand Down Expand Up @@ -146,12 +146,12 @@ public void setGroups(List<Group> 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
Expand All @@ -163,7 +163,7 @@ public Type copy() {

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

@Override
Expand Down

0 comments on commit bd422a9

Please sign in to comment.