Skip to main content

Health Tracking

This feature generates drug health tracking entries from posted inventory movements (sales shipments, sales returns, transfer shipments and receipts) and exports them as XML files through Document Exchange, for transmission to the health tracking system.

Only items that have a health tracking type and an AIC Code are considered.

  • Health Tracking Setup: general setup page.
  • Health Tracking Entries: search for the page with Business Central search (History category).

For each document type you set the default entry type and whether the document must be tracked.

Field Description
Default Sales Entry Type Entry type used for sales shipments when the order type does not specify one.
Track Sales Always, Never or Optional (see below).
Default Sales Return Entry Type Entry type used for sales returns.
Track Sales Return Always, Never or Optional.
Default Purchase Return Entry Type Entry type for purchase returns.
Track Purchase Return Always, Never or Optional.
Default Transfer Shipment Entry Type Entry type used for transfer shipments when the order type does not specify one.
Track Transfer Shipments Always, Never or Optional.
Default Transfer Receipt Entry Type Entry type used for transfer receipts.
Track Transfer Receipts Always, Never or Optional.

Option meaning:

  • Always: documents of that type are always tracked.

  • Never: documents of that type are never tracked.

  • Optional: the document is tracked unless its order type is set not to be tracked.

  • Warehouse: must have Health Tracking Code and Health Tracking Type (sender code and type). Only locations linked to the warehouse are processed.

  • Item: must have a health tracking type and an AIC Code.

  • Customer or ship-to address: for sales, they must have the recipient's tracking code and type; if the shipment uses a ship-to address, its data is used, otherwise the customer's.

  • Store: for transfers, the destination location (or origin location, for receipts) must be linked to a store with a tracking code and type.

  • Order type: can specify whether documents are tracked (Health Tracking) and a specific Health Tracking Entry Type, which takes priority over the setup default.

Read-only page listing the generated entries.

Field Description
Entry No. Sequential entry number.
Warehouse Code Source warehouse.
Source Tracking Code / Source Tracking Type Tracking code and type of the sending warehouse.
Entry Type Health tracking entry type.
Item Ledger Entry No. Originating item ledger entry.
AIC Code Item AIC code.
Description Item description.
Product Type Item health tracking type.
Quantity Quantity moved (always positive).
Destination Tracking Code / Destination Tracking Type Recipient tracking code and type.
Destination No. / Destination Name Destination customer or location.
Customer Type, Customer Code, Billing Type, Billing Code Additional customer and billing data (hidden by default).
Document No. Originating posted document.
Posting Date / Posting Time Posting date and time.
Transmission No. / Transmission Date Number and date of the transmission in which the entry was generated.
  • Process Entries: opens the Process Health Tracking report.
  • Document Exchange: on the selected entries, lets you choose Export Health Tracking, which sends the XML file of the transmission of the first selected entry.
  1. From Health Tracking Entries choose Process Entries.

  2. Enter Warehouse Code, Starting Date and Ending Date.

  3. Confirm. Item ledger entries (excluding corrections) of the warehouse locations in the period are read and tracking entries are created with a new transmission number.

  4. Select an entry of the transmission to send.

  5. Choose Document Exchange and then Export Health Tracking.

  6. An XML file is sent, named with the warehouse code and the transmission number (6 digits).

  • An item ledger entry that has already been tracked is not processed again.
  • Sales shipments with inbound quantity are treated as returns and use the sales return entry type.
  • Through Document Exchange, automatic processing can be scheduled: for each warehouse with a tracking code, entries are generated day by day, from the day after the last entry up to yesterday, and every non-empty transmission is exported.
  • If required data is missing (tracking codes, AIC Code, default entry types) processing stops with an error.