Documentation
¶
Index ¶
- func EnvelopeFromJSON(resourceType string, raw []byte) (*types.ResourceEnvelope, error)
- func PatientJSON(given, family, phone string) []byte
- func PrettyJSON(raw []byte) string
- func RepoPath(parts ...string) string
- func ShutdownRuntime(ctx context.Context, rt *runtime.Runtime) error
- type SQLiteStack
- type SyncIndexerBridge
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnvelopeFromJSON ¶
func EnvelopeFromJSON(resourceType string, raw []byte) (*types.ResourceEnvelope, error)
EnvelopeFromJSON parses FHIR JSON into a ResourceEnvelope.
func PatientJSON ¶
PatientJSON returns a small Patient resource payload for examples.
Types ¶
type SQLiteStack ¶
type SQLiteStack struct {
DB *sqlite.DB
RegistryManager *registry.Manager
Snapshot *registry.Snapshot
SearchRegistry *search.SnapshotRegistry
FHIRPath fhirpath.Engine
Indexer *search.RegistryIndexer
ResourceService *core.ResourceService
SearchService *search.Service
}
SQLiteStack is a ready-to-use local stack for examples.
func NewSQLiteStack ¶
func NewSQLiteStack(ctx context.Context, dbPath string, resourceTypes ...string) (*SQLiteStack, error)
NewSQLiteStack composes a local SQLite-backed resource and search stack.
func (*SQLiteStack) Close ¶
func (s *SQLiteStack) Close() error
type SyncIndexerBridge ¶
SyncIndexerBridge adapts a search.Indexer for sync pull-apply indexing.
func (SyncIndexerBridge) BuildSearchEntries ¶
func (b SyncIndexerBridge) BuildSearchEntries(ctx context.Context, res *types.ResourceEnvelope) ([]store.SearchIndexEntry, error)
Click to show internal directories.
Click to hide internal directories.