chargemaster

package
v0.0.24 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ChargeMasterHostEnvVarName is the name of an environment variable that
	//points at the API root e.g "https://base.chargemaster.slade360emr.com/v1"
	ChargeMasterHostEnvVarName = "CHARGE_MASTER_API_HOST"

	// ChargeMasterAPISchemeEnvVarName points at an environment variable that
	// indicates whether the API is "http" or "https". It is used when our code
	// needs to construct custom API paths from scratch.
	ChargeMasterAPISchemeEnvVarName = "CHARGE_MASTER_API_SCHEME"

	// ChargeMasterTokenURLEnvVarName is an environment variable that contains
	// the path to the OAuth 2 token URL for the charge master base. This URL
	// could be the same as that used by other Slade 360 products e.g EDI.
	// It could also be different.
	ChargeMasterTokenURLEnvVarName = "CHARGE_MASTER_TOKEN_URL"

	// ChargeMasterClientIDEnvVarName is the name of an environment variable that holds
	// the OAuth2 client ID for a charge master API application.
	ChargeMasterClientIDEnvVarName = "CHARGE_MASTER_CLIENT_ID"

	// ChargeMasterClientSecretEnvVarName is the name of an environment variable that holds
	// the OAuth2 client secret for a charge master API application.
	ChargeMasterClientSecretEnvVarName = "CHARGE_MASTER_CLIENT_SECRET"

	// ChargeMasterUsernameEnvVarName is the name of an environment variable that holds the
	// username of a charge master API user.
	ChargeMasterUsernameEnvVarName = "CHARGE_MASTER_USERNAME"

	// ChargeMasterPasswordEnvVarName is the name of an environment variable that holds the
	// password of the charge master API user referred to by `ChargeMasterUsernameEnvVarName`.
	ChargeMasterPasswordEnvVarName = "CHARGE_MASTER_PASSWORD"

	// ChargeMasterGrantTypeEnvVarName should be "password" i.e the only type of OAuth 2
	// "application" that will work for this client is a confidential one that supports
	// password authentication.
	ChargeMasterGrantTypeEnvVarName = "CHARGE_MASTER_GRANT_TYPE"

	// ChargeMasterBusinessPartnerPath endpoint for business partners on charge master
	ChargeMasterBusinessPartnerPath = "/v1/business_partners/"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceChargeMaster

type ServiceChargeMaster interface {
	FetchChargeMasterClient() *apiclient.ServerClient
	FindProvider(ctx context.Context, pagination *firebasetools.PaginationInput, filter []*dto.BusinessPartnerFilterInput,
		sort []*dto.BusinessPartnerSortInput) (*dto.BusinessPartnerConnection, error)
	FindBranch(ctx context.Context, pagination *firebasetools.PaginationInput, filter []*dto.BranchFilterInput,
		sort []*dto.BranchSortInput) (*dto.BranchConnection, error)
	FetchProviderByID(ctx context.Context, id string) (*domain.BusinessPartner, error)
}

ServiceChargeMaster represents logic required to communicate with chargemaster

func NewChargeMasterUseCasesImpl

func NewChargeMasterUseCasesImpl() ServiceChargeMaster

NewChargeMasterUseCasesImpl ...

type ServiceChargeMasterImpl

type ServiceChargeMasterImpl struct {
	ChargeMasterClient *apiclient.ServerClient
}

ServiceChargeMasterImpl ..

func (ServiceChargeMasterImpl) FetchChargeMasterClient

func (chr ServiceChargeMasterImpl) FetchChargeMasterClient() *apiclient.ServerClient

FetchChargeMasterClient ...

func (ServiceChargeMasterImpl) FetchProviderByID

func (chr ServiceChargeMasterImpl) FetchProviderByID(ctx context.Context, id string) (*domain.BusinessPartner, error)

FetchProviderByID returns details of a specific provider given the ID

func (ServiceChargeMasterImpl) FindProvider

FindProvider search for a provider in chargemaster using their name

Example https://base.chargemaster.slade360emr.com/v1/business_partners/?bp_type=PROVIDER&search={name}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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