Skip to content

Commit

Permalink
fix: ISSUE 723 e 725
Browse files Browse the repository at this point in the history
  • Loading branch information
vincenzo-ingenito committed Apr 5, 2024
1 parent 48809ed commit 2ccf024
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ public ResponseEntity<PublicationResDTO> validateAndReplace(
ValidationCreationInputDTO validationResult = new ValidationCreationInputDTO();
try {
//Valido request e jwt come se fosse una pubblicazione
validationResult = publicationAndReplaceValidation(file, request, false,idDoc,traceInfoDTO,EventTypeEnum.VALIDATION_FOR_REPLACE);
validationResult = publicationAndReplaceValidation(file, request, true,idDoc,traceInfoDTO,EventTypeEnum.VALIDATION_FOR_REPLACE);

docT = Jsoup.parse(validationResult.getCda());
workflowInstanceId = CdaUtility.getWorkflowInstanceId(docT);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ public void validatePayloadForCreate(JWTPayloadDTO payload) {
public void validatePayloadForReplace(JWTPayloadDTO payload) {
performCommonValidation(payload);
checkNull(payload.getResource_hl7_type(), "resource_hl7_type");
validateActionCoherence(payload, ActionEnum.CREATE);
validatePurposeOfUseCoherence(payload, PurposeOfUseEnum.TREATMENT);
validateActionCoherence(payload, ActionEnum.UPDATE);
validatePurposeOfUseCoherence(payload, PurposeOfUseEnum.UPDATE);
}

@Override
Expand Down

0 comments on commit 2ccf024

Please sign in to comment.