Skip to documentation
ModMed integration

Upload Attachment to Patient

Perform Upload Attachment to Patient through ModMed.

View as Markdown
modmed_upload_attachment_to_patient
writemodmed

Inputs

  • patient_id
    expressionrequired
    Patient Id

    Required literal value or workflow expression.

  • document_id
    expressionrequired
    Document Id

    Required literal value or workflow expression.

  • category_id
    selectdynamic options
    Category Id

    Optional selected identifier or value. Retrieve allowed values from the dynamic options endpoint.

Outputs

  • successSuccess
  • attachment_idAttachment Id
  • file_nameFile Name
  • patient_idPatient Id
  • errorError

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
}
View all ModMed actions