Documentation ¶
Index ¶
Constants ¶
View Source
const ( MatchTypeNone = "" MatchTypeRegex = "regex" MatchTypeExact = "exact" MatchTypeAll = "all" MatchTypeAny = "any" )
View Source
const ( EventTypeCreated EventType = "CREATE" EventTypeUpdated = "UPDATE" EventTypeDeleted = "DELETE" )
View Source
const RecordTopic = "records"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Category ¶
type Category struct { Id string `bson:"_id,omitempty" json:"id"` Name string `bson:"name,omitempty" json:"name"` Match MatchConfig `bson:"match,omitempty" json:"match"` }
func NewCategory ¶
func NewCategory(id, name string, matchConfig MatchConfig) *Category
type CreateRecord ¶
type CreateRecord struct { Date time.Time `form:"date" time_format:"2006-01-02T15:04:05Z07:00"` ReceivedAt time.Time `form:"receivedAt" time_format:"2006-01-02T15:04:05Z07:00"` Sender string `form:"sender"` Comment *string `form:"comment"` PatientId *string `form:"patientId"` Tags []string `form:"tags"` Status Status `form:"status"` Category *string `form:"category"` Pages []Page }
type Event ¶
type MatchConfig ¶
type Page ¶
type PageUpdate ¶
type Record ¶
type Record struct { Id string `bson:"_id,omitempty" json:"id"` Date *time.Time `bson:"date,omitempty" json:"date"` ReceivedAt time.Time `bson:"receivedAt,omitempty" json:"receivedAt"` PatientId *string `bson:"patientId,omitempty" json:"patientId"` Comment *string `bson:"comment,omitempty" json:"comment"` Sender string `bson:"sender,omitempty" json:"sender" form:"user" binding:"required"` Category *string `bson:"category,omitempty" json:"category"` Tags *[]string `bson:"tags,omitempty" json:"tags"` Pages []Page `bson:"pages,omitempty" json:"pages"` Status *Status `bson:"status,omitempty" json:"status"` UpdatedAt time.Time `bson:"updatedAt" json:"updatedAt"` ArchivedPDF string `json:"archivedPDF"` }
func (*Record) MarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.