Upload Attachment to Patient
Perform Upload Attachment to Patient through ModMed.
modmed_upload_attachment_to_patientwritemodmed
Inputs
- Patient Id
patient_idexpressionrequiredRequired literal value or workflow expression.
- Document Id
document_idexpressionrequiredRequired literal value or workflow expression.
- Category Id
category_idselectdynamic optionsOptional selected identifier or value. Retrieve allowed values from the dynamic options endpoint.
Outputs
successSuccessattachment_idAttachment Idfile_nameFile Namepatient_idPatient IderrorError
Output schema completeness: best_effort_declared
Safety
- External effect
- write
- Confirmation recommended
- No
- Retry safe
- No
- Dry run supported
- No
Schemas
These schemas are first-pass authoring guidance. Runtime validation remains authoritative.
Input schema
{
"type": "object",
"required": [
"patient_id",
"document_id"
],
"properties": {
"patient_id": {
"description": "Required literal value or workflow expression.",
"x-workflow-field-type": "expression"
},
"category_id": {
"type": "string",
"description": "Optional selected identifier or value. Retrieve allowed values from the dynamic options endpoint.",
"x-dynamic-options": true,
"x-workflow-field-type": "select"
},
"document_id": {
"description": "Required literal value or workflow expression.",
"x-workflow-field-type": "expression"
}
},
"additionalProperties": false
}Output schema
{
"type": "object",
"properties": {
"error": {},
"success": {},
"file_name": {},
"patient_id": {},
"attachment_id": {}
},
"additionalProperties": true
}