package medicalactionsrcitem

import (
	ecore "simrs-vx/internal/domain/base-entities/core"
	ei "simrs-vx/internal/domain/main-entities/item"
	emas "simrs-vx/internal/domain/main-entities/medical-action-src"
	eps "simrs-vx/internal/domain/main-entities/procedure-src"
)

type MedicalActionSrcItem struct {
	ecore.Main                                   // adjust this according to the needs
	MedicalActionSrc_Code *string                `json:"medicalActionSrc_code"`
	MedicalActionSrc      *emas.MedicalActionSrc `json:"medicalActionSrc,omitempty" gorm:"foreignKey:MedicalActionSrc_Code;references:Code"`
	ProcedureSrc_Code     *string                `json:"procedureSrc_code"`
	ProcedureSrc          *eps.ProcedureSrc      `json:"procedureSrc,omitempty" gorm:"foreignKey:ProcedureSrc_Code;references:Code"`
	Item_Code             *string                `json:"item_code"`
	Item                  *ei.Item               `json:"item,omitempty" gorm:"foreignKey:Item_Code;references:Code"`
}
