integritysystemscompany / animal_schema

Collaborative definition of JSON Schema to support individual animal data exchange. Builds on ICAR standard and focuses on Australian red meat needs.
6 stars 6 forks source link

Movement: Arrival: Linking government transactions #41

Closed sejast closed 4 years ago

sejast commented 4 years ago

How are government transactions linked to the iscMovementArrival and iscMovementDeparture events?

An optional government transaction attribute would be useful. That would include the service or country as well as the ID. Perhaps information about the submission as well - success or failure.

cookeac commented 4 years ago

Our intent was to capture this with attributes in the Consignment object, which would suggest more attributes should be added to this object.

cookeac commented 4 years ago

@anitanagaraj check with Daniel Buchanan and Kerry Johns the transaction ID and status fields that could be added.

anitanagaraj commented 4 years ago

@cookeac , discussed with Daniel and I'm thinking of addition this to Consignment object-

governmentTransaction: { transactionId: string movementId: string, status: string (success/fail), service: string (e.g. BCMS) transactionDate: ‘’ }

cookeac commented 4 years ago

@anitanagaraj those fields look sensible to me. I'd suggest we create a new type to hold this - for example iscTransactionRecordType. Then add the transactionRecord (of type iscTransactionRecordType) to the consignment object. It would seem to me those sort of transaction records could be used elsewhere, hence generalising.