2023-07-08 08:43:30 -06:00
|
|
|
package database
|
|
|
|
|
|
|
|
import (
|
|
|
|
"encoding/json"
|
|
|
|
"github.com/fastenhealth/fastenhealth-onprem/backend/pkg/models"
|
2023-07-14 20:52:02 -06:00
|
|
|
"gorm.io/datatypes"
|
2023-08-01 21:29:35 -06:00
|
|
|
"time"
|
2023-07-08 08:43:30 -06:00
|
|
|
)
|
|
|
|
|
|
|
|
type IFhirResourceModel interface {
|
|
|
|
models.OriginBaser
|
|
|
|
SetOriginBase(originBase models.OriginBase)
|
2023-07-14 20:52:02 -06:00
|
|
|
SetResourceRaw(resourceRaw datatypes.JSON)
|
2023-08-01 21:29:35 -06:00
|
|
|
SetSortTitle(sortTitle *string)
|
|
|
|
SetSortDate(sortDate *time.Time)
|
2023-07-08 08:43:30 -06:00
|
|
|
GetSearchParameters() map[string]string
|
|
|
|
PopulateAndExtractSearchParameters(rawResource json.RawMessage) error
|
|
|
|
}
|