Skip to content

Commit

Permalink
Task.instantiatesCanonical now properly points to the `ActivityDefi…
Browse files Browse the repository at this point in the history
…nition.url`
  • Loading branch information
JorisHeadease committed Oct 16, 2023
1 parent dd8ef43 commit 4379040
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public Task getOrCreateTask(Patient patient, Practitioner practitioner, Activity
task.setIntent(Task.TaskIntent.ORDER);
task.getRestriction().addRecipient(buildReference(practitioner));
task.getExecutionPeriod().setStart(new Date());
task.setInstantiatesCanonical(ResourceUtils.getCanonicalReference(activityDefinition));
task.setInstantiatesCanonical(activityDefinition.getUrl());
task = storeResource(task);
} else {
task = tasks.get(0);
Expand Down

0 comments on commit 4379040

Please sign in to comment.