Table of Contents

KVSMEDEPrescriptionMgt

Procedures

Archive(Record KVSMEDEDocumentData) :

Summary: Checks and processes documents in the ePrescription entry.

procedure Archive(var KVSMEDEDocumentData: Record "KVSMEDEDocumentData"): 

Parameters:

  • KVSMEDEDocumentData:

SetHideValidationDialog(Boolean) :

Summary: Sets wwhether to show or hide validation Dialogs for example for batch processing.

procedure SetHideValidationDialog(Hide: Boolean): 

Parameters:

  • Hide:

Events

OnBeforeArchive(Record KVSMEDEDocumentData, Boolean) :

Summary: Raised before archiving an e-document. Allows subscribers to perform custom validation or pre-processing.

[IntegrationEvent(false, false)]
local procedure OnBeforeArchive(var KVSMEDEDocumentData: Record "KVSMEDEDocumentData"; var IsHandled: Boolean): 

Parameters:

  • KVSMEDEDocumentData: The e-document data to be archived.
  • IsHandled: Set to true to prevent the default archiving logic from executing.

OnAfterArchive(Record KVSMEDEDocumentData) :

Summary: Raised after an e-document has been successfully archived. Allows subscribers to perform post-archiving tasks.

[IntegrationEvent(false, false)]
local procedure OnAfterArchive(var KVSMEDEDocumentData: Record "KVSMEDEDocumentData"): 

Parameters:

  • KVSMEDEDocumentData: The archived e-document data.

OnAfterErrorOnArchiveOccured(Record KVSMEDEDocumentData) :

Summary: Raised when an error occurs during the archiving process. Allows subscribers to handle the error or perform cleanup operations.

[IntegrationEvent(false, false)]
local procedure OnAfterErrorOnArchiveOccured(var KVSMEDEDocumentData: Record "KVSMEDEDocumentData"): 

Parameters:

  • KVSMEDEDocumentData: The e-document data for which the archiving error occurred.