pfIcarMedicineTransactionResource
Description
An inventory transaction resource for a medicine product.
The pfIcarMedicineTransactionResource schema inherits from icarMedicineTransactionResource.
Properties
Name | Description | Required | Type |
---|---|---|---|
Product | The medicine product in this transaction. | Yes | icarMedicineReferenceType |
TransactionKind | Identifies the transaction kind. | Yes | icarInventoryTransactionKindType |
Quantity | The overall volume, weight or count of the product in the transaction in the units defined. | Yes | Number |
Units | The units of the quantity specified. Where applicable it is recommended that uncefact mass and volume units are used. | Yes | string |
SupplierName | The supplier of the product in this transaction. This is particularly relevant if the transaction is a receipt | No | string |
ExpiryDate | The expiry date of the product supplied in the transaction. | No | date-time |
TotalCost | Total cost applied to this transaction | No | Number |
Currency | The currency of the cost expressed using the ISO 4217 3-character code such as AUD, GBP, USD, NZD. | No | string |
PackSize | The volume or weight of the product in a pack in the units defined. Especially relevant for Vet Medicines. | No | Number |
NumberOfPacks | The number of packs of the product in the transaction. Especially relevant for Vet Medicines. Could be a decimal number for a part-pack. | No | Number |
Id | Unique identifier in the source system for this event. | No | string |
EventDateTime | RFC3339 UTC date and time (see https://ijmacd.github.io/rfc3339-iso8601/). | No | date-time |
TraitLabel | If the event represents a formal trait, identifies the recording system and trait. | No | icarIdentifierType |
Responsible | Use if an observation is manually recorded, or an event is carried out or authorised by a person. SHOULD be a person object. | No | string |
ContemporaryGroup | For manually recorded events, record any contemporary group code that would affect statistical analysis. | No | string |
Remark | A comment or remark field for additional user-specified information about the event. | No | string |
Self | Uniform resource identifier (URI) of the resource (rel=self). | No | string |
Meta | Meta-data for the resource. Mandatory if you wish to support synchronisation. | No | icarMetaDataType |
Location | Unique location scheme and identifier combination. | No | icarIdentifierType |
Examples
Example 1
{
"resourceType": "/inventory/medicine-transaction",
"id": "14fe6cfb-652a-4f86-a56b-500e1c1966e2",
"@self": "https://api.purefarming.com/data/inventory/medicine-transaction/1df30895-8715-449a-a646-00532bdf9941",
"location": {
"scheme": "au.nlis.pic",
"id": "3ABCD666"
},
"meta": {
"source": "au.com.defvetservices",
"sourceId": "376f65c8-0fb3-484c-9005-ce978d94487d",
"modified": "2023-04-10T09:00:00Z",
"created": "2023-04-10T09:00:00Z",
"isDeleted": false,
"creator": "don.wilson@defvetservices.com.au",
"validFrom": "2023-04-10T09:00:00Z",
"validTo": "2024-02-10T09:00:00Z"
},
"eventDateTime": "2023-03-28T11:00:00Z",
"responsible": "Gemma Smith",
"remark": "Drench supplied March 2023",
"transactionKind": "Receipt",
"quantity": 20,
"units": "LTR",
"supplierName": "DEF Vet Services Ltd",
"expiryDate": "2023-12-28T08:00:00Z",
"packSize": 20,
"numberOfPacks": 1,
"product": {
"identifier": {
"id": "quad-oral-00020",
"scheme": "au.com.goldenagsolutions"
},
"href": "https://www.goldenagsolutions/products/92486",
"identifiers": [
{
"scheme": "au.com.defvetservices.product",
"id": "triple-0020"
}
],
"family": "Veterinary Supplies",
"approved": "Approved",
"registeredIdentifier": {
"id": "92486",
"scheme": "au.gov.apvma"
},
"name": "Golden Quadmax Oral 20L",
"gtin": "012345678944",
"unspc": "70122002"
}
}