The ATL COM module tarmedValidator provides methods to
browse, search & validate records of the Tarmed tariff
browse, search & validate records of the Tarmed tariff
API browser of tarmedValidator100 COM module
IValidate::AddService method | |||
---|---|---|---|
Adds a new service which will be validated against all the previously entered services of the same session. If the code passed all the Validations a true value is returned. If the code was not accepted a value of false is returned and the variable plStatus contains the error code. | |||
Restful webservice calling syntax | |||
[POST] | /baseURL/IValidate/AddService | ||
[JSON input data] | pIValidate: pITarmedInput: bstrCode: bstrReferenceCode: dQuantity: lSessionNumber: dDate: eSide: eIgnoreValidate: lHook: |
longValue, //interface address longValue, "utf8StringValue", "utf8StringValue", doubleValue, longValue, variantDateValue | "stringISODateValue", longValue, longValue, longValue |
|
[JSON result data] | plStatus: pbStatus: |
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 AddService( | ITarmedInput
BSTR BSTR double long DATE SideType YesNoType long long VARIANT_BOOL |
*pITarmedInput,
bstrCode, bstrReferenceCode, dQuantity, lSessionNumber, dDate, eSide, eIgnoreValidate, lHook, *plStatus, *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] ITarmedInput | *pITarmedInput | ITarmedInput instance. | |
[in] BSTR | bstrCode | Code of the Tarmed service. | |
[in] BSTR | bstrReferenceCode | Reference code. | |
[in] double | dQuantity | Quantity value. | |
[in] long | lSessionNumber | Session number. | |
[in] DATE | dDate | Date of the service. | |
[in] SideType | eSide | Side type. | |
[in] YesNoType | eIgnoreValidate | Flag indicating whether the validation was ignored.In the following situations this flag might be useful. The user wants to add the service even if the validation failed, perhaps he has a special agreement with the insurance or patient. When adding new services to already previously checked records, it is not necessary to check the existing records again. | |
[in] long | lHook | External hook. The software house can provide for example the record ID of the service to identify the service later on. | |
[out] long | *plStatus | A zero value is returned for success. A positive value indicates that a validation rule was not fulfilled, use the GetAbortInfo to get a description string and display an error message. A negative value indicates that the service was not added (see the AbortValidate Enumeration for possible codes). With the GetAbortInfo one can get a description, however preferable the required actions will be performed in the background. | |
[out,retval] VARIANT_BOOL | *pbStatus | Return status. VARIANT_TRUE means S_OK, VARIANT_FALSE means S_FALSE (e.g. in an iterator) or an error (E_name). In the later case check for possible errors with the GetAbortInfo method. |
|