PharmaLedger-IMI / fgt-workspace

UC3 Finished Goods Traceability
MIT License
5 stars 3 forks source link

DFM/ACDC - FGT integration support #119

Open joaoluis-pdm opened 2 years ago

joaoluis-pdm commented 2 years ago

Support provisioning of a few products, batches, and serial numbers used in the demo of https://github.com/PharmaLedger-IMI/acdc-components/issues/30

joaoluis-pdm commented 1 year ago

fgt-tst-pl runned out of disk space #124

Creating a wsCreateStuffDfm2.js script just to support a dfm2 scenario to perform the missing shipments and sales.

joaoluis-pdm commented 1 year ago

Mutate the latest events to match ALPV1.

acdc TST:

-- eventdId a1494ad0-e755-44fa-9847-e82f47e15d6d "createdOn": "2022-09-09T17:03:01.633Z"
acdc=> update eventinput set eventinputdata='{"productCode":"02113100000028","batch":"ALPV1","serialNumber":"93342708522623", "expiryDate":"290620","snCheckDateTime":"2022-07-17T13:41:39.121Z","snCheckLocation":{"latitude":42.242979,"longitude":-3.658588},"did":"AcdcEventDataGenerator","batchDsuStatus":true,"productDsuStatus":false}' where eventinputid='05ed621a-bcac-4d8f-9493-cd9096521a91';

acdc=> UPDATE appresource SET value='https://api-mah-bayer-fgt-dev.pharmaledger.pdmfc.com/traceability' WHERE key='fgt.url';

acdc=> UPDATE appresource SET value='Onfvp GHSVZwHkZmZ5ZwR5ByEbnKZkp1A1L2uOHmAwqKWyHTSmp3pjpzD=' WHERE key='fgt.authorization';

acdc=> UPDATE appresource SET value='0.9.1' WHERE key='acdc.version';

acdc DEV:

-- eventdId ae06686e-d142-4212-9328-f8b7a6df2c48 "createdOn": "2022-08-23T10:58:15.122Z"
acdc=> update eventinput set eventinputdata='{"productCode":"02113100000028","batch":"ALPV1","serialNumber":"93342708522623", "expiryDate":"290620","snCheckDateTime":"2022-07-17T13:41:39.121Z","snCheckLocation":{"latitude":42.242979,"longitude":-3.658588},"did":"AcdcEventDataGenerator","batchDsuStatus":true,"productDsuStatus":false}' where eventinputid='fe006e8e-8310-4004-890f-cef5223337ac';

acdc=> UPDATE appresource SET value='https://api-mah-bayer-fgt-dev.pharmaledger.pdmfc.com/traceability' WHERE key='fgt.url';

acdc=> UPDATE appresource SET value='Onfvp GHSVZwHkZmZ5ZwR5ByEbnKZkp1A1L2uOHmAwqKWyHTSmp3pjpzD=' WHERE key='fgt.authorization';

acdc=> UPDATE appresource SET value='0.9.1' WHERE key='acdc.version';

Both environments point to https://fgt-dev.pharmaledger.pdmfc.com for the time being.