The ATL COM module generalInvoiceRequest is capable of
generating electronic and printed invoices & reminders
						generating electronic and printed invoices & reminders
	
API browser of generalInvoiceRequest430 COM module
 
							
							
						
|  IGeneralInvoiceRequest::SetXtraDrug method | |||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Sets additional drug input data for the defined service record if eRoleType=enRolePharmacist. 
The defined bit positions for lRegulationAttributes as of Aug. 2010
 
 |  | ||||||||||||||||||||||||||||||||||
|  C/C++ calling syntax | |||||||||||||||||||||||||||||||||||
| HRESULT SetXtraDrug( | long YesNoType BSTR DeliveryType long YesNoType VARIANT_BOOL | lID, eIsIndicated, bstrIOCM, eDelivery, lRegulationAttributes, eHasLimitation, *pbStatus); | |||||||||||||||||||||||||||||||||
|  Calling argument description | |||||||||||||||||||||||||||||||||||
| [in] long | lID | The internal ID of the drug service record returned in the AddService method to which the extra drug information are appended. | |||||||||||||||||||||||||||||||||
| [in] YesNoType | eIsIndicated | Boolean value that defines if the drug is medically indicated (enYes) or not (enNo) | |||||||||||||||||||||||||||||||||
| [in] BSTR | bstrIOCM | Defines the official Swissmedic IOCM category of the drug given as 1-character uppercase string 'A' to 'E' | |||||||||||||||||||||||||||||||||
| [in] DeliveryType | eDelivery | The delivery mode given by the DeliveryType enumeration | |||||||||||||||||||||||||||||||||
| [in] long | lRegulationAttributes | lRegulationAttributes is a 32 bit integer where each bit defines one specific regulation code as contracted between pharmacists and insurances. The individual regulation codes can be Ored together to form to overall regulation | |||||||||||||||||||||||||||||||||
| [in] YesNoType | eHasLimitation | Boolean value that defines if the drug has a BAG defined limitation (enYes) or not (enNo) | |||||||||||||||||||||||||||||||||
| [out, retval] VARIANT_BOOL | *pbStatus | Return status of the method. If pbStatus is VARIANT_FALSE then an error occurred and GetAbortInfo should be called to retrieve the error string. | |||||||||||||||||||||||||||||||||
|  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. | ||||||||||||||||||||||||||||||||||
