API browser of generalCreditResponse430 COM module


/images/arrow_right.png IGeneralCreditResponse::GetBasicInsurance method
Retrieves the various identifiers (EAN, law type,...) and the structured address of the patient's basic insurance.

The basic insurance is supplied for an outer-cantonal stationary treatment since a credit request for the cantonal surgon must be generated/sent besides one for the target insurance (given by the GetLaw method).

VARIANT_FALSE is returned if the data are not defined.

space
 
/images/arrow_right.png C/C++ calling syntax
HRESULT GetBasicInsurance( LawType
BSTR
IAddress
VARIANT_BOOL
*peLawType,
*pbstrEAN,
**ppIAddress,
*pbStatus);
 
/images/arrow_right.png Calling argument description
[out] LawType *peLawType The type of basic insurance defined by the applicable type of law from the LawType enumeration.
[out] BSTR *pbstrEAN EAN number of the basic insurance as supplied by medwin.ch
[out] IAddress **ppIAddress The IAddress interface handle that allows to get the structured address data back.
If no address is defined then the handle is NULL.
[out, retval] VARIANT_BOOL *pbStatus Return status of the method. If pbStatus is VARIANT_FALSE the data are not defined.
 
/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.