Skip to content

Commit

Permalink
sort method parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
wetret committed Oct 18, 2024
1 parent df91700 commit 998c30c
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ protected void doExecute(DelegateExecution execution, Variables variables)

try
{
List<IdType> createdIds = storeData(variables, fhirClient, bundle, sendingOrganization, projectIdentifier,
task);
List<IdType> createdIds = storeData(fhirClient, bundle, sendingOrganization, projectIdentifier, variables);

task.addOutput(
statusGenerator.createDataSetStatusOutput(ConstantsBase.CODESYSTEM_DATA_SET_STATUS_VALUE_RECEIVE_OK,
Expand Down Expand Up @@ -103,11 +102,11 @@ protected void doExecute(DelegateExecution execution, Variables variables)
}
}

private List<IdType> storeData(Variables variables, FhirClient fhirClient, Bundle bundle,
String sendingOrganization, String projectIdentifier, Task task)
private List<IdType> storeData(FhirClient fhirClient, Bundle bundle, String sendingOrganization,
String projectIdentifier, Variables variables)
{
Bundle transactionBundle = checkAndAdaptBundleForExistingData(fhirClient, bundle, sendingOrganization,
projectIdentifier, task);
projectIdentifier, variables.getStartTask());
Bundle stored = fhirClient.executeTransaction(transactionBundle);

List<IdType> idsOfCreatedResources = stored.getEntry().stream().filter(Bundle.BundleEntryComponent::hasResponse)
Expand Down

0 comments on commit 998c30c

Please sign in to comment.