Skip to content

Commit

Permalink
Removal of DataEndpoint parameter is not longer needed
Browse files Browse the repository at this point in the history
  • Loading branch information
barhodes committed Jun 3, 2024
1 parent 9953703 commit efcea5c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

import java.util.stream.Collectors;

import static ca.uhn.hapi.fhir.cdshooks.svc.cr.CdsCrConstants.APPLY_PARAMETER_DATA;
import static ca.uhn.hapi.fhir.cdshooks.svc.cr.CdsCrConstants.APPLY_PARAMETER_DATA_ENDPOINT;
import static org.opencds.cqf.fhir.utility.r4.Parameters.part;

Expand All @@ -21,9 +22,8 @@ public UpdatedCdsCrServiceR4(RequestDetails theRequestDetails, Repository theRep
@Override
public Parameters encodeParams(CdsServiceRequestJson theJson) {
Parameters parameters = super.encodeParams(theJson);
if (parameters.hasParameter("data")) {
if (parameters.hasParameter(APPLY_PARAMETER_DATA)) {
parameters.addParameter(part("useServerData", new BooleanType(false)));
parameters.setParameter(parameters.getParameter().stream().filter(x -> !x.getName().equals(APPLY_PARAMETER_DATA_ENDPOINT)).collect(Collectors.toList()));
}
return parameters;
}
Expand Down

0 comments on commit efcea5c

Please sign in to comment.