Skip to content

Commit

Permalink
Enforcing the Task.for as this is now required by the profile.
Browse files Browse the repository at this point in the history
  • Loading branch information
JorisHeadease committed Oct 10, 2023
1 parent ef71fcd commit dd8ef43
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</parent>
<groupId>nl.koppeltaal</groupId>
<artifactId>spring-boot-starter-smart-service</artifactId>
<version>1.1.50-SNAPSHOT</version>
<version>1.1.51-SNAPSHOT</version>
<name>Koppeltaal-2.0-Spring-SMART-Service</name>
<description>spring-boot-starter-smart-service project to connect to a FHIR Store that works according to
the SMART Backend Service flow (https://hl7.org/fhir/uv/bulkdata/authorization/index.html)</description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ public Task getOrCreateTask(Patient patient, Practitioner practitioner, Activity
}
task.addIdentifier(taskIdentifier);

task.setOwner(buildReference(patient));
Reference patientReference = buildReference(patient);
task.setFor(patientReference);
task.setOwner(patientReference);
if (practitioner != null) {
task.setRequester(buildReference(practitioner));
}
Expand Down

0 comments on commit dd8ef43

Please sign in to comment.