package generatefile import ( erc "simrs-vx/internal/domain/references/common" ere "simrs-vx/internal/domain/references/encounter" ) type GeneralConsentPDF struct { Relatives []string `json:"relatives"` Responsible string `json:"responsible"` Informant string `json:"informant"` Witness1 string `json:"witness1"` Witness2 string `json:"witness2"` Date string `json:"date"` } type GenerateDto struct { EntityType_Code ere.EntityTypeCode `json:"entityType_code" validate:"required"` Ref_Id *uint `json:"ref_id" validate:"required"` Type_Code ere.DocTypeCode `json:"type_code" validate:"required"` FormatType erc.DocFormatTypeCode `json:"formatType"` TemplateName TemplateDocsName `json:"-"` Encounter_Id *uint `json:"-"` } type GeneratePDFdto struct { TemplatePath string TemplateData any PdfPath string } type ResponseDto struct { FileUrl string `json:"fileUrl"` } type TemplateDocsName string // TemplateDocsName is the name of the template file in the assets/docs folder const ( TDNGC TemplateDocsName = "general-consent.html" )