Patients with multiple microchips

It is not impossible in Hong Kong (because of the ex-pats bringing in pets from other countries) to have patients with multiple microchips [in fact 13 of 734 with microchips have 2].

The part:getPatientMicrochip(.) function only returns 1. [A number of the practice's forms display the microchip number - and the equivalent RxWorks get microchip function works  because RxWorks  does not support multiple microchips so that practice simply records both in the one field as say "982009101673028 / 045*610*874". As part of the data conversion I split this into two microchip entries as per the example below, and now I am in the poo.]

I looked at the party:getPatientIdentities(.) function and condsidered whether I could use xpath functions to extract the data - but I suspect it is not possible. Typically this returns something like "Microchip: 045*610*874, Microchip: 9820 0910 1673 028, Alias: 24263-RxW" where the patient is as per the following snippet:

Q1: how do others handle this 'two microchips' situation

Q2: should I be asking for a new function party:getPatientMicrochips(.) [note the plural], which if there are two or more, would return the numbers separated by commas - eg "045*610*874, 9820 0910 1673 028"

Note that I could follow the RxWorks format and put both number in the one microchip identity, but this seems a stupid thing to do since OPV does support multiple microchips.

Regards, Tim G

Comment viewing options

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

Re: Patients with multiple microchips

I think a party:getPatientMicrochips(patient) method is required.

Raise a JIRA, and I'll take a look at it.

-Tim A

Re: Patients with multiple microchips

Tim A - jira https://openvpms.atlassian.net/browse/OVPMS-1364 raised.  Regards, Tim G

Syndicate content