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
IGeneralInvoiceResult::GetXtraDrug method | |||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Retrieves additional drug input data for the defined service record if eRoleType=enRolePharmacist. VARIANT_FALSE is returned if the additional data is not defined.
The defined bit positions for lRegulationAttributes as of March 2018 are:
|
|||||||||||||||||||||||||||||||||||||||||||
Restful webservice calling syntax | |||||||||||||||||||||||||||||||||||||||||||
[POST] | /baseURL/IGeneralInvoiceResult/GetXtraDrug | ||||||||||||||||||||||||||||||||||||||||||
[JSON input data] | pIGeneralInvoiceResult: lID: |
longValue, //interface address longValue |
|||||||||||||||||||||||||||||||||||||||||
[JSON result data] | peIsIndicated: pbstrIOCM: peDelivery: plRegulationAttributes: peHasLimitation: pbStatus: |
longValue, "utf8StringValue", longValue, longValue, longValue, 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 GetXtraDrug( | long
YesNoType BSTR DeliveryType long YesNoType VARIANT_BOOL |
lID,
*peIsIndicated, *pbstrIOCM, *peDelivery, *plRegulationAttributes, *peHasLimitation, *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 IGeneralInvoiceRequest::AddService method to which the extra drug information are appended. | |||||||||||||||||||||||||||||||||||||||||
[out] YesNoType | *peIsIndicated | Boolean value that defines if the drug is medically indicated (enYes) or not (enNo) | |||||||||||||||||||||||||||||||||||||||||
[out] BSTR | *pbstrIOCM | Defines the official Swissmedic IOCM category of the drug given as 1-character uppercase string 'A' to 'E' | |||||||||||||||||||||||||||||||||||||||||
[out] DeliveryType | *peDelivery | The delivery mode given by the DeliveryType enumeration | |||||||||||||||||||||||||||||||||||||||||
[out] long | *plRegulationAttributes | 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
The defined bit positions as of Aug. 2010
|
|||||||||||||||||||||||||||||||||||||||||
[out] YesNoType | *peHasLimitation | 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 the additional data set is undefined. | |||||||||||||||||||||||||||||||||||||||||