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-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-07-08 08:43:30 -06:00
|
|
|
GetSearchParameters() map[string]string
|
|
|
|
PopulateAndExtractSearchParameters(rawResource json.RawMessage) error
|
|
|
|
}
|