Merge branch 'migration' of https://github.com/dikstub-rssa/simrs-be into feat/sync-from-simx-160

This commit is contained in:
vanilia
2025-11-25 13:58:18 +07:00
4 changed files with 21 additions and 10 deletions
+11 -5
View File
@@ -1,12 +1,18 @@
package resume
import (
"simrs-vx/internal/domain/base-entities/core"
ecore "simrs-vx/internal/domain/base-entities/core"
ed "simrs-vx/internal/domain/main-entities/doctor"
erc "simrs-vx/internal/domain/references/common"
)
type Resume struct {
core.Main
Encounter_Id *uint `json:"encounter_id" gorm:"not null"`
Value *string `json:"value"`
FileUrl *string `json:"fileUrl" gorm:"size:1024"`
ecore.Main
Encounter_Id *uint `json:"encounter_id" gorm:"not null"`
Doctor_Code *string `json:"doctor_code" gorm:"size:10"`
Doctor *ed.Doctor `json:"doctor,omitempty" gorm:"foreignKey:Doctor_Code;references:Code"`
Value *string `json:"value"`
FileUrl *string `json:"fileUrl" gorm:"size:1024"`
Status_Code erc.DataVerifiedCode `json:"status_code" gorm:"not null;size:10"`
}
+5 -3
View File
@@ -72,9 +72,11 @@ const (
DACAvailable DataAvailabilityCode = "available" // Tersedia
DACUnavailable DataAvailabilityCode = "unavailable" // Tidak Tersedia
DVCNew DataVerifiedCode = "new" // Baru
DVCVerified DataVerifiedCode = "verified" // Terverifikasi
DVCRejected DataVerifiedCode = "rejected" // Ditolak
DVCNew DataVerifiedCode = "new" // Baru
DVCVerified DataVerifiedCode = "verified" // Terverifikasi
DVCValidated DataVerifiedCode = "validated" // Tervalidasi
DVCCancelled DataVerifiedCode = "cancelled" // Dibatalkan
DVCRejected DataVerifiedCode = "rejected" // Ditolak
USCNew UserStatusCode = "new" // Baru
USCActive UserStatusCode = "active" // Aktif