models

package
v0.0.0-...-065a81b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 30, 2025 License: CC0-1.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
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

func (aco *ACO) Denylisted() bool

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

type CCLFBeneficiary struct {
	ID           uint
	FileID       uint
	MBI          string
	BlueButtonID string
}

"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 CCLFFile

type CCLFFile struct {
	ID              uint
	CCLFNum         int
	Name            string
	ACOCMSID        string
	Timestamp       time.Time
	PerformanceYear int
	ImportStatus    string
	Type            CCLFFileType
	// CreatedAt is automatically set by the database. This is only
	// set/pulled when querying data in the DB.
	CreatedAt time.Time
}

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 Claims

type Claims uint8
const (
	ClaimsHistorical Claims = iota
	ClaimsLatest
)

type DeleteJobResponse

type DeleteJobResponse struct {
}

The job has been deleted. swagger:response deleteJobResponse

type Denylist

type Denylist uint8
const (
	// Involuntary means the caller had access revoked immediately
	Involuntary Denylist = iota
	// Voluntary means the caller had limited access then had their access completely revoked
	Voluntary
	// Limited means the caller has limited access to the service
	Limited
)

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 IngestionDatesStatusParam

type IngestionDatesStatusParam struct {
	Timestamp time.Time `json:"timestamp"`
	Type      string    `json:"type"`
}

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

func (j *Job) StatusMessage(numCompletedJobKeys int) string

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 JobKey struct {
	ID    uint
	JobID uint `json:"job_id"`
	// Although que_job records are temporary, we store the ID to ensure
	// that workers are never duplicating job keys.
	QueJobID     *int64
	FileName     string
	ResourceType string
}

func (*JobKey) IsError

func (j *JobKey) IsError() bool

type JobKeyRepository

type JobKeyRepository interface {
	GetJobKeys(ctx context.Context, jobID uint) ([]*JobKey, error)

	GetJobKey(ctx context.Context, jobID uint, filename string) (*JobKey, error)
}

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

type MockRepository struct {
	mock.Mock
}

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

func (_mock *MockRepository) CreateCCLFFile(ctx context.Context, cclfFile CCLFFile) (uint, error)

CreateCCLFFile provides a mock function for the type MockRepository

func (*MockRepository) CreateJob

func (_mock *MockRepository) CreateJob(ctx context.Context, j Job) (uint, error)

CreateJob 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 (*MockRepository) GetACOByCMSID

func (_mock *MockRepository) GetACOByCMSID(ctx context.Context, cmsID string) (*ACO, error)

GetACOByCMSID provides a mock function for the type MockRepository

func (*MockRepository) GetACOByClientID

func (_mock *MockRepository) GetACOByClientID(ctx context.Context, clientID string) (*ACO, error)

GetACOByClientID provides a mock function for the type MockRepository

func (*MockRepository) GetACOByUUID

func (_mock *MockRepository) GetACOByUUID(ctx context.Context, uuid1 uuid.UUID) (*ACO, error)

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

func (_mock *MockRepository) GetCCLFFileByID(ctx context.Context, ID uint) (*CCLFFile, error)

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

func (_mock *MockRepository) GetJobByID(ctx context.Context, jobID uint) (*Job, error)

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

func (_mock *MockRepository) GetJobKeys(ctx context.Context, jobID uint) ([]*JobKey, error)

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

