26 lines
848 B
Go
26 lines
848 B
Go
package medicationdispense
|
|
|
|
import (
|
|
"database/sql"
|
|
)
|
|
|
|
// MedicationDispenseDB merepresentasikan tabel data pemberian obat
|
|
// TODO: Sesuaikan field dan tag `db` dengan tabel SIMRS Anda
|
|
type MedicationDispenseDB struct {
|
|
IdxPemberian int64 `db:"idxpemberian"`
|
|
IdxDaftar int64 `db:"idxdaftar"`
|
|
NoMR sql.NullString `db:"nomr"`
|
|
TglDiberikan sql.NullTime `db:"tgl_diberikan"`
|
|
KFA sql.NullString `db:"kfa_code"`
|
|
Qty sql.NullFloat64 `db:"qty"`
|
|
}
|
|
|
|
type MedicationDispenseSyncLog struct {
|
|
IdxPemberian int64 `db:"idxpemberian"`
|
|
MedicationDispenseID string `db:"medicationdispense_id"`
|
|
RequestPayload string `db:"request_payload"`
|
|
ResponsePayload string `db:"response_payload"`
|
|
Status string `db:"status"`
|
|
ErrorMessage string `db:"error_message"`
|
|
}
|