20 lines
495 B
Go
20 lines
495 B
Go
package database
|
|
|
|
import (
|
|
"encoding/json"
|
|
"github.com/fastenhealth/fasten-onprem/backend/pkg/models"
|
|
"gorm.io/datatypes"
|
|
"time"
|
|
)
|
|
|
|
type IFhirResourceModel interface {
|
|
models.OriginBaser
|
|
SetOriginBase(originBase models.OriginBase)
|
|
SetResourceRaw(resourceRaw datatypes.JSON)
|
|
SetSortTitle(sortTitle *string)
|
|
SetSortDate(sortDate *time.Time)
|
|
SetSourceUri(sourceUri *string)
|
|
GetSearchParameters() map[string]string
|
|
PopulateAndExtractSearchParameters(rawResource json.RawMessage) error
|
|
}
|