Edit Existing Order via Tracking (v2)
Perform Edit Existing Order via Tracking (v2) through NikoHealth.
nikohealth_edit_order_tracking_v2writenikohealth
Inputs
- Patient Id
patient_idexpressionrequiredRequired literal value or workflow expression.
- Order Id
order_idexpressionrequiredRequired literal value or workflow expression.
- Product Swaps
product_swapsexpressionOptional literal value or workflow expression.
- Add Items
add_itemsexpressionOptional literal value or workflow expression.
- Diagnosis Codes
diagnosis_codesexpressionOptional literal value or workflow expression.
- Diagnosis Code Prefixes
diagnosis_code_prefixesexpressionOptional literal value or workflow expression.
- Dry Run
dry_runbooleanOptional true-or-false value.
Default:
true
Outputs
successSuccessorder_idOrder Idedit_statusEdit Statusapplied_opsApplied Opsitem_countItem Countdiagnosis_countDiagnosis Countconfirmed_by_readbackConfirmed By Readbackpartial_editPartial Editrefusal_reasonRefusal Reasonrefusal_fieldRefusal Fieldrefusal_detailRefusal Detailfailure_categoryFailure CategoryretryableRetryableerrorError
Output schema completeness: best_effort_declared
Safety
- External effect
- write
- Confirmation recommended
- No
- Retry safe
- No
- Dry run supported
- Yes
Schemas
These schemas are first-pass authoring guidance. Runtime validation remains authoritative.
Input schema
{
"type": "object",
"required": [
"patient_id",
"order_id"
],
"properties": {
"dry_run": {
"type": "boolean",
"default": true,
"description": "Optional true-or-false value.",
"x-workflow-field-type": "boolean"
},
"order_id": {
"description": "Required literal value or workflow expression.",
"x-workflow-field-type": "expression"
},
"add_items": {
"description": "Optional literal value or workflow expression.",
"x-workflow-field-type": "expression"
},
"patient_id": {
"description": "Required literal value or workflow expression.",
"x-workflow-field-type": "expression"
},
"product_swaps": {
"description": "Optional literal value or workflow expression.",
"x-workflow-field-type": "expression"
},
"diagnosis_codes": {
"description": "Optional literal value or workflow expression.",
"x-workflow-field-type": "expression"
},
"diagnosis_code_prefixes": {
"description": "Optional literal value or workflow expression.",
"x-workflow-field-type": "expression"
}
},
"additionalProperties": false
}Output schema
{
"type": "object",
"properties": {
"error": {},
"success": {},
"order_id": {},
"retryable": {},
"item_count": {},
"applied_ops": {},
"edit_status": {},
"partial_edit": {},
"refusal_field": {},
"refusal_detail": {},
"refusal_reason": {},
"diagnosis_count": {},
"failure_category": {},
"confirmed_by_readback": {}
},
"additionalProperties": true
}