Skip to documentation
athenahealth integration

Upsert Patient Case Attachment

Perform Upsert Patient Case Attachment through athenahealth.

View as Markdown
athena_upsert_patient_case_attachment
write

Inputs

  • document_id
    expressionrequired
    Document Id

    Required literal value or workflow expression.

  • patient_id
    expressionrequired
    Patient Id

    Required literal value or workflow expression.

  • chart_id
    expressionrequired
    Chart Id

    Required literal value or workflow expression.

  • file_path
    expression
    File Path

    Optional literal value or workflow expression.

  • s3_path
    expression
    S3 Path

    Optional literal value or workflow expression.

  • source_document_id
    expression
    Source Document Id

    Optional literal value or workflow expression.

  • document_class
    expression
    Document Class

    Optional literal value or workflow expression.

    Default: "ADMIN"

  • content_type
    expression
    Content Type

    Optional literal value or workflow expression.

  • idempotency_key
    expressionrequired
    Idempotency Key

    Required literal value or workflow expression.

  • close_document
    boolean
    Close Document

    Optional true-or-false value.

    Default: false

  • max_pdf_pages_per_attachment
    number
    Max Pdf Pages Per Attachment

    Optional numeric value.

    Default: 33

  • write_enabled
    boolean
    Write Enabled

    Optional true-or-false value.

    Default: false

Outputs

  • successSuccess
  • submittedSubmitted
  • write_skippedWrite Skipped
  • skip_reasonSkip Reason
  • document_idDocument Id
  • attachment_document_idAttachment Document Id
  • attachment_document_idsAttachment Document Ids
  • attachment_countAttachment Count
  • part_countPart Count
  • uploadedUploaded
  • uploaded_countUploaded Count
  • reusedReused
  • reused_countReused Count
  • attachedAttached
  • attached_countAttached Count
  • attach_call_countAttach Call Count
  • document_completeDocument Complete
  • match_countMatch Count
  • failure_phaseFailure Phase
  • error_codeError Code
  • retryableRetryable
  • errorError
  • error_messageError Message

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": [
    "document_id",
    "patient_id",
    "chart_id",
    "idempotency_key"
  ],
  "properties": {
    "s3_path": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "chart_id": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "file_path": {
      "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"
    },
    "document_id": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "content_type": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "write_enabled": {
      "type": "boolean",
      "default": false,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "close_document": {
      "type": "boolean",
      "default": false,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "document_class": {
      "default": "ADMIN",
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "idempotency_key": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "source_document_id": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "max_pdf_pages_per_attachment": {
      "type": "number",
      "default": 33,
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    }
  },
  "additionalProperties": false
}
Output schema
{
  "type": "object",
  "properties": {
    "error": {},
    "reused": {},
    "success": {},
    "attached": {},
    "uploaded": {},
    "retryable": {},
    "submitted": {},
    "error_code": {},
    "part_count": {},
    "document_id": {},
    "match_count": {},
    "skip_reason": {},
    "reused_count": {},
    "error_message": {},
    "failure_phase": {},
    "write_skipped": {},
    "attached_count": {},
    "uploaded_count": {},
    "attachment_count": {},
    "attach_call_count": {},
    "document_complete": {},
    "attachment_document_id": {},
    "attachment_document_ids": {}
  },
  "additionalProperties": true
}
View all athenahealth actions