Investigation template -type?
I am currently building the investigation support into the practice database. I have created a number of investigation types - essentially one per lab, each with a template that is a Patient Form and have successfully linked these investigation types to the 250 odd products that involve a lab test.
There are many products that use the same lab and thus the same investigation type.
I had assumed that when the investigation form got printed, it would display the product whose invoicing generated the investigation. However, this is not the case.
I used my 'sample patient document' which contains most available fields. The 'Investigation Request id number' prints happily (as do all the patient and customer fields) but the product name does not - it prints "Invalid property name: product.entity.name".
According to a Tim A response in the discussion http://www.openvpms.org/forum/product-document-printing I am using the current template (ie a Patient Form).
How do I get at the product that initiated the investigation? Please don't tell me that I have to create a different investigation type for each product, rather than having one type per test laboratory.
Regards, Tim G
Re: Investigation template -type?
I don't think you can at present. When you print an investigation, you are printing an act.patientInvestation. This only has links to the investigation type, and you can't navigate from an investigation type to the product(s) that link to it.
I think to support this, the act.patientInvestigation archetype would need to have an optional product node. This would be populated by the charge editor when the investigation is created.
-Tim A