Documentation
¶
Index ¶
- type DocumentRepo
- func (r *DocumentRepo) Create(ctx context.Context, doc *models.DocumentReference) (*models.DocumentReference, error)
- func (r *DocumentRepo) Delete(ctx context.Context, id string) error
- func (r *DocumentRepo) GetByID(ctx context.Context, id string) (*models.DocumentReference, error)
- func (r *DocumentRepo) GetByIDs(ctx context.Context, ids []string) ([]models.DocumentReference, error)
- func (r *DocumentRepo) Search(ctx context.Context, patientID string, limit, offset int) ([]models.DocumentReference, int64, error)
- func (r *DocumentRepo) Update(ctx context.Context, doc *models.DocumentReference) (*models.DocumentReference, error)
- type ObservationRepo
- func (r *ObservationRepo) Create(ctx context.Context, obs *models.Observation) (*models.Observation, error)
- func (r *ObservationRepo) Delete(ctx context.Context, id string) error
- func (r *ObservationRepo) GetByID(ctx context.Context, id string) (*models.Observation, error)
- func (r *ObservationRepo) GetByIDs(ctx context.Context, ids []string) ([]models.Observation, error)
- func (r *ObservationRepo) Search(ctx context.Context, patientID string, limit, offset int) ([]models.Observation, int64, error)
- func (r *ObservationRepo) Update(ctx context.Context, obs *models.Observation) (*models.Observation, error)
- type PatientRepo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DocumentRepo ¶
type DocumentRepo struct {
// contains filtered or unexported fields
}
func NewDocumentRepo ¶
func NewDocumentRepo(db *mongo.Database) *DocumentRepo
func (*DocumentRepo) Create ¶
func (r *DocumentRepo) Create(ctx context.Context, doc *models.DocumentReference) (*models.DocumentReference, error)
func (*DocumentRepo) GetByID ¶
func (r *DocumentRepo) GetByID(ctx context.Context, id string) (*models.DocumentReference, error)
func (*DocumentRepo) GetByIDs ¶
func (r *DocumentRepo) GetByIDs(ctx context.Context, ids []string) ([]models.DocumentReference, error)
func (*DocumentRepo) Search ¶
func (r *DocumentRepo) Search(ctx context.Context, patientID string, limit, offset int) ([]models.DocumentReference, int64, error)
func (*DocumentRepo) Update ¶
func (r *DocumentRepo) Update(ctx context.Context, doc *models.DocumentReference) (*models.DocumentReference, error)
type ObservationRepo ¶
type ObservationRepo struct {
// contains filtered or unexported fields
}
func NewObservationRepo ¶
func NewObservationRepo(db *mongo.Database) *ObservationRepo
func (*ObservationRepo) Create ¶
func (r *ObservationRepo) Create(ctx context.Context, obs *models.Observation) (*models.Observation, error)
func (*ObservationRepo) Delete ¶
func (r *ObservationRepo) Delete(ctx context.Context, id string) error
func (*ObservationRepo) GetByID ¶
func (r *ObservationRepo) GetByID(ctx context.Context, id string) (*models.Observation, error)
func (*ObservationRepo) GetByIDs ¶
func (r *ObservationRepo) GetByIDs(ctx context.Context, ids []string) ([]models.Observation, error)
func (*ObservationRepo) Search ¶
func (r *ObservationRepo) Search(ctx context.Context, patientID string, limit, offset int) ([]models.Observation, int64, error)
func (*ObservationRepo) Update ¶
func (r *ObservationRepo) Update(ctx context.Context, obs *models.Observation) (*models.Observation, error)
type PatientRepo ¶
type PatientRepo struct {
// contains filtered or unexported fields
}
func NewPatientRepo ¶
func NewPatientRepo(db *mongo.Database) *PatientRepo
Click to show internal directories.
Click to hide internal directories.