|
Input: device ID, test name, manufacturer, date of manufacture, expire date, bench number, production place, status |
Input: device ID, status, operator, test date, patient ID, gender, weight, URL (link to image of device after test), result, geo-location |
|
Result: Add new device record to the chaincode |
Result: Add test information to existing device |
|
If
device exists
then
|
If
device does not exist
then
|
| return |
return |
|
else
|
else
|
| set test name, participant (manufacturer), date of manufacture, expire date, bench number, production place, status to device attribute |
update status set operator, test date, patient ID, gender, weight, URL, result, test place to device attribute |
| get asset registry emit ‘produce device’ event |
emit ‘do the test’ eve |