Antwort auf einen verify-Call
Auf dieser Seite wird die Antwort vom Service auf einen verify-Call aufgeführt.
Die maximale Ausprägung an Feldern:
json
{
"prescription_id": "(uid of prescription object)",
"issued_at": "(timestamp)",
"issued_by": "(string{name (hinid)})",
"valid": "(boolean)",
"revoked": "(boolean)",
"dispensed": "(boolean)",
/***** if full dispensed, else absent *****/
"dispensed_by": "(string{name|hinid})",
/***** if full dispensed, else absent *****/
"dispensed_at": "(timestamp)",
/***** if active partial_dispensations are present, else element is absent *****/
"partial_dispensations": {
"amount": "(number)",
"timestamp": "(timestamp)",
"dispensed_by":"(userid)",
"medicine_id":"(dispensed medication id)"
},
"events": {
/***** if event is full dispense *****/
"id": "(uid of event)",
"type":"full_dispense",
"reference":"(uid of prescription object)",
"event_data": {},
"timestamp": "(timestamp)",
"actor": "(string)",
"actor_name": "(string)"
},
/***** if event is partial dispense *****/
"id": "(uid of event)",
"type": "partial_dispense",
"reference": "(uid of prescription object)",
"dispenses": {
"id": "(id of medication)",
"amount": "(number)",
"substitute": "(id of medication substitute)",
"substitute_id_type": "(number: {1;2;3})"
},
"event_data": {},
"timestamp": "(timestamp)",
"actor": "(string)",
"actor_name": "(string)"
},
/***** if event is revoke *****/
"id": "(uid of event)",
"type": "revoke",
"reference": "(uid of prescription object)",
"event_data": {},
"timestamp": "(timestamp)",
"actor": "(string)",
"actor_name": "(string)"
},
/***** if event is cancel *****/
"id": "(uid of event)",
"type": "cancel",
"reference": "(uid of prescription object)",
"event_data": {
"event_id": "(uid of referenced event object)"
},
"timestamp": "(timestamp)",
"actor": "(string)",
"actor_name": "(string)"
}
}