package
0.0.0-20230809162052-e69eef7de3c0
Repository: https://github.com/google/simhospital.git
Documentation: pkg.go.dev
# Packages
Package persist contains persist-specific interfaces.
# Functions
NewPatientsMap returns a map-based store for tracking patients inside Simulated Hospital.
NewWrappedQueue returns a priority-queue based store for tracking the state of various objects inside Simulated Hospital.
# Constants
EventItemType used for Event items.
MessageItemType used for Message items.
PatientItemType used for Patient items.
# Variables
ErrSyncerNotSet is returned if no ItemSyncer is set, but the load operation was called.
# Structs
Event is a stateful object representing Simulated Hospital events currently in progress.
EventUnmarshaller can be used to unmarshal events.
HL7Message is a stateful object representing HL7 messages being generated by Simulated Hospital.
MessageUnmarshaller can be used to unmarshal persisted HL7 messages.
Patient represents a patient in Simulated Hospital.
PatientsMap contains the map of patients, indexed by their ID.
PatientUnmarshaller is an unmarshaller of patients.
WrappedQueue is a queue that contains both a PriorityQueue and an internal struct with objects that are marshallable (for persisting).
# Interfaces
MarshallableQueueItem is the interface for items that can be stored in a MarshallableQueue.