package screening

import (
	ecore "simrs-vx/internal/domain/base-entities/core"
	eem "simrs-vx/internal/domain/main-entities/employee"

	erc "simrs-vx/internal/domain/references/clinical"
	erco "simrs-vx/internal/domain/references/common"
)

type Screening struct {
	ecore.Main                             // adjust this according to the needs
	Encounter_Id *uint                     `json:"encounter_id"`
	Employee_Id  *uint                     `json:"employee_id"`
	Employee     *eem.Employee             `json:"employee,omitempty" gorm:"foreignKey:Employee_Id;references:Id"`
	Type         erc.ScreeningFormTypeCode `json:"type"`
	Status       erco.DataVerifiedCode     `json:"status"`
	Value        *string                   `json:"value"`
	FileUrl      *string                   `json:"fileUrl" gorm:"size:1024"`
}

func (d Screening) IsFormA() bool {
	return d.Type == erc.SFTCA
}
