fasten-onprem/backend/pkg/constants.go

58 lines
2.3 KiB
Go
Raw Permalink Normal View History

package pkg
type ResourceGraphType string
2023-10-08 17:29:26 -06:00
type BackgroundJobStatus string
type BackgroundJobType string
type BackgroundJobSchedule string
type DatabaseRepositoryType string
type InstallationVerificationStatus string
type InstallationQuotaStatus string
type UserRole string
const (
ResourceListPageSize int = 20
ContextKeyTypeConfig string = "CONFIG"
ContextKeyTypeDatabase string = "REPOSITORY"
ContextKeyTypeLogger string = "LOGGER"
ContextKeyTypeEventBusServer string = "EVENT_BUS_SERVER"
2023-10-08 17:29:26 -06:00
ContextKeyTypeAuthUsername string = "AUTH_USERNAME"
ContextKeyTypeAuthToken string = "AUTH_TOKEN"
ContextKeyTypeBackgroundJobID string = "BACKGROUND_JOB_ID"
FhirResourceTypeComposition string = "Composition"
ResourceGraphTypeMedicalHistory ResourceGraphType = "MedicalHistory"
ResourceGraphTypeAddressBook ResourceGraphType = "AddressBook"
ResourceGraphTypeMedications ResourceGraphType = "Medications"
ResourceGraphTypeBillingReport ResourceGraphType = "BillingReport"
2023-10-08 17:29:26 -06:00
BackgroundJobStatusReady BackgroundJobStatus = "STATUS_READY"
BackgroundJobStatusLocked BackgroundJobStatus = "STATUS_LOCKED"
BackgroundJobStatusFailed BackgroundJobStatus = "STATUS_FAILED"
BackgroundJobStatusDone BackgroundJobStatus = "STATUS_DONE"
BackgroundJobTypeSync BackgroundJobType = "SYNC"
BackgroundJobTypeScheduledSync BackgroundJobType = "SCHEDULED_SYNC"
BackgroundJobScheduleDaily BackgroundJobSchedule = "DAILY"
BackgroundJobScheduleWeekly BackgroundJobSchedule = "WEEKLY"
BackgroundJobScheduleBiWeekly BackgroundJobSchedule = "BIWEEKLY"
BackgroundJobScheduleMonthly BackgroundJobSchedule = "MONTHLY"
DatabaseRepositoryTypeSqlite DatabaseRepositoryType = "sqlite"
DatabaseRepositoryTypePostgres DatabaseRepositoryType = "postgres"
InstallationVerificationStatusMissing InstallationVerificationStatus = "MISSING" //email is missing for this installation
InstallationVerificationStatusPending InstallationVerificationStatus = "PENDING" //email has not been verified
InstallationVerificationStatusVerified InstallationVerificationStatus = "VERIFIED" //email has been verified
InstallationQuotaStatusActive InstallationQuotaStatus = "ACTIVE"
InstallationQuotaStatusConsumed InstallationQuotaStatus = "CONSUMED"
UserRoleUser UserRole = "user"
UserRoleAdmin UserRole = "admin"
)