The ATL COM module generalInvoiceRequest is capable of
generating electronic and printed invoices & reminders
generating electronic and printed invoices & reminders
API browser of generalInvoiceRequest450 COM module
IGeneralInvoiceRequest::SetXtraDrug method | |||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Sets additional input data for the given drug service record if and only if eRoleType=enRolePharmacist.
The defined bit positions for lRegulationAttributes as of March 2018
|
|||||||||||||||||||||||||||||||||||||||||||
Restful webservice calling syntax | |||||||||||||||||||||||||||||||||||||||||||
[POST] | /baseURL/IGeneralInvoiceRequest/SetXtraDrug | ||||||||||||||||||||||||||||||||||||||||||
[JSON input data] | pIGeneralInvoiceRequest: lID: eIsIndicated: bstrIOCM: eDelivery: lRegulationAttributes: eHasLimitation: |
longValue, //interface address longValue, longValue, "utf8StringValue", longValue, longValue, longValue |
|||||||||||||||||||||||||||||||||||||||||
[JSON result data] | pbStatus: | booleanValue |
|||||||||||||||||||||||||||||||||||||||||
[HTTP result status] | 200 | Return status 200 signals a successful method call | |||||||||||||||||||||||||||||||||||||||||
204 | Return status 204 (noContent) signals that the end of an iteration is reached | ||||||||||||||||||||||||||||||||||||||||||
>= 400 | Return status >= 400 signals an unsuccessful function call. The returned JSON{errorCode: code, errorText:"text"} supplies the error message the same as GetAbortInfo() would do. | ||||||||||||||||||||||||||||||||||||||||||
C/C++ calling syntax | |||||||||||||||||||||||||||||||||||||||||||
HRESULT SetXtraDrug( | long
YesNoType BSTR DeliveryType long YesNoType VARIANT_BOOL |
lID,
eIsIndicated, bstrIOCM, eDelivery, lRegulationAttributes, eHasLimitation, *pbStatus); |
|||||||||||||||||||||||||||||||||||||||||
[C/C++ return value] | S_OK | This value is returned if the function call was successful. | |||||||||||||||||||||||||||||||||||||||||
S_FALSE | This value is returned if the end of an iteration is reached | ||||||||||||||||||||||||||||||||||||||||||
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. | ||||||||||||||||||||||||||||||||||||||||||
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. | |||||||||||||||||||||||||||||||||||||||||