fasten-onprem/backend/pkg/models/database/interface.go

16 lines
393 B
Go
Raw Normal View History

package database
import (
"encoding/json"
"github.com/fastenhealth/fastenhealth-onprem/backend/pkg/models"
"gorm.io/datatypes"
)
type IFhirResourceModel interface {
models.OriginBaser
SetOriginBase(originBase models.OriginBase)
SetResourceRaw(resourceRaw datatypes.JSON)
GetSearchParameters() map[string]string
PopulateAndExtractSearchParameters(rawResource json.RawMessage) error
}