Documentation
¶
Index ¶
- func New(cfg aws.Config, table string) dao.DBActions
- type DB
- func (db DB) AddDCM(ctx context.Context, pk string, data *dao.DCMInfo) error
- func (db DB) AddPatientInfo(ctx context.Context, data *dao.PatientInfo) error
- func (db DB) CheckDCM(ctx context.Context, filename string) (bool, error)
- func (db DB) DeletePatient(ctx context.Context, pk string) error
- func (db DB) GetPatientInfo(ctx context.Context, pk string) (*dao.PatientInfo, error)
- func (db DB) GetPatientRecords(ctx context.Context, pk string) ([]map[string]interface{}, error)
- func (db DB) GetPatientsInfo(ctx context.Context) ([]dao.PatientInfo, error)
- func (db DB) SearchPatientInfo(ctx context.Context, fullname string) ([]dao.PatientInfo, error)
- func (db DB) UpdatePatientInfo(ctx context.Context, pk string, data *dao.PatientInfo) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DB ¶
func (DB) AddDCM ¶
AddDCM adds a new DICOM file to the database. PK, SK, CreatedAt and DeletedAt are automatically populated.
func (DB) AddPatientInfo ¶
AddPatient adds a new patient to the database. PK, SK, CreatedAt, UpdatedAt and DeletedAt are automatically populated.
func (DB) CheckDCM ¶
CheckDCM searches for patient info by fullname (case sensitive, dynamodb doesn't implement full-text search).
func (DB) GetPatientInfo ¶
GetPatientInfo searches for patient info by fullname (case sensitive, dynamodb doesn't implement full-text search).
func (DB) GetPatientRecords ¶
GetPatientRecords looks for all records for a given patient. It returns a list of SK (INFO and DCM)
func (DB) GetPatientsInfo ¶
GetPatientInfo returns all patients info.
func (DB) SearchPatientInfo ¶
SearchPatientInfo searches for patient info by fullname (case sensitive, dynamodb doesn't implement full-text search).