package radiologymcuorderitem

import (
	emo "simrs-vx/internal/domain/main-entities/radiology-mcu-order"
	emoib "simrs-vx/internal/domain/main-entities/radiology-mcu-order-item/base"

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

type RadiologyMcuOrderItem struct {
	emoib.RadiologyMcuOrderItem
	RadiologyMcuOrder *emo.RadiologyMcuOrder `json:"radiologyMcuOrder,omitempty" gorm:"foreignKey:RadiologyMcuOrder_Id;references:Id"`
}

func (d RadiologyMcuOrderItem) IsCompleted() bool {
	return d.Status_Code == erc.DSCDone
}
