2023-07-08 08:43:30 -06:00
|
|
|
package database
|
|
|
|
|
|
|
|
import (
|
|
|
|
"encoding/json"
|
2023-08-27 18:09:46 -06:00
|
|
|
"github.com/fastenhealth/fasten-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-08-17 12:14:33 -06:00
|
|
|
SetSourceUri(sourceUri *string)
|
2023-07-08 08:43:30 -06:00
|
|
|
GetSearchParameters() map[string]string
|
|
|
|
PopulateAndExtractSearchParameters(rawResource json.RawMessage) error
|
|
|
|
}
|