Updated Investigations Template

With the idexx integration I pretty much dont use the other investigations.  but I just realized I need to update my QML form

This doesnt seem to work...despite I know that the document gets provided with an act.patientInvestigation

Clinic ID: [investigation:accountId()]

This and retrieving a set of associated product names / identities (which is where we have stored the associated codes for each test historically before tests were a thing.

I tried using [list:names(openvpms:get(., 'products'))] 

given that the act has a products participations node I assumed that would work but that gave me

Cannot invoke public java.lang.String org.openvpms.archetype.function.list.ListFunctions.names(java.lang.Object); Invalid property name: name

Also tried 

[list:values(openvpms:get(., 'products'),'identities')]

which was a wild guess.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Re: Updated Investigations Template

The investigation:accountId() function requires that the Investigation Type has a practice location relationship with the Account Id set e.g.:

You can access:

  • investigation test names with: [list:names(list:values('tests.entity'))]
  • product names with: [list:names(list:values('products.entity'))]
  • product identities with: [list:join(list:values('products.entity.identities'), 'identity')]

 

AttachmentSize
Investigation Form.odt 11.15 KB
Syndicate content