type MockRepository_CreateACO_Call struct {
	*mock.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 (*MockRepository_CreateACO_Call) Run

func (*MockRepository_CreateACO_Call) RunAndReturn

type MockRepository_CreateCCLFFile_Call

type MockRepository_CreateCCLFFile_Call struct {
	*mock.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 (*MockRepository_CreateCCLFFile_Call) Run

func (*MockRepository_CreateCCLFFile_Call) RunAndReturn

type MockRepository_CreateJob_Call

type MockRepository_CreateJob_Call struct {
	*mock.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 (*MockRepository_CreateJob_Call) Run

func (*MockRepository_CreateJob_Call) RunAndReturn

type MockRepository_CreateSuppressionFile_Call

type MockRepository_CreateSuppressionFile_Call struct {
	*mock.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 (*MockRepository_CreateSuppressionFile_Call) Run

func (*MockRepository_CreateSuppressionFile_Call) RunAndReturn

type MockRepository_CreateSuppression_Call

type MockRepository_CreateSuppression_Call struct {
	*mock.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 (*MockRepository_CreateSuppression_Call) Run

func (*MockRepository_CreateSuppression_Call) RunAndReturn

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

type MockRepository_GetACOByCMSID_Call struct {
	*mock.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 (*MockRepository_GetACOByCMSID_Call) Run

func (*MockRepository_GetACOByCMSID_Call) RunAndReturn

type MockRepository_GetACOByClientID_Call

type MockRepository_GetACOByClientID_Call struct {
	*mock.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 (*MockRepository_GetACOByClientID_Call) Run

func (*MockRepository_GetACOByClientID_Call) RunAndReturn

type MockRepository_GetACOByUUID_Call

type MockRepository_GetACOByUUID_Call struct {
	*mock.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 (*MockRepository_GetACOByUUID_Call) Run

func (*MockRepository_GetACOByUUID_Call) RunAndReturn

type MockRepository_GetCCLFBeneficiaries_Call

type MockRepository_GetCCLFBeneficiaries_Call struct {
	*mock.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 (*MockRepository_GetCCLFBeneficiaries_Call) Run

func (*MockRepository_GetCCLFBeneficiaries_Call) RunAndReturn

type MockRepository_GetCCLFBeneficiaryMBIs_Call

type MockRepository_GetCCLFBeneficiaryMBIs_Call struct {
	*mock.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 (*MockRepository_GetCCLFBeneficiaryMBIs_Call) Run

func (*MockRepository_GetCCLFBeneficiaryMBIs_Call) RunAndReturn

type MockRepository_GetCCLFFileByID_Call

type MockRepository_GetCCLFFileByID_Call struct {
	*mock.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 (*MockRepository_GetCCLFFileByID_Call) Run

func (*MockRepository_GetCCLFFileByID_Call) RunAndReturn

type MockRepository_GetCCLFFileExistsByName_Call

type MockRepository_GetCCLFFileExistsByName_Call struct {
	*mock.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 (*MockRepository_GetCCLFFileExistsByName_Call) Run

func (*MockRepository_GetCCLFFileExistsByName_Call) RunAndReturn

type MockRepository_GetJobByID_Call

type MockRepository_GetJobByID_Call struct {
	*mock.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 (*MockRepository_GetJobByID_Call) Run

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

type MockRepository_GetJobKey_Call struct {
	*mock.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 (*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

type MockRepository_GetJobKeys_Call struct {
	*mock.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 (*MockRepository_GetJobKeys_Call) Run

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

type MockRepository_GetJobsByUpdateTimeAndStatus_Call struct {
	*mock.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 (*MockRepository_GetJobsByUpdateTimeAndStatus_Call) Run

func (*MockRepository_GetJobsByUpdateTimeAndStatus_Call) RunAndReturn

type MockRepository_GetJobs_Call

type MockRepository_GetJobs_Call struct {
	*mock.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 (*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

type MockRepository_GetLatestCCLFFile_Call struct {
	*mock.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 (*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

type MockRepository_GetSuppressedMBIs_Call struct {
	*mock.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 (*MockRepository_GetSuppressedMBIs_Call) Run

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

type MockRepository_UpdateACO_Call struct {
	*mock.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 (*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

type MockRepository_UpdateCCLFFileImportStatus_Call struct {
	*mock.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 (*MockRepository_UpdateCCLFFileImportStatus_Call) Run

func (*MockRepository_UpdateCCLFFileImportStatus_Call) RunAndReturn

type MockRepository_UpdateJob_Call

type MockRepository_UpdateJob_Call struct {
	*mock.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 (*MockRepository_UpdateJob_Call) Run

func (*MockRepository_UpdateJob_Call) RunAndReturn

type MockRepository_UpdateSuppressionFileImportStatus_Call

type MockRepository_UpdateSuppressionFileImportStatus_Call struct {
	*mock.Call
}

MockRepository_UpdateSuppressionFileImportStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateSuppressionFileImportStatus'

func (*MockRepository_UpdateSuppressionFileImportStatus_Call) Return

func (*MockRepository_UpdateSuppressionFileImportStatus_Call) Run

func (*MockRepository_UpdateSuppressionFileImportStatus_Call) RunAndReturn

type NDJSON

type NDJSON string

swagger:model

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 OptOut

type OptOut uint8
const (
	OptOutHistorical OptOut = iota
	OptOutLatest
)

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 ServerError

type ServerError struct{}

Server error swagger:response serverError

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.

func (Termination) Value

func (t Termination) Value() (driver.Value, error)

Make the Termination struct implement the driver.Valuer interface. This method simply returns the JSON-encoded representation of the struct.

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

type Welcome

type Welcome struct{}

Welcome message swagger:response welcome

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL