Read Referral Attachments
Perform Read Referral Attachments through athenahealth.
athena_read_referral_attachmentsread
Inputs
- Document Id
document_idexpressionrequiredRequired literal value or workflow expression.
- Chart Id
chart_idexpressionrequiredRequired literal value or workflow expression.
- Patient Id
patient_idexpressionrequiredRequired literal value or workflow expression.
- Document Class
document_classexpressionrequiredRequired literal value or workflow expression.
Default:
"PATIENTCASE" - Target Document Id
target_document_idexpressionOptional literal value or workflow expression.
Outputs
successSuccessdocument_idDocument Iddocument_classDocument Classpatient_idPatient Idchart_idChart Idattachment_countAttachment Countattached_countAttached CountattachmentsAttachmentstarget_document_idTarget Document Idtarget_attachment_foundTarget Attachment Foundtarget_attachment_attachedTarget Attachment AttachederrorErrorerror_messageError Message
Output schema completeness: best_effort_declared
Safety
- External effect
- read
- Confirmation recommended
- No
- Retry safe
- Yes
- Dry run supported
- No
Schemas
These schemas are first-pass authoring guidance. Runtime validation remains authoritative.
Input schema
{
"type": "object",
"required": [
"document_id",
"chart_id",
"patient_id",
"document_class"
],
"properties": {
"chart_id": {
"description": "Required 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"
},
"document_class": {
"default": "PATIENTCASE",
"description": "Required literal value or workflow expression.",
"x-workflow-field-type": "expression"
},
"target_document_id": {
"description": "Optional literal value or workflow expression.",
"x-workflow-field-type": "expression"
}
},
"additionalProperties": false
}Output schema
{
"type": "object",
"properties": {
"error": {},
"success": {},
"chart_id": {},
"patient_id": {},
"attachments": {},
"document_id": {},
"error_message": {},
"attached_count": {},
"document_class": {},
"attachment_count": {},
"target_document_id": {},
"target_attachment_found": {},
"target_attachment_attached": {}
},
"additionalProperties": true
}