API browser of generalCreditRequest430 COM module


/images/arrow_right.png IGeneralCreditResult::GetFirstService method
Retrieves the first service record.

VARIANT_FALSE is returned if the end of the service list is reached.

space
 
/images/arrow_right.png C/C++ calling syntax
HRESULT GetFirstService( BSTR
BSTR
BSTR
double
double
double
double
BSTR
VARIANT_BOOL
*pbstrTariffType,
*pbstrCode,
*pbstrText,
*pdQuantity,
*pdBaseAmount,
*pdScaleFactor,
*pdAmount,
*pbstrRemark,
*pbStatus);
 
/images/arrow_right.png Calling argument description
[out] BSTR *pbstrTariffType The official tariff type as defined by Forum Datenaustausch
bstrTariffType might be empty if the service is not covered by a official tariff catalog
[out] BSTR *pbstrCode The service code as given by the used tariff catalog.
bstrCode might be empty if the service is not covered by an official tariff catalog.
[out] BSTR *pbstrText The service name is the official service name as given by the used tariff catalog. If it is not a
service in the narrow sense (not covered by an official tariff catalog) then it describes that service with best effort.
[out] double *pdQuantity The floating point quantity.

Note that quantity changes the sign if a storno request is produced.

[out] double *pdBaseAmount The base amount is the cost in CHF of one unit (service) including any VAT portion.
[out] double *pdScaleFactor The applied scale factor for the given service. In principle the scale factor is used for defining discounts or surchages.
However, it can be used as well for defining cost fractions e.g. in a DRG service.
[out] double *pdAmount The amount in CHF of the service supplied in 2-digit precision calculated as quantity*scale factor*base amount.

Note, that the base amount includes any VAT portion, therefore amount does as well.

Note that amount changes the sign if a storno request is produced.

[out] BSTR *pbstrRemark An optional remark for the given service
[out, retval] VARIANT_BOOL *pbStatus Return status of the method. If pbStatus is VARIANT_FALSE the end of data is reached
 
/images/arrow_right.png C/C++ return value
S_OK This value is returned if the function call was successful or if the return value of a boolean method signalling a true value. In this case the VARIANT_BOOL is set to VARIANT_TRUE.
S_FALSE This is the return value of a boolean method signalling a false return value. In this case the VARIANT_BOOL is set to VARIANT_FALSE.
E_name This value is returned if the function call was unsuccessful and an error exception was generated. Note that if you are using SmartPointers an exception is thrown under these conditions.