Documentation
¶
Index ¶
- Constants
- Variables
- func SetMockRepository(t *testing.T, other *MockRepository)
- type ACO
- type Attribution
- type AttributionFileStatusResponse
- type AttributionFilesParam
- type AuthResponse
- type BadRequestResponse
- type BulkRequestHeaders
- type BulkRequestResponse
- type BundleResponse
- type CCLFBeneficiary
- type CCLFFile
- type CCLFFileType
- type Claims
- type DeleteJobResponse
- type Denylist
- type EntryResponse
- type ErrorResponse
- type FileNDJSON
- type FileParam
- type GoneResponse
- type GroupIDParam
- type IngestionDatesStatusParam
- type InvalidCredentials
- type Job
- type JobIDParam
- type JobKey
- type JobKeyRepository
- type JobStatus
- type JobStatusResponse
- type JobsStatusResponse
- type MetadataResponse
- type MissingCredentials
- type MockRepository
- func (_mock *MockRepository) CreateACO(ctx context.Context, aco ACO) error
- func (_mock *MockRepository) CreateCCLFFile(ctx context.Context, cclfFile CCLFFile) (uint, error)
- func (_mock *MockRepository) CreateJob(ctx context.Context, j Job) (uint, error)
- func (_mock *MockRepository) CreateSuppression(ctx context.Context, suppression optout.OptOutRecord) error
- func (_mock *MockRepository) CreateSuppressionFile(ctx context.Context, suppressionFile optout.OptOutFile) (uint, error)
- func (_m *MockRepository) EXPECT() *MockRepository_Expecter
- func (_mock *MockRepository) GetACOByCMSID(ctx context.Context, cmsID string) (*ACO, error)
- func (_mock *MockRepository) GetACOByClientID(ctx context.Context, clientID string) (*ACO, error)
- func (_mock *MockRepository) GetACOByUUID(ctx context.Context, uuid1 uuid.UUID) (*ACO, error)
- func (_mock *MockRepository) GetCCLFBeneficiaries(ctx context.Context, cclfFileID uint, ignoredMBIs []string) ([]*CCLFBeneficiary, error)
- func (_mock *MockRepository) GetCCLFBeneficiaryMBIs(ctx context.Context, cclfFileID uint) ([]string, error)
- func (_mock *MockRepository) GetCCLFFileByID(ctx context.Context, ID uint) (*CCLFFile, error)
- func (_mock *MockRepository) GetCCLFFileExistsByName(ctx context.Context, name string) (bool, error)
- func (_mock *MockRepository) GetJobByID(ctx context.Context, jobID uint) (*Job, error)
- func (_mock *MockRepository) GetJobKey(ctx context.Context, jobID uint, filename string) (*JobKey, error)
- func (_mock *MockRepository) GetJobKeys(ctx context.Context, jobID uint) ([]*JobKey, error)
- func (_mock *MockRepository) GetJobs(ctx context.Context, acoID uuid.UUID, statuses ...JobStatus) ([]*Job, error)
- func (_mock *MockRepository) GetJobsByUpdateTimeAndStatus(ctx context.Context, lowerBound time.Time, upperBound time.Time, ...) ([]*Job, error)
- func (_mock *MockRepository) GetLatestCCLFFile(ctx context.Context, cmsID string, cclfNum int, importStatus string, ...) (*CCLFFile, error)
- func (_mock *MockRepository) GetSuppressedMBIs(ctx context.Context, lookbackDays int, upperBound time.Time) ([]string, error)
- func (_mock *MockRepository) UpdateACO(ctx context.Context, acoUUID uuid.UUID, fieldsAndValues map[string]interface{}) error
- func (_mock *MockRepository) UpdateCCLFFileImportStatus(ctx context.Context, fileID uint, importStatus string) error
- func (_mock *MockRepository) UpdateJob(ctx context.Context, j Job) error
- func (_mock *MockRepository) UpdateSuppressionFileImportStatus(ctx context.Context, fileID uint, importStatus string) error
- type MockRepository_CreateACO_Call
- func (_c *MockRepository_CreateACO_Call) Return(err error) *MockRepository_CreateACO_Call
- func (_c *MockRepository_CreateACO_Call) Run(run func(ctx context.Context, aco ACO)) *MockRepository_CreateACO_Call
- func (_c *MockRepository_CreateACO_Call) RunAndReturn(run func(ctx context.Context, aco ACO) error) *MockRepository_CreateACO_Call
- type MockRepository_CreateCCLFFile_Call
- func (_c *MockRepository_CreateCCLFFile_Call) Return(v uint, err error) *MockRepository_CreateCCLFFile_Call
- func (_c *MockRepository_CreateCCLFFile_Call) Run(run func(ctx context.Context, cclfFile CCLFFile)) *MockRepository_CreateCCLFFile_Call
- func (_c *MockRepository_CreateCCLFFile_Call) RunAndReturn(run func(ctx context.Context, cclfFile CCLFFile) (uint, error)) *MockRepository_CreateCCLFFile_Call
- type MockRepository_CreateJob_Call
- func (_c *MockRepository_CreateJob_Call) Return(jobID uint, err error) *MockRepository_CreateJob_Call
- func (_c *MockRepository_CreateJob_Call) Run(run func(ctx context.Context, j Job)) *MockRepository_CreateJob_Call
- func (_c *MockRepository_CreateJob_Call) RunAndReturn(run func(ctx context.Context, j Job) (uint, error)) *MockRepository_CreateJob_Call
- type MockRepository_CreateSuppressionFile_Call
- func (_c *MockRepository_CreateSuppressionFile_Call) Return(v uint, err error) *MockRepository_CreateSuppressionFile_Call
- func (_c *MockRepository_CreateSuppressionFile_Call) Run(run func(ctx context.Context, suppressionFile optout.OptOutFile)) *MockRepository_CreateSuppressionFile_Call
- func (_c *MockRepository_CreateSuppressionFile_Call) RunAndReturn(run func(ctx context.Context, suppressionFile optout.OptOutFile) (uint, error)) *MockRepository_CreateSuppressionFile_Call
- type MockRepository_CreateSuppression_Call
- func (_c *MockRepository_CreateSuppression_Call) Return(err error) *MockRepository_CreateSuppression_Call
- func (_c *MockRepository_CreateSuppression_Call) Run(run func(ctx context.Context, suppression optout.OptOutRecord)) *MockRepository_CreateSuppression_Call
- func (_c *MockRepository_CreateSuppression_Call) RunAndReturn(run func(ctx context.Context, suppression optout.OptOutRecord) error) *MockRepository_CreateSuppression_Call
- type MockRepository_Expecter
- func (_e *MockRepository_Expecter) CreateACO(ctx interface{}, aco interface{}) *MockRepository_CreateACO_Call
- func (_e *MockRepository_Expecter) CreateCCLFFile(ctx interface{}, cclfFile interface{}) *MockRepository_CreateCCLFFile_Call
- func (_e *MockRepository_Expecter) CreateJob(ctx interface{}, j interface{}) *MockRepository_CreateJob_Call
- func (_e *MockRepository_Expecter) CreateSuppression(ctx interface{}, suppression interface{}) *MockRepository_CreateSuppression_Call
- func (_e *MockRepository_Expecter) CreateSuppressionFile(ctx interface{}, suppressionFile interface{}) *MockRepository_CreateSuppressionFile_Call
- func (_e *MockRepository_Expecter) GetACOByCMSID(ctx interface{}, cmsID interface{}) *MockRepository_GetACOByCMSID_Call
- func (_e *MockRepository_Expecter) GetACOByClientID(ctx interface{}, clientID interface{}) *MockRepository_GetACOByClientID_Call
- func (_e *MockRepository_Expecter) GetACOByUUID(ctx interface{}, uuid1 interface{}) *MockRepository_GetACOByUUID_Call
- func (_e *MockRepository_Expecter) GetCCLFBeneficiaries(ctx interface{}, cclfFileID interface{}, ignoredMBIs interface{}) *MockRepository_GetCCLFBeneficiaries_Call
- func (_e *MockRepository_Expecter) GetCCLFBeneficiaryMBIs(ctx interface{}, cclfFileID interface{}) *MockRepository_GetCCLFBeneficiaryMBIs_Call
- func (_e *MockRepository_Expecter) GetCCLFFileByID(ctx interface{}, ID interface{}) *MockRepository_GetCCLFFileByID_Call
- func (_e *MockRepository_Expecter) GetCCLFFileExistsByName(ctx interface{}, name interface{}) *MockRepository_GetCCLFFileExistsByName_Call
- func (_e *MockRepository_Expecter) GetJobByID(ctx interface{}, jobID interface{}) *MockRepository_GetJobByID_Call
- func (_e *MockRepository_Expecter) GetJobKey(ctx interface{}, jobID interface{}, filename interface{}) *MockRepository_GetJobKey_Call
- func (_e *MockRepository_Expecter) GetJobKeys(ctx interface{}, jobID interface{}) *MockRepository_GetJobKeys_Call
- func (_e *MockRepository_Expecter) GetJobs(ctx interface{}, acoID interface{}, statuses ...interface{}) *MockRepository_GetJobs_Call
- func (_e *MockRepository_Expecter) GetJobsByUpdateTimeAndStatus(ctx interface{}, lowerBound interface{}, upperBound interface{}, ...) *MockRepository_GetJobsByUpdateTimeAndStatus_Call
- func (_e *MockRepository_Expecter) GetLatestCCLFFile(ctx interface{}, cmsID interface{}, cclfNum interface{}, ...) *MockRepository_GetLatestCCLFFile_Call
- func (_e *MockRepository_Expecter) GetSuppressedMBIs(ctx interface{}, lookbackDays interface{}, upperBound interface{}) *MockRepository_GetSuppressedMBIs_Call
- func (_e *MockRepository_Expecter) UpdateACO(ctx interface{}, acoUUID interface{}, fieldsAndValues interface{}) *MockRepository_UpdateACO_Call
- func (_e *MockRepository_Expecter) UpdateCCLFFileImportStatus(ctx interface{}, fileID interface{}, importStatus interface{}) *MockRepository_UpdateCCLFFileImportStatus_Call
- func (_e *MockRepository_Expecter) UpdateJob(ctx interface{}, j interface{}) *MockRepository_UpdateJob_Call
- func (_e *MockRepository_Expecter) UpdateSuppressionFileImportStatus(ctx interface{}, fileID interface{}, importStatus interface{}) *MockRepository_UpdateSuppressionFileImportStatus_Call
- type MockRepository_GetACOByCMSID_Call
- func (_c *MockRepository_GetACOByCMSID_Call) Return(aCO *ACO, err error) *MockRepository_GetACOByCMSID_Call
- func (_c *MockRepository_GetACOByCMSID_Call) Run(run func(ctx context.Context, cmsID string)) *MockRepository_GetACOByCMSID_Call
- func (_c *MockRepository_GetACOByCMSID_Call) RunAndReturn(run func(ctx context.Context, cmsID string) (*ACO, error)) *MockRepository_GetACOByCMSID_Call
- type MockRepository_GetACOByClientID_Call
- func (_c *MockRepository_GetACOByClientID_Call) Return(aCO *ACO, err error) *MockRepository_GetACOByClientID_Call
- func (_c *MockRepository_GetACOByClientID_Call) Run(run func(ctx context.Context, clientID string)) *MockRepository_GetACOByClientID_Call
- func (_c *MockRepository_GetACOByClientID_Call) RunAndReturn(run func(ctx context.Context, clientID string) (*ACO, error)) *MockRepository_GetACOByClientID_Call
- type MockRepository_GetACOByUUID_Call
- func (_c *MockRepository_GetACOByUUID_Call) Return(aCO *ACO, err error) *MockRepository_GetACOByUUID_Call
- func (_c *MockRepository_GetACOByUUID_Call) Run(run func(ctx context.Context, uuid1 uuid.UUID)) *MockRepository_GetACOByUUID_Call
- func (_c *MockRepository_GetACOByUUID_Call) RunAndReturn(run func(ctx context.Context, uuid1 uuid.UUID) (*ACO, error)) *MockRepository_GetACOByUUID_Call
- type MockRepository_GetCCLFBeneficiaries_Call
- func (_c *MockRepository_GetCCLFBeneficiaries_Call) Return(cCLFBeneficiarys []*CCLFBeneficiary, err error) *MockRepository_GetCCLFBeneficiaries_Call
- func (_c *MockRepository_GetCCLFBeneficiaries_Call) Run(run func(ctx context.Context, cclfFileID uint, ignoredMBIs []string)) *MockRepository_GetCCLFBeneficiaries_Call
- func (_c *MockRepository_GetCCLFBeneficiaries_Call) RunAndReturn(...) *MockRepository_GetCCLFBeneficiaries_Call
- type MockRepository_GetCCLFBeneficiaryMBIs_Call
- func (_c *MockRepository_GetCCLFBeneficiaryMBIs_Call) Return(strings []string, err error) *MockRepository_GetCCLFBeneficiaryMBIs_Call
- func (_c *MockRepository_GetCCLFBeneficiaryMBIs_Call) Run(run func(ctx context.Context, cclfFileID uint)) *MockRepository_GetCCLFBeneficiaryMBIs_Call
- func (_c *MockRepository_GetCCLFBeneficiaryMBIs_Call) RunAndReturn(run func(ctx context.Context, cclfFileID uint) ([]string, error)) *MockRepository_GetCCLFBeneficiaryMBIs_Call
- type MockRepository_GetCCLFFileByID_Call
- func (_c *MockRepository_GetCCLFFileByID_Call) Return(cCLFFile *CCLFFile, err error) *MockRepository_GetCCLFFileByID_Call
- func (_c *MockRepository_GetCCLFFileByID_Call) Run(run func(ctx context.Context, ID uint)) *MockRepository_GetCCLFFileByID_Call
- func (_c *MockRepository_GetCCLFFileByID_Call) RunAndReturn(run func(ctx context.Context, ID uint) (*CCLFFile, error)) *MockRepository_GetCCLFFileByID_Call
- type MockRepository_GetCCLFFileExistsByName_Call
- func (_c *MockRepository_GetCCLFFileExistsByName_Call) Return(b bool, err error) *MockRepository_GetCCLFFileExistsByName_Call
- func (_c *MockRepository_GetCCLFFileExistsByName_Call) Run(run func(ctx context.Context, name string)) *MockRepository_GetCCLFFileExistsByName_Call
- func (_c *MockRepository_GetCCLFFileExistsByName_Call) RunAndReturn(run func(ctx context.Context, name string) (bool, error)) *MockRepository_GetCCLFFileExistsByName_Call
- type MockRepository_GetJobByID_Call
- func (_c *MockRepository_GetJobByID_Call) Return(job *Job, err error) *MockRepository_GetJobByID_Call
- func (_c *MockRepository_GetJobByID_Call) Run(run func(ctx context.Context, jobID uint)) *MockRepository_GetJobByID_Call
- func (_c *MockRepository_GetJobByID_Call) RunAndReturn(run func(ctx context.Context, jobID uint) (*Job, error)) *MockRepository_GetJobByID_Call
- type MockRepository_GetJobKey_Call
- func (_c *MockRepository_GetJobKey_Call) Return(jobKey *JobKey, err error) *MockRepository_GetJobKey_Call
- func (_c *MockRepository_GetJobKey_Call) Run(run func(ctx context.Context, jobID uint, filename string)) *MockRepository_GetJobKey_Call
- func (_c *MockRepository_GetJobKey_Call) RunAndReturn(run func(ctx context.Context, jobID uint, filename string) (*JobKey, error)) *MockRepository_GetJobKey_Call
- type MockRepository_GetJobKeys_Call
- func (_c *MockRepository_GetJobKeys_Call) Return(jobKeys []*JobKey, err error) *MockRepository_GetJobKeys_Call
- func (_c *MockRepository_GetJobKeys_Call) Run(run func(ctx context.Context, jobID uint)) *MockRepository_GetJobKeys_Call
- func (_c *MockRepository_GetJobKeys_Call) RunAndReturn(run func(ctx context.Context, jobID uint) ([]*JobKey, error)) *MockRepository_GetJobKeys_Call
- type MockRepository_GetJobsByUpdateTimeAndStatus_Call
- func (_c *MockRepository_GetJobsByUpdateTimeAndStatus_Call) Return(jobs []*Job, err error) *MockRepository_GetJobsByUpdateTimeAndStatus_Call
- func (_c *MockRepository_GetJobsByUpdateTimeAndStatus_Call) Run(run func(ctx context.Context, lowerBound time.Time, upperBound time.Time, ...)) *MockRepository_GetJobsByUpdateTimeAndStatus_Call
- func (_c *MockRepository_GetJobsByUpdateTimeAndStatus_Call) RunAndReturn(...) *MockRepository_GetJobsByUpdateTimeAndStatus_Call
- type MockRepository_GetJobs_Call
- func (_c *MockRepository_GetJobs_Call) Return(jobs []*Job, err error) *MockRepository_GetJobs_Call
- func (_c *MockRepository_GetJobs_Call) Run(run func(ctx context.Context, acoID uuid.UUID, statuses ...JobStatus)) *MockRepository_GetJobs_Call
- func (_c *MockRepository_GetJobs_Call) RunAndReturn(...) *MockRepository_GetJobs_Call
- type MockRepository_GetLatestCCLFFile_Call
- func (_c *MockRepository_GetLatestCCLFFile_Call) Return(cCLFFile *CCLFFile, err error) *MockRepository_GetLatestCCLFFile_Call
- func (_c *MockRepository_GetLatestCCLFFile_Call) Run(...) *MockRepository_GetLatestCCLFFile_Call
- func (_c *MockRepository_GetLatestCCLFFile_Call) RunAndReturn(...) *MockRepository_GetLatestCCLFFile_Call
- type MockRepository_GetSuppressedMBIs_Call
- func (_c *MockRepository_GetSuppressedMBIs_Call) Return(strings []string, err error) *MockRepository_GetSuppressedMBIs_Call
- func (_c *MockRepository_GetSuppressedMBIs_Call) Run(run func(ctx context.Context, lookbackDays int, upperBound time.Time)) *MockRepository_GetSuppressedMBIs_Call
- func (_c *MockRepository_GetSuppressedMBIs_Call) RunAndReturn(...) *MockRepository_GetSuppressedMBIs_Call
- type MockRepository_UpdateACO_Call
- type MockRepository_UpdateCCLFFileImportStatus_Call
- func (_c *MockRepository_UpdateCCLFFileImportStatus_Call) Return(err error) *MockRepository_UpdateCCLFFileImportStatus_Call
- func (_c *MockRepository_UpdateCCLFFileImportStatus_Call) Run(run func(ctx context.Context, fileID uint, importStatus string)) *MockRepository_UpdateCCLFFileImportStatus_Call
- func (_c *MockRepository_UpdateCCLFFileImportStatus_Call) RunAndReturn(run func(ctx context.Context, fileID uint, importStatus string) error) *MockRepository_UpdateCCLFFileImportStatus_Call
- type MockRepository_UpdateJob_Call
- func (_c *MockRepository_UpdateJob_Call) Return(err error) *MockRepository_UpdateJob_Call
- func (_c *MockRepository_UpdateJob_Call) Run(run func(ctx context.Context, j Job)) *MockRepository_UpdateJob_Call
- func (_c *MockRepository_UpdateJob_Call) RunAndReturn(run func(ctx context.Context, j Job) error) *MockRepository_UpdateJob_Call
- type MockRepository_UpdateSuppressionFileImportStatus_Call
- func (_c *MockRepository_UpdateSuppressionFileImportStatus_Call) Return(err error) *MockRepository_UpdateSuppressionFileImportStatus_Call
- func (_c *MockRepository_UpdateSuppressionFileImportStatus_Call) Run(run func(ctx context.Context, fileID uint, importStatus string)) *MockRepository_UpdateSuppressionFileImportStatus_Call
- func (_c *MockRepository_UpdateSuppressionFileImportStatus_Call) RunAndReturn(run func(ctx context.Context, fileID uint, importStatus string) error) *MockRepository_UpdateSuppressionFileImportStatus_Call
- type NDJSON
- type NotFoundResponse
- type OperationOutcomeResponse
- type OptOut
- type Patient
- type Repository
- type ResourceTypeParam
- type ResourceTypeParamV2
- type ServeDataRequestHeaders
- type ServerError
- type SinceParam
- type StatusParam
- type Termination
- type TokenResponse
- type TooManyRequestsResponse
- type VersionResponse
- type Welcome
Constants ¶
const BlankFileName string = "blank.ndjson"
BlankFileName contains the naming convention for empty ndjson file
Variables ¶
Functions ¶
func SetMockRepository ¶
func SetMockRepository(t *testing.T, other *MockRepository)
SetMockRepository sets the current repository to the one that's supplied in this function. It leverages the Cleanup() func to ensure the original repository is restored at the end of the test.
Types ¶
type ACO ¶
type ACO struct {
ID uint
UUID uuid.UUID `json:"uuid"`
CMSID *string `json:"cms_id"`
Name string `json:"name"`
ClientID string `json:"client_id"`
GroupID string `json:"group_id"`
SystemID string `json:"system_id"`
TerminationDetails *Termination `json:"termination"`
}
ACO represents an Accountable Care Organization.
func (*ACO) Denylisted ¶
Denylisted returns bool based on TerminationDetails.
type Attribution ¶
type Attribution uint8
const ( AttributionHistorical Attribution = iota AttributionLatest )
type AttributionFileStatusResponse ¶
type AttributionFileStatusResponse struct {
// in: body
Body AttributionFilesParam `json:"body,omitempty"`
}
JSON object containing a cclf_files field swagger:response AttributionFileStatusResponse
type AttributionFilesParam ¶
type AttributionFilesParam struct {
IngestionDates []IngestionDatesStatusParam `json:"ingestion_dates"`
}
type AuthResponse ¶
type AuthResponse struct {
// in: body
Body struct {
// Required: true
Version string `json:"auth_provider"`
}
}
JSON object containing an auth_provider field swagger:response AuthResponse
type BadRequestResponse ¶
type BadRequestResponse struct {
// in: body
Body OperationOutcomeResponse
}
There was a problem with the request. The body will contain a FHIR OperationOutcome resource in JSON format. https://www.hl7.org/fhir/operationoutcome.html Please refer to the body of the response for details. swagger:response badRequestResponse
type BulkRequestHeaders ¶
type BulkRequestHeaders struct {
// required: true
// in: header
// enum: respond-async
Prefer string
}
swagger:parameters bulkPatientRequest bulkGroupRequest bulkPatientRequestV2 bulkGroupRequestV2
type BulkRequestResponse ¶
type BulkRequestResponse struct {
// The location where the job status can be checked
ContentLocation string `json:"Content-Location"`
}
BulkRequestResponse is the return from a request to initiate a bulk data collection process swagger:response BulkRequestResponse
type BundleResponse ¶
type BundleResponse struct {
// Bundle
ResourceType string `json:"resourceType"`
// Total number of entries
Total int `json:"total"`
// Searchset
Type string `json:"type"`
Entry []EntryResponse `json:"entry"`
}
type CCLFBeneficiary ¶
"The MBI has 11 characters, like the Health Insurance Claim Number (HICN), which can have up to 11." https://www.cms.gov/Medicare/New-Medicare-Card/Understanding-the-MBI-with-Format.pdf
type CCLFFileType ¶
type CCLFFileType int16
const ( FileTypeDefault CCLFFileType = iota FileTypeRunout )
func (CCLFFileType) String ¶
func (t CCLFFileType) String() string
String returns the letter associated with the CCLFFileType.
type DeleteJobResponse ¶
type DeleteJobResponse struct {
}
The job has been deleted. swagger:response deleteJobResponse
type EntryResponse ¶
type EntryResponse struct {
Resource struct {
// Task
ResourceType string `json:"resourceType"`
// Order
Intent string `json:"intent"`
// Job Status
Status string `json:"status"`
ExecutionPeriod struct {
// Time job started
Start time.Time `json:"start"`
// Time job completed
End time.Time `json:"end"`
}
Identifier struct {
// Url for jobs statuses
System string `json:"system"`
// Official
Use string `json:"use"`
// Job Id
Value string `json:"value"`
} `json:"identifier"`
Input []struct {
Type struct {
// BULK FHIR Export
Text string `json:"text"`
} `json:"type"`
// Original job request url
ValueString string `json:"valueString"`
} `json:"input"`
} `json:"resource"`
}
type ErrorResponse ¶
type ErrorResponse struct {
// in: body
Body OperationOutcomeResponse
}
An error occurred. The body will contain a FHIR OperationOutcome resource in JSON format. https://www.hl7.org/fhir/operationoutcome.html Please refer to the body of the response for details. swagger:response errorResponse
type FileNDJSON ¶
type FileNDJSON struct {
// Header defining encoding type used
// enum: gzip
ContentEncoding string `json:"Content-Encoding"`
// in: body
Body NDJSON
}
File of newline-delimited JSON FHIR objects swagger:response FileNDJSON
type FileParam ¶
type FileParam struct {
// Name of file to be downloaded
// in: path
// required: true
Filename string `json:"filename"`
}
swagger:parameters serveData
type GoneResponse ¶
type GoneResponse struct {
// in: body
Body OperationOutcomeResponse
}
The requested resource is no longer available. The body will contain a FHIR OperationOutcome resource in JSON format. https://www.hl7.org/fhir/operationoutcome.html swagger:response goneResponse
type GroupIDParam ¶
type GroupIDParam struct {
// ID of group export
// in: path
// required: true
// enum: all,runout
GroupID string `json:"groupId"`
}
A BulkGroupRequest parameter model.
This is used for operations that want the groupID of a group in the path swagger:parameters bulkGroupRequest bulkGroupRequestV2
type InvalidCredentials ¶
type InvalidCredentials struct{}
Unauthorized. The provided credentials are invalid for the requested resource. swagger:response invalidCredentials
type Job ¶
type Job struct {
ID uint
ACOID uuid.UUID `json:"aco_id"`
RequestURL string `json:"request_url"` // request_url
Status JobStatus `json:"status"` // status
TransactionTime time.Time // most recent data load transaction time from BFD
JobCount int
CreatedAt time.Time
UpdatedAt time.Time
}
func (*Job) StatusMessage ¶
type JobIDParam ¶
type JobIDParam struct {
// ID of data export job
//
// in: path
// required: true
JobID int `json:"jobId"`
}
A JobStatus parameter model.
This is used for operations that want the ID of a job in the path swagger:parameters jobStatus jobStatusV2 serveData deleteJob deleteJobV2
type JobKey ¶
type JobKeyRepository ¶
type JobStatus ¶
type JobStatus string
const ( JobStatusPending JobStatus = "Pending" JobStatusInProgress JobStatus = "In Progress" JobStatusCompleted JobStatus = "Completed" JobStatusArchived JobStatus = "Archived" JobStatusExpired JobStatus = "Expired" JobStatusFailed JobStatus = "Failed" JobStatusCancelled JobStatus = "Cancelled" JobStatusFailedExpired JobStatus = "FailedExpired" // JobStatusFailedExpired represents a job that failed whose data has been cleaned up JobStatusCancelledExpired JobStatus = "CancelledExpired" // JobStatusCancelledExpired represents a job that has been cancelled whose data has been cleaned up )
type JobStatusResponse ¶
type JobStatusResponse struct {
// The status of the job progress
XProgress string `json:"X-Progress"`
}
Data export job is in progress. swagger:response jobStatusResponse
type JobsStatusResponse ¶
type JobsStatusResponse struct {
Body BundleResponse
}
JSON object containing status of requested jobs. The body will contain a FHIR Bundle resource in JSON format https://www.hl7.org/fhir/bundle.html and FHIR Task resources for the Bundle entries in JSON format https://www.hl7.org/fhir/task.html swagger:response jobsStatusResponse
type MetadataResponse ¶
type MetadataResponse struct {
// in: body
Body fhirmodels.CapabilityStatement `json:"body,omitempty"`
}
FHIR CapabilityStatement in JSON format swagger:response MetadataResponse
type MissingCredentials ¶
type MissingCredentials struct{}
Missing credentials swagger:response missingCredentials
type MockRepository ¶
MockRepository is an autogenerated mock type for the Repository type
func NewMockRepository ¶
func NewMockRepository(t interface {
mock.TestingT
Cleanup(func())
}) *MockRepository
NewMockRepository creates a new instance of MockRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockRepository) CreateACO ¶
func (_mock *MockRepository) CreateACO(ctx context.Context, aco ACO) error
CreateACO provides a mock function for the type MockRepository
func (*MockRepository) CreateCCLFFile ¶
CreateCCLFFile provides a mock function for the type MockRepository
func (*MockRepository) CreateSuppression ¶
func (_mock *MockRepository) CreateSuppression(ctx context.Context, suppression optout.OptOutRecord) error
CreateSuppression provides a mock function for the type MockRepository
func (*MockRepository) CreateSuppressionFile ¶
func (_mock *MockRepository) CreateSuppressionFile(ctx context.Context, suppressionFile optout.OptOutFile) (uint, error)
CreateSuppressionFile provides a mock function for the type MockRepository
func (*MockRepository) EXPECT ¶
func (_m *MockRepository) EXPECT() *MockRepository_Expecter
func (*MockRepository) GetACOByCMSID ¶
GetACOByCMSID provides a mock function for the type MockRepository
func (*MockRepository) GetACOByClientID ¶
GetACOByClientID provides a mock function for the type MockRepository
func (*MockRepository) GetACOByUUID ¶
GetACOByUUID provides a mock function for the type MockRepository
func (*MockRepository) GetCCLFBeneficiaries ¶
func (_mock *MockRepository) GetCCLFBeneficiaries(ctx context.Context, cclfFileID uint, ignoredMBIs []string) ([]*CCLFBeneficiary, error)
GetCCLFBeneficiaries provides a mock function for the type MockRepository
func (*MockRepository) GetCCLFBeneficiaryMBIs ¶
func (_mock *MockRepository) GetCCLFBeneficiaryMBIs(ctx context.Context, cclfFileID uint) ([]string, error)
GetCCLFBeneficiaryMBIs provides a mock function for the type MockRepository
func (*MockRepository) GetCCLFFileByID ¶
GetCCLFFileByID provides a mock function for the type MockRepository
func (*MockRepository) GetCCLFFileExistsByName ¶
func (_mock *MockRepository) GetCCLFFileExistsByName(ctx context.Context, name string) (bool, error)
GetCCLFFileExistsByName provides a mock function for the type MockRepository
func (*MockRepository) GetJobByID ¶
GetJobByID provides a mock function for the type MockRepository
func (*MockRepository) GetJobKey ¶
func (_mock *MockRepository) GetJobKey(ctx context.Context, jobID uint, filename string) (*JobKey, error)
GetJobKey provides a mock function for the type MockRepository
func (*MockRepository) GetJobKeys ¶
GetJobKeys provides a mock function for the type MockRepository
func (*MockRepository) GetJobs ¶
func (_mock *MockRepository) GetJobs(ctx context.Context, acoID uuid.UUID, statuses ...JobStatus) ([]*Job, error)
GetJobs provides a mock function for the type MockRepository
func (*MockRepository) GetJobsByUpdateTimeAndStatus ¶
func (_mock *MockRepository) GetJobsByUpdateTimeAndStatus(ctx context.Context, lowerBound time.Time, upperBound time.Time, statuses ...JobStatus) ([]*Job, error)
GetJobsByUpdateTimeAndStatus provides a mock function for the type MockRepository
func (*MockRepository) GetLatestCCLFFile ¶
func (_mock *MockRepository) GetLatestCCLFFile(ctx context.Context, cmsID string, cclfNum int, importStatus string, lowerBound time.Time, upperBound time.Time, fileType CCLFFileType) (*CCLFFile, error)
GetLatestCCLFFile provides a mock function for the type MockRepository
func (*MockRepository) GetSuppressedMBIs ¶
func (_mock *MockRepository) GetSuppressedMBIs(ctx context.Context, lookbackDays int, upperBound time.Time) ([]string, error)
GetSuppressedMBIs provides a mock function for the type MockRepository
func (*MockRepository) UpdateACO ¶
func (_mock *MockRepository) UpdateACO(ctx context.Context, acoUUID uuid.UUID, fieldsAndValues map[string]interface{}) error
UpdateACO provides a mock function for the type MockRepository
func (*MockRepository) UpdateCCLFFileImportStatus ¶
func (_mock *MockRepository) UpdateCCLFFileImportStatus(ctx context.Context, fileID uint, importStatus string) error
UpdateCCLFFileImportStatus provides a mock function for the type MockRepository
func (*MockRepository) UpdateJob ¶
func (_mock *MockRepository) UpdateJob(ctx context.Context, j Job) error
UpdateJob provides a mock function for the type MockRepository
func (*MockRepository) UpdateSuppressionFileImportStatus ¶
func (_mock *MockRepository) UpdateSuppressionFileImportStatus(ctx context.Context, fileID uint, importStatus string) error
UpdateSuppressionFileImportStatus provides a mock function for the type MockRepository
type MockRepository_CreateACO_Call ¶
MockRepository_CreateACO_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateACO'
func (*MockRepository_CreateACO_Call) Return ¶
func (_c *MockRepository_CreateACO_Call) Return(err error) *MockRepository_CreateACO_Call
func (*MockRepository_CreateACO_Call) Run ¶
func (_c *MockRepository_CreateACO_Call) Run(run func(ctx context.Context, aco ACO)) *MockRepository_CreateACO_Call
func (*MockRepository_CreateACO_Call) RunAndReturn ¶
func (_c *MockRepository_CreateACO_Call) RunAndReturn(run func(ctx context.Context, aco ACO) error) *MockRepository_CreateACO_Call
type MockRepository_CreateCCLFFile_Call ¶
MockRepository_CreateCCLFFile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateCCLFFile'
func (*MockRepository_CreateCCLFFile_Call) Return ¶
func (_c *MockRepository_CreateCCLFFile_Call) Return(v uint, err error) *MockRepository_CreateCCLFFile_Call
func (*MockRepository_CreateCCLFFile_Call) Run ¶
func (_c *MockRepository_CreateCCLFFile_Call) Run(run func(ctx context.Context, cclfFile CCLFFile)) *MockRepository_CreateCCLFFile_Call
func (*MockRepository_CreateCCLFFile_Call) RunAndReturn ¶
func (_c *MockRepository_CreateCCLFFile_Call) RunAndReturn(run func(ctx context.Context, cclfFile CCLFFile) (uint, error)) *MockRepository_CreateCCLFFile_Call
type MockRepository_CreateJob_Call ¶
MockRepository_CreateJob_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateJob'
func (*MockRepository_CreateJob_Call) Return ¶
func (_c *MockRepository_CreateJob_Call) Return(jobID uint, err error) *MockRepository_CreateJob_Call
func (*MockRepository_CreateJob_Call) Run ¶
func (_c *MockRepository_CreateJob_Call) Run(run func(ctx context.Context, j Job)) *MockRepository_CreateJob_Call
func (*MockRepository_CreateJob_Call) RunAndReturn ¶
func (_c *MockRepository_CreateJob_Call) RunAndReturn(run func(ctx context.Context, j Job) (uint, error)) *MockRepository_CreateJob_Call
type MockRepository_CreateSuppressionFile_Call ¶
MockRepository_CreateSuppressionFile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateSuppressionFile'
func (*MockRepository_CreateSuppressionFile_Call) Return ¶
func (_c *MockRepository_CreateSuppressionFile_Call) Return(v uint, err error) *MockRepository_CreateSuppressionFile_Call
func (*MockRepository_CreateSuppressionFile_Call) Run ¶
func (_c *MockRepository_CreateSuppressionFile_Call) Run(run func(ctx context.Context, suppressionFile optout.OptOutFile)) *MockRepository_CreateSuppressionFile_Call
func (*MockRepository_CreateSuppressionFile_Call) RunAndReturn ¶
func (_c *MockRepository_CreateSuppressionFile_Call) RunAndReturn(run func(ctx context.Context, suppressionFile optout.OptOutFile) (uint, error)) *MockRepository_CreateSuppressionFile_Call
type MockRepository_CreateSuppression_Call ¶
MockRepository_CreateSuppression_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateSuppression'
func (*MockRepository_CreateSuppression_Call) Return ¶
func (_c *MockRepository_CreateSuppression_Call) Return(err error) *MockRepository_CreateSuppression_Call
func (*MockRepository_CreateSuppression_Call) Run ¶
func (_c *MockRepository_CreateSuppression_Call) Run(run func(ctx context.Context, suppression optout.OptOutRecord)) *MockRepository_CreateSuppression_Call
func (*MockRepository_CreateSuppression_Call) RunAndReturn ¶
func (_c *MockRepository_CreateSuppression_Call) RunAndReturn(run func(ctx context.Context, suppression optout.OptOutRecord) error) *MockRepository_CreateSuppression_Call
type MockRepository_Expecter ¶
type MockRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*MockRepository_Expecter) CreateACO ¶
func (_e *MockRepository_Expecter) CreateACO(ctx interface{}, aco interface{}) *MockRepository_CreateACO_Call
CreateACO is a helper method to define mock.On call
- ctx context.Context
- aco ACO
func (*MockRepository_Expecter) CreateCCLFFile ¶
func (_e *MockRepository_Expecter) CreateCCLFFile(ctx interface{}, cclfFile interface{}) *MockRepository_CreateCCLFFile_Call
CreateCCLFFile is a helper method to define mock.On call
- ctx context.Context
- cclfFile CCLFFile
func (*MockRepository_Expecter) CreateJob ¶
func (_e *MockRepository_Expecter) CreateJob(ctx interface{}, j interface{}) *MockRepository_CreateJob_Call
CreateJob is a helper method to define mock.On call
- ctx context.Context
- j Job
func (*MockRepository_Expecter) CreateSuppression ¶
func (_e *MockRepository_Expecter) CreateSuppression(ctx interface{}, suppression interface{}) *MockRepository_CreateSuppression_Call
CreateSuppression is a helper method to define mock.On call
- ctx context.Context
- suppression optout.OptOutRecord
func (*MockRepository_Expecter) CreateSuppressionFile ¶
func (_e *MockRepository_Expecter) CreateSuppressionFile(ctx interface{}, suppressionFile interface{}) *MockRepository_CreateSuppressionFile_Call
CreateSuppressionFile is a helper method to define mock.On call
- ctx context.Context
- suppressionFile optout.OptOutFile
func (*MockRepository_Expecter) GetACOByCMSID ¶
func (_e *MockRepository_Expecter) GetACOByCMSID(ctx interface{}, cmsID interface{}) *MockRepository_GetACOByCMSID_Call
GetACOByCMSID is a helper method to define mock.On call
- ctx context.Context
- cmsID string
func (*MockRepository_Expecter) GetACOByClientID ¶
func (_e *MockRepository_Expecter) GetACOByClientID(ctx interface{}, clientID interface{}) *MockRepository_GetACOByClientID_Call
GetACOByClientID is a helper method to define mock.On call
- ctx context.Context
- clientID string
func (*MockRepository_Expecter) GetACOByUUID ¶
func (_e *MockRepository_Expecter) GetACOByUUID(ctx interface{}, uuid1 interface{}) *MockRepository_GetACOByUUID_Call
GetACOByUUID is a helper method to define mock.On call
- ctx context.Context
- uuid1 uuid.UUID
func (*MockRepository_Expecter) GetCCLFBeneficiaries ¶
func (_e *MockRepository_Expecter) GetCCLFBeneficiaries(ctx interface{}, cclfFileID interface{}, ignoredMBIs interface{}) *MockRepository_GetCCLFBeneficiaries_Call
GetCCLFBeneficiaries is a helper method to define mock.On call
- ctx context.Context
- cclfFileID uint
- ignoredMBIs []string
func (*MockRepository_Expecter) GetCCLFBeneficiaryMBIs ¶
func (_e *MockRepository_Expecter) GetCCLFBeneficiaryMBIs(ctx interface{}, cclfFileID interface{}) *MockRepository_GetCCLFBeneficiaryMBIs_Call
GetCCLFBeneficiaryMBIs is a helper method to define mock.On call
- ctx context.Context
- cclfFileID uint
func (*MockRepository_Expecter) GetCCLFFileByID ¶
func (_e *MockRepository_Expecter) GetCCLFFileByID(ctx interface{}, ID interface{}) *MockRepository_GetCCLFFileByID_Call
GetCCLFFileByID is a helper method to define mock.On call
- ctx context.Context
- ID uint
func (*MockRepository_Expecter) GetCCLFFileExistsByName ¶
func (_e *MockRepository_Expecter) GetCCLFFileExistsByName(ctx interface{}, name interface{}) *MockRepository_GetCCLFFileExistsByName_Call
GetCCLFFileExistsByName is a helper method to define mock.On call
- ctx context.Context
- name string
func (*MockRepository_Expecter) GetJobByID ¶
func (_e *MockRepository_Expecter) GetJobByID(ctx interface{}, jobID interface{}) *MockRepository_GetJobByID_Call
GetJobByID is a helper method to define mock.On call
- ctx context.Context
- jobID uint
func (*MockRepository_Expecter) GetJobKey ¶
func (_e *MockRepository_Expecter) GetJobKey(ctx interface{}, jobID interface{}, filename interface{}) *MockRepository_GetJobKey_Call
GetJobKey is a helper method to define mock.On call
- ctx context.Context
- jobID uint
- filename string
func (*MockRepository_Expecter) GetJobKeys ¶
func (_e *MockRepository_Expecter) GetJobKeys(ctx interface{}, jobID interface{}) *MockRepository_GetJobKeys_Call
GetJobKeys is a helper method to define mock.On call
- ctx context.Context
- jobID uint
func (*MockRepository_Expecter) GetJobs ¶
func (_e *MockRepository_Expecter) GetJobs(ctx interface{}, acoID interface{}, statuses ...interface{}) *MockRepository_GetJobs_Call
GetJobs is a helper method to define mock.On call
- ctx context.Context
- acoID uuid.UUID
- statuses ...JobStatus
func (*MockRepository_Expecter) GetJobsByUpdateTimeAndStatus ¶
func (_e *MockRepository_Expecter) GetJobsByUpdateTimeAndStatus(ctx interface{}, lowerBound interface{}, upperBound interface{}, statuses ...interface{}) *MockRepository_GetJobsByUpdateTimeAndStatus_Call
GetJobsByUpdateTimeAndStatus is a helper method to define mock.On call
- ctx context.Context
- lowerBound time.Time
- upperBound time.Time
- statuses ...JobStatus
func (*MockRepository_Expecter) GetLatestCCLFFile ¶
func (_e *MockRepository_Expecter) GetLatestCCLFFile(ctx interface{}, cmsID interface{}, cclfNum interface{}, importStatus interface{}, lowerBound interface{}, upperBound interface{}, fileType interface{}) *MockRepository_GetLatestCCLFFile_Call
GetLatestCCLFFile is a helper method to define mock.On call
- ctx context.Context
- cmsID string
- cclfNum int
- importStatus string
- lowerBound time.Time
- upperBound time.Time
- fileType CCLFFileType
func (*MockRepository_Expecter) GetSuppressedMBIs ¶
func (_e *MockRepository_Expecter) GetSuppressedMBIs(ctx interface{}, lookbackDays interface{}, upperBound interface{}) *MockRepository_GetSuppressedMBIs_Call
GetSuppressedMBIs is a helper method to define mock.On call
- ctx context.Context
- lookbackDays int
- upperBound time.Time
func (*MockRepository_Expecter) UpdateACO ¶
func (_e *MockRepository_Expecter) UpdateACO(ctx interface{}, acoUUID interface{}, fieldsAndValues interface{}) *MockRepository_UpdateACO_Call
UpdateACO is a helper method to define mock.On call
- ctx context.Context
- acoUUID uuid.UUID
- fieldsAndValues map[string]interface{}
func (*MockRepository_Expecter) UpdateCCLFFileImportStatus ¶
func (_e *MockRepository_Expecter) UpdateCCLFFileImportStatus(ctx interface{}, fileID interface{}, importStatus interface{}) *MockRepository_UpdateCCLFFileImportStatus_Call
UpdateCCLFFileImportStatus is a helper method to define mock.On call
- ctx context.Context
- fileID uint
- importStatus string
func (*MockRepository_Expecter) UpdateJob ¶
func (_e *MockRepository_Expecter) UpdateJob(ctx interface{}, j interface{}) *MockRepository_UpdateJob_Call
UpdateJob is a helper method to define mock.On call
- ctx context.Context
- j Job
func (*MockRepository_Expecter) UpdateSuppressionFileImportStatus ¶
func (_e *MockRepository_Expecter) UpdateSuppressionFileImportStatus(ctx interface{}, fileID interface{}, importStatus interface{}) *MockRepository_UpdateSuppressionFileImportStatus_Call
UpdateSuppressionFileImportStatus is a helper method to define mock.On call
- ctx context.Context
- fileID uint
- importStatus string
type MockRepository_GetACOByCMSID_Call ¶
MockRepository_GetACOByCMSID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetACOByCMSID'
func (*MockRepository_GetACOByCMSID_Call) Return ¶
func (_c *MockRepository_GetACOByCMSID_Call) Return(aCO *ACO, err error) *MockRepository_GetACOByCMSID_Call
func (*MockRepository_GetACOByCMSID_Call) Run ¶
func (_c *MockRepository_GetACOByCMSID_Call) Run(run func(ctx context.Context, cmsID string)) *MockRepository_GetACOByCMSID_Call
func (*MockRepository_GetACOByCMSID_Call) RunAndReturn ¶
func (_c *MockRepository_GetACOByCMSID_Call) RunAndReturn(run func(ctx context.Context, cmsID string) (*ACO, error)) *MockRepository_GetACOByCMSID_Call
type MockRepository_GetACOByClientID_Call ¶
MockRepository_GetACOByClientID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetACOByClientID'
func (*MockRepository_GetACOByClientID_Call) Return ¶
func (_c *MockRepository_GetACOByClientID_Call) Return(aCO *ACO, err error) *MockRepository_GetACOByClientID_Call
func (*MockRepository_GetACOByClientID_Call) Run ¶
func (_c *MockRepository_GetACOByClientID_Call) Run(run func(ctx context.Context, clientID string)) *MockRepository_GetACOByClientID_Call
func (*MockRepository_GetACOByClientID_Call) RunAndReturn ¶
func (_c *MockRepository_GetACOByClientID_Call) RunAndReturn(run func(ctx context.Context, clientID string) (*ACO, error)) *MockRepository_GetACOByClientID_Call
type MockRepository_GetACOByUUID_Call ¶
MockRepository_GetACOByUUID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetACOByUUID'
func (*MockRepository_GetACOByUUID_Call) Return ¶
func (_c *MockRepository_GetACOByUUID_Call) Return(aCO *ACO, err error) *MockRepository_GetACOByUUID_Call
func (*MockRepository_GetACOByUUID_Call) Run ¶
func (_c *MockRepository_GetACOByUUID_Call) Run(run func(ctx context.Context, uuid1 uuid.UUID)) *MockRepository_GetACOByUUID_Call
func (*MockRepository_GetACOByUUID_Call) RunAndReturn ¶
func (_c *MockRepository_GetACOByUUID_Call) RunAndReturn(run func(ctx context.Context, uuid1 uuid.UUID) (*ACO, error)) *MockRepository_GetACOByUUID_Call
type MockRepository_GetCCLFBeneficiaries_Call ¶
MockRepository_GetCCLFBeneficiaries_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCCLFBeneficiaries'
func (*MockRepository_GetCCLFBeneficiaries_Call) Return ¶
func (_c *MockRepository_GetCCLFBeneficiaries_Call) Return(cCLFBeneficiarys []*CCLFBeneficiary, err error) *MockRepository_GetCCLFBeneficiaries_Call
func (*MockRepository_GetCCLFBeneficiaries_Call) Run ¶
func (_c *MockRepository_GetCCLFBeneficiaries_Call) Run(run func(ctx context.Context, cclfFileID uint, ignoredMBIs []string)) *MockRepository_GetCCLFBeneficiaries_Call
func (*MockRepository_GetCCLFBeneficiaries_Call) RunAndReturn ¶
func (_c *MockRepository_GetCCLFBeneficiaries_Call) RunAndReturn(run func(ctx context.Context, cclfFileID uint, ignoredMBIs []string) ([]*CCLFBeneficiary, error)) *MockRepository_GetCCLFBeneficiaries_Call
type MockRepository_GetCCLFBeneficiaryMBIs_Call ¶
MockRepository_GetCCLFBeneficiaryMBIs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCCLFBeneficiaryMBIs'
func (*MockRepository_GetCCLFBeneficiaryMBIs_Call) Return ¶
func (_c *MockRepository_GetCCLFBeneficiaryMBIs_Call) Return(strings []string, err error) *MockRepository_GetCCLFBeneficiaryMBIs_Call
func (*MockRepository_GetCCLFBeneficiaryMBIs_Call) Run ¶
func (_c *MockRepository_GetCCLFBeneficiaryMBIs_Call) Run(run func(ctx context.Context, cclfFileID uint)) *MockRepository_GetCCLFBeneficiaryMBIs_Call
func (*MockRepository_GetCCLFBeneficiaryMBIs_Call) RunAndReturn ¶
func (_c *MockRepository_GetCCLFBeneficiaryMBIs_Call) RunAndReturn(run func(ctx context.Context, cclfFileID uint) ([]string, error)) *MockRepository_GetCCLFBeneficiaryMBIs_Call
type MockRepository_GetCCLFFileByID_Call ¶
MockRepository_GetCCLFFileByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCCLFFileByID'
func (*MockRepository_GetCCLFFileByID_Call) Return ¶
func (_c *MockRepository_GetCCLFFileByID_Call) Return(cCLFFile *CCLFFile, err error) *MockRepository_GetCCLFFileByID_Call
func (*MockRepository_GetCCLFFileByID_Call) Run ¶
func (_c *MockRepository_GetCCLFFileByID_Call) Run(run func(ctx context.Context, ID uint)) *MockRepository_GetCCLFFileByID_Call
func (*MockRepository_GetCCLFFileByID_Call) RunAndReturn ¶
func (_c *MockRepository_GetCCLFFileByID_Call) RunAndReturn(run func(ctx context.Context, ID uint) (*CCLFFile, error)) *MockRepository_GetCCLFFileByID_Call
type MockRepository_GetCCLFFileExistsByName_Call ¶
MockRepository_GetCCLFFileExistsByName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCCLFFileExistsByName'
func (*MockRepository_GetCCLFFileExistsByName_Call) Return ¶
func (_c *MockRepository_GetCCLFFileExistsByName_Call) Return(b bool, err error) *MockRepository_GetCCLFFileExistsByName_Call
func (*MockRepository_GetCCLFFileExistsByName_Call) Run ¶
func (_c *MockRepository_GetCCLFFileExistsByName_Call) Run(run func(ctx context.Context, name string)) *MockRepository_GetCCLFFileExistsByName_Call
func (*MockRepository_GetCCLFFileExistsByName_Call) RunAndReturn ¶
func (_c *MockRepository_GetCCLFFileExistsByName_Call) RunAndReturn(run func(ctx context.Context, name string) (bool, error)) *MockRepository_GetCCLFFileExistsByName_Call
type MockRepository_GetJobByID_Call ¶
MockRepository_GetJobByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetJobByID'
func (*MockRepository_GetJobByID_Call) Return ¶
func (_c *MockRepository_GetJobByID_Call) Return(job *Job, err error) *MockRepository_GetJobByID_Call
func (*MockRepository_GetJobByID_Call) Run ¶
func (_c *MockRepository_GetJobByID_Call) Run(run func(ctx context.Context, jobID uint)) *MockRepository_GetJobByID_Call
func (*MockRepository_GetJobByID_Call) RunAndReturn ¶
func (_c *MockRepository_GetJobByID_Call) RunAndReturn(run func(ctx context.Context, jobID uint) (*Job, error)) *MockRepository_GetJobByID_Call
type MockRepository_GetJobKey_Call ¶
MockRepository_GetJobKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetJobKey'
func (*MockRepository_GetJobKey_Call) Return ¶
func (_c *MockRepository_GetJobKey_Call) Return(jobKey *JobKey, err error) *MockRepository_GetJobKey_Call
func (*MockRepository_GetJobKey_Call) Run ¶
func (_c *MockRepository_GetJobKey_Call) Run(run func(ctx context.Context, jobID uint, filename string)) *MockRepository_GetJobKey_Call
func (*MockRepository_GetJobKey_Call) RunAndReturn ¶
func (_c *MockRepository_GetJobKey_Call) RunAndReturn(run func(ctx context.Context, jobID uint, filename string) (*JobKey, error)) *MockRepository_GetJobKey_Call
type MockRepository_GetJobKeys_Call ¶
MockRepository_GetJobKeys_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetJobKeys'
func (*MockRepository_GetJobKeys_Call) Return ¶
func (_c *MockRepository_GetJobKeys_Call) Return(jobKeys []*JobKey, err error) *MockRepository_GetJobKeys_Call
func (*MockRepository_GetJobKeys_Call) Run ¶
func (_c *MockRepository_GetJobKeys_Call) Run(run func(ctx context.Context, jobID uint)) *MockRepository_GetJobKeys_Call
func (*MockRepository_GetJobKeys_Call) RunAndReturn ¶
func (_c *MockRepository_GetJobKeys_Call) RunAndReturn(run func(ctx context.Context, jobID uint) ([]*JobKey, error)) *MockRepository_GetJobKeys_Call
type MockRepository_GetJobsByUpdateTimeAndStatus_Call ¶
MockRepository_GetJobsByUpdateTimeAndStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetJobsByUpdateTimeAndStatus'
func (*MockRepository_GetJobsByUpdateTimeAndStatus_Call) Return ¶
func (_c *MockRepository_GetJobsByUpdateTimeAndStatus_Call) Return(jobs []*Job, err error) *MockRepository_GetJobsByUpdateTimeAndStatus_Call
func (*MockRepository_GetJobsByUpdateTimeAndStatus_Call) Run ¶
func (_c *MockRepository_GetJobsByUpdateTimeAndStatus_Call) Run(run func(ctx context.Context, lowerBound time.Time, upperBound time.Time, statuses ...JobStatus)) *MockRepository_GetJobsByUpdateTimeAndStatus_Call
func (*MockRepository_GetJobsByUpdateTimeAndStatus_Call) RunAndReturn ¶
type MockRepository_GetJobs_Call ¶
MockRepository_GetJobs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetJobs'
func (*MockRepository_GetJobs_Call) Return ¶
func (_c *MockRepository_GetJobs_Call) Return(jobs []*Job, err error) *MockRepository_GetJobs_Call
func (*MockRepository_GetJobs_Call) Run ¶
func (_c *MockRepository_GetJobs_Call) Run(run func(ctx context.Context, acoID uuid.UUID, statuses ...JobStatus)) *MockRepository_GetJobs_Call
func (*MockRepository_GetJobs_Call) RunAndReturn ¶
func (_c *MockRepository_GetJobs_Call) RunAndReturn(run func(ctx context.Context, acoID uuid.UUID, statuses ...JobStatus) ([]*Job, error)) *MockRepository_GetJobs_Call
type MockRepository_GetLatestCCLFFile_Call ¶
MockRepository_GetLatestCCLFFile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLatestCCLFFile'
func (*MockRepository_GetLatestCCLFFile_Call) Return ¶
func (_c *MockRepository_GetLatestCCLFFile_Call) Return(cCLFFile *CCLFFile, err error) *MockRepository_GetLatestCCLFFile_Call
func (*MockRepository_GetLatestCCLFFile_Call) Run ¶
func (_c *MockRepository_GetLatestCCLFFile_Call) Run(run func(ctx context.Context, cmsID string, cclfNum int, importStatus string, lowerBound time.Time, upperBound time.Time, fileType CCLFFileType)) *MockRepository_GetLatestCCLFFile_Call
func (*MockRepository_GetLatestCCLFFile_Call) RunAndReturn ¶
func (_c *MockRepository_GetLatestCCLFFile_Call) RunAndReturn(run func(ctx context.Context, cmsID string, cclfNum int, importStatus string, lowerBound time.Time, upperBound time.Time, fileType CCLFFileType) (*CCLFFile, error)) *MockRepository_GetLatestCCLFFile_Call
type MockRepository_GetSuppressedMBIs_Call ¶
MockRepository_GetSuppressedMBIs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSuppressedMBIs'
func (*MockRepository_GetSuppressedMBIs_Call) Return ¶
func (_c *MockRepository_GetSuppressedMBIs_Call) Return(strings []string, err error) *MockRepository_GetSuppressedMBIs_Call
func (*MockRepository_GetSuppressedMBIs_Call) Run ¶
func (_c *MockRepository_GetSuppressedMBIs_Call) Run(run func(ctx context.Context, lookbackDays int, upperBound time.Time)) *MockRepository_GetSuppressedMBIs_Call
func (*MockRepository_GetSuppressedMBIs_Call) RunAndReturn ¶
func (_c *MockRepository_GetSuppressedMBIs_Call) RunAndReturn(run func(ctx context.Context, lookbackDays int, upperBound time.Time) ([]string, error)) *MockRepository_GetSuppressedMBIs_Call
type MockRepository_UpdateACO_Call ¶
MockRepository_UpdateACO_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateACO'
func (*MockRepository_UpdateACO_Call) Return ¶
func (_c *MockRepository_UpdateACO_Call) Return(err error) *MockRepository_UpdateACO_Call
func (*MockRepository_UpdateACO_Call) Run ¶
func (_c *MockRepository_UpdateACO_Call) Run(run func(ctx context.Context, acoUUID uuid.UUID, fieldsAndValues map[string]interface{})) *MockRepository_UpdateACO_Call
func (*MockRepository_UpdateACO_Call) RunAndReturn ¶
func (_c *MockRepository_UpdateACO_Call) RunAndReturn(run func(ctx context.Context, acoUUID uuid.UUID, fieldsAndValues map[string]interface{}) error) *MockRepository_UpdateACO_Call
type MockRepository_UpdateCCLFFileImportStatus_Call ¶
MockRepository_UpdateCCLFFileImportStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateCCLFFileImportStatus'
func (*MockRepository_UpdateCCLFFileImportStatus_Call) Return ¶
func (_c *MockRepository_UpdateCCLFFileImportStatus_Call) Return(err error) *MockRepository_UpdateCCLFFileImportStatus_Call
func (*MockRepository_UpdateCCLFFileImportStatus_Call) Run ¶
func (_c *MockRepository_UpdateCCLFFileImportStatus_Call) Run(run func(ctx context.Context, fileID uint, importStatus string)) *MockRepository_UpdateCCLFFileImportStatus_Call
func (*MockRepository_UpdateCCLFFileImportStatus_Call) RunAndReturn ¶
func (_c *MockRepository_UpdateCCLFFileImportStatus_Call) RunAndReturn(run func(ctx context.Context, fileID uint, importStatus string) error) *MockRepository_UpdateCCLFFileImportStatus_Call
type MockRepository_UpdateJob_Call ¶
MockRepository_UpdateJob_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateJob'
func (*MockRepository_UpdateJob_Call) Return ¶
func (_c *MockRepository_UpdateJob_Call) Return(err error) *MockRepository_UpdateJob_Call
func (*MockRepository_UpdateJob_Call) Run ¶
func (_c *MockRepository_UpdateJob_Call) Run(run func(ctx context.Context, j Job)) *MockRepository_UpdateJob_Call
func (*MockRepository_UpdateJob_Call) RunAndReturn ¶
func (_c *MockRepository_UpdateJob_Call) RunAndReturn(run func(ctx context.Context, j Job) error) *MockRepository_UpdateJob_Call
type MockRepository_UpdateSuppressionFileImportStatus_Call ¶
MockRepository_UpdateSuppressionFileImportStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateSuppressionFileImportStatus'
func (*MockRepository_UpdateSuppressionFileImportStatus_Call) Run ¶
func (_c *MockRepository_UpdateSuppressionFileImportStatus_Call) Run(run func(ctx context.Context, fileID uint, importStatus string)) *MockRepository_UpdateSuppressionFileImportStatus_Call
func (*MockRepository_UpdateSuppressionFileImportStatus_Call) RunAndReturn ¶
func (_c *MockRepository_UpdateSuppressionFileImportStatus_Call) RunAndReturn(run func(ctx context.Context, fileID uint, importStatus string) error) *MockRepository_UpdateSuppressionFileImportStatus_Call
type NotFoundResponse ¶
type NotFoundResponse struct {
// in: body
Body OperationOutcomeResponse
}
The requested path was not found. The body will contain a FHIR OperationOutcome resource in JSON format. https://www.hl7.org/fhir/operationoutcome.html swagger:response notFoundResponse
type OperationOutcomeResponse ¶
type OperationOutcomeResponse struct {
// OperationOutcome
ResourceType string
Issue struct {
// Severity of the outcome: fatal | error | warning | information
// Required: true
Severity string
//Error or warning code
// Required: true
Code string
// Additional details about the error
// Required: true
Details string
// Additional diagnostic information about the issue
// Required: true
Diagnostics string
// Path of element(s) related to issue
// Required: true
Location string
// FHIRPath of element(s) related to issue
// Required: true
Expression string
}
}
type Patient ¶
type Patient struct {
// uuid identifier of this request
ID string `json:"id"`
Meta struct {
LastUpdated time.Time
}
Entry []struct {
Resource struct {
Identifier []struct {
System string `json:"system"`
Value string `json:"value"`
} `json:"identifier"`
ID string `json:"id"`
} `json:"resource"`
} `json:"entry"`
}
type Repository ¶
type Repository interface {
JobKeyRepository
// contains filtered or unexported methods
}
Repository contains all of the CRUD methods represented in the models package from the storage layer
type ResourceTypeParam ¶
type ResourceTypeParam struct {
// Resource types requested
// in: query
// style: form
// explode: false
ResourceType []string `json:"_type"`
}
swagger:parameters bulkPatientRequest bulkGroupRequest
type ResourceTypeParamV2 ¶
type ResourceTypeParamV2 struct {
// Resource types requested
// in: query
// style: form
// explode: false
// required: true
// items.enum: Coverage,Patient,ExplanationOfBenefit
ResourceType []string `json:"_type"`
}
swagger:parameters bulkPatientRequestV2 bulkGroupRequestV2
type ServeDataRequestHeaders ¶
type ServeDataRequestHeaders struct {
// Encoding type to use
// in: header
// enum: gzip
AcceptEncoding string `json:"Accept-Encoding"`
}
swagger:parameters serveData
type SinceParam ¶
type SinceParam struct {
// Only include resource versions that were created at or after the given instant in time. Format of string must align with the FHIR Instant datatype (i.e., `2020-02-13T08:00:00.000-05:00`)
// in: query
// required: false
DateTime string `json:"_since"`
}
swagger:parameters bulkPatientRequest bulkGroupRequest bulkPatientRequestV2 bulkGroupRequestV2
type StatusParam ¶
type StatusParam struct {
// Job statuses requested
// in: query
// style: form
// explode: false
// required: false
// items.enum: Completed,Archived,Expired,Failed,FailedExpired,Pending,In Progress,Cancelled,CancelledExpired
Status []JobStatus `json:"_status"`
}
swagger:parameters jobsStatus jobsStatusV2
type Termination ¶
type Termination struct {
TerminationDate time.Time // When caller moved from full to limited access
CutoffDate time.Time // When caller moved to no access
DenylistType Denylist
AttributionStrategy Attribution
OptOutStrategy OptOut
ClaimsStrategy Claims
}
func (*Termination) AttributionDate ¶
func (t *Termination) AttributionDate() time.Time
AttributionDate returns the date that should be used for attribution based on the associated attribution strategy. The returned date should be used as an upper bound when querying for attribution data.
func (*Termination) ClaimsDate ¶
func (t *Termination) ClaimsDate() time.Time
ClaimsDate returns the date that should be used for claims based on the associated claims strategy. The returned date should be used as an upper bound when querying for claims data.
func (*Termination) OptOutDate ¶
func (t *Termination) OptOutDate() time.Time
OptOutDate returns the date that should be used for opt-outs based on the associated opt-out strategy. The returned date should be used as an upper bound when querying for opt-out data.
func (*Termination) Scan ¶
func (t *Termination) Scan(value interface{}) error
Make the Termination struct implement the sql.Scanner interface. This method simply decodes a JSON-encoded value into the struct fields.
type TokenResponse ¶
type TokenResponse struct {
// in: body
Body struct {
// Required: true
AccessToken string `json:"access_token"`
ExpiresIn string `json:"expires_in,omitempty"`
TokenType string `json:"token_type"`
}
}
JSON with a valid JWT swagger:response tokenResponse
type TooManyRequestsResponse ¶
type TooManyRequestsResponse struct {
}
A bulk export job of this resource type is already in progress for the ACO. swagger:response tooManyRequestsResponse
type VersionResponse ¶
type VersionResponse struct {
// in: body
Body struct {
// Required: true
Version string `json:"version"`
}
}
JSON object containing a version field swagger:response VersionResponse
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
fhir package contains structs representing FHIR data.
|
fhir package contains structs representing FHIR data. |
|
postgrestest
Package postgrestest provides CRUD utilities for the postgres database.
|
Package postgrestest provides CRUD utilities for the postgres database. |