API browser of generalInvoiceRequest450 COM module


/images/arrow_right.png IGeneralInvoiceRequest::SetXtraDrug method space
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
Bit Code Meaning
Bit 1   (0x000001)   code 100  "Nicht-SL Produkt ist vom Vertrauensarzt bewilligt worden"
"Produit non LS a été autorisé par le médecin-conseil"
Bit 2   (0x000002)   code 101  "Notfall: Abgabe eines anderen Produktes als auf dem Rezept"
"Cas d'urgence: remise d'un autre produit que celui figurant sur l'ordonnance"
Bit 3   (0x000004)   code 102  "Abgabe eines anderen Produktes als auf dem Rezept in Rücksprache mit dem Arzt"
"Remise d'un autre produit, après consultation du médecin, que celui figurant sur l'ordonnance"
Bit 4   (0x000008)   code 103  "Abgabe einer grösseren Packung (nicht-SL) anstelle von mehreren kleineren Packungen (SL)"
"Remise d'un emballage plus grand (non LS) en lieu et place de plusieurs emballages plus petits (LS)"
Bit 5   (0x000010)   code 104  "Abgabe einer kleineren Anzahl Packungen als verschrieben"
"Remise d'un nombre moins élevé d'emballages que le nombre prescrit"
Bit 6   (0x000020)   code 105  "Abgabe einer kleineren Packung als verschrieben"
"Remise d'un plus petit emballage que la grandeur prescrite"
Bit 7   (0x000040)   code 106  "SL-Limitation vom Vertrauensarzt aufgehoben"
"Limitation LS supprimée par le médecin-conseil"
Bit 8   (0x000080)   code 107  "Lehnt der Arzt oder die Ärztin beziehungsweise der Chiropraktor oder die Chiropraktorin aus medizinischen Gründen eine Substitution des Originalpräparats ab, so kommt der Selbstbehalt von 20% nicht zur Anwendung."
"Refus de substitution du médicament original par le médecin ou le chiropraticien pour raisons médicales - 20% de participation ne s'applique pas."
Bit 9   (0x000100)   code 108  "Lehnt der Apotheker oder die Apothekerin aus medizinischen Gründen eine Substitution des Originalpräparats ab, so kommt der Selbstbehalt von 20% nicht zur Anwendung."
"Refus de substitution du médicament original par le pharmacien ou la pharmacienne pour raisons médicales - 20% de participation ne s'applique pas."
space
/images/arrow_right.png 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.
space
/images/arrow_right.png 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.
space
/images/arrow_right.png 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.
space