Web Services v5 Interface

With NMVS Core 1.10, deployed on 02-Jun-2022, a new web services interface was delivered, web services v5.

The existing v4 interface will be deactivated on 31-Jul-2023 and so all users will need to migrate to the v5 interface by that date. Software suppliers have already been made aware of the specification of the new interface.

Please refer to the following related article: Web Services v4 Interface Deactivation.

The v5 interface upgrade supports the following new functionality.

Unique Alert Return Codes

Currently there are a small number of cases where an Alert ID is not created for an exception that would normally be associated with an Alert. It is correct that there is no Alert ID for these cases and so with this release new exception codes have been implemented for the exceptions where no Alert ID is generated. The following table details the existing Alert codes with the related (new) exception codes for the case where there is no Alert ID.

Return CodeReturn Code DescriptionReturn Code (no alert)Return Code Description
NMVS_FE_LOT_03Failed to find Batch NumberNMVS_FE_LOT_15Failed to find Batch Number (no alert).
NMVS_FE_LOT_12Expiry Date does not match Batch NumberNMVS_FE_LOT_17Expiry Date does not match Batch Number (no alert).
NMVS_FE_LOT_13The Batch Number does not match Pack Serial NumberNMVS_FE_LOT_18The Batch Number does not match Pack Serial Number(no alert).
NMVS_NC_PC_02Pack Serial Number not recognisedNMVS_NC_PC_14Pack Serial Number not recognised (no alert).
NMVS_NC_PCK_06Undo attempt doesn’t match the Pack statusNMVS_NC_PCK_29Undo attempt doesn’t match the Pack status (no alert).
NMVS_NC_PCK_19Status is already set on packNMVS_NC_PCK_28Status is already set on pack (no alert).
NMVS_NC_PCK_22Pack is already inactiveNMVS_NC_PCK_30Pack is already inactive (no alert).
NMVS_NC_PCK_27Status change could not be performedNMVS_NC_PCK_31Status change could not be performed (no alert).

The new exception codes above will only be returned if the user is connected to the new v5 interface.

Product Name to be Returned for Local Verification Transactions

When a UKNI user performs a verification transaction using the new v5 interface, against a pack that has been uploaded to the UKNI NMVS, there will be an additional field returned to the user containing the Product Name. The purpose of this change is to enable the pharmacist dispensing the pack to be able to confirm that the pack in hand is the same as the product that is recorded in the NMVS.

In a future release this functionality will be enhanced to provide the product name when the pack is not uploaded to the UKNI NMVS and the request it fulfilled by the NMVS of another country.

The availability of this additional Product information to the end user will depend on the implementation that has occurred in their NMVS software by their software supplier for the v5 interface.

Additional User Response Fields in the Verification

When a user performs a verification transaction against a pack that has already been dispensed (or decommissioned to another status) using the new v5 interface, the NMVS will return an additional field in the response to report whether the original dispense (or decommission) transaction was performed by the same user. If the previous dispense (or decommission) transaction was performed by the same user, then another field with be returned to identify whether the transaction is within 240 hours (10 days) and therefore an undo transaction can be successfully executed.

The purpose of this change is to inform the user whether they are able to successfully perform an undo transaction on the pack they have in their hand and thus prevent an unnecessary Alert.

The availability of this additional User information to the end user will depend on the implementation in their NMVS software by their software supplier for the v5 interface.