API browser of tarmedValidator100 COM module


/images/arrow_right.png ISearch::GetAgeRestriction method
This method retrieves a possible age restriction interval of the service.
 
There are 3 different predications/interpretations possible with the returned data:
  • FALSE is returned: there is no age restriction at all
     
  • dDaysFrom < dDaysTo: means that there is an age restriction AND the age of the patient must lay inside the interval [ dDaysFrom, dDaysTo]
     
  • dDaysFrom > dDaysTo: means that there is an age restriction AND the age of the patient must lay outside the interval [dDaysTo , dDaysFrom] (this is the negation of the standard case!)
     
space
 
/images/arrow_right.png C/C++ calling syntax
HRESULT GetAgeRestriction( double
double
VARIANT_BOOL
*pdDaysFrom,
*pdDaysTo,
*pbStatus);
 
/images/arrow_right.png Calling argument description
[out] double *pdDaysFrom Lower bound of the restriction in days
[out] double *pdDaysTo Upper bound of the restriction in days
[out, retval] VARIANT_BOOL *pbStatus Return status of the method
 
/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.