Extract Prescriber Formulary

Version 1.2.1

This stylesheet extracts the formulary for a given prescriber type from the PBS XML document.

The source document is the PBS XML document, schema-valid to v2.4 (or later) of the PBS XML Schema.

The result is text. Each line lists the item code of an item in the formulary for the given prescriber type.

Parameters

Parameter: "prescriber.uri"

The URI of the prescriber type.

Parameter: "prescriber.code"

The code (as used by Medicare Australia) of the prescriber type. Either the URI or the code may be given as a parameter, not both.

Parameter: "mode"

Default value: ""full""

What mode to operate in. Allowed values are: auto, full or update. full mode (the default) produces a full list of prescriber types. update mode compares this schedule to the previous schedule and produces a list of prescriber types that have been added or deleted. update mode requires the previous-schedule parameter to be specified. auto mode attempts to discover if the previous schedule is available; if it is then it switches to update mode, if not then full mode is used.

Parameter: "previous-schedule"

The URL for the previous schedule. This parameter is required for update mode, but is otherwise ignored.

Parameter: "display"

Default value: " drug-name item-code "

What information to display, and the order in which to display it. Allowed values are: drug-name, item-code and prescriber-type.

Revision History

Version Release date Changes
1.2.1 16 May 2012 Added "EP" program code.
1.2 24 June 2011 Updated for PBS XML v2.5.
1.1 21 January 2011 Updated for PBS XML v2.4.
1.0 23 March 2010 Initial version.