Record an order in Provkeep (Record plan)
record_orderSends one order to the signed-in Record account, where it is checked against its state and kept with the rule that applied that day, exactly as POST /v2/checks does (https://provkeep.com/developers). Returns what each source says for each line and never holds or refuses the order. Send codes only: the order's reference, the two letter patient_state, and each line's product, dosage form, route and lot number. Never send a patient's or prescriber's name, address, date of birth or contact details.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"code": "<code>",
"patient_state": "<patient_state>",
"lines": "<lines>"
},
"name": "record_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Your order reference. Not a patient identifier. | |
| lines | Yes | ||
| purpose | No | ||
| placed_at | No | When the order was placed, as an ISO time. | |
| consult_type | No | ||
| patient_state | Yes | The two letter state the order ships to. |