Documentation
¶
Index ¶
- Constants
- type ServiceChargeMaster
- type ServiceChargeMasterImpl
- func (chr ServiceChargeMasterImpl) FetchChargeMasterClient() *apiclient.ServerClient
- func (chr ServiceChargeMasterImpl) FetchProviderByID(ctx context.Context, id string) (*domain.BusinessPartner, error)
- func (chr ServiceChargeMasterImpl) FindBranch(ctx context.Context, pagination *firebasetools.PaginationInput, ...) (*dto.BranchConnection, error)
- func (chr ServiceChargeMasterImpl) FindProvider(ctx context.Context, pagination *firebasetools.PaginationInput, ...) (*dto.BusinessPartnerConnection, error)
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) FindBranch ¶
func (chr ServiceChargeMasterImpl) FindBranch(ctx context.Context, pagination *firebasetools.PaginationInput, filter []*dto.BranchFilterInput, sort []*dto.BranchSortInput) (*dto.BranchConnection, error)
FindBranch lists all locations known to Slade 360 Charge Master Example URL: https://base.chargemaster.slade360emr.com/v1/business_partners/?format=json&page_size=100&parent=6ba48d97-93d2-4815-a447-f51240cbcab8&fields=id,name,slade_code
func (ServiceChargeMasterImpl) FindProvider ¶
func (chr ServiceChargeMasterImpl) FindProvider(ctx context.Context, pagination *firebasetools.PaginationInput, filter []*dto.BusinessPartnerFilterInput, sort []*dto.BusinessPartnerSortInput) (*dto.BusinessPartnerConnection, error)
FindProvider search for a provider in chargemaster using their name
Example https://base.chargemaster.slade360emr.com/v1/business_partners/?bp_type=PROVIDER&search={name}
Click to show internal directories.
Click to hide internal directories.