mdInvoiceRequest  -  the modules for generating
XML and/or paper based invoices of physicians
mdInvoiceRequest
    API DocBrowser   ·  Revision history
    Download area
    FAQ
 
home
system
integrators
search the
site
 

validator
modules
invoice
modules
credit
modules
miscellaneous
modules
tools

  Design by TMR AG
  © by sumex1.net
 
IMDInvoiceRequestManager::Print method

 Description  V4.00/ 6 Dec 2004 
Validates the invoice against the XSD schema file and prints the invoice on the local printer.

bstrPrintTemplate is either empty or of the general form

actionKey[(objectName1=text;objectName2=text2;...)][=printTemplateFile][#INIPATH=inipath)

  • actionKey is (pat2patSummary|patSummary|hcSummary|pat2patDetail|patDetail|hcDetail) for the patient summary page addressed to the patient (single A4 page), the patient summary page addressed to the guarantor (single A4 page), the health care summary, the detailed patient pages addressed to the patient, the detailed patient pages addresses to the guarantor, and the health care detailed pages. Please note that some of these forms are just for your convenience and are not mandatory!
     
  • objectName1=text; is an optional static text substitution enclosed in braces () where objectName1 is the object name (cf. inside the print template for the names) and text is the substitution. The substitution can be empty as well!
     
  • printTemplateFile is an optional external print template file name (full path!)
     
  • inipath is an optional path the print template's INI file. The report engine uses this path to find an .ini file with the same name as the print template but with an extension of .vpd.

    This allows for global settings of a print template in a LAN.

Here are some usage examples:

  • bstrPrintTemplate: ""
    denotes a standard printing situation depending on the payment mode. For TG a patient summary invoice on A4 with ESR attached on the bottom addressed to the guarantor plus a detailed health care invoice ("Rückforderungsbeleg") is printed (patSummary + hcDetail).

    For TP a detailed invoice ("TP Rechnung") with an ESR line is printed (hcDetail).
     

  • bstrPrintTemplate: pat2patDetail

    prints a detailed invoice for a patient (title is adjusted accordingly) addressed to the patient
     

  • bstrPrintTemplate: hcSummary(DOCUMENT_TITLE_SUMMARY=Alternate title for HealthCare company;)

    prints a summary invoice on A4 with ESR attached on the bottom for a health care company. The title is adjusted as given above.
     

  • bstrPrintTemplate: patSummary=C:\myForms\myPrintForm.vps

    uses the print template "C:\myForms\myPrintForm.vps". Please note the license restriction below! An optional INI file with the name "C:\myForms\myPrintForm.vpd" is searched under this condition.
     

  • bstrPrintTemplate: #INIPATH=\\host1\\myForms\

    the default path for the .ini files (place of the installed component) is changed to "\\host1\\myForms\". If "\\host1\\myForms\" is accessible by all hosts of the LAN then the same INI settings can be used.
     

  • bstrPrintTemplate: (DOCUMENT_TITLE_SUMMARY=Alternate title for HealthCare company;)

    changes the default title of a summary page to the given one.

IMPORTANT LICENSE NOTE
The report engine used is Hexatech's ViewPro (www.hexatech.com). If you supply your own template files then you must have your own ViewPro license. By using the invoiceManager you implicitly agree upon this restriction!!

 C/C++ syntax
HRESULT  Print( BSTR   bstrPrintTemplate,
YesNoType   ePrintSetup,
YesNoType   eSortServices,
BSTR   bstrSenderID,
IAddress   *pIReceiverAddress,
long   lHWND,
long   *plTimestamp,
IMDInvoiceResult   **ppIMDInvoiceResult,
VARIANT_BOOL   *pbStatus);

 Parameter description
[in]   BSTR   bstrPrintTemplate   Either empty for default printing or special formed argument (cf. above) for individual printing and/or changing of static texts
[in]   YesNoType   ePrintSetup   Display a dialog for printer setup.
[in]   YesNoType   eSortServices   Sorting type for service records in printed invoices.
[in]   BSTR   bstrSenderID   Short sender address identification. If set than the sender identification is printed atop of the receiver address as an alternative to the sender address on the envelop.
[in]   IAddress   *pIReceiverAddress   Address interface instance to set an alternate receiver address for the printed invoice overriding the default address behavior.
[in]   long   lHWND   Handle to the owner window for windows created while printing. If this parameter is 0, the print windows have no owner window.
[out]   long   *plTimestamp   Timestamp of the XML document as epoch time (seconds elapsed since 1.1.1970).
[out]   IMDInvoiceResult   **ppIMDInvoiceResult   IMDInvoiceResult interface.
[out, retval]   VARIANT_BOOL   *pbStatus   Return status

 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.
mdInvoiceRequest
  IMDInvoiceRequestManager
    Print