42 lines
1.2 KiB
Go
42 lines
1.2 KiB
Go
package generatefile
|
|
|
|
import (
|
|
erc "simrs-vx/internal/domain/references/common"
|
|
ere "simrs-vx/internal/domain/references/encounter"
|
|
)
|
|
|
|
type GeneralConsentPDF struct {
|
|
PatientRelatives_Name []string `json:"patientRelatives_name"`
|
|
Responsible_Name string `json:"responsible_name"`
|
|
InformationGivenBy_Name string `json:"informationGivenBy_name"`
|
|
Witness1_Name string `json:"witness1_name"`
|
|
Witness2_Name string `json:"witness2_name"`
|
|
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"
|
|
)
|