2022-09-13 19:02:26 -06:00
|
|
|
package pkg
|
2023-01-10 20:23:47 -07:00
|
|
|
|
2023-04-22 23:08:58 -06:00
|
|
|
type ResourceGraphType string
|
2023-10-08 17:29:26 -06:00
|
|
|
type BackgroundJobStatus string
|
|
|
|
type BackgroundJobType string
|
|
|
|
type BackgroundJobSchedule string
|
2023-04-22 23:08:58 -06:00
|
|
|
|
2023-10-12 15:19:12 -06:00
|
|
|
type DatabaseRepositoryType string
|
|
|
|
|
2024-02-09 10:10:06 -07:00
|
|
|
type InstallationVerificationStatus string
|
|
|
|
type InstallationQuotaStatus string
|
2024-08-29 05:19:27 -06:00
|
|
|
type UserRole string
|
2024-02-09 10:10:06 -07:00
|
|
|
|
2023-01-10 20:23:47 -07:00
|
|
|
const (
|
2023-08-11 23:44:34 -06:00
|
|
|
ResourceListPageSize int = 20
|
|
|
|
|
2023-09-20 14:57:12 -06:00
|
|
|
ContextKeyTypeConfig string = "CONFIG"
|
|
|
|
ContextKeyTypeDatabase string = "REPOSITORY"
|
|
|
|
ContextKeyTypeLogger string = "LOGGER"
|
|
|
|
ContextKeyTypeEventBusServer string = "EVENT_BUS_SERVER"
|
2023-09-07 21:23:51 -06:00
|
|
|
|
2023-10-08 17:29:26 -06:00
|
|
|
ContextKeyTypeAuthUsername string = "AUTH_USERNAME"
|
|
|
|
ContextKeyTypeAuthToken string = "AUTH_TOKEN"
|
|
|
|
ContextKeyTypeBackgroundJobID string = "BACKGROUND_JOB_ID"
|
2023-01-10 20:23:47 -07:00
|
|
|
|
|
|
|
FhirResourceTypeComposition string = "Composition"
|
2023-04-22 23:08:58 -06:00
|
|
|
|
|
|
|
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"
|
2023-10-12 15:19:12 -06:00
|
|
|
|
|
|
|
DatabaseRepositoryTypeSqlite DatabaseRepositoryType = "sqlite"
|
|
|
|
DatabaseRepositoryTypePostgres DatabaseRepositoryType = "postgres"
|
2024-02-09 10:10:06 -07:00
|
|
|
|
|
|
|
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"
|
2024-08-29 05:19:27 -06:00
|
|
|
|
|
|
|
UserRoleUser UserRole = "user"
|
|
|
|
UserRoleAdmin UserRole = "admin"
|
2023-01-10 20:23:47 -07:00
|
|
|
)
|