Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBActions ¶
type DBActions interface { GetPatientInfo(ctx context.Context, pk string) (*PatientInfo, error) GetPatientsInfo(ctx context.Context) ([]PatientInfo, error) GetPatientRecords(ctx context.Context, pk string) ([]map[string]interface{}, error) SearchPatientInfo(ctx context.Context, fullname string) ([]PatientInfo, error) AddPatientInfo(ctx context.Context, data *PatientInfo) error UpdatePatientInfo(ctx context.Context, pk string, data *PatientInfo) error DeletePatient(ctx context.Context, pk string) error CheckDCM(ctx context.Context, filename string) (bool, error) AddDCM(ctx context.Context, pk string, data *DCMInfo) error }
type PatientInfo ¶
type PatientInfo struct { PK string `dynamodbav:"pk"` SK string `dynamodbav:"sk"` Fullname string `dynamodbav:"fullname"` Filters string `dynamodbav:"filters"` CreatedAt time.Time `dynamodbav:"created_at"` UpdatedAt *time.Time `dynamodbav:"updated_at"` DeletedAt *time.Time `dynamodbav:"deleted_at"` }
type Table ¶
type Table struct { PK string `dynamodbav:"pk"` SK string `dynamodbav:"sk"` Fullname string `dynamodbav:"fullname"` Filters string `dynamodbav:"filters"` Filename string `dynamodbav:"filename"` CreatedAt time.Time `dynamodbav:"created_at"` UpdatedAt *time.Time `dynamodbav:"updated_at"` DeletedAt *time.Time `dynamodbav:"deleted_at"` }
Click to show internal directories.
Click to hide internal directories.